|
|
@@ -10,7 +10,7 @@
|
|
|
<view class="org-info-box" v-for="(item,index) in userPosList" :key="index">
|
|
|
<view class="org-info">{{item.name || '-'}}</view>
|
|
|
<!-- <view class="org-line"></view> -->
|
|
|
- <view class="org-info">{{item.position || '-'}}</view>
|
|
|
+ <view class="org-info">{{item.position}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class="img-name-box" v-if="!isAuth" style="height: 180rpx;">
|
|
|
@@ -21,13 +21,6 @@
|
|
|
|
|
|
<view>
|
|
|
<view class="active-title-box">
|
|
|
-<!-- <uni-datetime-picker
|
|
|
- class="time-select-box"
|
|
|
- type="date"
|
|
|
- :value="single"
|
|
|
- @change="change"
|
|
|
- :clear-icon="false"
|
|
|
- /> -->
|
|
|
<picker mode="date" fields="year" @change="bindDateChange" class="picker-class" style="margin-left: 2%; width: 15%;">
|
|
|
<view class="uni-input display-between items-center">{{dateYear}}年<image src="/static/calendar_icon.svg" mode="aspectFit" style="top: 18rpx;"></image></view>
|
|
|
</picker>
|
|
|
@@ -43,24 +36,30 @@
|
|
|
|
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback">
|
|
|
<view class="active-box" v-for="(item,index) in activiList" :key="index" @click="goList(item.id)">
|
|
|
- <view class="active-type" :class="{'bg-yellow':item.type == '组织建设' ,'bg-red':item.type == '学习培训','bg-blue':item.type == '参政议政',}" >
|
|
|
- {{item.type}}
|
|
|
+ <view class="active-type" :class="{'bg-yellow':item.type == '组织建设' ,'bg-red':item.type == '学习培训','bg-blue':item.type == '参政议政','bg-gray':item.type == '社会活动'}" >
|
|
|
+ <view style="width: 55%;">{{item.type}}</view>
|
|
|
</view>
|
|
|
<view class="active-content-box">
|
|
|
<view class="active-content">
|
|
|
<view class="active-name">{{item.name}}</view>
|
|
|
- <view class="active-date">{{item.start_time}}</view>
|
|
|
</view>
|
|
|
<view class="active-content">
|
|
|
<view style="margin-right:10rpx;">{{item.branch}}</view>
|
|
|
<view class="author-box">{{item.author}}</view>
|
|
|
<view style="margin-left:10rpx;">记录数:({{item.process_count}}/<text style="color:red;">{{item.process_unread_count}}</text>)</view>
|
|
|
</view>
|
|
|
+ <view class="active-content" style="justify-content: space-between;">
|
|
|
+ <view class="active-date">{{item.start_time}}</view>
|
|
|
+ <view class="edit-icon-box">
|
|
|
+ <image src="/static/edit-icon.png" mode="aspectFit" v-show="item.edit_auth" @click.stop="goEditPage(item.id)" style="margin-right:10rpx;"></image>
|
|
|
+ <image src="/static/del-icon.png" mode="aspectFit" v-show="item.del_auth" @click.stop="delActive(item.id)"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="edit-icon-box">
|
|
|
+ <!-- <view class="edit-icon-box">
|
|
|
<image src="/static/edit-icon.png" mode="aspectFit" v-show="item.edit_auth" @click.stop="goEditPage(item.id)" style="margin-right: 20rpx;"></image>
|
|
|
<image src="/static/del-icon.png" mode="aspectFit" v-show="item.del_auth" @click.stop="delActive(item.id)"></image>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</mescroll-body>
|
|
|
|
|
|
@@ -77,8 +76,8 @@ export default {
|
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
|
data() {
|
|
|
return {
|
|
|
- dateYear:new Date().getFullYear(),
|
|
|
- dateMonth:new Date().getMonth() + 1,
|
|
|
+ dateYear:'全',
|
|
|
+ dateMonth:'全',
|
|
|
arrayMonth:["1", "2","3", "4","5", "6","7", "8","9", "10","11", "12"],
|
|
|
userHeadImg: getApp().globalData.user_headUrl,
|
|
|
userNickName:getApp().globalData.user_name,
|
|
|
@@ -93,7 +92,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getActiveList(this.branchId)
|
|
|
+ // this.getActiveList(this.branchId)
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.getUserInfoBranch()
|
|
|
@@ -211,12 +210,13 @@ export default {
|
|
|
},
|
|
|
bindDateChange(e){
|
|
|
this.dateYear = e.target.value;
|
|
|
+ this.getActiveList(this.branchId)
|
|
|
},
|
|
|
bindDateMonthChange(e){
|
|
|
this.dateMonth = this.arrayMonth[e.target.value];
|
|
|
+ this.getActiveList(this.branchId)
|
|
|
},
|
|
|
bindPickerChange: function(e) {
|
|
|
- console.log('picker发送选择改变,携带值为', e.target.value)
|
|
|
this.branchValue = this.branchArray[e.target.value].name;
|
|
|
this.branchId = this.branchArray[e.target.value].id;
|
|
|
this.getActiveList(this.branchId)
|
|
|
@@ -420,6 +420,10 @@ export default {
|
|
|
font-size: 28rpx;
|
|
|
background: #fff;
|
|
|
}
|
|
|
+.org-info {
|
|
|
+ width: 50%;
|
|
|
+ padding-left: 10%;
|
|
|
+}
|
|
|
.org-line {
|
|
|
width: 1px;
|
|
|
height: 82rpx;
|
|
|
@@ -469,13 +473,13 @@ export default {
|
|
|
align-items: center;
|
|
|
position: relative;
|
|
|
font-size: 28rpx;
|
|
|
- padding: 30rpx;
|
|
|
+ padding: 20rpx;
|
|
|
border-bottom: 1px solid #d7d7d7;
|
|
|
.active-type {
|
|
|
width: 100rpx;
|
|
|
height: 100rpx;
|
|
|
border-radius: 50%;
|
|
|
- background-color: yellow;
|
|
|
+ background-color: aquamarine;
|
|
|
text-align: center;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
@@ -484,7 +488,8 @@ export default {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.active-content-box {
|
|
|
- height: 120rpx;
|
|
|
+ width:83%;
|
|
|
+ // height: 120rpx;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
margin-left: 20rpx;
|
|
|
@@ -493,7 +498,7 @@ export default {
|
|
|
.active-content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- height: 45rpx;
|
|
|
+ // height: 45rpx;
|
|
|
font-size: 26rpx;
|
|
|
.author-box {
|
|
|
border-left: 1px solid #d7d7d7;
|
|
|
@@ -511,17 +516,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.edit-icon-box {
|
|
|
- position: absolute;
|
|
|
- right: 10px;
|
|
|
- top: 10px;
|
|
|
+ // position: absolute;
|
|
|
+ // right: 10px;
|
|
|
+ // top: 10px;
|
|
|
+ margin-top: 10rpx;
|
|
|
image {
|
|
|
- width: 35rpx;
|
|
|
- height: 35rpx;
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
}
|
|
|
}
|
|
|
.bg-yellow {
|
|
|
background-color: #ffdd40;
|
|
|
}
|
|
|
+ .bg-gray {
|
|
|
+ background-color: darkgrey;
|
|
|
+ }
|
|
|
.bg-red {
|
|
|
background-color: #ec808d;
|
|
|
}
|