【update】 起草组会议相关判断的增加
This commit is contained in:
+46
-10
@@ -7,7 +7,7 @@ Page({
|
||||
data: {
|
||||
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
||||
index: 0,
|
||||
type: '', // project 是来款项目 work 是工作组 ziliao是资料网员
|
||||
type: '', // project 是来款项目 work 是工作组 ziliao是资料网员 draft 是起草组
|
||||
list: [], // 项目列表
|
||||
searchParams: {
|
||||
pageNo: 1,
|
||||
@@ -22,6 +22,14 @@ Page({
|
||||
pageTitle:'项目'
|
||||
}
|
||||
},
|
||||
// 编辑联系人信息
|
||||
editContactsInfo(e) {
|
||||
// 跳转到联系人页面
|
||||
wx.navigateTo({
|
||||
url: `../contacts/contacts?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&workingGroupId=${e.currentTarget.dataset.project.workingGroupId}`,
|
||||
})
|
||||
|
||||
},
|
||||
goBack(){
|
||||
wx.navigateBack()
|
||||
},
|
||||
@@ -156,6 +164,28 @@ Page({
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
} else if(this.data.type == 'draft'){
|
||||
UserApi.draftList(this.data.searchParams).then(res=>{
|
||||
if(res.success){
|
||||
// 搜索时,把原数据清空,重新筛选
|
||||
if(that.data.searchParams.pageNo === 1) {
|
||||
that.setData({
|
||||
list: []
|
||||
})
|
||||
}
|
||||
if(res.result.records && res.result.records.length){
|
||||
that.setData({
|
||||
list: [...that.data.list, ...res.result.records]
|
||||
})
|
||||
}
|
||||
}
|
||||
}).catch(err=>{
|
||||
wx.showToast({
|
||||
title: '加载失败',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -180,20 +210,26 @@ Page({
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.data.type = options.type
|
||||
let pageTitle = ''
|
||||
switch(options.type){
|
||||
case 'ziliao': this.setData({
|
||||
pageTitle:'资料网员'
|
||||
})
|
||||
case 'ziliao':
|
||||
pageTitle = '资料网员'
|
||||
break
|
||||
case 'work': this.setData({
|
||||
pageTitle:'工作组'
|
||||
})
|
||||
case 'work':
|
||||
pageTitle = '工作组'
|
||||
break
|
||||
default : this.setData({
|
||||
pageTitle:'项目'
|
||||
})
|
||||
case 'draft':
|
||||
pageTitle = '起草组'
|
||||
break
|
||||
default :
|
||||
pageTitle = '项目'
|
||||
break
|
||||
}
|
||||
this.setData({
|
||||
pageTitle: pageTitle,
|
||||
type: this.data.type
|
||||
})
|
||||
|
||||
this.loadData()
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -46,6 +46,13 @@
|
||||
<view class="item-content"><text>运行周期:</text>{{item.operationCycle || ''}}</view>
|
||||
<view class="item-content">缴费凭证:{{item.paymentStatus_dictText || '无'}}</view>
|
||||
</block>
|
||||
<!-- 工作组和起草组有 联系人字段 -->
|
||||
<view class="content-btn" wx:if="{{type === 'work' || type === 'draft'}}">
|
||||
<view class="inner-btn-box" data-project="{{item}}" catchtap="editContactsInfo">
|
||||
<image src="../../assets/images/icon_edit.png"></image>
|
||||
<text>联系人</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 工作组项目展示end -->
|
||||
<!-- 应该是不要了 -->
|
||||
<!-- <view class="content-text">
|
||||
|
||||
@@ -101,3 +101,35 @@ page {
|
||||
.all{
|
||||
color: #069F99;
|
||||
}
|
||||
|
||||
/* 列表页的操作按钮==开始 */
|
||||
.content-btn {
|
||||
margin-top: 10rpx;
|
||||
padding-top: 10px;
|
||||
border-top: 2rpx solid #f5f5f5;
|
||||
border-top: 2rpx solid #f5f5f5;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content-btn .inner-btn-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 50rpx;
|
||||
}
|
||||
|
||||
.content-btn .inner-btn-box image {
|
||||
width: 23rpx;
|
||||
height: 24rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.content-btn .inner-btn-box text {
|
||||
font-size: 24rpx;
|
||||
font-weight: 300;
|
||||
color: #069F99;
|
||||
}
|
||||
/* 列表页的操作按钮==结束 */
|
||||
|
||||
Reference in New Issue
Block a user