|
@@ -1,70 +1,72 @@
|
|
|
<view>
|
|
|
- <view class="flex-box-ce header margin-bottom">
|
|
|
- <view class="{{tabIndex==1? 'tabs':''}} flex-1" onTap="tabAction" data-index="1">我参与管理</view>
|
|
|
- <view class="{{tabIndex==2? 'tabs':''}} flex-1" onTap="tabAction" data-index="2">我参与评分</view>
|
|
|
- </view>
|
|
|
- <view class="main margin-bottom">
|
|
|
- <view class="flex-box-ce">
|
|
|
- <view class="flex-2 flex-box-ce flex-center-center font-flex-word" catchTap="openSelect">
|
|
|
- <text class="text font-flex-word">{{jxName}}</text>
|
|
|
- <text class="iconfont icon-jiantouxia"></text>
|
|
|
- </view>
|
|
|
- <view class="flex-1 flex-box-ce flex-center-center">
|
|
|
- <picker onChange="activeItem" value="{{minuteIndex}}" range="{{minuteArray}}" range-key="name">
|
|
|
- <text class="text font-flex-word">{{minuteArray[minuteIndex].name}}</text>
|
|
|
- </picker>
|
|
|
- <text class="iconfont icon-jiantouxia"></text>
|
|
|
- </view>
|
|
|
+ <block a:if="{{defaultRuleId}}">
|
|
|
+ <view class="flex-box-ce header margin-bottom">
|
|
|
+ <view class="{{tabIndex==1? 'tabs':''}} flex-1" onTap="tabAction" data-index="1">我参与管理</view>
|
|
|
+ <view class="{{tabIndex==2? 'tabs':''}} flex-1" onTap="tabAction" data-index="2">我参与评分</view>
|
|
|
</view>
|
|
|
- <form onReset="onReset">
|
|
|
- <view class="search flex-box-ce">
|
|
|
- <image mode="widthFix" src="../../../image/ss.png" />
|
|
|
- <input placeholder="请输入姓名" onInput="bindKeyInput" onConfirm="bindKeyInput" class="flex-1" />
|
|
|
- <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
|
|
|
- </view>
|
|
|
- </form>
|
|
|
- <view style="height:0.22rem"></view>
|
|
|
- </view>
|
|
|
- <scroll-view class="scroll" style="height: calc(100vh - 3rem)" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
|
|
|
- <view class="flex-box-ce li border-bottom flex-d-wrap" data-item="{{item}}" catchTap="openDetail" a:for="{{list}}">
|
|
|
- <img-box id="{{item.userInfo.id}}" name="{{item.userInfo.name}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
|
|
|
- <view class="flex-1" style="margin:0 0.2rem;">
|
|
|
- <view class="name flex-1">{{item.userInfo.name}}</view>
|
|
|
- <view class="fontColorX font-flex-word" style="font-size: 0.28rem;width: 3.5rem;" a:if="{{item.dept_list.length>0}}">
|
|
|
- <text a:for="{{item.dept_list}}" a:for-item="item2" a:for-index="index2">{{ item2.name }}<text a:if="{{item.dept_list.length - index2 > 1}}">,</text></text>
|
|
|
+ <view class="main margin-bottom">
|
|
|
+ <view class="flex-box-ce">
|
|
|
+ <view class="flex-2 flex-box-ce flex-center-center font-flex-word" catchTap="openSelect">
|
|
|
+ <text class="text font-flex-word">{{jxName}}</text>
|
|
|
+ <text class="iconfont icon-jiantouxia"></text>
|
|
|
+ </view>
|
|
|
+ <view class="flex-1 flex-box-ce flex-center-center">
|
|
|
+ <picker onChange="activeItem" value="{{minuteIndex}}" range="{{minuteArray}}" range-key="name">
|
|
|
+ <text class="text font-flex-word">{{minuteArray[minuteIndex].name}}</text>
|
|
|
+ </picker>
|
|
|
+ <text class="iconfont icon-jiantouxia"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="main-right">
|
|
|
- <block a:if="{{tabIndex==1}}">
|
|
|
- <text class="green" a:if="{{item.count_record}}">{{item.count_record}}条管理记录</text>
|
|
|
- <text class="fontColorX" a:else>无管理记录</text>
|
|
|
- </block>
|
|
|
- <block a:else>
|
|
|
- <text a:if="{{item.status==0}}" class="yellow">未到评分节点</text>
|
|
|
- <text a:if="{{item.status==1}}" class="blue">待我评分</text>
|
|
|
- <text a:if="{{item.status==2}}" class="orange">我已评分</text>
|
|
|
- <text a:if="{{item.status==3}}" class="orange">已被其他管理评分</text>
|
|
|
- </block>
|
|
|
- <view class="flex-box flex-v-ce" style="margin-top:0.1rem">
|
|
|
+ <form onReset="onReset">
|
|
|
+ <view class="search flex-box-ce">
|
|
|
+ <image mode="widthFix" src="../../../image/ss.png" />
|
|
|
+ <input placeholder="请输入姓名" onInput="bindKeyInput" onConfirm="bindKeyInput" class="flex-1" />
|
|
|
+ <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
|
|
|
+ </view>
|
|
|
+ </form>
|
|
|
+ <view style="height:0.22rem"></view>
|
|
|
+ </view>
|
|
|
+ <scroll-view class="scroll" style="height: calc(100vh - 3rem)" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
|
|
|
+ <view class="flex-box-ce li border-bottom flex-d-wrap" data-item="{{item}}" catchTap="openDetail" a:for="{{list}}">
|
|
|
+ <img-box id="{{item.userInfo.id}}" name="{{item.userInfo.name}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
|
|
|
+ <view class="flex-1" style="margin:0 0.2rem;">
|
|
|
+ <view class="name flex-1">{{item.userInfo.name}}</view>
|
|
|
+ <view class="fontColorX font-flex-word" style="font-size: 0.28rem;width: 3.5rem;" a:if="{{item.dept_list.length>0}}">
|
|
|
+ <text a:for="{{item.dept_list}}" a:for-item="item2" a:for-index="index2">{{ item2.name }}<text a:if="{{item.dept_list.length - index2 > 1}}">,</text></text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="main-right">
|
|
|
<block a:if="{{tabIndex==1}}">
|
|
|
- <view a:if="{{!item.has_finish}}" class="blueBtn">填写管理记录</view>
|
|
|
- <text a:else class="orange">已归档</text>
|
|
|
+ <text class="green" a:if="{{item.count_record}}">{{item.count_record}}条管理记录</text>
|
|
|
+ <text class="fontColorX" a:else>无管理记录</text>
|
|
|
+ </block>
|
|
|
+ <block a:else>
|
|
|
+ <text a:if="{{item.status==0}}" class="yellow">未到评分节点</text>
|
|
|
+ <text a:if="{{item.status==1}}" class="blue">待我评分</text>
|
|
|
+ <text a:if="{{item.status==2}}" class="orange">我已评分</text>
|
|
|
+ <text a:if="{{item.status==3}}" class="orange">已被其他管理评分</text>
|
|
|
+ </block>
|
|
|
+ <view class="flex-box flex-v-ce" style="margin-top:0.1rem">
|
|
|
+ <block a:if="{{tabIndex==1}}">
|
|
|
+ <view a:if="{{!item.has_finish}}" class="blueBtn">填写管理记录</view>
|
|
|
+ <text a:else class="orange">已归档</text>
|
|
|
+ </block>
|
|
|
+ <view class="blueBtn" a:else>查看详情</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="width: 100%;" a:if="{{tabIndex==1}}">
|
|
|
+ <block a:if="{{item.returnStr}}">
|
|
|
+ <view a:if="{{item.returnStr.indexOf('今天')>=0}}" class="orange" style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
+ <view a:elif="{{item.returnStr.indexOf('昨天')>=0}}" class="green" style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
+ <view a:elif="{{item.returnStr.indexOf('前天')>=0}}" style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
+ <view a:else style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
</block>
|
|
|
- <view class="blueBtn" a:else>查看详情</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view style="width: 100%;" a:if="{{tabIndex==1}}">
|
|
|
- <block a:if="{{item.returnStr}}">
|
|
|
- <view a:if="{{item.returnStr.indexOf('今天')>=0}}" class="orange" style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
- <view a:elif="{{item.returnStr.indexOf('昨天')>=0}}" class="green" style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
- <view a:elif="{{item.returnStr.indexOf('前天')>=0}}" style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
- <view a:else style="font-size: 0.28rem;padding-left:1rem;padding-top: 0.24rem;">{{item.returnStr}}</view>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
|
|
|
- </scroll-view>
|
|
|
- <no-data a:if="{{list.length==0}}"></no-data>
|
|
|
+ <view class="noDatas" a:if="{{isData}}">没有更多了</view>
|
|
|
+ </scroll-view>
|
|
|
+ </block>
|
|
|
+ <no-data a:if="{{list.length==0}}" content="暂无考核内容"></no-data>
|
|
|
<view class="box" animation="{{animationInfo}}">
|
|
|
<select-jx defaultId="{{defaultRuleId}}" onConfirm="onSelectItem" onClose="onClose" a:if="{{isShowType}}" />
|
|
|
</view>
|