update 优化 工作流代码与接口命名
This commit is contained in:
@ -55,7 +55,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
</el-popover>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -69,7 +69,7 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { getHistoryProcessImage, getHistoryRecord } from '@/api/workflow/processInstance';
|
||||
import { getHistoryImage, getHistoryRecord } from '@/api/workflow/processInstance';
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
import { ref } from 'vue';
|
||||
const props = defineProps({
|
||||
@ -99,7 +99,7 @@ const init = async (processInstanceId: string) => {
|
||||
loading.value = true;
|
||||
historyList.value = [];
|
||||
graphicInfoVos.value = [];
|
||||
getHistoryProcessImage(processInstanceId).then((res) => {
|
||||
getHistoryImage(processInstanceId).then((res) => {
|
||||
src.value = 'data:image/png;base64,' + res.data
|
||||
});
|
||||
getHistoryRecord(processInstanceId).then((response) => {
|
||||
|
@ -84,7 +84,7 @@
|
||||
|
||||
<script setup name="User" lang="ts">
|
||||
import { deptTreeSelect } from '@/api/system/user';
|
||||
import { getWorkflowAddMultiListByPage, getWorkflowDeleteMultiInstanceList, getUserListByIds } from '@/api/workflow/workflowUser';
|
||||
import { getPageByAddMultiInstance, getListByDeleteMultiInstance, getUserListByIds } from '@/api/workflow/workflowUser';
|
||||
import { addMultiInstanceExecution, deleteMultiInstanceExecution } from '@/api/workflow/task';
|
||||
import { UserVO } from '@/api/system/user/types';
|
||||
import { DeptVO } from '@/api/system/dept/types';
|
||||
@ -151,7 +151,7 @@ const getAddMultiInstanceList = async (taskId: string, userIdList: Array<number
|
||||
visible.value = true;
|
||||
queryParams.value.taskId = taskId;
|
||||
loading.value = true;
|
||||
const res = await getWorkflowAddMultiListByPage(queryParams.value);
|
||||
const res = await getPageByAddMultiInstance(queryParams.value);
|
||||
loading.value = false;
|
||||
userList.value = res.rows;
|
||||
total.value = res.total;
|
||||
@ -173,7 +173,7 @@ const getAddMultiInstanceList = async (taskId: string, userIdList: Array<number
|
||||
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
const res = await getWorkflowAddMultiListByPage(queryParams.value);
|
||||
const res = await getPageByAddMultiInstance(queryParams.value);
|
||||
loading.value = false;
|
||||
userList.value = res.rows;
|
||||
total.value = res.total;
|
||||
@ -199,7 +199,7 @@ const getDeleteMultiInstanceList = async (taskId: string) => {
|
||||
queryParams.value.taskId = taskId;
|
||||
multiInstance.value = 'delete';
|
||||
visible.value = true;
|
||||
const res = await getWorkflowDeleteMultiInstanceList(taskId);
|
||||
const res = await getListByDeleteMultiInstance(taskId);
|
||||
taskList.value = res.data;
|
||||
loading.value = false;
|
||||
};
|
||||
@ -359,4 +359,4 @@ defineExpose({
|
||||
getAddMultiInstanceList,
|
||||
getDeleteMultiInstanceList
|
||||
});
|
||||
</script>
|
||||
</script>
|
@ -85,7 +85,7 @@
|
||||
|
||||
<script setup name="User" lang="ts">
|
||||
import { deptTreeSelect } from '@/api/system/user';
|
||||
import { getUserListByPage, getUserListByIds } from '@/api/workflow/workflowUser';
|
||||
import { getPageByUserList, getUserListByIds } from '@/api/workflow/workflowUser';
|
||||
import { UserVO } from '@/api/system/user/types';
|
||||
import { DeptVO } from '@/api/system/dept/types';
|
||||
import { ComponentInternalInstance } from 'vue';
|
||||
@ -145,7 +145,7 @@ const getUserList = async (userIdList: Array<number | string>) => {
|
||||
userIds.value = userIdList;
|
||||
visible.value = true;
|
||||
loading.value = true;
|
||||
const res = await getUserListByPage(queryParams.value);
|
||||
const res = await getPageByUserList(queryParams.value);
|
||||
loading.value = false;
|
||||
userList.value = res.rows;
|
||||
total.value = res.total;
|
||||
@ -167,7 +167,7 @@ const getUserList = async (userIdList: Array<number | string>) => {
|
||||
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
const res = await getUserListByPage(queryParams.value);
|
||||
const res = await getPageByUserList(queryParams.value);
|
||||
loading.value = false;
|
||||
userList.value = res.rows;
|
||||
total.value = res.total;
|
Reference in New Issue
Block a user