fix 修复一些问题

This commit is contained in:
疯狂的狮子Li 2024-12-16 18:07:49 +08:00
parent aa1bceeafb
commit 85e5d7aec6
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { DeptForm, DeptQuery, DeptVO } from './types';
import {DeptForm, DeptQuery, DeptTreeVO, DeptVO} from './types';
// 查询部门列表
export const listDept = (query?: DeptQuery) => {
@ -39,7 +39,7 @@ export const getDept = (deptId: string | number): AxiosPromise<DeptVO> => {
};
// 查询部门下拉树结构
export const treeselect = (): AxiosPromise<DeptVO[]> => {
export const treeselect = (): AxiosPromise<DeptTreeVO[]> => {
return request({
url: '/system/dept/treeselect',
method: 'get'

View File

@ -583,8 +583,8 @@ function submitFileForm() {
const initTreeData = async () => {
//
if (deptOptions.value === undefined) {
const { data } = await treeselect();
deptOptions.value = data;
const row = await treeselect();
deptOptions.value = row.data;
}
};

View File

@ -267,6 +267,7 @@ import { listDefinition, deleteDefinition, active, importDef,
import { CategoryTreeVO } from '@/api/workflow/category/types';
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
import { UploadRequestOptions } from 'element-plus';
import {TreeOptionProps} from "element-plus/es/components/tree/src/tree.type";
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@ -535,7 +536,7 @@ const handleSubmit = async () => {
};
//
const handleCopyDef = async (row: FlowDefinitionVo) => {
ElMessageBox.confirm(`是否确认复制【${row.flowCode}】版本为${row.version}】的流程定义!`, '提示', {
ElMessageBox.confirm(`是否确认复制【${row.flowCode}】版本为${row.version}】的流程定义!`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'