Browse Source

【pc端 添加网格实体化指标详情】-【页面修改】-(魏凯)-2020/12/10

master
weikai 5 years ago
parent
commit
4fa496bf07
  1. 16
      src/views/modules/kpi/kpisubpositiondetail.vue

16
src/views/modules/kpi/kpisubpositiondetail.vue

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

Loading…
Cancel
Save