From 7e6950226e94a69488c7a5afff6da20bf7e96da0 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 19 Jul 2024 16:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData2.js | 4 +- src/config/http.js | 15 +++++ src/config/mork2.js | 2 +- src/pages/Setup.vue | 6 ++ src/pages/modules/board/StockBin.vue | 88 ++++++++++++---------------- src/vuex/modules/com.js | 7 ++- 6 files changed, 66 insertions(+), 56 deletions(-) diff --git a/src/config/getData2.js b/src/config/getData2.js index e74984b..9b40589 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -1,4 +1,4 @@ -import {post} from './http.js' +import {post, post1} from './http.js' // 大屏-中间设备运行情况 export const deviceCondition = () => post('api/cockpit/deviceCondition', {}) // 出、入窑输送线弹窗 @@ -10,4 +10,4 @@ export const screenTableData = () => post('api/cockpit/screenTableData', {}) // 窑看板 export const klineInfo = () => post('api/cockpit/klineInfo', {}) // 料仓监控 -export const queryliaocang = () => post('api/hand/queryliaocang', {}) +export const queryliaocang = () => post1('api/hand/queryliaocang', {}) diff --git a/src/config/http.js b/src/config/http.js index 7577144..241fe23 100644 --- a/src/config/http.js +++ b/src/config/http.js @@ -63,3 +63,18 @@ export const post = (sevmethod, params) => { }) }) } + +export const post1 = (sevmethod, params) => { + return new Promise((resolve, reject) => { + axios.post(`${store.getters.lcUrl}/` + sevmethod, params) + .then(response => { + resolve(response.data) + }, error => { + // Dialog(error.message) + reject(error.message) + }) + .catch((error) => { + reject(error) + }) + }) +} diff --git a/src/config/mork2.js b/src/config/mork2.js index 90e3c9e..82eb9d1 100644 --- a/src/config/mork2.js +++ b/src/config/mork2.js @@ -2534,6 +2534,6 @@ export const klineInfo = () => { return res } export const queryliaocang = () => { - let res = [{point_name: 'LC16'}] + let res = [{point_name: 'A1', num: '2100'}, {point_name: 'A2', num: '6100'}, {point_name: 'A3', num: '100'}, {point_name: 'A4', num: '100'}, {point_name: 'A5', num: '100'}, {point_name: 'A6', num: '100'}, {point_name: 'A7', num: '100'}, {point_name: 'A8', num: '100'}, {point_name: 'A9', num: '100'}, {point_name: 'A10', num: '100'}, {point_name: 'A11', num: '100'}, {point_name: 'A12', num: '100'}, {point_name: 'A13', num: '100'}, {point_name: 'A14', num: '100'}, {point_name: 'A15', num: '100'}, {point_name: 'A16', num: '100'}, {point_name: 'B1', num: '100'}, {point_name: 'B2', num: '100'}, {point_name: 'B3', num: '100'}, {point_name: 'B4', num: '100'}, {point_name: 'B5', num: '100'}, {point_name: 'B6', num: '100'}, {point_name: 'B7', num: '100'}, {point_name: 'B8', num: '100'}, {point_name: 'B9', num: '100'}, {point_name: 'B10', num: '100'}, {point_name: 'B11', num: '100'}, {point_name: 'B12', num: '100'}, {point_name: 'B13', num: '100'}, {point_name: 'B14', num: '100'}, {point_name: 'B15', num: '100'}, {point_name: 'B16', num: '100'}, {point_name: 'C1', num: '100'}, {point_name: 'C2', num: '100'}, {point_name: 'C3', num: '100'}, {point_name: 'C4', num: '100'}, {point_name: 'C5', num: '100'}, {point_name: 'C6', num: '100'}, {point_name: 'C7', num: '100'}, {point_name: 'C8', num: '100'}, {point_name: 'C9', num: '100'}, {point_name: 'C10', num: '100'}, {point_name: 'C11', num: '100'}, {point_name: 'C12', num: '100'}, {point_name: 'C13', num: '100'}, {point_name: 'C14', num: '100'}, {point_name: 'C15', num: '100'}, {point_name: 'C16', num: '100'}, {point_name: 'Z1', num: '100'}, {point_name: 'Z2', num: '100'}, {point_name: 'Z3', num: '100'}, {point_name: 'Z4', num: '100'}, {point_name: 'Z5', num: '100'}, {point_name: 'Z6', num: '100'}, {point_name: 'Z7', num: '100'}, {point_name: 'Z8', num: '100'}, {point_name: 'Z9', num: '100'}, {point_name: 'Z10', num: '100'}, {point_name: 'Z11', num: '100'}, {point_name: 'Z12', num: '-100'}] return res } diff --git a/src/pages/Setup.vue b/src/pages/Setup.vue index e44db13..94318a4 100644 --- a/src/pages/Setup.vue +++ b/src/pages/Setup.vue @@ -29,6 +29,10 @@ +
{{ e.point_name }}
-{{ e.qty }}
+{{ e.num }}
{{ e.point_name }}
-{{ e.qty }}
+{{ e.num }}
{{ e.point_name }}
-{{ e.qty }}
+{{ e.num }}
{{ e.point_name }}
-{{ e.qty }}
+{{ e.num }}