调整代码
This commit is contained in:
1 parent
b2df7f1fb6
commit
12bbc3dade
3 files changed
+41
-40
No files matched your search
@@ -118,7 +118,7 @@
|
||||
<v-row class="mt-4" v-if="isViewDrawerShown" >
|
||||
<v-col cols="12" sm="12" md="12">
|
||||
<div class="text-subtitle-2 mb-2 mx-4 font-weight-bold">历史审核记录</div>
|
||||
<task-history :task-id="viewItem.taskId"></task-history>
|
||||
<task-history :task-id="viewItem.taskId" :workflow-history="workflowHistory"></task-history>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -204,7 +204,8 @@
|
||||
'已拒绝': 'red',
|
||||
'审核中': 'blue',
|
||||
"已撤回": 'grey'
|
||||
}
|
||||
},
|
||||
workflowHistory:[]
|
||||
},
|
||||
// 计算
|
||||
computed: {
|
||||
@@ -226,6 +227,7 @@
|
||||
break;
|
||||
case 'startUpdateItem':
|
||||
await this.prepareViewItemData(uiActionData);
|
||||
await this.getTaskWorkflow(uiActionData)
|
||||
await this.openViewDrawer();
|
||||
break;
|
||||
case 'revokeTask':
|
||||
@@ -278,6 +280,19 @@
|
||||
async prepareViewItemData(funObj) {
|
||||
this.viewItem = _.cloneDeep(funObj);
|
||||
},
|
||||
|
||||
async getTaskWorkflow({ taskId }){
|
||||
const resultData = (await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'taskManagement',
|
||||
actionId: 'getTaskWorkflow',
|
||||
actionData: { taskId },
|
||||
}
|
||||
}
|
||||
})).data.appData.resultData
|
||||
this.workflowHistory = resultData
|
||||
},
|
||||
|
||||
async openViewDrawer() {
|
||||
this.isViewDrawerShown = true;
|
||||
|
||||
Reference in new issue
Block a user