我的审批展示逻辑

This commit is contained in:
ChenXinXin committed 2024-05-06 15:08:16 +08:00
1 parent c44365e44f
commit d2cfd28e41
5 files changed
+39 -20

No files matched your search

+4 -5
View File
@@ -3,7 +3,7 @@
<v-navigation-drawer v-model="isDrawerShown" v-if="isDrawerShown" :permanent="isDrawerShown" fixed temporary right width="90%" class="elevation-24">
<!-- 抽屉标题 -->
<v-row no-gutters>
<span class="text-h7 font-weight-bold pa-4">【{{taskData.workflowName}}】创建审批</span>
<span class="text-h7 font-weight-bold pa-4">【{{taskData.taskTemplateGroup}}——{{taskData.workflowName}}】创建审批</span>
</v-row>
<!-- {{taskData.workflowForm}} -->
<!-- 表单 -->
@@ -481,9 +481,9 @@ Vue.component("create-task-drawer", {
break;
case 'number':
if(condition.express != 'between'){
isMatch[index] = eval(answer + condition.express + condition.option)
isMatch[index] = eval(Number(answer) + condition.express + condition.option)
}else{
if(condition.option.begin <= answer && answer <= condition.option.end){
if(condition.option.begin <= Number(answer) && Number(answer) <= condition.option.end){
isMatch[index] = true
}
}
@@ -543,8 +543,7 @@ Vue.component("create-task-drawer", {
}
},
prepareDoWorkItem() {
const { workflowInfo, workflowForm, workflowConfig, } = this.taskData
const { workflowName, taskTemplateGroup } = workflowInfo
const { workflowInfo, workflowForm, workflowConfig, workflowName, taskTemplateGroup, } = this.taskData
var curNode = this.curWorkflow[0]
var taskLineType = this.taskData.workflowConfig.lineList.filter(line => line.sourceNodeId == curNode.id)[0]?.properties.type
var taskViewUserList = this.curWorkflow.reduce((acc, cur) => acc.concat(cur.properties.userIdList), [] )