From 54be69b2e6699fabc381aadb9157da5aea8f9595 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 12 Dec 2019 15:58:19 +0800 Subject: [PATCH] =?UTF-8?q?drawWay=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/designUser/demonList.vue | 2 +- src/views/designUser/mapmanage/create.vue | 4 ++-- src/views/mapdraft/dataRelation/automaticoperate/detail.vue | 2 +- src/views/mapdraft/dataRelation/pathoperate/detail.vue | 2 +- src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue | 2 +- src/views/mapdraft/dataRelation/routeoperate/detail.vue | 2 +- src/views/mapdraft/dataRelation/routingoperate/detail.vue | 2 +- src/views/mapdraft/dataRelation/signaloperate/detail.vue | 2 +- src/views/newMap/newDesignUser/demonList.vue | 2 +- src/views/newMap/newDesignUser/mapmanage/create.vue | 4 ++-- .../newMapdraft/dataRelation/automaticoperate/detail.vue | 2 +- .../newMap/newMapdraft/dataRelation/pathoperate/detail.vue | 2 +- .../newMap/newMapdraft/dataRelation/pathoperate/pathRoute.vue | 2 +- .../newMap/newMapdraft/dataRelation/routeoperate/detail.vue | 2 +- .../newMap/newMapdraft/dataRelation/routingoperate/detail.vue | 2 +- .../newMap/newMapdraft/dataRelation/signaloperate/detail.vue | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/views/designUser/demonList.vue b/src/views/designUser/demonList.vue index 62ee790ec..4baff63f1 100644 --- a/src/views/designUser/demonList.vue +++ b/src/views/designUser/demonList.vue @@ -99,7 +99,7 @@ export default { this.loading = true; this.treeData = this.treeList = []; try { - const res = await listMap({ drawWay:'0'}); + const res = await listMap({ drawWay:true}); res.data && res.data.forEach(elem=>{ elem.type = 'map'; elem.children = [ diff --git a/src/views/designUser/mapmanage/create.vue b/src/views/designUser/mapmanage/create.vue index 00e96f861..a86ee16f9 100644 --- a/src/views/designUser/mapmanage/create.vue +++ b/src/views/designUser/mapmanage/create.vue @@ -134,7 +134,7 @@ export default { this.lineCodeList = response.data; }); - const drawWay = 0; + const drawWay = true; getMapListByProject(drawWay).then(response => { this.publishMapList = response.data; }).catch(() => { @@ -146,7 +146,7 @@ export default { this.$refs['newForm'].validate((valid) => { if (valid) { this.loading = true; - this.newModel['drawWay'] = '0'; + this.newModel['drawWay'] = true; newMap(this.newModel).then(response => { this.loading = false; this.$emit('refresh'); diff --git a/src/views/mapdraft/dataRelation/automaticoperate/detail.vue b/src/views/mapdraft/dataRelation/automaticoperate/detail.vue index 85148c4ee..823608b91 100644 --- a/src/views/mapdraft/dataRelation/automaticoperate/detail.vue +++ b/src/views/mapdraft/dataRelation/automaticoperate/detail.vue @@ -143,7 +143,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'0'}).then(response => { + listMap({ drawWay:true}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/mapdraft/dataRelation/pathoperate/detail.vue b/src/views/mapdraft/dataRelation/pathoperate/detail.vue index cdeca1ca7..97a0ae761 100644 --- a/src/views/mapdraft/dataRelation/pathoperate/detail.vue +++ b/src/views/mapdraft/dataRelation/pathoperate/detail.vue @@ -152,7 +152,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'0'}).then(response => { + listMap({ drawWay:true}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue b/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue index 21c2f2934..30335534c 100644 --- a/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue +++ b/src/views/mapdraft/dataRelation/pathoperate/pathRoute.vue @@ -162,7 +162,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'0'}).then(response => { + listMap({ drawWay:true}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/mapdraft/dataRelation/routeoperate/detail.vue b/src/views/mapdraft/dataRelation/routeoperate/detail.vue index ec97a3aae..aa93992ba 100644 --- a/src/views/mapdraft/dataRelation/routeoperate/detail.vue +++ b/src/views/mapdraft/dataRelation/routeoperate/detail.vue @@ -245,7 +245,7 @@ export default { } }, acquireMapList() { - listMap({ drawWay:'0'}).then(response => { + listMap({ drawWay:true}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/mapdraft/dataRelation/routingoperate/detail.vue b/src/views/mapdraft/dataRelation/routingoperate/detail.vue index 9d985ba44..2c087dfdb 100644 --- a/src/views/mapdraft/dataRelation/routingoperate/detail.vue +++ b/src/views/mapdraft/dataRelation/routingoperate/detail.vue @@ -175,7 +175,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'0'}).then(response => { + listMap({ drawWay:true}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/mapdraft/dataRelation/signaloperate/detail.vue b/src/views/mapdraft/dataRelation/signaloperate/detail.vue index 34fe69cfe..8a3bad932 100644 --- a/src/views/mapdraft/dataRelation/signaloperate/detail.vue +++ b/src/views/mapdraft/dataRelation/signaloperate/detail.vue @@ -127,7 +127,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'0'}).then(response => { + listMap({ drawWay:true}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/newMap/newDesignUser/demonList.vue b/src/views/newMap/newDesignUser/demonList.vue index 9360362c4..ee6d34645 100644 --- a/src/views/newMap/newDesignUser/demonList.vue +++ b/src/views/newMap/newDesignUser/demonList.vue @@ -99,7 +99,7 @@ export default { this.loading = true; this.treeData = this.treeList = []; try { - const res = await listMap({ drawWay:'1'}); + const res = await listMap({ drawWay:false}); res.data && res.data.forEach(elem=>{ elem.type = 'map'; elem.children = [ diff --git a/src/views/newMap/newDesignUser/mapmanage/create.vue b/src/views/newMap/newDesignUser/mapmanage/create.vue index e238463eb..901ec77ec 100644 --- a/src/views/newMap/newDesignUser/mapmanage/create.vue +++ b/src/views/newMap/newDesignUser/mapmanage/create.vue @@ -135,7 +135,7 @@ export default { }); // 新地图 - const drawWay = 1; + const drawWay = false; getMapListByProject(drawWay).then(response => { this.publishMapList = response.data; }).catch(() => { @@ -147,7 +147,7 @@ export default { this.$refs['newForm'].validate((valid) => { if (valid) { this.loading = true; - this.newModel['drawWay'] = '1'; + this.newModel['drawWay'] = false; newMap(this.newModel).then(response => { this.loading = false; this.$emit('refresh'); diff --git a/src/views/newMap/newMapdraft/dataRelation/automaticoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/automaticoperate/detail.vue index 36bb15fea..d39a539c2 100644 --- a/src/views/newMap/newMapdraft/dataRelation/automaticoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/automaticoperate/detail.vue @@ -143,7 +143,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'1'}).then(response => { + listMap({ drawWay:false}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/newMap/newMapdraft/dataRelation/pathoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/pathoperate/detail.vue index 556775782..3861174e8 100644 --- a/src/views/newMap/newMapdraft/dataRelation/pathoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/pathoperate/detail.vue @@ -152,7 +152,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'1'}).then(response => { + listMap({ drawWay:false}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/newMap/newMapdraft/dataRelation/pathoperate/pathRoute.vue b/src/views/newMap/newMapdraft/dataRelation/pathoperate/pathRoute.vue index 91a736d73..25ae9d74a 100644 --- a/src/views/newMap/newMapdraft/dataRelation/pathoperate/pathRoute.vue +++ b/src/views/newMap/newMapdraft/dataRelation/pathoperate/pathRoute.vue @@ -162,7 +162,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'1'}).then(response => { + listMap({ drawWay:false}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue index e48353195..b0ea8eb87 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue @@ -263,7 +263,7 @@ export default { } }, acquireMapList() { - listMap({ drawWay:'1'}).then(response => { + listMap({ drawWay:false}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue index 56702c1d8..e05e49612 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue @@ -175,7 +175,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({drawWay: '1'}).then(response => { + listMap({drawWay: false}).then(response => { this.mapList = response.data; }); }, diff --git a/src/views/newMap/newMapdraft/dataRelation/signaloperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/signaloperate/detail.vue index 76a8f3a2a..81c612d3a 100644 --- a/src/views/newMap/newMapdraft/dataRelation/signaloperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/signaloperate/detail.vue @@ -127,7 +127,7 @@ export default { }, acquireMapList() { // 地图名称列表 - listMap({ drawWay:'1'}).then(response => { + listMap({ drawWay:false}).then(response => { this.mapList = response.data; }); },