|
@@ -122,7 +122,7 @@
|
|
|
<el-table-column
|
|
|
class-name="action-column"
|
|
|
label="操作"
|
|
|
- width="180"
|
|
|
+ width="230"
|
|
|
fixed="right"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -188,7 +188,14 @@
|
|
|
class="btn-primary"
|
|
|
type="text"
|
|
|
@click="toDownload(scope.row)"
|
|
|
- >下载</el-button
|
|
|
+ >下载题卡</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('link', 'Download')"
|
|
|
+ class="btn-primary"
|
|
|
+ type="text"
|
|
|
+ @click="toDownloadCardExchange(scope.row)"
|
|
|
+ >下载卡格式</el-button
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -242,6 +249,7 @@ import {
|
|
|
deleteCard,
|
|
|
convertCardImage,
|
|
|
downloadCardFile,
|
|
|
+ downloadCardExchangeFile,
|
|
|
} from "../api";
|
|
|
import ModifyCardInfo from "../components/ModifyCardInfo";
|
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
@@ -364,6 +372,16 @@ export default {
|
|
|
if (!res) return;
|
|
|
this.$message.success("下载成功!");
|
|
|
},
|
|
|
+ async toDownloadCardExchange(row) {
|
|
|
+ const res = await downloadByApi(() => {
|
|
|
+ return downloadCardExchangeFile(row.id);
|
|
|
+ }, "").catch((e) => {
|
|
|
+ this.$message.error(e || "下载失败,请重新尝试!");
|
|
|
+ });
|
|
|
+
|
|
|
+ if (!res) return;
|
|
|
+ this.$message.success("下载成功!");
|
|
|
+ },
|
|
|
// image-preview
|
|
|
toPreviewImage(row) {
|
|
|
this.imageList = row.imageUrls;
|