From ba3c63b9f6823f86bbbc73f407b242bc8c8d76a8 Mon Sep 17 00:00:00 2001 From: wk Date: 星期六, 29 六月 2024 16:47:52 +0800 Subject: [PATCH] feat:门卫取样员库管样式更改和临时入场样式更改 --- pages/quality-inspection-page/salt-total-sampling/salt-total-sampling.vue | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/pages/quality-inspection-page/salt-total-sampling/salt-total-sampling.vue b/pages/quality-inspection-page/salt-total-sampling/salt-total-sampling.vue index 4e85da4..dd21c02 100644 --- a/pages/quality-inspection-page/salt-total-sampling/salt-total-sampling.vue +++ b/pages/quality-inspection-page/salt-total-sampling/salt-total-sampling.vue @@ -7,11 +7,27 @@ <h1>娣诲姞鍘熺洂鍏ㄦ鍙栨牱</h1> </view> </view> + <u-empty + class="empty-box" + mode="data" + icon="http://cdn.uviewui.com/uview/empty/data.png" + textSize="30" + width="300" + height="300" + text="鏆傛棤鏁版嵁" + v-if="emptyShow"> + </u-empty> <div class="edc-sampling-main-inside"> <view class="edc-sampling-card" v-for="item in edcList" :key="item.id"> <view class="edc-sampling-line"> <h1>渚涘簲鍟嗭細{{item.customerName}}</h1> + <!-- #ifdef H5 --> <view class="status" :class="statusClassComputed(item.status)" v-if="item.status">{{statusComputed(item.status)}}</view> + <!-- #endif --> + + <!-- #ifdef MP-WEIXIN --> + <view class="status" v-if="item.status">{{statusComputed(item.status)}}</view> + <!-- #endif --> </view> <view class="edc-sampling-line"> <h2>閲囨牱鍦扮偣锛歿{item.bunkerName}}</h2> @@ -56,6 +72,7 @@ data() { return { edcList:[], + emptyShow: false, size:10, current:1, total:0, @@ -88,6 +105,7 @@ return '' } }, + /* #ifdef H5 */ statusClassComputed(status) { if(status == 1) { return 'blue' @@ -107,6 +125,7 @@ return '' } }, + /* #endif */ async getPageList(callBack) { uni.showLoading({ title: "鍔犺浇涓�" @@ -124,6 +143,11 @@ const res = await this.$reqGet('pageList',{current:this.current,size:this.size,type:this.type}) uni.hideLoading() this.edcList = [...this.edcList,...res.data.records] + if(this.edcList == 0) { + this.emptyShow = true + }else { + this.emptyShow = false + } this.total = res.data.total callBack && callBack() }catch (err) { @@ -298,6 +322,14 @@ font-size: 30rpx; color: #999999; } + .empty-box{ + margin: auto; + position: absolute; + top: 24%; + left: 50%; + transition: (50%, -50%); + transform: translate(-50%, -24%); + } } } </style> -- Gitblit v1.9.1