|
@@ -15,7 +15,7 @@
|
|
|
>
|
|
>
|
|
|
一键下载
|
|
一键下载
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button
|
|
|
|
|
|
|
+ <!-- <el-button
|
|
|
type="warning"
|
|
type="warning"
|
|
|
size="small"
|
|
size="small"
|
|
|
plain
|
|
plain
|
|
@@ -23,7 +23,7 @@
|
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
|
>
|
|
>
|
|
|
一键导出
|
|
一键导出
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template slot="body">
|
|
<template slot="body">
|
|
@@ -97,6 +97,19 @@ export default window.$crudCommon({
|
|
|
return `${yearCN}${this.tag.label}`
|
|
return `${yearCN}${this.tag.label}`
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.option.column.forEach(item => {
|
|
|
|
|
+ if (item.prop == 'fileList') {
|
|
|
|
|
+ item.uploadBefore = (file, done, loading) => {
|
|
|
|
|
+ if (this.form.fileList.some(item => item.label == file.name)) {
|
|
|
|
|
+ this.$message.error(`${file.name}文件已存在!`);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ done();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
loadData() {
|
|
loadData() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
@@ -163,16 +176,19 @@ export default window.$crudCommon({
|
|
|
this.currIndex = this.form.$index + 1;
|
|
this.currIndex = this.form.$index + 1;
|
|
|
done();
|
|
done();
|
|
|
},
|
|
},
|
|
|
- handleExport() {
|
|
|
|
|
- exportBlob(`/api/kd-scientific/fjbczl/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
- downloadXls(res.data, `${this.params.year}附件补充.xlsx`);
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // handleExport() {
|
|
|
|
|
+ // exportBlob(`/api/kd-scientific/fjbczl/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
|
|
+ // downloadXls(res.data, `${this.params.year}附件补充.xlsx`);
|
|
|
|
|
+ // });
|
|
|
|
|
+ // },
|
|
|
handleDownFile(file) {
|
|
handleDownFile(file) {
|
|
|
downloadFileByUrl(file.value, file.label);
|
|
downloadFileByUrl(file.value, file.label);
|
|
|
},
|
|
},
|
|
|
handleDownAll() {
|
|
handleDownAll() {
|
|
|
- this.$message.warning("功能建设中...");
|
|
|
|
|
|
|
+ let downParams = { year: this.params.yearAndMonth };
|
|
|
|
|
+ exportBlob(`/api/kd-scientific/archive/fjbczl/download?${this.website.tokenHeader}=${getToken()}`, downParams).then(res => {
|
|
|
|
|
+ downloadXls(res.data, `${this.pageTitle}.zip`);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
handleRowDown() {
|
|
handleRowDown() {
|
|
|
this.$message.warning("功能建设中...");
|
|
this.$message.warning("功能建设中...");
|