Commit 14c778c5 by 莫晓莉

mxl

parent d6322a40
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{ {
"path": "pages/main/main", "path": "pages/main/main",
"style": { "style": {
"navigationBarTitleText": "登录模板" "navigationBarTitleText": "残联评价app"
} }
}, },
{ {
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
,{ ,{
"path" : "pages/service-apl-history/service-apl-history", "path" : "pages/service-apl-history/service-apl-history",
"style" : { "style" : {
"navigationBarTitleText": "审批记录 " "navigationBarTitleText": "申请记录 "
} }
} }
], ],
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view :data-current="index" @click="ontabtap" class="tybe-tab" :class="statusIndex==index ? 'z-active' : ''">{{tab.name}}</view> <view :data-current="index" @click="ontabtap" class="tybe-tab" :class="statusIndex==index ? 'z-active' : ''">{{tab.name}}</view>
</block> </block>
</view> </view>
<block v-if="statusIndex==0"> <!-- <block v-if="statusIndex==0"> -->
<view class="list-area"> <view class="list-area">
<view v-for="(item,index) in applyProjectList" :key="index" class="m-his-list" style=""> <view v-for="(item,index) in applyProjectList" :key="index" class="m-his-list" style="">
<view class="his-item">申请人:{{item.name}}</view> <view class="his-item">申请人:{{item.name}}</view>
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
<view class="his-item-result mt10">审批结果:{{item.applyResult}}</view> <view class="his-item-result mt10">审批结果:{{item.applyResult}}</view>
</view> </view>
</view> </view>
</block> <view v-if="applyProjectList.length==0" style="text-align: center;padding:150upx 0;">
没有数据
</view>
<!-- </block> -->
</view> </view>
</template> </template>
...@@ -30,7 +34,7 @@ ...@@ -30,7 +34,7 @@
return { return {
page:1, page:1,
size:5, size:5,
hasMore:true, hasMore:false,
statusIndex:0, statusIndex:0,
StatusList:[ StatusList:[
{ {
...@@ -101,17 +105,19 @@ ...@@ -101,17 +105,19 @@
methods: { methods: {
ontabtap(e){ ontabtap(e){
let index = e.target.dataset.current || e.currentTarget.dataset.current; let index = e.target.dataset.current || e.currentTarget.dataset.current;
var noneArray=[];
if(this.statusIndex==index){ if(this.statusIndex==index){
return return
} }
this.statusIndex=index; this.statusIndex=index;
this.applyProjectList=noneArray;
this.page=1;
this.getApplyProject(); this.getApplyProject();
}, },
// 分页获取列表 // 分页获取列表
getApplyProject(){ getApplyProject(){
getApplyProject({page:this.page,size:this.size}).then(res => { getApplyProject({status:this.statusIndex,page:this.page,size:this.size}).then(res => {
if (res.code != 200) { if (res.code != 200) {
uni.showToast({ uni.showToast({
title: '系统繁忙,加载失败!', title: '系统繁忙,加载失败!',
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</view> </view>
<view class="center-list-item" @click="aplHis"> <view class="center-list-item" @click="aplHis">
<text class="list-icon">&#xe65f;</text> <text class="list-icon">&#xe65f;</text>
<text class="list-text">服务申请记录</text> <text class="list-text">申请记录</text>
<text class="navigat-arrow">&#xe65e;</text> <text class="navigat-arrow">&#xe65e;</text>
</view> </view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment