|
|
|
@ -200,10 +200,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
created: function () { |
|
|
|
// this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadImg?token=${Cookies.get('token')}` |
|
|
|
// this.uploadFileUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadAllFile?token=${Cookies.get('token')}` |
|
|
|
this.uploadUrl = `http://localhost:9094/epdc-api/oss/file/uploadImg?token=${Cookies.get('token')}` |
|
|
|
this.uploadFileUrl = `http://localhost:9094/epdc-api/oss/file/uploadAllFile?token=${Cookies.get('token')}` |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadImg?token=${Cookies.get('token')}` |
|
|
|
this.uploadFileUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/uploadAllFile?token=${Cookies.get('token')}` |
|
|
|
// this.uploadUrl = `http://localhost:9094/epdc-api/oss/file/uploadImg?token=${Cookies.get('token')}` |
|
|
|
// this.uploadFileUrl = `http://localhost:9094/epdc-api/oss/file/uploadAllFile?token=${Cookies.get('token')}` |
|
|
|
|
|
|
|
this.init(); |
|
|
|
|
|
|
|
@ -244,7 +244,11 @@ export default { |
|
|
|
this.dataForm.grids = res.data |
|
|
|
|
|
|
|
}).catch(() => {}) |
|
|
|
this.getOptionsById(); |
|
|
|
if (this.status === '0'){ |
|
|
|
this.getOptions(); |
|
|
|
}else { |
|
|
|
this.getOptionsById(); |
|
|
|
} |
|
|
|
this.getInfoById(); |
|
|
|
}else { |
|
|
|
this.getCheckInfo(); |
|
|
|
@ -548,10 +552,8 @@ export default { |
|
|
|
infoDetail:subChild |
|
|
|
} |
|
|
|
console.log(pateDate); |
|
|
|
this.pageloading = true; |
|
|
|
this.isAble = true; |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put'](`kpi/subdetail/addDetail`,pateDate).then(({ data: res }) => { |
|
|
|
this.pageloading = false; |
|
|
|
this.isAble = false; |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
|