From 8767d3a583a136a1ac1e04d773fbed3828c1e86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 27 Dec 2024 18:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 1 - src/views/cs/index4.vue | 21 ++++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 8099fad..2dac191 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -25,7 +25,6 @@ const service = axios.create({ service.interceptors.request.use(config => { if(localStorage.getItem('USER_POOL_NAME_CURRENT')){ config.headers['poolName'] = config.header?.PoolName || localStorage.getItem('USER_POOL_NAME_CURRENT'); - console.log(config.headers['poolName']) } // 是否需要设置 token const isToken = (config.headers || {}).isToken === false diff --git a/src/views/cs/index4.vue b/src/views/cs/index4.vue index ccacc91..8cbc082 100644 --- a/src/views/cs/index4.vue +++ b/src/views/cs/index4.vue @@ -54,9 +54,9 @@
-
{{ type }}{{ i.equipmentCode.split('').at(-1) }}
+
{{ type }}{{ i.equipmentCode.split('').at(-1) }}
运行状态:
-
{{ i.completed_count >0?'运行中':'已暂停' }}
+
{{ i.completed_count > 0 ? '运行中' : '已暂停' }}
订单号:
{{ i.workorder_code }}
产品名称:
@@ -80,7 +80,7 @@ export default { }, data() { return { - list:[], + list: [], type: '成型', bz: '白班', equipmentCode: 'C', @@ -89,9 +89,9 @@ export default { }, mounted() { this.getData() - setInterval(()=>{ + setInterval(() => { this.getData() - },1000*60) + }, 1000 * 60) }, methods: { getColor(e) { @@ -101,10 +101,9 @@ export default { }, getData() { getWhiteBoardProdDetails({ - shiftId:this.shiftId, - equipmentCode:this.equipmentCode + shiftId: this.shiftId, + equipmentCode: this.equipmentCode }).then((e) => { - console.log(e) this.list = e.data.rightlist this.$refs.chart1.setData({ tooltip: { @@ -133,7 +132,7 @@ export default { }, xAxis: { type: "category", - data: e.data.leftList.map(v=>v.workorder_code), + data: e.data.leftList.map(v => v.workorder_code), axisLine: { show: true, @@ -198,7 +197,7 @@ export default { ]), }, }, - data: e.data.leftList.map(v=>v.plan_number), + data: e.data.leftList.map(v => v.plan_number), }, { name: "完成数量", @@ -223,7 +222,7 @@ export default { ]), }, }, - data: e.data.leftList.map(v=>v.completed_count), + data: e.data.leftList.map(v => v.completed_count), }, ], })