fix 修复一些问题
This commit is contained in:
parent
aa1bceeafb
commit
85e5d7aec6
@ -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'
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user