From 75811022288e2c4832974a1586f442608706c30a Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 12 九月 2024 17:40:10 +0800 Subject: [PATCH] feat:司机接单pvc吨数提示 --- pages/quality-inspection-page/yanGaiMei-sampling/yanGaiMei-sampling.vue | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/pages/quality-inspection-page/yanGaiMei-sampling/yanGaiMei-sampling.vue b/pages/quality-inspection-page/yanGaiMei-sampling/yanGaiMei-sampling.vue index 3bc8a53..2ca4cf4 100644 --- a/pages/quality-inspection-page/yanGaiMei-sampling/yanGaiMei-sampling.vue +++ b/pages/quality-inspection-page/yanGaiMei-sampling/yanGaiMei-sampling.vue @@ -1,6 +1,16 @@ <template> <view class="yanGaiMei-sampling-wrap"> <div class="edc-sampling-main"> + <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> <view class="yanGaiMei-sampling-add"> <view class="add-box" @click="addYanGaiMeiForm"> <u-image src="/static/image/quality/addIcon.png" mode="widthFix"></u-image> @@ -62,11 +72,12 @@ data() { return { edcList:[], + emptyShow:false, //绌洪〉闈㈡槸鍚︽樉绀� size:10, current:1, total:0, flag:false, - type:6, //1 EDC銆�2 PVC銆�3 纭吀銆�4 姘㈡哀鍖栭挔 5 娑叉隘 6銆佸師鐩愰挋闀� 7銆佸師鐩怲OC 8銆佸師鐩愬叏妫� + type:6, //1 EDC銆�2 鑱氭隘涔欑儻鏍戣剛銆�3 纭吀銆�4 姘㈡哀鍖栭挔 5 娑叉隘 6銆佸師鐩愰挋闀� 7銆佸師鐩怲OC 8銆佸師鐩愬叏妫� } }, onShow() { @@ -132,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) { @@ -305,6 +321,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