删除多余注释

This commit is contained in:
zyy 2020-06-23 11:24:02 +08:00
parent 81cde0b3d5
commit 98b24fac42
2 changed files with 2 additions and 6 deletions

View File

@ -168,7 +168,6 @@ class Jlmap {
const arr = []; const arr = [];
const rectList = []; const rectList = [];
let rect = ''; let rect = '';
// console.log(this.mapDevice);
for (const i in this.mapDevice) { for (const i in this.mapDevice) {
const element = this.mapDevice[i]; const element = this.mapDevice[i];
if (element.instance && element._type == 'Section') { 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 splitList = JSON.parse(JSON.stringify(screenSplit));
const num = screenSplit.length + 1; const num = screenSplit.length + 1;
const offsetY = (opts.height - 100) / num; // 高度差 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: -(offsetY * i) - offsetHeight};
const param = { scaleRate: scale, offsetX: offsetX, offsetY: -160 - (offsetY * i) }; const param = { scaleRate: scale, offsetX: offsetX, offsetY: -160 - (offsetY * i) };
// if (i == 0) {
// param.offsetY -= -100;
// }
arr.push(param); arr.push(param);
const rect = {x: 0, y: 0, width: Number(splitList[i]) + 5, height: opts.height}; const rect = {x: 0, y: 0, width: Number(splitList[i]) + 5, height: opts.height};
rectList.push(rect); rectList.push(rect);

View File

@ -274,7 +274,7 @@ export function parser(data, skinCode, showConfig) {
export function updateForList(model, state, liststr) { export function updateForList(model, state, liststr) {
const list = state.map[liststr]; const list = state.map[liststr];
if (list && list instanceof Array) { 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) { if (model._dispose) {
i >= 0 && list.splice(i, 1); // 删除 i >= 0 && list.splice(i, 1); // 删除
} else if (!list[i]) { } else if (!list[i]) {