设计平台地图列表接口调整
This commit is contained in:
parent
b23bff36f0
commit
ecef9a4c74
@ -30,8 +30,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { DeviceMenu } from '@/scripts/ConstDic';
|
import { DeviceMenu } from '@/scripts/ConstDic';
|
||||||
import { postBuildMapImport } from '@/api/jmap/mapdraft';
|
import { postBuildMapImport } from '@/api/jmap/mapdraft';
|
||||||
import { getPublishMapTree } from '@/api/management/mapprd';
|
import { getTrainingSystemList} from '@/api/trainingPlatform';
|
||||||
import { getMapList } from '@/api/designPlatform';
|
|
||||||
import { UrlConfig } from '@/router/index';
|
import { UrlConfig } from '@/router/index';
|
||||||
import { getSessionStorage, setSessionStorage, removeSessionStorage } from '@/utils/auth';
|
import { getSessionStorage, setSessionStorage, removeSessionStorage } from '@/utils/auth';
|
||||||
import FilterCity from '@/views/components/filterCity';
|
import FilterCity from '@/views/components/filterCity';
|
||||||
@ -56,7 +55,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
defaultShowKeys: [],
|
defaultShowKeys: [],
|
||||||
queryFunction: getPublishMapTree,
|
queryFunction: getTrainingSystemList,
|
||||||
filterText: '',
|
filterText: '',
|
||||||
treeData: [],
|
treeData: [],
|
||||||
treeList: [],
|
treeList: [],
|
||||||
@ -139,7 +138,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.treeData = this.treeList = [];
|
this.treeData = this.treeList = [];
|
||||||
try {
|
try {
|
||||||
const res = await getMapList(filterSelect);
|
const res = await getTrainingSystemList(filterSelect);
|
||||||
res.data.forEach(elem=>{
|
res.data.forEach(elem=>{
|
||||||
// debugger;
|
// debugger;
|
||||||
// elem.children.find(n => { return n.name.includes("行调")})
|
// elem.children.find(n => { return n.name.includes("行调")})
|
||||||
|
Loading…
Reference in New Issue
Block a user