From d27c0f26c45433c87ac677c56bc9fc50ed7def73 Mon Sep 17 00:00:00 2001 From: WX <1377869194@qq.com> Date: 星期五, 21 七月 2023 16:24:09 +0800 Subject: [PATCH] 1 --- src/views/resourceQuery/resourceQuery.vue | 36 +++++++++++++++++++----------------- 1 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/views/resourceQuery/resourceQuery.vue b/src/views/resourceQuery/resourceQuery.vue index 901b451..7917bbf 100644 --- a/src/views/resourceQuery/resourceQuery.vue +++ b/src/views/resourceQuery/resourceQuery.vue @@ -136,7 +136,13 @@ </div> </div> <div class="bottom_box"> - <span class="msg_box">鏄剧ず绗瑊{paginationData.pageNo}}鍒皗{paginationData.pageSize}}鏉★紝鍏眥{list.length}}鏉¤褰曪紝宸查�夋嫨{{listChecked.length}}鏉�</span> + <span class="msg_box" + >鏄剧ず绗瑊{ paginationData.pageNo }}鍒皗{ + paginationData.pageSize + }}鏉★紝鍏眥{ list.length }}鏉¤褰曪紝宸查�夋嫨{{ + listChecked.length + }}鏉�</span + > <div class="bottom_btn"> <el-button type="primary" class="btnbox">鍏ㄩ��</el-button> <el-button type="primary" class="btnbox delbtn">鍙栨秷</el-button> @@ -152,11 +158,10 @@ <div class="table_td">灞炴��</div> <div class="table_td">灞炴�у��</div> </div> - <div class="table_tr" v-for="(e,i) in tableList" :key="i"> + <div class="table_tr" v-for="(e, i) in tableList" :key="i"> <div class="table_td">{{ e.name }}</div> <div class="table_td">{{ e.value }}</div> </div> - </div> </div> </div> @@ -170,10 +175,10 @@ }, data() { return { - paginationData:{ - pageNo: 1, - pageSize: 10 - }, + paginationData: { + pageNo: 1, + pageSize: 10, + }, tableList: [ { name: "dataid", @@ -243,7 +248,6 @@ }, ], detailsBox: false, - }; }, methods: { @@ -261,17 +265,15 @@ if (val.checked) { this.listChecked.push(val); } - - if( this.listChecked.length > 0 ) { - if(!val.checked){ - this.listChecked.forEach((e,i)=>{ -if(e.name==val.name){ - this.listChecked.splice(i,1) -} -}) + if (this.listChecked.length > 0) { + if (!val.checked) { + this.listChecked.forEach((e, i) => { + if (e.name == val.name) { + this.listChecked.splice(i, 1); + } + }); } - } }, }, -- Gitblit v1.9.3