|
@@ -261,7 +261,6 @@ import { ElMessageBox, ElMessage } from 'element-plus';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
-import { treeList } from '@/api/knowledge/type';
|
|
|
import { Splitpanes, Pane } from 'splitpanes';
|
|
|
import 'splitpanes/dist/splitpanes.css';
|
|
|
import Other from '@/utils/other';
|
|
@@ -270,6 +269,7 @@ import { VxeUI } from 'vxe-pc-ui';
|
|
|
import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
import { getPlanBaseData, getPlanExport, getPlanList, planDetailExport, planOffShelf, planOnShelf } from '@/api/plan';
|
|
|
import { VTreeSearch } from '@wsfe/vue-tree';
|
|
|
+import { planTreeList } from '@/api/plan/type';
|
|
|
|
|
|
// 引入组件
|
|
|
const ProcessAudit = defineAsyncComponent(() => import('@/components/ProcessAudit/index.vue')); // 流程审批
|
|
@@ -327,7 +327,7 @@ const handleQuery = () => {
|
|
|
const getPlanType = async () => {
|
|
|
state.typeLoading = true;
|
|
|
try {
|
|
|
- const { result } = await treeList({ IsEnable: true, Attribution: state.queryParams.Attribution });
|
|
|
+ const { result } = await planTreeList({ IsEnable: true });
|
|
|
state.typeOptions = result ?? [];
|
|
|
state.typeLoading = false;
|
|
|
} catch (error) {
|