From ad5c15a163a7531656ea5087f09adf95421f9ccc Mon Sep 17 00:00:00 2001 From: long <18782126717@163.com> Date: Fri, 30 Dec 2022 13:45:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A9=B3=E5=9B=9E?= =?UTF-8?q?=E8=87=B3=E8=8A=82=E7=82=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activiti/todoManage.vue | 250 ++++++++++++++++-------------- 1 file changed, 131 insertions(+), 119 deletions(-) diff --git a/src/views/activiti/todoManage.vue b/src/views/activiti/todoManage.vue index d803499..4d6984c 100644 --- a/src/views/activiti/todoManage.vue +++ b/src/views/activiti/todoManage.vue @@ -14,15 +14,15 @@ /> - - - - - - - - - + + + + + + + + + - + - + { + let param = {} + param.tableName = this.tableName + param.tableId = this.tableId + param.nodeId = v + this.getAction(this.url.getNode, param).then(res => { this.userLoading = false if (res.success) { if (res.result.users && res.result.users.length > 0) { @@ -676,9 +685,9 @@ } }) }, - afterSub(){ + afterSub() { this.$message.success('保存成功') - this.lcModa.visible=false; + this.lcModa.visible = false this.lcModa.disabled = false }, backAll() { @@ -717,20 +726,23 @@ } \ No newline at end of file From fbcbb6b3f4ce7448774a00c4c6bb1a9fab72d3e9 Mon Sep 17 00:00:00 2001 From: kilo Date: Fri, 30 Dec 2022 14:35:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activiti/ProcessModelList.vue | 1 + src/views/activiti/form/ProcessMaterialWarehousingForm.vue | 7 ++++--- src/views/activiti/form/ProcessUdgetPlanForm.vue | 7 ++++--- .../suppliesstronger/ProcessSuppliesStrongerLists.vue | 4 ++-- src/views/wastematerials/ProcessWasteMaterialsLists.vue | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/views/activiti/ProcessModelList.vue b/src/views/activiti/ProcessModelList.vue index 129d008..88c9816 100644 --- a/src/views/activiti/ProcessModelList.vue +++ b/src/views/activiti/ProcessModelList.vue @@ -758,6 +758,7 @@ // this.loadData(); }, loadData(arg) { + if(!this.url.list){ this.$message.error("请设置url.list属性!") return diff --git a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue index 21c7221..8780dfb 100644 --- a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue +++ b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue @@ -649,8 +649,9 @@ httpAction(url, formData, method).then((res) => { if (res.success) { //todo 将表单的数据传给父组件 - this.$emit('afterSubmit', formData) - this.$emit("close") + if(e!=true){ + this.$emit('afterSubmit', formData) + } } else { this.$message.error(res.message) } @@ -768,7 +769,7 @@ }, saveAndpassTask() { this.passTask() - this.handleSubmit(); + this.handleSubmit(true); }, validateError(msg) { this.$message.error(msg) diff --git a/src/views/activiti/form/ProcessUdgetPlanForm.vue b/src/views/activiti/form/ProcessUdgetPlanForm.vue index 3ad7604..d58fde8 100644 --- a/src/views/activiti/form/ProcessUdgetPlanForm.vue +++ b/src/views/activiti/form/ProcessUdgetPlanForm.vue @@ -1350,7 +1350,7 @@ return } else { this.passTask(); - this.handleSubmit(); + this.handleSubmit(true); } } }) @@ -1413,8 +1413,9 @@ httpAction(url, formData, method).then((res) => { if (res.success) { //todo 将表单的数据传给父组件 - this.$emit('afterSubmit', formData) - this.$emit("close") + if(e!=true){ + this.$emit('afterSubmit', formData) + } } else { this.$message.error(res.message) } diff --git a/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue b/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue index 8fd49c9..4a7d1b6 100644 --- a/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue +++ b/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue @@ -26,7 +26,7 @@ - + @@ -73,7 +73,7 @@ - + diff --git a/src/views/wastematerials/ProcessWasteMaterialsLists.vue b/src/views/wastematerials/ProcessWasteMaterialsLists.vue index 9bf52cb..35a2e5b 100644 --- a/src/views/wastematerials/ProcessWasteMaterialsLists.vue +++ b/src/views/wastematerials/ProcessWasteMaterialsLists.vue @@ -47,7 +47,7 @@ - +