From c20dc4dbdac7fc4a6d27e5cd7f5679b7b8c8c2b6 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 2 Jul 2024 18:07:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E4=BC=98=E5=8C=96wf=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E5=B1=95=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wf/configuration.vue | 10 ++++----- src/views/wf/state.vue | 40 +++++++++++++++++++++++----------- src/views/wf/transform.vue | 15 ++++++++----- 3 files changed, 42 insertions(+), 23 deletions(-) diff --git a/src/views/wf/configuration.vue b/src/views/wf/configuration.vue index 075ea2b9..3ae45b41 100644 --- a/src/views/wf/configuration.vue +++ b/src/views/wf/configuration.vue @@ -1,10 +1,6 @@ @@ -31,7 +31,7 @@ data() { return { workflow:null, - activeName:'customField', + activeName:'state', } }, mounted() { diff --git a/src/views/wf/state.vue b/src/views/wf/state.vue index d23b6304..340e67d9 100644 --- a/src/views/wf/state.vue +++ b/src/views/wf/state.vue @@ -12,23 +12,25 @@ - + - + - - + + - + - + - + + + + @@ -378,6 +385,7 @@ export default { data() { return { id: sessionStorage.getItem("jinYuWorkflowId"), + listLoading: false, list: null, type: "add", titleMap: { @@ -510,15 +518,12 @@ export default { ], editId: null, dialogVisible: false, + dialogInitNum: 0 }; }, mounted() { this.id = sessionStorage.getItem("jinYuWorkflowId"); this.getList(); - this.getUsers(); - this.getRole(); - this.getPost(); - this.getField(); }, methods: { //添加字段选项 @@ -552,6 +557,13 @@ export default { handleAdd() { this.type = "add"; this.dialogVisible = true; + if(this.dialogInitNum === 0){ + this.getUsers(); + this.getRole(); + this.getPost(); + this.getField(); + this.dialogInitNum++; + } }, async submitHandle() { let that = this; @@ -610,7 +622,9 @@ export default { }); }, async getList() { + this.listLoading = true let res = await this.$API.wf.workflow.states.req(this.id); + this.listLoading = false console.log(res); this.list = res; }, diff --git a/src/views/wf/transform.vue b/src/views/wf/transform.vue index 0a533f53..a32a24f0 100644 --- a/src/views/wf/transform.vue +++ b/src/views/wf/transform.vue @@ -9,12 +9,12 @@ - + - + - + + + +