| | |
| | | addClickHandler() { |
| | | this.$store.dispatch('updateMethodBtn', true); |
| | | this.handleResetTree(); |
| | | this.$store.dispatch('typeChange', 'add'); |
| | | }, |
| | | |
| | | // 修改按钮 |
| | |
| | | return; |
| | | } |
| | | this.$store.dispatch('updateMethodBtn', Object.keys(this.rowData).length > 0); |
| | | this.$store.dispatch('editNodesStatus', true); |
| | | this.$store.dispatch('typeChange', 'edit'); |
| | | }, |
| | | |
| | | // 删除按钮 |
| | |
| | | startStatus: params.startStatus, |
| | | startStatusName: params.startStatusName, |
| | | description: params.description, |
| | | ts:params.ts, |
| | | oid:params.oid, |
| | | bounds: params.nodes.map(node => ({ |
| | | name: node.id, |
| | | cellx: String(node.x), |
| | |
| | | : () => addLifeCycle(transformedData); |
| | | |
| | | getFunction().then(res => { |
| | | console.log(res); |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.createdHandler(); |
| | | // this.handleResetTree(); |
| | | this.rowData = {}; |
| | | this.$store.dispatch('updateMethodBtn', Object.keys(this.rowData).length > 0); |
| | | } |
| | | }); |