Browse Source

【埃驰看板】- 滚屏、刷新、底色更新时间,分别提到配置文件开发

master
安虹睿 8 months ago
parent
commit
0e0fa6a02f
  1. 10
      PC/IAC_LargeScreen/public/config.js
  2. 6
      PC/IAC_LargeScreen/src/views/reserveBoard.vue
  3. 7
      PC/IAC_LargeScreen/src/views/shippingBoard.vue
  4. 4
      PC/IAC_LargeScreen/src/views/stockBoard.vue

10
PC/IAC_LargeScreen/public/config.js

@ -1 +1,11 @@
window.SITE_CONFIG['apiURL'] = 'http://dev.ccwin-in.com:10095' 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分钟

6
PC/IAC_LargeScreen/src/views/reserveBoard.vue

@ -27,7 +27,7 @@ export default {
// config // config
configDefult:{ configDefult:{
header:['供应商', '供应商代码', '是否有PO','到货单号','到货日期', '到货时间窗口','收货口','状态' ], header:['供应商', '供应商代码', '是否有PO','到货单号','到货日期', '到货时间窗口','收货口','状态' ],
waitTime: util.waitTime, waitTime: window.SITE_CONFIG['waitTime_sh'] || util.waitTime,
carousel: 'page', carousel: 'page',
// index: true, // index: true,
// indexHeader: '', // indexHeader: '',
@ -50,7 +50,7 @@ export default {
clearInterval(this.intervalId) clearInterval(this.intervalId)
this.intervalId = setInterval(() => { this.intervalId = setInterval(() => {
this.getList() this.getList()
}, util.fleshTime) }, window.SITE_CONFIG['fleshTime_sh'] || util.fleshTime)
util.addEventResizeFlesh() util.addEventResizeFlesh()
}, },
destroyed() { destroyed() {
@ -66,7 +66,7 @@ export default {
this.config = { this.config = {
header: this.configDefult.header, header: this.configDefult.header,
data: data || [], data: data || [],
waitTime: this.configDefult.waitTime,//20d waitTime: window.SITE_CONFIG['waitTime_sh'] || util.waitTime,//20d
carousel: this.configDefult.carousel, carousel: this.configDefult.carousel,
index: this.configDefult.index, index: this.configDefult.index,
indexHeader: this.configDefult.indexHeader, indexHeader: this.configDefult.indexHeader,

7
PC/IAC_LargeScreen/src/views/shippingBoard.vue

@ -53,19 +53,20 @@ export default {
clearInterval(this.intervalId) clearInterval(this.intervalId)
this.intervalId = setInterval(() => { this.intervalId = setInterval(() => {
this.getList() this.getList()
}, util.fleshTime) }, window.SITE_CONFIG['fleshTime_fy'] || util.fleshTime)
util.addEventResizeFlesh() util.addEventResizeFlesh()
// //
clearInterval(this.intervalIdChangeData) clearInterval(this.intervalIdChangeData)
this.intervalIdChangeData = setInterval(() => { this.intervalIdChangeData = setInterval(() => {
this.getCurrentPageData() this.getCurrentPageData()
this.initConfig(this.initRow(this.currentData,new Date().getTime())) this.initConfig(this.initRow(this.currentData,new Date().getTime()))
}, util.waitTime) }, window.SITE_CONFIG['waitTime_fy'] || util.waitTime)
// 1 // 1
clearInterval(this.intervalIdChangeBg) clearInterval(this.intervalIdChangeBg)
this.intervalIdChangeBg = setInterval(() => { this.intervalIdChangeBg = setInterval(() => {
console.log("底色更改")
this.initConfig(this.initRow(this.currentData,new Date().getTime())) this.initConfig(this.initRow(this.currentData,new Date().getTime()))
}, 60000) }, window.SITE_CONFIG['backTime_fy'] || 60000)
}, },
destroyed() { destroyed() {
clearInterval(this.intervalId) clearInterval(this.intervalId)

4
PC/IAC_LargeScreen/src/views/stockBoard.vue

@ -25,7 +25,7 @@ export default {
// config // config
configDefult:{ configDefult:{
header:['物料', '描述', '库存数量','最小', '需求库位' ], header:['物料', '描述', '库存数量','最小', '需求库位' ],
waitTime: 120000,//2 waitTime: window.SITE_CONFIG['waitTime_bl'] || 120000,//2
carousel: 'page', carousel: 'page',
// index: true, // index: true,
// indexHeader: '', // indexHeader: '',
@ -47,7 +47,7 @@ export default {
clearInterval(this.intervalId) clearInterval(this.intervalId)
this.intervalId = setInterval(() => { this.intervalId = setInterval(() => {
this.getList() this.getList()
}, 300000)//5 }, window.SITE_CONFIG['fleshTime_bl'] || 300000)//5
util.addEventResizeFlesh() util.addEventResizeFlesh()
}, },
destroyed() { destroyed() {

Loading…
Cancel
Save