删除多余注释
This commit is contained in:
parent
81cde0b3d5
commit
98b24fac42
@ -168,7 +168,6 @@ class Jlmap {
|
||||
const arr = [];
|
||||
const rectList = [];
|
||||
let rect = '';
|
||||
// console.log(this.mapDevice);
|
||||
for (const i in this.mapDevice) {
|
||||
const element = this.mapDevice[i];
|
||||
if (element.instance && element._type == 'Section') {
|
||||
@ -179,7 +178,7 @@ class Jlmap {
|
||||
}
|
||||
}
|
||||
}
|
||||
const screenSplit = opts.list.length ? opts.list : loadPropConvert(store.state.map.map.skinVO.code).screenSplit;
|
||||
const screenSplit = opts.list.length ? opts.list : loadPropConvert(this.lineCode).screenSplit;
|
||||
const splitList = JSON.parse(JSON.stringify(screenSplit));
|
||||
const num = screenSplit.length + 1;
|
||||
const offsetY = (opts.height - 100) / num; // 高度差
|
||||
@ -202,9 +201,6 @@ class Jlmap {
|
||||
}
|
||||
// const param = { scaleRate: scale, offsetX: offsetX, offsetY: -(offsetY * i) - offsetHeight};
|
||||
const param = { scaleRate: scale, offsetX: offsetX, offsetY: -160 - (offsetY * i) };
|
||||
// if (i == 0) {
|
||||
// param.offsetY -= -100;
|
||||
// }
|
||||
arr.push(param);
|
||||
const rect = {x: 0, y: 0, width: Number(splitList[i]) + 5, height: opts.height};
|
||||
rectList.push(rect);
|
||||
|
@ -274,7 +274,7 @@ export function parser(data, skinCode, showConfig) {
|
||||
export function updateForList(model, state, liststr) {
|
||||
const list = state.map[liststr];
|
||||
if (list && list instanceof Array) {
|
||||
const i = list.findIndex(elem => { return elem.code == model.code; });
|
||||
const i = list.findIndex(elem => elem.code == model.code );
|
||||
if (model._dispose) {
|
||||
i >= 0 && list.splice(i, 1); // 删除
|
||||
} else if (!list[i]) {
|
||||
|
Loading…
Reference in New Issue
Block a user