Merge branch 'dev' of https://gitee.com/JavaLionLi/plus-ui into dev
This commit is contained in:
@ -5,14 +5,14 @@
|
||||
<el-tab-pane label="流程图" name="bpmn">
|
||||
<BpmnView ref="bpmnViewRef"></BpmnView>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="审批信息" name="info" v-loading="loading">
|
||||
<el-tab-pane v-loading="loading" label="审批信息" name="info">
|
||||
<div>
|
||||
<el-table :data="historyList" style="width: 100%" border fit>
|
||||
<el-table-column type="index" label="序号" align="center" width="60"></el-table-column>
|
||||
<el-table-column prop="name" label="任务名称" sortable align="center"></el-table-column>
|
||||
<el-table-column prop="nickName" label="办理人" sortable align="center">
|
||||
<el-table-column prop="nickName" :show-overflow-tooltip="true" label="办理人" sortable align="center">
|
||||
<template #default="scope">
|
||||
<el-tag type="success">{{ scope.row.nickName||'无' }}</el-tag>
|
||||
<el-tag type="success">{{ scope.row.nickName || '无' }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" sortable align="center">
|
||||
@ -71,7 +71,7 @@ const bpmnViewRef = ref<BpmnView>();
|
||||
const init = async (instanceId: string) => {
|
||||
visible.value = true;
|
||||
loading.value = true;
|
||||
tabActiveName.value = 'bpmn'
|
||||
tabActiveName.value = 'bpmn';
|
||||
historyList.value = [];
|
||||
processApi.getHistoryRecord(instanceId).then((resp) => {
|
||||
historyList.value = resp.data.historyRecordList;
|
||||
|
@ -81,9 +81,13 @@
|
||||
</template>
|
||||
|
||||
<script setup name="User" lang="ts">
|
||||
import { deptTreeSelect } from '@/api/system/user';
|
||||
import { getPageByAddMultiInstance, getListByDeleteMultiInstance, getUserListByIds } from '@/api/workflow/workflowUser';
|
||||
import { addMultiInstanceExecution, deleteMultiInstanceExecution } from '@/api/workflow/task';
|
||||
import { deptTreeSelect, listUser, optionSelect } from '@/api/system/user';
|
||||
import {
|
||||
addMultiInstanceExecution,
|
||||
deleteMultiInstanceExecution,
|
||||
getTaskUserIdsByAddMultiInstance,
|
||||
getListByDeleteMultiInstance
|
||||
} from '@/api/workflow/task';
|
||||
import { UserVO } from '@/api/system/user/types';
|
||||
import { DeptVO } from '@/api/system/dept/types';
|
||||
import { ComponentInternalInstance } from 'vue';
|
||||
@ -149,12 +153,14 @@ const getAddMultiInstanceList = async (taskId: string, userIdList: Array<number
|
||||
visible.value = true;
|
||||
queryParams.value.taskId = taskId;
|
||||
loading.value = true;
|
||||
const res = await getPageByAddMultiInstance(queryParams.value);
|
||||
const res1 = await getTaskUserIdsByAddMultiInstance(taskId);
|
||||
queryParams.value.excludeUserIds = res1.data;
|
||||
const res = await listUser(queryParams.value);
|
||||
loading.value = false;
|
||||
userList.value = res.rows;
|
||||
total.value = res.total;
|
||||
if (userList.value && userIds.value.length > 0) {
|
||||
const data = await getUserListByIds(userIds.value);
|
||||
const data = await optionSelect(userIds.value);
|
||||
if (data.data && data.data.length > 0) {
|
||||
chooseUserList.value = data.data;
|
||||
data.data.forEach((user: UserVO) => {
|
||||
@ -171,12 +177,14 @@ const getAddMultiInstanceList = async (taskId: string, userIdList: Array<number
|
||||
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
const res = await getPageByAddMultiInstance(queryParams.value);
|
||||
const res1 = await getTaskUserIdsByAddMultiInstance(queryParams.value.taskId);
|
||||
queryParams.value.excludeUserIds = res1.data;
|
||||
const res = await listUser(queryParams.value);
|
||||
loading.value = false;
|
||||
userList.value = res.rows;
|
||||
total.value = res.total;
|
||||
if (userList.value && userIds.value.length > 0) {
|
||||
const data = await getUserListByIds(userIds.value);
|
||||
const data = await optionSelect(userIds.value);
|
||||
if (data.data && data.data.length > 0) {
|
||||
chooseUserList.value = data.data;
|
||||
data.data.forEach((user: UserVO) => {
|
||||
|
Reference in New Issue
Block a user