Parcourir la source

审批流支持移除项目节点

seyanew il y a 2 semaines
Parent
commit
a84d675bec

+ 11 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/workflow/report.vue

@@ -50,7 +50,7 @@
                                 <TranslationOpenDataText type='departmentName' :openid='item.auditDeptName'></TranslationOpenDataText>
                             </span>
                         </el-button>
-                        <el-button type="primary" v-if="item.isDeptAudit == 0" >{{ $t('other.projectAuditor') }}</el-button>
+                        <el-button type="primary" v-if="item.isDeptAudit == 0" @click="confirmDeleteProjectNode(index, item)">{{ $t('other.projectAuditor') }}</el-button>
                         <icon class="iconfont firerock-iconright"></icon>
                         <icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(index+1)"></icon>
                         <icon class="iconfont firerock-iconright"></icon>
@@ -350,6 +350,16 @@
               this.curUserId = null;
               this.dialogVisible = true;
             },
+            confirmDeleteProjectNode(index, item) {
+                this.$confirm("确定移除项目审核节点吗?", this.$t('other.prompts'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
+                    type: 'warning'
+                }).then(() => {
+                    this.dataArray.splice(index, 1);
+                }).catch(() => {});
+            },
+
             
             submitInsert() {
                 this.http.post('/audit-workflow-time-setting/add',{json:JSON.stringify(this.dataArray), deptId: this.depData.id},