|
@@ -55,20 +55,20 @@
|
|
|
<view class="cn">
|
|
|
<view class="lable">
|
|
|
<text>审批中心</text>
|
|
|
- <text class="more">更多></text>
|
|
|
+ <text class="more" @click="go('/pages/home/list')">更多></text>
|
|
|
</view>
|
|
|
<view class="list">
|
|
|
<view class="tab"><u-tabs :list="tab" :current="current" @click="click"></u-tabs></view>
|
|
|
- <view class="item" v-for="(item, index) in list" :key="index" @click="detail(item.formId,item.docId)">
|
|
|
+ <view class="spitem" v-for="(item, index) in list" :key="index" @click="detail(item.formId, item.docId)">
|
|
|
<view class="title">
|
|
|
<text class="icon"></text>
|
|
|
- <text>{{item.flowName}}</text>
|
|
|
- <text>{{item.subject}}</text>
|
|
|
+ <text class="tit">[{{ item.flowName }}]</text>
|
|
|
+ <view class="dev">{{ item.subject.summaryText }}</view>
|
|
|
</view>
|
|
|
<view class="desc">
|
|
|
- <view class="name">{{item.initiator}}</view>
|
|
|
- <view class="bm omit">{{item.initiatorDept}}</view>
|
|
|
- <view class="date">{{item.actionTime}}</view>
|
|
|
+ <view class="name">{{ item.initiator }}</view>
|
|
|
+ <view class="bm omit">{{ item.initiatorDept }}</view>
|
|
|
+ <view class="date">{{ item.actionTime }}</view>
|
|
|
</view>
|
|
|
<view class="clear"></view>
|
|
|
</view>
|
|
@@ -91,20 +91,18 @@ export default {
|
|
|
this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
- getData() {
|
|
|
- this.http.request({
|
|
|
- url: this.http.urls.myPending,
|
|
|
-
|
|
|
- success: res => {
|
|
|
- console.log('gfgh===1111' + JSON.stringify(res.data.data.datas));
|
|
|
- //let totalPage = res.data.data.row_count < 10 ? 1 : res.data.data.row_count / 10;
|
|
|
- //this.loadMore = totalPage > this.param._currpage ? true : false;
|
|
|
- //res.data.data.data.forEach(item => {
|
|
|
- this.list=res.data.data.datas;
|
|
|
- //});
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
+ getData() {
|
|
|
+ this.http.request({
|
|
|
+ url: this.http.urls.myPending,
|
|
|
+ success: res => {
|
|
|
+ this.list = res.data.data.datas;
|
|
|
+ this.list.forEach(item => {
|
|
|
+ item.subject=JSON.parse(item.subject);
|
|
|
+ item.subject.summaryText=item.subject.summaryText.replace(/\r|\n/ig,"");
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//跳转
|
|
|
go(url) {
|
|
|
uni.navigateTo({ url: url });
|
|
@@ -205,37 +203,6 @@ page {
|
|
|
border-radius: 3px;
|
|
|
margin-top: 7px;
|
|
|
}
|
|
|
- .item {
|
|
|
- margin-top: 10px;
|
|
|
- padding: 10px 5px 15px 5px;
|
|
|
- border-bottom: 1px solid #f0f2f7;
|
|
|
- &:last-child {
|
|
|
- border: 0px;
|
|
|
- }
|
|
|
- .title {
|
|
|
- font-size: 17px;
|
|
|
- color: $font-c;
|
|
|
- .icon {
|
|
|
- padding-right: 5px;
|
|
|
- }
|
|
|
- }
|
|
|
- .desc {
|
|
|
- font-size: 14px;
|
|
|
- color: #848484;
|
|
|
- padding-top: 5px;
|
|
|
- .name {
|
|
|
- float: left;
|
|
|
- padding-right: 10px;
|
|
|
- }
|
|
|
- .bm {
|
|
|
- float: left;
|
|
|
- width: 40%;
|
|
|
- }
|
|
|
- .date {
|
|
|
- float: right;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|