From 2dbc2e4a8d64ed2fea3996a07d3659fac19b56b4 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 09 十月 2023 19:38:36 +0800 Subject: [PATCH] 工艺模型需求小优化 --- src/components/ProcessModel.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/ProcessModel.vue b/src/components/ProcessModel.vue index d62bd4d..18c0d1b 100644 --- a/src/components/ProcessModel.vue +++ b/src/components/ProcessModel.vue @@ -59,7 +59,7 @@ </div> <div slot="footer" class="dialog-footer tac" style="overflow: hidden"> - <el-button + <el-button v-if="isPage" type="primary" size="mini" :disabled="top" @@ -70,7 +70,7 @@ 涓婁竴椤�</el-button > - <el-button + <el-button v-if="isPage" type="primary" size="mini" :disabled="bottom" @@ -123,6 +123,8 @@ top:false, bottom:false, index:null, + isPage:false, + isRenew:false, }; }, mounted() { @@ -171,9 +173,11 @@ } this.total=res.total?res.total:0; if(this.total<=6){ + this.isPage=false; this.top=true; this.bottom=true; }else{ + this.isPage=true; let pageTotal=Math.ceil(Number(this.total)/6) if(this.pageObj.page<pageTotal){ @@ -196,6 +200,7 @@ this.processObj.paramsMap=this.processObj.newParamsMap this.processObj.number=this.processObj.newNumber this.processObj.isUpdate=false + this.isRenew=true; this.$emit('updateGet',this.processObj.newNumber) this.getProcessModelList(this.processObj.newNumber) }, @@ -225,7 +230,9 @@ }, shutdown() { this.islook = false; - this.$emit('updateGet',this.processObj.newNumber,true) + if(this.isRenew){ + this.$emit('updateGet',this.processObj.newNumber,true) + } }, }, }; -- Gitblit v1.8.0