From 645834e1c3efb3a8c50dcbda98d87caba04bd421 Mon Sep 17 00:00:00 2001 From: fei.wang <wf18701153496@163.com> Date: 星期三, 13 八月 2025 14:34:02 +0800 Subject: [PATCH] v1.2.8 --- pages/index/main.vue | 65 ++++++++++++++------------------ 1 files changed, 28 insertions(+), 37 deletions(-) diff --git a/pages/index/main.vue b/pages/index/main.vue index 629a27c..905e9c3 100644 --- a/pages/index/main.vue +++ b/pages/index/main.vue @@ -17,10 +17,13 @@ <view v-for="(item, index) in list" :key="index"> + <view> + <tn-button class="modal-btn" backgroundColor="#01BEFF" size="sm" @click="itemClick(item,index)">鍒犻櫎</tn-button> <view style="display: flex;margin-top: 10px;"> + <!-- <u-checkbox-group v-model="item.checked" placement="column" @change="checkboxChange(item)"> <u-checkbox :customStyle="{marginTop: '5px'}"> </u-checkbox> @@ -28,21 +31,31 @@ <view style="margin-left: 23px;margin-bottom: 10px;font-size: 20px;">鍛婅绫诲瀷:{{item.warntype}} </view> </view> +<view style="display: flex;"> + <!-- <view>{{index+1}}</view> + <view style="margin-left: 15px;margin-bottom: 10px;color: #5e5e5e;">缂栧彿:{{item.tagid}} + </view> + <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">鍚嶇О:{{item.pname}}</view> --> + <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">瑙﹀彂鍥存爮:{{item.baoliu1}} + </view> + </view> <view style="display: flex;"> - - <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">ID:{{item.tagid}} + <view>{{index+1}}</view> + <view style="margin-left: 15px;margin-bottom: 10px;color: #5e5e5e;">缂栧彿:{{item.tagid}} </view> <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">鍚嶇О:{{item.pname}}</view> - - <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">瑙﹀彂鍥存爮:{{item.baoliu1}}</view> + + <!-- <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">瑙﹀彂鍥存爮:{{item.baoliu1}} + </view> --> </view> - <view style="display: flex;"> + <view style="display: flex;"> <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">璁惧绫诲瀷:{{item.pbaoliu1}} </view> - <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">鍛婅绫诲瀷:{{item.ptype}}</view> - + <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">鍛婅绫诲瀷:{{item.ptype}} + </view> + <!-- <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">瑙﹀彂鍥存爮:{{item.baoliu1}}</view> --> </view> <!-- <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;"> @@ -53,11 +66,11 @@ <u-line style="margin-left: 14px;"></u-line> </view> </view> - + </data-list> - + </view> - <!-- <page-pagination :total="page.total" layout="total,first,prev,page,next,last,limit,jumper"></page-pagination> --> + <!-- <page-pagination :total="page.total" layout="total,first,prev,page,next,last,limit,jumper"></page-pagination> --> <tn-skeleton :show="showSkeleton"></tn-skeleton> <successCom ref="refSuccess"></successCom> </view> @@ -157,20 +170,6 @@ this.lock = true }, methods: { - // change(currentPage, type) { // 褰撳墠椤垫敼鍙� - // this.page.currentPage = currentPage; - // console.log("鐐瑰嚮浜�" + type + "锛屽綋鍓嶉〉锛�" + currentPage); - // }, - // sizeChange(pageSize) { // 姣忛〉鏉℃暟鏀瑰彉 - // this.page.pageSize = pageSize; - // console.log("姣忛〉", pageSize, "鏉�"); - // }, - // changeTotal() { // 鏇存敼鎬绘潯鏁� - // this.page.total = 555 - // }, - // changeCurrentPage() { // 鏇存敼褰撳墠椤� - // this.page.currentPage = 3 - // }, moreprocessing() { const params = { ids: this.checkboxValue1 @@ -215,16 +214,14 @@ }, // 妯℃嫙璇锋眰鍔犺浇鏁版嵁 handleLoad(data, callback) { - console.log(data); const params = { current: data.page, size: data.size, company: this.company, - juese:uni.getStorageSync('juese'), + juese: uni.getStorageSync('juese'), } if (this.vuex_is_login) { findwarning(params).then((res) => { - console.log(res); if (res.code == 0) { let list = []; setTimeout(() => { @@ -232,9 +229,8 @@ for (var i = 0; i < res.data.records.length; i++) { list.push(res.data.records[i]); } - this.list = [] + // this.list = [] this.list = [...this.list, ...list]; - console.log(this.list); callback({ list: this.list, total: res.data.total @@ -254,7 +250,7 @@ current: 1, size: 10, objectid: this.keyword, - juese:uni.getStorageSync('juese'), + juese: uni.getStorageSync('juese'), company: this.company, } if (this.vuex_is_login) { @@ -279,30 +275,25 @@ }, // 妯℃嫙璇锋眰鏁版嵁鍒锋柊 handleRefresh(data, callback) { - + const params = { current: data.page, size: data.size, objectid: data.objectid, company: this.company, - juese:uni.getStorageSync('juese'), + juese: uni.getStorageSync('juese'), } if (this.vuex_is_login) { findwarning(params).then((res) => { - console.log(res); if (res.code == 0) { let list = []; setTimeout(() => { let list = []; - console.log(res.data.records.length); for (var i = 0; i < res.data.records.length; i++) { - console.log(111); list.push(res.data.records[i]); } - console.log(list); this.list = [] this.list = [...this.list, ...list]; - console.log(this.list); callback({ list: this.list, total: res.data.total -- Gitblit v1.9.3