|
@@ -160,7 +160,8 @@ export default {
|
|
|
classifyListLv2: [],
|
|
|
createWebsitList: [],
|
|
|
statusTypeList: [],
|
|
|
- expName: ''
|
|
|
+ expName: '',
|
|
|
+ kaiguan: true
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -1333,15 +1334,25 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
xiazaifujian() {
|
|
|
- qualityFeedbackDownZip(
|
|
|
- {
|
|
|
- id: this.formData.id
|
|
|
- },
|
|
|
- '',
|
|
|
- `${this.formData.title}.zip`
|
|
|
- ).then(res => {
|
|
|
- this.$message({ type: 'success', message: '下载成功!' })
|
|
|
- })
|
|
|
+ if (this.kaiguan) {
|
|
|
+ this.kaiguan = false
|
|
|
+ qualityFeedbackDownZip(
|
|
|
+ {
|
|
|
+ id: this.formData.id
|
|
|
+ },
|
|
|
+ '',
|
|
|
+ `${this.formData.title}.zip`
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ this.kaiguan = true
|
|
|
+ this.$message({ type: 'success', message: '下载成功!' })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.kaiguan = true
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({ type: 'success', message: '正在下载请稍等!' })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|