You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bocai_supplyChain/pages/memberGroupList/index.wxml

85 lines
6.0 KiB
Plaintext

<scroll-view class="container" scroll-x="false" scroll-y="true" upper-threshold="50" lower-threshold="50" scroll-top="0" scroll-left="0" scroll-into-view scroll-with-animation="false" enable-back-to-top="false">
<view class="titlelist1 dn" hover-class="none" hover-stop-propagation="false">
<mp-tabs tabs="{{tabs}}" activeTab="{{activeTab}}" swiperClass bindtabclick="onTabClick" bindchange="onChange" activeClass="activelist"></mp-tabs>
</view>
<!-- bindtap="editMember" -->
<view class hover-class="none" hover-stop-propagation="false">
<view class="box" wx:for="{{memberGroupList}}" bindtap="editMember" data-info="{{item}}" wx:for-index="index" hover-class="none" hover-stop-propagation="false">
<view class="subset {{index != 0 ? 'bt1' : ''}}">
<view class="left">
<view class="name" hover-class="none" hover-stop-propagation="false" style="min-width:148px">
<view class="f16 oelps c6" hover-class="none" hover-stop-propagation="false">{{item.aliasName || '-'}}</view>
<view class="mark ml4 {{item.agencyRole == 1 ? 't-icon t-icon-chuangjianren' : (item.agencyRole == 2 ? 't-icon t-icon-guanliyuan': (item.agencyRole == 3 && item.notBeAllow ? 't-icon t-icon-daiduifangtongyi ' :'t-icon t-icon-chengyuan'))}}"></view>
</view>
<view class="tel c6 f18">
<!-- {{item.tel}} -->
<i class="iconfont icon-gengduo11 f14 cccc ml4" wx:if="{{userInfo.user.agencyRole !== 3}}"></i>
</view>
</view>
<view class hover-class="none" hover-stop-propagation="false">
<!-- <view class="edit" wx:if="{{isEdit}}" bindtap='editMember' data-info='{{item}}'>编辑</view>
<view class="delete ysd-base-color" bindtap='showDelModal' data-id='{{item.id}}' wx:if="{{item.agencyRole != 1 && !isEdit}}">删除</view>-->
</view>
</view>
</view>
<block wx:if="{{(memberGroupList == null || memberGroupList.length == 0) && !isLoading}}">
<view style="margin-top:128rpx;">
<view class="center">
<icon class="t-icon cccc t-icon-zanwu" style="width:86px;height:86px;margin-bottom:20px;margin-top:30px"></icon>
<view class="f16 cccc">暂无成员</view>
</view>
</view>
</block>
</view>
</scroll-view>
<view class="addMember mt16" wx:if="{{userInfo.user.agencyRole !== 3}}">
<view class hover-class="none" hover-stop-propagation="false">
<view class="c6" wx:if="{{currentGroup.teamName != '未分配'}}" hover-class="none" hover-stop-propagation="false" bindtap="showDrawer">
<view class="iconfont icon-gengduo2 mr6" style="display:inline-block" />更多
</view>
</view>
<view class="add fsa ">
<!-- <view class="iconfont icon-tianjia mr6" style="display:inline-block" /> -->
<!-- <button type></button> -->
<button class="dtBtnD mr12 mt0 mb0" bindtap="addMember" style="width: 120px !important;margin-right: 16px;">添加成员</button>
<button class="dtBtnD mt0 mb0" bindtap="showgroupDialog" data-type="add" style="width: 120px !important">添加部门</button>
</view>
</view>
<view aria-role="dialog" aria-modal="true" catchtouchmove="modalMove" class="fadeIn" wx:if="{{groupDialog}}">
<view class="weui-mask"></view>
<view class="weui-dialog groupBox" style="box-sizing:border-box;">
<!-- <i class="iconfont icon-guanbi guanbi c6 biggerSize" bindtap="closegroupDialog"></i> -->
<view class="tac pt8" hover-class="none" hover-stop-propagation="false">
<view class="weui-dialog__hd f18 fw500">{{groupType}}</view>
<input class="groupInput mt4" type data-type="userName" bindinput="updateGroup" value="{{groupVal}}" placeholder="请输入部门名称" placeholder-class="input__placeholder" />
</view>
<view class="fsa f18 groupBtn bt1" hover-class="none" hover-stop-propagation="false">
<view class="tac p10 flex-1 br1" hover-class="none" hover-stop-propagation="false" bindtap="closegroupDialog">取消</view>
<view class="tac p10 fw500 flex-1 f40" hover-class="thover" hover-stop-propagation="false" bindtap="addOrUpdateGroup">确定</view>
</view>
</view>
</view>
<view aria-role="dialog" aria-modal="true" catchtouchmove="modalMove" class="fadeIn" wx:if="{{newCreatorShow}}">
<view class="weui-mask"></view>
<view class="weui-dialog creatorBox" style="box-sizing:border-box;">
<!-- <i class="iconfont icon-guanbi guanbi c6 biggerSize" bindtap="closegroupDialog"></i> -->
<view class="tac pt8" hover-class="none" hover-stop-propagation="false">
<view class="weui-dialog__hd f18 fw500">选择新创建人</view>
<view class="tal " style="margin-left:32px" hover-class="none" hover-stop-propagation="false">
管理员
</view>
<input class="groupInput mt4" maxlength="11" type data-type="userName" bindinput="updateCreatorVal" value="{{creatorVal}}" placeholder="请输入成员手机号" placeholder-class="input__placeholder" />
</view>
<view class="fsa f18 groupBtn bt1" hover-class="none" hover-stop-propagation="false">
<view class="tac p10 flex-1 br1" hover-class="none" hover-stop-propagation="false" bindtap="closegroupDialog">取消</view>
<view class="tac p10 fw500 flex-1 f40" hover-class="thover" hover-stop-propagation="false" bindtap="updateCreator">确定</view>
</view>
</view>
</view>
<bottom-drawer show="{{drawerShow}}" drawerType="drawerShow" bindhidedrawer="hidedrawershow" class="bottomDrawer" height="206px" cancerShow="{{false}}" touchClose="{{false}}" color="#f5f5f5" hideTabbar="{{false}}">
<view class="tac fsc bgcf bb1 f18" style="height:56px;" bindtap="showgroupDialog" data-type="update" hover-class="setf40" hover-stop-propagation="false">修改当前部门名称</view>
<!-- wx:if="{{currentGroup.teamName != '未分配'}}" -->
<view class="tac fsc bgcf mb10 f18" style="height:56px;" bindtap="delGroup" hover-class="setf40" hover-stop-propagation="false">删除部门</view>
<view class="tac pt16 bgcf f18" catchtap="hideDrawer" style="height:114px" hover-class="setf40" hover-stop-propagation="false">取消</view>
</bottom-drawer>