From 7faf824cd85d9e2fb7a270e807f10c5c638815d5 Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期五, 20 六月 2025 10:54:12 +0800 Subject: [PATCH] 库位添加逻辑删除 --- construction-data/src/components/datav/index.vue | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/construction-data/src/components/datav/index.vue b/construction-data/src/components/datav/index.vue index 0ac35a5..780d034 100644 --- a/construction-data/src/components/datav/index.vue +++ b/construction-data/src/components/datav/index.vue @@ -189,13 +189,12 @@ } }, created () { - //鑾峰彇褰撳墠鎵ц浠诲姟 - this.getWaves() - //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭� - this.getSeedLoc() - //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯 - this.getAllPlatforms() + let that = this + setInterval(() => { + that.fetch() + }, 10000) }, + computed: { getLightStatus() { return (item)=> { @@ -208,6 +207,14 @@ } }, methods: { + fetch() { + //鑾峰彇褰撳墠鎵ц浠诲姟 + this.getWaves() + //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭� + this.getSeedLoc() + //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯 + this.getAllPlatforms() + }, printPage() { // let element = document.querySelector('#datav'); // let el = this.$refs.datav @@ -246,6 +253,7 @@ // eslint-disable-next-line no-undef $ajax.post('/api/bind/shipping/platform', {orderId: order.id, waveId: order.waveId, platformId: plat.id}).then(response => { if (response.code === 200) { + that.fetch() //闅愯棌鍙戣揣鍖�,鎵ц鎵撳嵃 } else { this.$message.error(response.msg) -- Gitblit v1.9.1