调整显示

This commit is contained in:
case committed 2022-07-07 17:03:47 +08:00
1 parent 056b90b162
commit 34a7f52952
2 files changed
+12 -7

No files matched your search

+4 -3
View File
@@ -245,13 +245,16 @@ class TaskService extends Service {
}
await jianghuKnex(tableEnum.task_history, this.ctx).insert(history);
const nextNode = nodeList.find(e => e.id === line.to);
let taskEditUserList = await this.getProcessUserList([nextNode]);
// 修改任务步骤node 处理人\
const nextLineList = lineList.filter(e => e.from === line.to);
if (line.to.includes('end-')) {
taskEditUserList = await this.getProcessUserList([currentNode]);
const endHistory = {
...history,
taskExplain: '结束',
taskConfigId: currentNode.id,
taskConfigId: nextNode.id,
taskHandleDesc: '流程结束',
taskLineFrom: line.from,
taskLineTo: line.to,
@@ -260,8 +263,6 @@ class TaskService extends Service {
}
await jianghuKnex(tableEnum.task_history, this.ctx).insert(endHistory);
}
const taskEditUserList = await this.getProcessUserList([currentNode]);
const nextNode = nodeList.find(e => e.id === line.to);
await jianghuKnex(tableEnum.task, this.ctx).where({taskId}).update({
taskFormInput,
taskRemark,
+8 -4
View File
@@ -17,9 +17,9 @@
<v-spacer></v-spacer>
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="pa-xs-0 pa-xs-2 col-sm-8-flex">
<!-- <v-col cols="12" xs="8" sm="4" md="3" xl="3" class="pa-xs-0 pa-xs-2 col-sm-8-flex">
<v-text-field v-model="serverSearchInput.classId" label="班级ID" class="cus-v-input" :class="{'mr-2': !isMobile}" dense outlined></v-text-field>
</v-col>
</v-col> -->
<v-btn
class="elevation-0"
@@ -69,12 +69,12 @@
<v-row class="pa-0 ma-0 pa-xs-4 pb-xs-4 flex-none">
<v-col cols="12" sm="12" md="3" xl="3" class="pa-xs-0 pb-xs-4 pb-3">
<v-text-field class="cus-v-input mr-2" dense outlined label="流程名" v-model="editItem['workflowName']">
<v-text-field class="cus-v-input mr-2" dense outlined label="流程名" v-model="editItem['workflowName']" :rules="requireRules">
</v-text-field>
</v-col>
<v-col cols="12" sm="12" md="3" xl="3" class="pa-xs-0 pb-xs-4 pb-3">
<v-text-field class="cus-v-input mr-2" dense outlined label="分类" v-model="editItem['workflowCategory']">
<v-text-field class="cus-v-input mr-2" dense outlined label="分类" v-model="editItem['workflowCategory']" :rules="requireRules">
</v-text-field>
</v-col>
@@ -313,7 +313,11 @@ new Vue({
async confirmCreateItemDialog() {
return window.confirmDialog({title: '新增', content: '确定新增吗?'})
},
validate() {
if (!this.editItem.workflowId || !this.editItem.workflowId) {
}
},
/**
* 新增数据
*/