diff --git a/src/api/model/wf.js b/src/api/model/wf.js index dc51f6a8..bbdd04dc 100644 --- a/src/api/model/wf.js +++ b/src/api/model/wf.js @@ -85,6 +85,14 @@ export default { } } }, + state: { + item: { + name: "节点详情", + req: async function(id){ + return await http.get(`${config.API_URL}/wf/state/${id}/`); + } + }, + }, ticket: { list: { url: `${config.API_URL}/wf/ticket/`, diff --git a/src/views/wf/state.vue b/src/views/wf/state.vue index 6571fafe..1eddd3e8 100644 --- a/src/views/wf/state.vue +++ b/src/views/wf/state.vue @@ -9,7 +9,7 @@ > - + @@ -32,14 +31,14 @@ @@ -53,7 +52,7 @@ {{ options2_[scope.row.distribute_type] }} - + @@ -136,7 +135,17 @@ prop="participant" v-if="addForm.participant_type == 1" > - + + + + + - + + + + + - - - - + + - - - - + + + { + this.type = "edit"; + this.editId = row.id; + this.dialogVisible = true; + this.addForm = Object.assign({}, res); + }) }, handleDelete(row) { this.$API.wf.state.delete.req(row.id).then((res) => { diff --git a/src/views/wf/transform.vue b/src/views/wf/transform.vue index 4ef12482..a61812ca 100644 --- a/src/views/wf/transform.vue +++ b/src/views/wf/transform.vue @@ -9,12 +9,24 @@ - + + + - + @@ -167,7 +179,6 @@ }, mounted() { this.getList(); - this.getStateList(); }, methods: { onJsonChange (value) { @@ -187,10 +198,12 @@ } }, handleAdd() { + this.getStateList(); this.type = 'add'; this.dialogVisible = true; }, handleEdit(row) { + this.getStateList(); this.type = 'edit'; this.editId = row.id; this.dialogVisible = true; @@ -208,7 +221,6 @@ }, async getStateList() { let res = await this.$API.wf.workflow.states.req(this.id); - console.log(res); this.stateList = res; }, async submitHandle(){