|
|
@@ -1,7 +1,6 @@
|
|
|
import React, { useState, useEffect, useRef, useMemo } from 'react';
|
|
|
import { Plus, Search, RefreshCw, Edit2, Trash2 } from 'lucide-react';
|
|
|
import { segregationPointApi, SegregationPointVO, PageParam } from '../api/spm/index';
|
|
|
-import { marsDeptApi, MarsDeptVO } from '../api/marsdept/index';
|
|
|
import { lotoStationApi, LotoStationVO } from '../api/lotoStation/index';
|
|
|
import { technologyApi, TechnologyVO } from '../api/technology/index';
|
|
|
import { toast } from 'sonner';
|
|
|
@@ -89,10 +88,8 @@ export default function SegregationPointManagement({ subMenu }: SegregationPoint
|
|
|
useEffect(() => {
|
|
|
const initData = async () => {
|
|
|
try {
|
|
|
- // 获取岗位数据
|
|
|
- const deptRes = await marsDeptApi.listMarsDept({ pageNo: 1, pageSize: -1 });
|
|
|
- const deptTreeData = handleTree(deptRes.list, 'id', 'parentId');
|
|
|
- setDeptOptions(convertToTreeSelectData(deptTreeData, 'workstationName'));
|
|
|
+ // 获取岗位数据 - 接口已废弃,保留空数组
|
|
|
+ setDeptOptions([]);
|
|
|
|
|
|
// 获取锁定站数据
|
|
|
try {
|