From 52e00d123d958278fc04a0c246c62f484351d95b Mon Sep 17 00:00:00 2001 From: weikai <123456> Date: Thu, 10 Dec 2020 15:26:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90pc=E7=AB=AF=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=AE=9E=E4=BD=93=E5=8C=96=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E3=80=91-=E3=80=90=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=91-=EF=BC=88=E9=AD=8F=E5=87=AF?= =?UTF-8?q?=EF=BC=89-2020/12/10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/kpi/kpisubpositiondetail.vue | 46 +++++++++++++++---- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/src/views/modules/kpi/kpisubpositiondetail.vue b/src/views/modules/kpi/kpisubpositiondetail.vue index 7dbc7c27..0d71564a 100644 --- a/src/views/modules/kpi/kpisubpositiondetail.vue +++ b/src/views/modules/kpi/kpisubpositiondetail.vue @@ -223,6 +223,17 @@ export default { if (this.status === '1'){ this.isAble = true; this.pageDisabled = true; + this.hideUpload = true; + } + if (this.status === '2'){ + this.isAble = true; + this.pageDisabled = true; + this.hideUpload = true; + } + if (this.status === '3'){ + this.isAble = true; + this.pageDisabled = true; + this.hideUpload = true; } this.$nextTick(() => { if (this.dataForm.id) { @@ -448,10 +459,27 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { - this.pageloading = true; - this.isAble = true; // 统计项非0校验 let remindInfo = '' + for (var i = 0; i < this.checkDiction.length; i++) { + let childSub = this.checkDiction[i].childDiction; + if (childSub.length>0){ + for (let b = 0; b 0) { remindInfo = remindInfo.substring(0, remindInfo.length - 1) - this.$confirm(remindInfo + '描述未完善,请完善后提交!', '提示', { + this.$confirm(remindInfo + '未完善,请完善后提交!', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' @@ -526,6 +548,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; @@ -545,5 +569,7 @@ export default { \ No newline at end of file