update 流程详情流程图获取,征求意见流程调整

This commit is contained in:
赵霄
2023-11-28 16:25:25 +08:00
parent 3be87bb54e
commit 864f21ccb0
6 changed files with 36 additions and 12 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ export default {
visible: false,
confirmLoading: false,
chartData: {},
processId: null // 流程id
processKey: null // 流程key
}
},
methods: {
@@ -41,7 +41,7 @@ export default {
},
initChartData () {
this.confirmLoading = true
getFlowNodeList({ modelId: this.processId }).then(res => {
getFlowNodeList({ key: this.processKey }).then(res => {
if (res.success) {
this.chartData = Object.assign({}, res.result || {})
} else {
+10 -1
View File
@@ -138,6 +138,12 @@ export default {
type: String,
required: false,
default: null
},
// 流程key
processKey: {
type: String,
required: false,
default: null
}
},
data () {
@@ -269,7 +275,10 @@ export default {
* 跳转流程图页面
*/
viewFlowChart () {
this.$refs.flowChartModal.processId = '62507'
if (!this.processKey) {
return
}
this.$refs.flowChartModal.processKey = this.processKey
this.$refs.flowChartModal.open()
},
handlePreview (file) {