6ae79474 by 杨炀

修复级位证书-不显示问题

1 parent 58e5a288
<template>
<view>
<!-- 级位证书发布 -->
<z-paging ref="paging" v-model="infoList" @query="getQuery" emptyViewImg="/static/nodata.png">
<view class="appList">
<view class="appItem" v-for="item in infoList">
<view class="appItem" v-for="(item,index) in infoList" :key="index">
<view class="status" @click="goDetail(item)">
<text :class="{
'text-warning':item.certStatus=='0',
......@@ -23,24 +26,21 @@
<view>{{item.memberName||'--'}}</view>
</view>
<view>
已发证书
<view>{{item.hasCerts}}</view>
</view>
<view>
待发证书
<view>{{item.noCerts}}</view>
已发/待发
<view>{{item.hasCerts}}/<text class="text-primary">{{item.noCerts}}</text></view>
</view>
</view>
<view class="func" v-if="item.certStatus != '2'">
<button @click="send(item)">一键生成</button>
</view>
</view>
</view>
<view class="nodata" v-if="infoList.length==0">
</z-paging>
<!-- <view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<text>暂无数据</text>
</view>
</view> -->
</view>
</template>
......@@ -58,8 +58,8 @@
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
// pageNum: 1,
// pageSize: 10
pageNum: 1,
pageSize: 10,
status: '0',
type: '1'
})
......@@ -69,6 +69,7 @@
const total = ref(0)
const deptType = ref('')
const userType = ref('')
const paging = ref(null)
onLoad((option) => {
queryParams.value.type = option.type
if(option.type==2){
......@@ -99,7 +100,14 @@
getList()
}
function getQuery(pageNum,pageSize){
queryParams.value.pageNum = pageNum,
queryParams.value.pageSize = pageSize
api.getCertsLList(queryParams.value).then(res => {
paging.value.complete(res.rows);
total.value = res.total
})
}
function getList() {
uni.showLoading({
title: '加载中'
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!