|
|
@ -111,7 +111,7 @@ |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" :disabled="pageDisabled"> |
|
|
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm"> |
|
|
|
<el-form-item label="关联网格:" prop="grids" label-width="90px" style="font-weight:bold"> |
|
|
|
<el-select |
|
|
|
v-model="dataForm.grids" |
|
|
@ -227,15 +227,14 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (this.dataForm.id) { |
|
|
|
this.$http.get(`/kpi/subdetail/getInfogrid/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.pageloading = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.dataForm.grids = res.data |
|
|
|
|
|
|
|
}).catch(() => {}) |
|
|
|
this.getInfoById(); |
|
|
|
this.getOptionsById(); |
|
|
|
this.getInfoById(); |
|
|
|
}else { |
|
|
|
this.getCheckInfo(); |
|
|
|
this.getOptions(); |
|
|
@ -428,28 +427,29 @@ export default { |
|
|
|
|
|
|
|
getCheckInfo(){ |
|
|
|
this.$http.get(`kpi/subcheckdictionary/getdetaildict`).then(({ data: res }) => { |
|
|
|
this.pageloading = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.checkDiction = res.data |
|
|
|
|
|
|
|
this.pageloading = false |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getInfoById(){ |
|
|
|
this.$http.get(`/kpi/subdetail/getSubDetailInfoByInfoId/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
this.pageloading = false |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.checkDiction = res.data |
|
|
|
this.pageloading = false |
|
|
|
|
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
// 表单提交 |
|
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
|
this.pageloading = true; |
|
|
|
this.isAble = true; |
|
|
|
// 统计项非0校验 |
|
|
|
let remindInfo = '' |
|
|
|
//封装考核内容提报详情表数据 |
|
|
@ -460,7 +460,6 @@ export default { |
|
|
|
if (childSub.length>0) { |
|
|
|
for (let j of childSub) { |
|
|
|
//描述 |
|
|
|
console.log(j) |
|
|
|
let childDesribe = j.describe; |
|
|
|
//文件 |
|
|
|
let childFile =j.files === [] ? [] : j.files; |
|
|
@ -528,7 +527,8 @@ export default { |
|
|
|
} |
|
|
|
console.log(pateDate); |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put'](`kpi/subdetail/addDetail`,pateDate).then(({ data: res }) => { |
|
|
|
this.pageloading = false |
|
|
|
this.pageloading = false; |
|
|
|
this.isAble = false; |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|