Revert "drawWay参数调整"

This reverts commit 54be69b
This commit is contained in:
fan 2019-12-12 16:07:32 +08:00
parent 0ef09ed480
commit 811a430ec1
16 changed files with 18 additions and 18 deletions

View File

@ -99,7 +99,7 @@ export default {
this.loading = true; this.loading = true;
this.treeData = this.treeList = []; this.treeData = this.treeList = [];
try { try {
const res = await listMap({ drawWay:true}); const res = await listMap({ drawWay:'0'});
res.data && res.data.forEach(elem=>{ res.data && res.data.forEach(elem=>{
elem.type = 'map'; elem.type = 'map';
elem.children = [ elem.children = [

View File

@ -134,7 +134,7 @@ export default {
this.lineCodeList = response.data; this.lineCodeList = response.data;
}); });
const drawWay = true; const drawWay = 0;
getMapListByProject(drawWay).then(response => { getMapListByProject(drawWay).then(response => {
this.publishMapList = response.data; this.publishMapList = response.data;
}).catch(() => { }).catch(() => {
@ -146,7 +146,7 @@ export default {
this.$refs['newForm'].validate((valid) => { this.$refs['newForm'].validate((valid) => {
if (valid) { if (valid) {
this.loading = true; this.loading = true;
this.newModel['drawWay'] = true; this.newModel['drawWay'] = '0';
newMap(this.newModel).then(response => { newMap(this.newModel).then(response => {
this.loading = false; this.loading = false;
this.$emit('refresh'); this.$emit('refresh');

View File

@ -143,7 +143,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:true}).then(response => { listMap({ drawWay:'0'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -152,7 +152,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:true}).then(response => { listMap({ drawWay:'0'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -162,7 +162,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:true}).then(response => { listMap({ drawWay:'0'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -245,7 +245,7 @@ export default {
} }
}, },
acquireMapList() { acquireMapList() {
listMap({ drawWay:true}).then(response => { listMap({ drawWay:'0'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -175,7 +175,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:true}).then(response => { listMap({ drawWay:'0'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -127,7 +127,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:true}).then(response => { listMap({ drawWay:'0'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -99,7 +99,7 @@ export default {
this.loading = true; this.loading = true;
this.treeData = this.treeList = []; this.treeData = this.treeList = [];
try { try {
const res = await listMap({ drawWay:false}); const res = await listMap({ drawWay:'1'});
res.data && res.data.forEach(elem=>{ res.data && res.data.forEach(elem=>{
elem.type = 'map'; elem.type = 'map';
elem.children = [ elem.children = [

View File

@ -135,7 +135,7 @@ export default {
}); });
// //
const drawWay = false; const drawWay = 1;
getMapListByProject(drawWay).then(response => { getMapListByProject(drawWay).then(response => {
this.publishMapList = response.data; this.publishMapList = response.data;
}).catch(() => { }).catch(() => {
@ -147,7 +147,7 @@ export default {
this.$refs['newForm'].validate((valid) => { this.$refs['newForm'].validate((valid) => {
if (valid) { if (valid) {
this.loading = true; this.loading = true;
this.newModel['drawWay'] = false; this.newModel['drawWay'] = '1';
newMap(this.newModel).then(response => { newMap(this.newModel).then(response => {
this.loading = false; this.loading = false;
this.$emit('refresh'); this.$emit('refresh');

View File

@ -143,7 +143,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:false}).then(response => { listMap({ drawWay:'1'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -152,7 +152,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:false}).then(response => { listMap({ drawWay:'1'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -162,7 +162,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:false}).then(response => { listMap({ drawWay:'1'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -263,7 +263,7 @@ export default {
} }
}, },
acquireMapList() { acquireMapList() {
listMap({ drawWay:false}).then(response => { listMap({ drawWay:'1'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -175,7 +175,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({drawWay: false}).then(response => { listMap({drawWay: '1'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },

View File

@ -127,7 +127,7 @@ export default {
}, },
acquireMapList() { acquireMapList() {
// //
listMap({ drawWay:false}).then(response => { listMap({ drawWay:'1'}).then(response => {
this.mapList = response.data; this.mapList = response.data;
}); });
}, },