Przeglądaj źródła

修复全屏模式下边框对不齐的问题

liling 2 miesięcy temu
rodzic
commit
8cf25b8c99
2 zmienionych plików z 12 dodań i 3 usunięć
  1. 11 2
      src/pages/components/Fac.vue
  2. 1 1
      src/pages/components/In03.vue

+ 11 - 2
src/pages/components/Fac.vue

@@ -7,7 +7,7 @@
     </div>
     <div class="bg1"></div>
     <div class="abs tools" v-if="showIndexData=='dataindex'">
-        <div :class="item.active?'btn active':'btn'" v-for="item in toolsBtnList" :style="{backgroundImage: item.active?`url(${btnFrontBg})`:''}" @click="loadNavModel(item);">
+        <div :class="item.active?'btn active':'btn'" v-for="item in toolsBtnList" :style="{backgroundImage: item.active?`url(${btnFrontBg})`:''}" @click="loadTools(item);">
             <div>{{ item.name }}</div>
         </div>
     </div>
@@ -199,6 +199,14 @@ export default {
             showIndexData.value = newVal;
         },{deep:true,immediate:true})
 
+        function loadTools(v){
+            for(let i=0;i<toolsBtnList.value.length;i++){
+                if(toolsBtnList.value[i].code==item.code){
+                    toolsBtnList.value[i].active=true;
+                }else toolsBtnList.value[i].active=false;
+            }
+        }
+
         let DataFull={
             GetFacData:function(){
                 getDataTimer = setTimeout(function () {
@@ -1149,6 +1157,7 @@ export default {
             backMasterViewByFac,
             loadmarkers,
             showStockTrend,
+            loadTools,
             LoadSCLine,
             LoadUsedLine,
             isShowIframeWin,
@@ -1180,7 +1189,7 @@ export default {
     z-index: 1; pointer-events: none;position: absolute;
     top: calc(90px * var(--hRate));
     left: 0;
-    width: 98.2%;
+    width: 1877.54px;
     height: 89%;
     margin-left: 19px;
     border: 2px solid #17666e;

+ 1 - 1
src/pages/components/In03.vue

@@ -180,7 +180,7 @@ export default {
     z-index: 1; pointer-events: none;position: absolute;
     top: calc(90px * var(--hRate));
     left: 0;
-    width: 98.2%;
+    width: 1877.54px;
     height: 89%;
     margin-left: 19px;
     border: 2px solid #17666e;