695593266@qq.com 2 месяцев назад
Родитель
Сommit
53913f0988
2 измененных файлов с 13 добавлено и 5 удалено
  1. 11 3
      src/views/bpm/vis-page/factoryProductionDashboard.vue
  2. 2 2
      vue.config.js

+ 11 - 3
src/views/bpm/vis-page/factoryProductionDashboard.vue

@@ -14,6 +14,7 @@
             size="mini"
             class="fp-select"
             placeholder="工厂名称"
+            :popper-append-to-body="false"
           >
             <el-option
               v-for="f in factoryList"
@@ -31,6 +32,7 @@
             start-placeholder="开始日期"
             end-placeholder="结束日期"
             value-format="yyyy-MM-dd"
+            :append-to-body="false"
           />
         </div>
 
@@ -657,7 +659,8 @@
           return;
         }
         this.planAutoScrollTimer = setInterval(() => {
-          const maxScrollTop = scrollBody.scrollHeight - scrollBody.clientHeight;
+          const maxScrollTop =
+            scrollBody.scrollHeight - scrollBody.clientHeight;
           if (maxScrollTop <= 0) return;
           if (scrollBody.scrollTop >= maxScrollTop - 1) {
             scrollBody.scrollTop = 0;
@@ -901,7 +904,9 @@
           data?.quantityAchievementRate
         );
 
-        this.productionKpi.delayedCount = this.normalizeNumber(data?.delayNumber);
+        this.productionKpi.delayedCount = this.normalizeNumber(
+          data?.delayNumber
+        );
         this.productionKpi.planAchievementRate = this.normalizePercent(
           data?.achievementRate
         );
@@ -936,7 +941,10 @@
           { name: '投入数', value: this.normalizeNumber(data?.inputQuantity) },
           { name: '产出数', value: this.normalizeNumber(data?.outputQuantity) },
           { name: '废品数', value: this.normalizeNumber(data?.scrapQuantity) },
-          { name: '周转数', value: this.normalizeNumber(data?.turnoverQuantity) }
+          {
+            name: '周转数',
+            value: this.normalizeNumber(data?.turnoverQuantity)
+          }
         ];
 
         this.quality.passRate = this.normalizePercent(data?.passRate);

+ 2 - 2
vue.config.js

@@ -36,8 +36,8 @@ module.exports = {
         // target: 'http://192.168.1.139:18086', // 粟
         // target: 'http://192.168.1.132:18086', // 徐1
         // target: 'http://192.168.1.134:18086', //徐2
-        target: 'http://192.168.1.125:18086',
-        // target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.251:18186', // 测试环境
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {