You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
4.2 KiB
1 line
4.2 KiB
|
2 months ago
|
<view class="data-v-4025542c"><view data-event-opts="{{[['tap',[['editPeople',['add']]]]]}}" style="width:90%;height:80rpx;line-height:80rpx;text-align:center;background:#088FEB;color:#fff;margin:20rpx auto;border-radius:10px;" bindtap="__e" class="data-v-4025542c"> 新增人员</view><uni-card vue-id="76f49b4c-1" title="员工列表" class="data-v-4025542c" bind:__l="__l" vue-slots="{{['default']}}"><uni-list vue-id="{{('76f49b4c-2')+','+('76f49b4c-1')}}" class="data-v-4025542c" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{staffList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><uni-list-item vue-id="{{('76f49b4c-3-'+index)+','+('76f49b4c-2')}}" direction="row" clickable="{{true}}" class="data-v-4025542c" bind:__l="__l" vue-slots="{{['header','footer']}}"><view class="avatar-wrap data-v-4025542c" slot="header"><text class="staff-name data-v-4025542c">{{item.nickName}}</text></view><view style="display:flex;" class="data-v-4025542c" slot="footer"><view data-event-opts="{{[['tap',[['editPeople',['edit','$0'],[[['staffList','',index]]]]]]]}}" bindtap="__e" class="data-v-4025542c"><u-icon vue-id="{{('76f49b4c-4-'+index)+','+('76f49b4c-3-'+index)}}" name="edit-pen-fill" size="28" class="data-v-4025542c" bind:__l="__l"></u-icon></view><view data-event-opts="{{[['tap',[['delItem',['$0'],[[['staffList','',index]]]]]]]}}" bindtap="__e" class="data-v-4025542c"><u-icon vue-id="{{('76f49b4c-5-'+index)+','+('76f49b4c-3-'+index)}}" name="trash-fill" size="28" class="data-v-4025542c" bind:__l="__l"></u-icon></view></view></uni-list-item></block></uni-list></uni-card><uni-popup vue-id="76f49b4c-6" background-color="#fff" is-mask-click="{{true}}" data-ref="inputDialog" class="data-v-4025542c vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="type-popup data-v-4025542c"><view style="height:120rpx;font-size:36rpx;font-weight:bold;line-height:120rpx;text-align:center;" class="data-v-4025542c"> 新增人员 </view><uni-forms vue-id="{{('76f49b4c-7')+','+('76f49b4c-6')}}" modelValue="{{addForm}}" validateTrigger="bind" rules="{{rules}}" label-width="130rpx" label-align="right" data-ref="addForm" class="data-v-4025542c vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('76f49b4c-8')+','+('76f49b4c-7')}}" label="姓名" required="{{true}}" name="nickName" class="data-v-4025542c" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('76f49b4c-9')+','+('76f49b4c-8')}}" type="text" placeholder="请输入姓名" value="{{addForm.nickName}}" data-event-opts="{{[['^input',[['__set_model',['$0','nickName','$event',[]],['addForm']]]]]}}" class="data-v-4025542c" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('76f49b4c-10')+','+('76f49b4c-7')}}" label="手机号" required="{{true}}" name="mobile" class="data-v-4025542c" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('76f49b4c-11')+','+('76f49b4c-10')}}" type="text" placeholder="请输入手机号" value="{{addForm.mobile}}" data-event-opts="{{[['^input',[['__set_model',['$0','mobile','$event',[]],['addForm']]]]]}}" class="data-v-4025542c" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('76f49b4c-12')+','+('76f49b4c-7')}}" label="权限" required="{{true}}" name="type" class="data-v-4025542c" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" style="width:100%;" vue-id="{{('76f49b4c-13')+','+('76f49b4c-12')}}" localdata="{{typeList}}" value="{{addForm.userRole}}" data-event-opts="{{[['^input',[['__set_model',['$0','userRole','$event',[]],['addForm']]]]]}}" class="data-v-4025542c" bind:__l="__l"></uni-data-select></uni-forms-item></uni-forms><view style="width:100%;height:90rpx;line-height:90rpx;text-align:center;border-radius:0;background:linear-gradient(90deg, #60F3FF, #088FEB);color:#fff;display:flex;" class="data-v-4025542c"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" style="width:50%;" bindtap="__e" class="data-v-4025542c">取消</view><view data-event-opts="{{[['tap',
|