From 78473fc905b979b9a64556b6d02787fa369cc988 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 30 Jul 2021 14:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9E=B6=E6=9E=84=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=A0=E9=99=A4=E5=90=8E=E5=BE=AA=E7=8E=AF=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/Framework.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/data/Framework.vue b/src/views/data/Framework.vue index 297b378..2eb25c4 100644 --- a/src/views/data/Framework.vue +++ b/src/views/data/Framework.vue @@ -292,6 +292,7 @@ export default { this.$post(`${this.api.deleteTable}?tableIds=${row.id}`).then(res => { this.$message.success('删除成功') this.getData() + this.cacheTable(this.typeList) }).catch(res => {}) }).catch(() => {}) }, @@ -315,6 +316,7 @@ export default { this.$refs.table.clearSelection() this.$message.success('删除成功') this.getData() + this.cacheTable(this.typeList) }).catch(res => {}) }).catch(() => {}) }else{ @@ -446,10 +448,21 @@ export default { setTimeout(() => { this.submited = false },1000) + + this.cacheTable(this.typeList) }).catch(res => { this.submited = false }) }, + cacheTable(list){ + list.map(n => { + if(n.children.length){ + this.cacheTable(n.children) + }else{ + this.$post(`${this.api.getIdQueryTable}?categoryId=${n.id}&showName=&pageNum=1&pageSize=1000&updateTime=`).then(res => {}).catch(res => {}) + } + }) + } } };