[update] 流程查看详情
This commit is contained in:
@@ -165,7 +165,8 @@ import {
|
||||
marketListReleaseReject,
|
||||
marketListReleaseSave,
|
||||
getDataDraft,
|
||||
processTransfer
|
||||
processTransfer,
|
||||
getLookData
|
||||
} from '@/api/workCenter'
|
||||
import pick from 'lodash.pick'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
@@ -233,6 +234,14 @@ export default {
|
||||
// 有草稿id,说明是从流程中心-草稿来的,需要初始化数据
|
||||
this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId })
|
||||
}
|
||||
if (this.$route.query.isLook + '' === '1') {
|
||||
// 是查看
|
||||
this.isLook = true
|
||||
// 人员信息全部不可选
|
||||
this.initPersonInfoData(false)
|
||||
// 查询数据
|
||||
this.getProcessData('look', { snapshotId: this.$route.query.snapshotId })
|
||||
}
|
||||
if (this.$route.query.taskName) {
|
||||
// 说明是已发起流程
|
||||
this.currentNodeName = this.$route.query.taskName
|
||||
@@ -329,6 +338,9 @@ export default {
|
||||
if (type === 'todo') {
|
||||
func = marketListReleaseGetDataById
|
||||
params = param.taskId
|
||||
} else if (type === 'look') {
|
||||
func = getLookData
|
||||
params = param
|
||||
} else {
|
||||
func = getDataDraft
|
||||
params = param
|
||||
@@ -380,7 +392,6 @@ export default {
|
||||
}
|
||||
}
|
||||
if (this.$refs.baseInfoRef) {
|
||||
|
||||
this.$refs.baseInfoRef.initData(this.draftModel ? this.draftModel.businessInfoDTO : this.model.businessInfoDTO)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user