add 添加流程变量查看
update 调整流程定义按钮
This commit is contained in:
parent
b8383fd54e
commit
9a67287742
@ -1,7 +1,6 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { ProcessInstanceQuery, ProcessInstanceVO } from '@/api/workflow/processInstance/types';
|
import { ProcessInstanceQuery, ProcessInstanceVO } from '@/api/workflow/processInstance/types';
|
||||||
import { AxiosPromise } from 'axios';
|
import { AxiosPromise } from 'axios';
|
||||||
import { number } from 'vue-types';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询运行中实例列表
|
* 查询运行中实例列表
|
||||||
@ -111,6 +110,17 @@ export const cancelProcessApply = (businessKey: string) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取流程变量
|
||||||
|
* @param businessKey 业务id
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export const getInstanceVariable = (instanceId: string) => {
|
||||||
|
return request({
|
||||||
|
url: `/workflow/processInstance/getInstanceVariable/${instanceId}`,
|
||||||
|
method: 'get'
|
||||||
|
});
|
||||||
|
};
|
||||||
export default {
|
export default {
|
||||||
getPageByRunning,
|
getPageByRunning,
|
||||||
getPageByFinish,
|
getPageByFinish,
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<el-table-column prop="message" label="审批意见" sortable align="center"></el-table-column>
|
<el-table-column prop="message" label="审批意见" sortable align="center"></el-table-column>
|
||||||
<el-table-column prop="createTime" label="开始时间" sortable align="center"></el-table-column>
|
<el-table-column prop="createTime" label="开始时间" sortable align="center"></el-table-column>
|
||||||
<el-table-column prop="updateTime" label="结束时间" sortable align="center"></el-table-column>
|
<el-table-column prop="updateTime" label="结束时间" sortable align="center"></el-table-column>
|
||||||
|
<el-table-column prop="runDuration" label="运行时常" sortable align="center"></el-table-column>
|
||||||
<el-table-column prop="attachmentList" label="附件" sortable align="center">
|
<el-table-column prop="attachmentList" label="附件" sortable align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-popover v-if="scope.row.attachmentList && scope.row.attachmentList.length > 0" placement="right" :width="310" trigger="click">
|
<el-popover v-if="scope.row.attachmentList && scope.row.attachmentList.length > 0" placement="right" :width="310" trigger="click">
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
历史版本
|
历史版本
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.isPublish === 0 || scope.row.isPublish === 9"
|
v-if="scope.row.isPublish === 0 || scope.row.isPublish === 9"
|
||||||
link
|
link
|
||||||
@ -117,6 +118,7 @@
|
|||||||
>发布流程</el-button
|
>发布流程</el-button
|
||||||
>
|
>
|
||||||
<el-button v-else link type="primary" size="small" icon="CircleClose" @click="handleUnPublish(scope.row)">取消发布</el-button>
|
<el-button v-else link type="primary" size="small" icon="CircleClose" @click="handleUnPublish(scope.row)">取消发布</el-button>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
@ -125,10 +125,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { getPageByAllTaskWait, getPageByAllTaskFinish, updateAssignee, getInstanceVariable } from '@/api/workflow/task';
|
import { getPageByAllTaskWait, getPageByAllTaskFinish, updateAssignee } from '@/api/workflow/task';
|
||||||
|
import { getInstanceVariable } from '@/api/workflow/processInstance';
|
||||||
import MultiInstanceUser from '@/components/Process/multiInstanceUser.vue';
|
import MultiInstanceUser from '@/components/Process/multiInstanceUser.vue';
|
||||||
import UserSelect from '@/components/UserSelect';
|
import UserSelect from '@/components/UserSelect';
|
||||||
import { TaskQuery, TaskVO, VariableVo } from '@/api/workflow/task/types';
|
import { TaskQuery, FlowTaskVO, VariableVo } from '@/api/workflow/task/types';
|
||||||
import workflowCommon from '@/api/workflow/workflowCommon';
|
import workflowCommon from '@/api/workflow/workflowCommon';
|
||||||
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
|
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
|
||||||
//审批记录组件
|
//审批记录组件
|
||||||
@ -176,14 +177,14 @@ const queryParams = ref<TaskQuery>({
|
|||||||
const tab = ref('waiting');
|
const tab = ref('waiting');
|
||||||
|
|
||||||
//加签
|
//加签
|
||||||
const addMultiInstanceUser = (row: TaskVO) => {
|
const addMultiInstanceUser = (row: FlowTaskVO) => {
|
||||||
if (multiInstanceUserRef.value) {
|
if (multiInstanceUserRef.value) {
|
||||||
title.value = '加签人员';
|
title.value = '加签人员';
|
||||||
multiInstanceUserRef.value.getAddMultiInstanceList(row.id, []);
|
multiInstanceUserRef.value.getAddMultiInstanceList(row.id, []);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//减签
|
//减签
|
||||||
const deleteMultiInstanceUser = (row: TaskVO) => {
|
const deleteMultiInstanceUser = (row: FlowTaskVO) => {
|
||||||
if (multiInstanceUserRef.value) {
|
if (multiInstanceUserRef.value) {
|
||||||
title.value = '减签人员';
|
title.value = '减签人员';
|
||||||
multiInstanceUserRef.value.getDeleteMultiInstanceList(row.id);
|
multiInstanceUserRef.value.getDeleteMultiInstanceList(row.id);
|
||||||
@ -253,12 +254,12 @@ const submitCallback = async (data) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
//查询流程变量
|
//查询流程变量
|
||||||
const handleInstanceVariable = async (row: TaskVO) => {
|
const handleInstanceVariable = async (row: FlowTaskVO) => {
|
||||||
variableLoading.value = true;
|
variableLoading.value = true;
|
||||||
variableVisible.value = true;
|
variableVisible.value = true;
|
||||||
processDefinitionName.value = row.processDefinitionName;
|
processDefinitionName.value = row.flowName;
|
||||||
let data = await getInstanceVariable(row.id);
|
let data = await getInstanceVariable(row.instanceId);
|
||||||
variableList.value = data.data;
|
variableList.value = data.data.variableList;
|
||||||
variableLoading.value = false;
|
variableLoading.value = false;
|
||||||
};
|
};
|
||||||
/** 查看按钮操作 */
|
/** 查看按钮操作 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user