فهرست منبع

修改驾驶舱基础矩阵的状态切换

darker 3 سال پیش
والد
کامیت
01f97c2c15
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      src/views/LightMatrix1/LightMatrix1.vue

+ 9 - 0
src/views/LightMatrix1/LightMatrix1.vue

@@ -259,7 +259,10 @@ export default {
     // 切换显示种类
     changeShow(category, fjzt, skipFill) {
       if (!skipFill) {
+        console.log('!skipFill:',!skipFill)
         if (this.fillCategory === category) {
+          console.log('fillCategory:',this.fillCategory)
+          console.log('fillFjz:',this.fillFjzt)
           this.fillCategory = null;
           this.fillFjzt = null;
         } else {
@@ -271,15 +274,19 @@ export default {
       let fjmap = this.BASE.deepCopy(this.sourceMap.fjmap);
 
       fjmap.forEach((pEle) => {
+        console.log('pele:',pEle)
         pEle.forEach((cEle) => {
+          console.log('cele:',cEle)
           cEle.isShow = true;
           if (!this.fillCategory) {
             cEle.isShow = true;
+            // cEle.isShow=false;
           } else if (cEle.wpId.indexOf(category.split("_")[1]) !== -1) {
             if (isNumber(fjzt)) {
               cEle.fjzt === fjzt ? (cEle.isShow = true) : (cEle.isShow = false);
             } else {
               cEle.isShow = true;
+              // cEle.isShow = false;
             }
           } else {
             cEle.isShow = true;
@@ -298,6 +305,7 @@ export default {
         subUrl: "matrix/matrixPush",
         success(res) {
           if (res) {
+            console.log('resmap:',res)
             let sourceMap = res.data;
             let fjmap = [];
             for (let key in sourceMap) {
@@ -313,6 +321,7 @@ export default {
               }
             }
             that.sourceMap = sourceMap;
+            console.log('sourceMap:',that.sourceMap)
             if (that.fillCategory) {
               that.changeShow(that.fillCategory, that.fillFjzt, true);
             }