修复级位证书-不显示问题
Showing
1 changed file
with
21 additions
and
13 deletions
| 1 | <template> | 1 | <template> |
| 2 | <view> | 2 | <view> |
| 3 | <!-- 级位证书发布 --> | 3 | <!-- 级位证书发布 --> |
| 4 | <z-paging ref="paging" v-model="infoList" @query="getQuery" emptyViewImg="/static/nodata.png"> | ||
| 5 | |||
| 6 | |||
| 4 | <view class="appList"> | 7 | <view class="appList"> |
| 5 | <view class="appItem" v-for="item in infoList"> | 8 | <view class="appItem" v-for="(item,index) in infoList" :key="index"> |
| 6 | <view class="status" @click="goDetail(item)"> | 9 | <view class="status" @click="goDetail(item)"> |
| 7 | <text :class="{ | 10 | <text :class="{ |
| 8 | 'text-warning':item.certStatus=='0', | 11 | 'text-warning':item.certStatus=='0', |
| ... | @@ -23,24 +26,21 @@ | ... | @@ -23,24 +26,21 @@ |
| 23 | <view>{{item.memberName||'--'}}</view> | 26 | <view>{{item.memberName||'--'}}</view> |
| 24 | </view> | 27 | </view> |
| 25 | <view> | 28 | <view> |
| 26 | 已发证书 | 29 | 已发/待发 |
| 27 | <view>{{item.hasCerts}}</view> | 30 | <view>{{item.hasCerts}}/<text class="text-primary">{{item.noCerts}}</text></view> |
| 28 | </view> | ||
| 29 | <view> | ||
| 30 | 待发证书 | ||
| 31 | <view>{{item.noCerts}}</view> | ||
| 32 | </view> | 31 | </view> |
| 32 | |||
| 33 | </view> | 33 | </view> |
| 34 | <view class="func" v-if="item.certStatus != '2'"> | 34 | <view class="func" v-if="item.certStatus != '2'"> |
| 35 | <button @click="send(item)">一键生成</button> | 35 | <button @click="send(item)">一键生成</button> |
| 36 | </view> | 36 | </view> |
| 37 | </view> | 37 | </view> |
| 38 | </view> | 38 | </view> |
| 39 | 39 | </z-paging> | |
| 40 | <view class="nodata" v-if="infoList.length==0"> | 40 | <!-- <view class="nodata" v-if="infoList.length==0"> |
| 41 | <image mode="aspectFit" src="/static/nodata.png"></image> | 41 | <image mode="aspectFit" src="/static/nodata.png"></image> |
| 42 | <text>暂无数据</text> | 42 | <text>暂无数据</text> |
| 43 | </view> | 43 | </view> --> |
| 44 | </view> | 44 | </view> |
| 45 | </template> | 45 | </template> |
| 46 | 46 | ||
| ... | @@ -58,8 +58,8 @@ | ... | @@ -58,8 +58,8 @@ |
| 58 | } from '@dcloudio/uni-app' | 58 | } from '@dcloudio/uni-app' |
| 59 | const app = getApp(); | 59 | const app = getApp(); |
| 60 | const queryParams = ref({ | 60 | const queryParams = ref({ |
| 61 | // pageNum: 1, | 61 | pageNum: 1, |
| 62 | // pageSize: 10 | 62 | pageSize: 10, |
| 63 | status: '0', | 63 | status: '0', |
| 64 | type: '1' | 64 | type: '1' |
| 65 | }) | 65 | }) |
| ... | @@ -69,6 +69,7 @@ | ... | @@ -69,6 +69,7 @@ |
| 69 | const total = ref(0) | 69 | const total = ref(0) |
| 70 | const deptType = ref('') | 70 | const deptType = ref('') |
| 71 | const userType = ref('') | 71 | const userType = ref('') |
| 72 | const paging = ref(null) | ||
| 72 | onLoad((option) => { | 73 | onLoad((option) => { |
| 73 | queryParams.value.type = option.type | 74 | queryParams.value.type = option.type |
| 74 | if(option.type==2){ | 75 | if(option.type==2){ |
| ... | @@ -99,7 +100,14 @@ | ... | @@ -99,7 +100,14 @@ |
| 99 | getList() | 100 | getList() |
| 100 | } | 101 | } |
| 101 | 102 | ||
| 102 | 103 | function getQuery(pageNum,pageSize){ | |
| 104 | queryParams.value.pageNum = pageNum, | ||
| 105 | queryParams.value.pageSize = pageSize | ||
| 106 | api.getCertsLList(queryParams.value).then(res => { | ||
| 107 | paging.value.complete(res.rows); | ||
| 108 | total.value = res.total | ||
| 109 | }) | ||
| 110 | } | ||
| 103 | function getList() { | 111 | function getList() { |
| 104 | uni.showLoading({ | 112 | uni.showLoading({ |
| 105 | title: '加载中' | 113 | title: '加载中' | ... | ... |
-
Please register or sign in to post a comment