cyx-ament-wechat/miniprogram/pages/queryList/queryList.wxml

88 lines
3.2 KiB
Plaintext

<!--pages/queryList/queryList.wxml-->
<view class="query_list_wrap">
<view class="search_title">
<view class="title_left">
<van-dropdown-menu active-color="#5199ff">
<van-dropdown-item
value="{{ searchForm.type }}"
options="{{ typeOpt }}"
bind:change="handleSearchType"
/>
</van-dropdown-menu>
</view>
<view class="title_right">
<van-button type="info" bindtap="handleMoreSearchOpen">更多查询</van-button>
<van-button type="default" style="margin-left:10px" bindtap="handleReset">重置</van-button>
</view>
</view>
<pullRefreshView
height="86vh"
bindonrefresh="onRefresh"
refreshing="{{isRefreshing}}"
bindloadmore="onLoadMore"
nomore="{{isFinish}}"
pullText="下拉刷新"
loadmoreText="加载中..."
>
<view class="list_row" data-cattleNum="{{item.name}}" wx:for="{{list}}" wx:key="id" wx:for-item="item">
<view class="list_row_right">
<view>部门:{{item.deptName?item.deptName:'暂无'}}</view>
<view style="color:green">考核类型:{{item.type?item.type:'暂无'}}</view>
<view>考核指标:{{item.target?item.target:'暂无'}}</view>
<view>指标明细:{{item.detailed?item.detailed:'暂无'}}</view>
<view>标准分:{{item.score?item.score:'暂无'}}</view>
<view>当前分数:{{item.nowScore?item.nowScore:'暂无'}}</view>
<view>当前分数:{{item.point}}</view>
</view>
</view>
</pullRefreshView>
</view>
<!--更多查询组件-->
<van-popup
show="{{ moreSearchShow }}"
position="top"
bind:close="handleMoreSearchClose"
>
<view class="more_search_wrap">
<van-dropdown-menu active-color="#5199ff">
<van-dropdown-item
value="{{ searchForm.deptId }}"
options="{{ deptOpt }}"
bind:change="handleSearchDept"
/>
</van-dropdown-menu>
<van-dropdown-menu active-color="#5199ff">
<van-dropdown-item
value="{{ searchForm.head }}"
options="{{ personOpt }}"
bind:change="handleSearchPerson"
/>
</van-dropdown-menu>
<view style="width:50%;margin:0 auto">
<van-field
value="{{ targetValue }}"
readonly
placeholder="请选择指标"
bind:tap="handleTargetOpen"
/>
</view>
</view>
</van-popup>
<!--指标选择-->
<van-popup
show="{{ targetShow }}"
position="top"
bind:close="handleTargetClose"
>
<view class="target_wrap">
<van-tree-select
items="{{ targetOpt }}"
main-active-index="{{ mainActiveIndex }}"
active-id="{{ activeId }}"
bind:click-nav="handleTargetNav"
bind:click-item="handleTargettem"
/>
</view>
</van-popup>