|
|
@ -188,8 +188,8 @@ export default { |
|
|
|
}, |
|
|
|
// ----------文件上传下载---------- |
|
|
|
handleFileCardPreview (file) { |
|
|
|
window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${file.url}` |
|
|
|
// window.location.href = `http://219.146.91.110:10000/epdc-api/oss/file/download?fileUrl=${file.url}` |
|
|
|
// window.location.href = `${window.SITE_CONFIG['apiURL']}/oss/file/download?fileUrl=${file.url}` |
|
|
|
window.location.href = `http://219.146.91.110:10000/epdc-api/oss/file/download?fileUrl=${file.url}` |
|
|
|
}, |
|
|
|
beforeFileRemove (file, fileList) { |
|
|
|
return this.$confirm(`确定移除${file.name}?`) |
|
|
@ -243,6 +243,28 @@ export default { |
|
|
|
}, |
|
|
|
// 表单提交 |
|
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
|
// 统计项非0校验 |
|
|
|
let remindInfo = '' |
|
|
|
for (var i = 0; i < this.dataForm.totalConfigList.length; i++) { |
|
|
|
for (var j = 0; j < this.dataForm.totalConfigList[i].configList.length; j++) { |
|
|
|
if (this.dataForm.totalConfigList[i].configList[j].total <= 0 && this.dataForm.totalConfigList[i].showFlag === '1') { |
|
|
|
remindInfo += '第' + (i + 1) + '项、' |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (remindInfo.length > 0) { |
|
|
|
remindInfo = remindInfo.substring(0, remindInfo.length - 1) |
|
|
|
this.$confirm(remindInfo + '存在未完善信息,请完善后提交!', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
// 确定逻辑 |
|
|
|
}).catch(() => {}) |
|
|
|
return false |
|
|
|
} |
|
|
|
// 表单提交后台 |
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|