From 819430870fb02cd550b1d925261c16f14157affd Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 21 十一月 2024 18:13:45 +0800 Subject: [PATCH] 处理路由bug --- Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue index 8faee80..7a7bc2e 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue @@ -85,7 +85,7 @@ <!-- 瀵煎叆 --> <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="瀵煎叆" - @updata="getTreeList"></upload-file> + @updata="getList"></upload-file> <!-- 鏌ョ湅浣跨敤鑼冨洿 --> <el-dialog @@ -107,7 +107,6 @@ </avue-crud> </el-dialog> </basic-container> - </template> <script> @@ -208,11 +207,10 @@ } }, created() { - this.getTreeList(); + this.getList(); }, methods: { - // 宸︿晶鏍戣姹� - getTreeList() { + getList() { gridStatus(this.page.currentPage, this.page.pageSize).then(res => { const data = res.data.data; this.data = data; @@ -225,7 +223,7 @@ // 琛ㄦ牸鍒锋柊 handleRefresh() { - this.getTreeList(); + this.getList(); }, // 琛ㄦ牸澶氶�� @@ -236,13 +234,13 @@ // 鏉℃暟 sizeChange(val) { this.page.pageSize = val; - this.getTreeList(); + this.getList(); }, // 椤电爜 currentChange(val) { this.page.currentPage = val; - this.getTreeList(); + this.getList(); }, // 琛屽崟閫� @@ -288,7 +286,7 @@ deleteStatus(this.selectList).then(res => { if (res.data.code === 200) { this.$message.success(res.data.obj); - this.getTreeList(); + this.getList(); } }) }).catch(() => { @@ -311,7 +309,7 @@ deleteStatus(list).then(res => { if (res.data.code === 200) { this.$message.success(res.data.obj); - this.getTreeList(); + this.getList(); } }) }).catch(() => { @@ -344,7 +342,7 @@ if (res.data.code === 200) { this.$message.success(res.data.obj); this.loading = true; - this.getTreeList(); + this.getList(); this.visible = false; } else { this.$message.error(res.data.obj); -- Gitblit v1.9.3