更新小队相关功能
This commit is contained in:
parent
1ebc1241f2
commit
1524b52928
@ -14,17 +14,9 @@
|
|||||||
<u--input :value="formDataText.village" type="text" disabled disabledColor="#fff" placeholder="请选择村"></u--input>
|
<u--input :value="formDataText.village" type="text" disabled disabledColor="#fff" placeholder="请选择村"></u--input>
|
||||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item v-if="!formDataRead.brigade" label="小队" :required="!readonly" prop="brigade" borderBottom>
|
<u-form-item label="小队" :required="!readonly" prop="brigade" @click="changeCity('brigade')" borderBottom>
|
||||||
<u-checkbox-group
|
<u--input :value="formDataText.brigade" disabled disabledColor="#fff" placeholder="请选择小队"></u--input>
|
||||||
placement="row"
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
@change="changeBrigade"
|
|
||||||
>
|
|
||||||
<view class="box">
|
|
||||||
<view class="box_item" v-for="item in brigadeList" :key="item.id">
|
|
||||||
<u-checkbox style="checkbox" :customStyle="{marginBottom: '12px',marginRight: '12px'}" activeColor="#3175f9" :label="item.brigade_name" :name="item.id"></u-checkbox>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</u-checkbox-group>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u--form>
|
</u--form>
|
||||||
<u-picker :show="showProvince" :columns="[changeList()]" :keyName="changeType+'_name'" @confirm="confirm"
|
<u-picker :show="showProvince" :columns="[changeList()]" :keyName="changeType+'_name'" @confirm="confirm"
|
||||||
@ -161,10 +153,6 @@
|
|||||||
this.changeType = type;
|
this.changeType = type;
|
||||||
this.showProvince = true;
|
this.showProvince = true;
|
||||||
},
|
},
|
||||||
// 多选小队
|
|
||||||
changeBrigade(e){
|
|
||||||
this.formData.brigade = e;
|
|
||||||
},
|
|
||||||
// 选择列表
|
// 选择列表
|
||||||
changeList() {
|
changeList() {
|
||||||
return this[this.changeType + 'List'];
|
return this[this.changeType + 'List'];
|
||||||
|
@ -47,8 +47,7 @@
|
|||||||
</text>
|
</text>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="location">
|
<view class="location">
|
||||||
<text>{{ (item.street_name||'')+(item.village_name||'') }}</text>
|
<text>{{ (item.street_name||'')+(item.village_name||'')+(item.brigade_name||'') }}</text>
|
||||||
<text v-for="brigade in item.brigade_name">{{ brigade.brigade_name }}</text>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -228,8 +228,8 @@
|
|||||||
title: "添加成功",
|
title: "添加成功",
|
||||||
success: () => {
|
success: () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.$emit('initPersonnel');
|
// uni.$emit('initPersonnel');
|
||||||
uni.navigateBack()
|
// uni.navigateBack();
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
分管片区:
|
分管片区:
|
||||||
</text>
|
</text>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="location">{{ (item.street_name||'')+(item.village_name||'') }}</view>
|
<view class="location">{{ (item.street_name||'')+(item.village_name||'')+(item.brigade_name||'') }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info_bottom">
|
<view class="info_bottom">
|
||||||
|
@ -16,18 +16,18 @@
|
|||||||
<!-- <view class="role" v-if="userInfo.roles">{{userInfo.roles[0]}}</view> -->
|
<!-- <view class="role" v-if="userInfo.roles">{{userInfo.roles[0]}}</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="id_card">
|
<view class="id_card">
|
||||||
<view>身份证号:{{userInfo.id_card}}</view>
|
<view>身份证号:{{userInfo.id_card}}</view>
|
||||||
<!-- <view class="update" @click="updateShow(userInfo.id_card, 'id_card')">
|
<!-- <view class="update" @click="updateShow(userInfo.id_card, 'id_card')">
|
||||||
<uni-icons type="compose" color="#F9AA32"></uni-icons>
|
<uni-icons type="compose" color="#F9AA32"></uni-icons>
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="phone">
|
<view class="phone">
|
||||||
联系电话:{{userInfo.phone}}
|
联系电话:{{userInfo.phone}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom" style="margin-bottom: 10rpx;display: flex;align-items: center;">
|
<view class="bottom" style="margin-bottom: 10rpx;display: flex;align-items: center;">
|
||||||
是否为小队长:
|
是否为小队长:
|
||||||
<u-radio-group v-model="userInfo.is_captain" style="margin-left: 16rpx;" disabled>
|
<u-radio-group v-model="userInfo.is_captain" style="margin-left: 16rpx;" disabled>
|
||||||
<u-radio :customStyle="{marginRight: '16px'}"
|
<u-radio :customStyle="{marginRight: '16px'}"
|
||||||
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index" :label="item.label"
|
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index" :label="item.label"
|
||||||
@ -39,14 +39,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
负责区域:<text>{{(userInfo.street_name||'')+(userInfo.village_name||'')}}</text>
|
负责区域:<text>{{(userInfo.street_name||'')+(userInfo.village_name||'')+(userInfo.brigade_name||'')}}</text>
|
||||||
<text v-for="(item, index) in userInfo.brigade_name">{{item.brigade_name}}</text>
|
|
||||||
</view>
|
</view>
|
||||||
<u-popup :show="show.is_captain" :round="10" mode="center">
|
<u-popup :show="show.is_captain" :round="10" mode="center">
|
||||||
<view class="popup">
|
<view class="popup">
|
||||||
<view class="p_title">修改信息</view>
|
<view class="p_title">修改信息</view>
|
||||||
<view class="p_body">
|
<view class="p_body">
|
||||||
是否为小队长:
|
是否为小队长:
|
||||||
<u-radio-group v-model="updateForm.is_captain" style="margin: 16rpx;">
|
<u-radio-group v-model="updateForm.is_captain" style="margin: 16rpx;">
|
||||||
<u-radio :customStyle="{marginRight: '16px'}"
|
<u-radio :customStyle="{marginRight: '16px'}"
|
||||||
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index" :label="item.label"
|
v-for="(item, index) in [{value:1,label:'是'},{value:0,label:'否'}]" :key="index" :label="item.label"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user