From 0e0fa6a02fe97217138b4c4d60039abf7bd524e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Fri, 19 Apr 2024 10:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9F=83=E9=A9=B0=E7=9C=8B=E6=9D=BF?= =?UTF-8?q?=E3=80=91-=20=E6=BB=9A=E5=B1=8F=E3=80=81=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E3=80=81=E5=BA=95=E8=89=B2=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=EF=BC=8C=E5=88=86=E5=88=AB=E6=8F=90=E5=88=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PC/IAC_LargeScreen/public/config.js | 12 +++++++++++- PC/IAC_LargeScreen/src/views/reserveBoard.vue | 6 +++--- PC/IAC_LargeScreen/src/views/shippingBoard.vue | 7 ++++--- PC/IAC_LargeScreen/src/views/stockBoard.vue | 4 ++-- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/PC/IAC_LargeScreen/public/config.js b/PC/IAC_LargeScreen/public/config.js index 3a19e6b..120fdc0 100644 --- a/PC/IAC_LargeScreen/public/config.js +++ b/PC/IAC_LargeScreen/public/config.js @@ -1 +1,11 @@ -window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:10095' \ No newline at end of file +window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:10095' +// 收货-滚屏列表时间控制(毫秒制) +window.SITE_CONFIG['waitTime_sh'] = 300000 // 滚屏间隔 5分钟 +window.SITE_CONFIG['fleshTime_sh'] = 1800000 //刷新数据间隔 半小时 +// 发运-滚屏列表时间控制(毫秒制) +window.SITE_CONFIG['waitTime_fy'] = 300000 // 滚屏间隔 5分钟 +window.SITE_CONFIG['fleshTime_fy'] = 1800000 //刷新数据间隔 半小时 +window.SITE_CONFIG['backTime_fy'] = 60000 //刷新底色间隔 1分钟 +// 备料-滚屏列表时间控制(毫秒制) +window.SITE_CONFIG['waitTime_bl'] = 120000 // 滚屏间隔 2分钟 +window.SITE_CONFIG['fleshTime_bl'] = 300000 //刷新数据间隔 5分钟 \ No newline at end of file diff --git a/PC/IAC_LargeScreen/src/views/reserveBoard.vue b/PC/IAC_LargeScreen/src/views/reserveBoard.vue index a46d7b6..e9bd0be 100644 --- a/PC/IAC_LargeScreen/src/views/reserveBoard.vue +++ b/PC/IAC_LargeScreen/src/views/reserveBoard.vue @@ -27,7 +27,7 @@ export default { // config默认项 configDefult:{ header:['供应商', '供应商代码', '是否有PO','到货单号','到货日期', '到货时间窗口','收货口','状态' ], - waitTime: util.waitTime, + waitTime: window.SITE_CONFIG['waitTime_sh'] || util.waitTime, carousel: 'page', // index: true, // indexHeader: '序号', @@ -50,7 +50,7 @@ export default { clearInterval(this.intervalId) this.intervalId = setInterval(() => { this.getList() - }, util.fleshTime) + }, window.SITE_CONFIG['fleshTime_sh'] || util.fleshTime) util.addEventResizeFlesh() }, destroyed() { @@ -66,7 +66,7 @@ export default { this.config = { header: this.configDefult.header, data: data || [], - waitTime: this.configDefult.waitTime,//每页停留20秒d + waitTime: window.SITE_CONFIG['waitTime_sh'] || util.waitTime,//每页停留20秒d carousel: this.configDefult.carousel, index: this.configDefult.index, indexHeader: this.configDefult.indexHeader, diff --git a/PC/IAC_LargeScreen/src/views/shippingBoard.vue b/PC/IAC_LargeScreen/src/views/shippingBoard.vue index 137bc9b..4f10877 100644 --- a/PC/IAC_LargeScreen/src/views/shippingBoard.vue +++ b/PC/IAC_LargeScreen/src/views/shippingBoard.vue @@ -53,19 +53,20 @@ export default { clearInterval(this.intervalId) this.intervalId = setInterval(() => { this.getList() - }, util.fleshTime) + }, window.SITE_CONFIG['fleshTime_fy'] || util.fleshTime) util.addEventResizeFlesh() // 滚屏页面 clearInterval(this.intervalIdChangeData) this.intervalIdChangeData = setInterval(() => { this.getCurrentPageData() this.initConfig(this.initRow(this.currentData,new Date().getTime())) - }, util.waitTime) + }, window.SITE_CONFIG['waitTime_fy'] || util.waitTime) // 底色刷新 1分钟 clearInterval(this.intervalIdChangeBg) this.intervalIdChangeBg = setInterval(() => { + console.log("底色更改") this.initConfig(this.initRow(this.currentData,new Date().getTime())) - }, 60000) + }, window.SITE_CONFIG['backTime_fy'] || 60000) }, destroyed() { clearInterval(this.intervalId) diff --git a/PC/IAC_LargeScreen/src/views/stockBoard.vue b/PC/IAC_LargeScreen/src/views/stockBoard.vue index 1898baa..e6afbd7 100644 --- a/PC/IAC_LargeScreen/src/views/stockBoard.vue +++ b/PC/IAC_LargeScreen/src/views/stockBoard.vue @@ -25,7 +25,7 @@ export default { // config默认项 configDefult:{ header:['物料', '描述', '库存数量','最小', '需求库位' ], - waitTime: 120000,//2分钟 + waitTime: window.SITE_CONFIG['waitTime_bl'] || 120000,//2分钟 carousel: 'page', // index: true, // indexHeader: '序号', @@ -47,7 +47,7 @@ export default { clearInterval(this.intervalId) this.intervalId = setInterval(() => { this.getList() - }, 300000)//5分钟刷新 + }, window.SITE_CONFIG['fleshTime_bl'] || 300000)//5分钟刷新 util.addEventResizeFlesh() }, destroyed() {