From c36d7594f155a079a80ef8b697219695184cea31 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期一, 23 十月 2023 15:50:02 +0800 Subject: [PATCH] feat: 看板bug修复 --- src/components/ProcessModel.vue | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/ProcessModel.vue b/src/components/ProcessModel.vue index d62bd4d..f6792a9 100644 --- a/src/components/ProcessModel.vue +++ b/src/components/ProcessModel.vue @@ -32,8 +32,9 @@ <img src="../../public/process-model.png" /> </div> <div class="item-r" @click="processDetailsClick(item,index)"> - <div class="item-r-t font_weight">{{ item.procedure }}</div> - <div class="item-r-b">褰撳墠宸ヨ壓缂栧彿锛歿{ item.number }}</div> + <div class="item-r-t font_weight">{{ item.number }}</div> + <div class="item-r-b">浜у搧锛歿{ item.product }}</div> + <div class="item-r-b">宸ュ簭锛歿{ item.procedure }}</div> </div> <div class="tip-r" v-if="item.isUpdate"> <img src="../../public/process-tip.png" /> @@ -59,7 +60,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 +71,7 @@ 涓婁竴椤�</el-button > - <el-button + <el-button v-if="isPage" type="primary" size="mini" :disabled="bottom" @@ -123,6 +124,8 @@ top:false, bottom:false, index:null, + isPage:false, + isRenew:false, }; }, mounted() { @@ -130,6 +133,7 @@ }, watch: { islook(){ + this.pageObj.page=1 this.getProcessModelList() }, }, @@ -147,8 +151,9 @@ if ( Object.keys(this.listData).length > 0 ) { - this.islook = true; + this.pageObj.page=1 this.getProcessModelList() + this.islook = true; } else { this.islook = false; } @@ -171,9 +176,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 +203,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 +233,9 @@ }, shutdown() { this.islook = false; - this.$emit('updateGet',this.processObj.newNumber,true) + if(this.isRenew){ + this.$emit('updateGet',this.processObj.newNumber,true) + } }, }, }; @@ -420,7 +430,7 @@ width:calc(100% - 20px); .title-item{ width:calc(50% - 30px); - height:77px; + height:92px; padding:23px 10px 10px; background:#31478f; border-radius: 8px; @@ -443,7 +453,7 @@ .item-r{ width:calc(100% - 60px); float:left; - line-height:25px; + line-height:22px; color:#fff; font-size:15px; cursor:pointer; -- Gitblit v1.8.0