调整道岔生成逻辑
This commit is contained in:
parent
9ca3612715
commit
e5687c13dd
@ -2,10 +2,10 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||||
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
||||||
|
@ -170,14 +170,12 @@ export default {
|
|||||||
if (!this.checkAddListA(oneSection, section.code)) { // 右侧关系清空
|
if (!this.checkAddListA(oneSection, section.code)) { // 右侧关系清空
|
||||||
const sectionModel = deepAssign({}, section);
|
const sectionModel = deepAssign({}, section);
|
||||||
sectionModel.rightSectionCode = '';
|
sectionModel.rightSectionCode = '';
|
||||||
sectionModel.parentCode = '';
|
|
||||||
sectionModel.sepTypeRight = '00'; // 分隔符
|
sectionModel.sepTypeRight = '00'; // 分隔符
|
||||||
sectionModel.type = '03';
|
sectionModel.type = '03';
|
||||||
const list = this.findSectionA(sectionModel.points[sectionModel.points.length - 1].x, sectionModel.points[sectionModel.points.length - 1].y);
|
const list = this.findSectionA(sectionModel.points[sectionModel.points.length - 1].x, sectionModel.points[sectionModel.points.length - 1].y);
|
||||||
list.forEach(elem => {
|
list.forEach(elem => {
|
||||||
const sectionModel = deepAssign({}, elem);
|
const sectionModel = deepAssign({}, elem);
|
||||||
sectionModel.leftSectionCode = '';
|
sectionModel.leftSectionCode = '';
|
||||||
sectionModel.parentCode = '';
|
|
||||||
sectionModel.sepTypeLeft = '00';
|
sectionModel.sepTypeLeft = '00';
|
||||||
sectionModel.type = '03';
|
sectionModel.type = '03';
|
||||||
changeSectionList.push(sectionModel);
|
changeSectionList.push(sectionModel);
|
||||||
@ -191,14 +189,12 @@ export default {
|
|||||||
if (!this.checkAddListB(oneSectionStar, section.code)) { // 左侧关系清空
|
if (!this.checkAddListB(oneSectionStar, section.code)) { // 左侧关系清空
|
||||||
const sectionModel = deepAssign({}, section);
|
const sectionModel = deepAssign({}, section);
|
||||||
sectionModel.leftSectionCode = '';
|
sectionModel.leftSectionCode = '';
|
||||||
sectionModel.parentCode = '';
|
|
||||||
sectionModel.sepTypeLeft = '00';
|
sectionModel.sepTypeLeft = '00';
|
||||||
sectionModel.type = '03';
|
sectionModel.type = '03';
|
||||||
const list = this.findSectionB(sectionModel.points[0].x, sectionModel.points[0].y);
|
const list = this.findSectionB(sectionModel.points[0].x, sectionModel.points[0].y);
|
||||||
list.forEach(elem => {
|
list.forEach(elem => {
|
||||||
const sectionModel = deepAssign({}, elem);
|
const sectionModel = deepAssign({}, elem);
|
||||||
sectionModel.rightSectionCode = '';
|
sectionModel.rightSectionCode = '';
|
||||||
sectionModel.parentCode = '';
|
|
||||||
sectionModel.sepTypeRight = '00'; // 分隔符
|
sectionModel.sepTypeRight = '00'; // 分隔符
|
||||||
sectionModel.type = '03';
|
sectionModel.type = '03';
|
||||||
changeSectionList.push(sectionModel);
|
changeSectionList.push(sectionModel);
|
||||||
@ -249,8 +245,8 @@ export default {
|
|||||||
const sectionb = this.findSectionData(sectionLists, elem.sectionBCode);
|
const sectionb = this.findSectionData(sectionLists, elem.sectionBCode);
|
||||||
const sectiona = this.findSectionData(sectionLists, elem.sectionACode);
|
const sectiona = this.findSectionData(sectionLists, elem.sectionACode);
|
||||||
const sectionc = this.findSectionData(sectionLists, elem.sectionCCode);
|
const sectionc = this.findSectionData(sectionLists, elem.sectionCCode);
|
||||||
const parentSectionModel = this.$store.getters['map/getDeviceByCode'](sectiona.parentCode);
|
// const parentSectionModel = this.$store.getters['map/getDeviceByCode'](sectiona.parentCode);
|
||||||
if (!parentSectionModel) { // 找不到父元素删除
|
// if (!parentSectionModel) { // 找不到父元素删除
|
||||||
if (switchSectionList.indexOf(elem.code) == -1) {
|
if (switchSectionList.indexOf(elem.code) == -1) {
|
||||||
let uid;
|
let uid;
|
||||||
if (!elem['uid']) {
|
if (!elem['uid']) {
|
||||||
@ -282,12 +278,12 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
// } else {
|
||||||
parentSectionModel.relevanceSectionList.push(elem.sectionACode);
|
// parentSectionModel.relevanceSectionList.push(elem.sectionACode);
|
||||||
parentSectionModel.relevanceSectionList.push(elem.sectionBCode);
|
// parentSectionModel.relevanceSectionList.push(elem.sectionBCode);
|
||||||
parentSectionModel.relevanceSectionList.push(elem.sectionCCode);
|
// parentSectionModel.relevanceSectionList.push(elem.sectionCCode);
|
||||||
models.push(parentSectionModel);
|
// models.push(parentSectionModel);
|
||||||
}
|
// }
|
||||||
sectiona.relSwitchCode = elem.code;
|
sectiona.relSwitchCode = elem.code;
|
||||||
sectionb.relSwitchCode = elem.code;
|
sectionb.relSwitchCode = elem.code;
|
||||||
sectionc.relSwitchCode = elem.code;
|
sectionc.relSwitchCode = elem.code;
|
||||||
|
Loading…
Reference in New Issue
Block a user