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 @@ - + - + - + + + +