|
@@ -163,8 +163,8 @@
|
|
|
size="14"
|
|
size="14"
|
|
|
v-model="userInfo.wardship"
|
|
v-model="userInfo.wardship"
|
|
|
placement="row">
|
|
placement="row">
|
|
|
- <u-radio class="radio-item" activeColor="#eac00f" name="1" label="否"></u-radio>
|
|
|
|
|
- <u-radio class="radio-item" activeColor="#eac00f" name="2" label="是"></u-radio>
|
|
|
|
|
|
|
+ <u-radio class="radio-item" activeColor="#eac00f" name="2" label="否"></u-radio>
|
|
|
|
|
+ <u-radio class="radio-item" activeColor="#eac00f" name="1" label="是"></u-radio>
|
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -213,13 +213,14 @@
|
|
|
facePhotos: '',
|
|
facePhotos: '',
|
|
|
facePhoto: '',
|
|
facePhoto: '',
|
|
|
ranks: 0,
|
|
ranks: 0,
|
|
|
- wardship: '2',
|
|
|
|
|
|
|
+ wardship: '1',
|
|
|
blood: '',
|
|
blood: '',
|
|
|
ranksState: '0',
|
|
ranksState: '0',
|
|
|
facePhotoUrl: '',
|
|
facePhotoUrl: '',
|
|
|
name: '',
|
|
name: '',
|
|
|
authBook: '',
|
|
authBook: '',
|
|
|
- signPhoto: ''
|
|
|
|
|
|
|
+ signPhoto: '',
|
|
|
|
|
+ remark:''
|
|
|
},
|
|
},
|
|
|
genderShow: false,
|
|
genderShow: false,
|
|
|
date: Number(new Date()),
|
|
date: Number(new Date()),
|
|
@@ -243,6 +244,19 @@
|
|
|
this.userInfo.facePhotoUrl = data.facePhotoUrl;
|
|
this.userInfo.facePhotoUrl = data.facePhotoUrl;
|
|
|
this.userInfo.facePhoto = data.facePhoto;
|
|
this.userInfo.facePhoto = data.facePhoto;
|
|
|
this.userInfo.facePhotos = data.facePhoto;
|
|
this.userInfo.facePhotos = data.facePhoto;
|
|
|
|
|
+ this.userInfo.birthday = data.birthday;
|
|
|
|
|
+ this.userInfo.memberType = data.memberType;
|
|
|
|
|
+ this.userInfo.ranks = data.ranks;
|
|
|
|
|
+ this.userInfo.wardship = data.wardship;
|
|
|
|
|
+ this.userInfo.blood = data.blood;
|
|
|
|
|
+ this.userInfo.ranksState = data.ranksState;
|
|
|
|
|
+ this.userInfo.name = data.name;
|
|
|
|
|
+ this.userInfo.authBook = data.authBook;
|
|
|
|
|
+ this.userInfo.signPhoto = data.signPhoto;
|
|
|
|
|
+ this.userInfo.sex = data.sex;
|
|
|
|
|
+ this.userInfo.nickName = data.nickName;
|
|
|
|
|
+ this.userInfo.remark = data.remark;
|
|
|
|
|
+ this.userInfo.id = data.id;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -299,16 +313,40 @@
|
|
|
|
|
|
|
|
this.userInfo.auth = true;
|
|
this.userInfo.auth = true;
|
|
|
|
|
|
|
|
- // 保存数据
|
|
|
|
|
- this.$api.saveServiceObject(this.userInfo).then((res)=>{
|
|
|
|
|
- console.log(res)
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: "添加成功"
|
|
|
|
|
|
|
+ if (this.userInfo.id){
|
|
|
|
|
+
|
|
|
|
|
+ // 修改数据
|
|
|
|
|
+ this.$api.updateServiceObject(this.userInfo).then((res)=>{
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: "修改成功"
|
|
|
|
|
+ })
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
|
+ uni.redirectTo({
|
|
|
|
|
+ url: '/myPages/ServiceObjectManagement/index'
|
|
|
|
|
+ });
|
|
|
|
|
+ },2000)
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+
|
|
|
|
|
+ // 保存数据
|
|
|
|
|
+ this.$api.saveServiceObject(this.userInfo).then((res)=>{
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: "保存成功"
|
|
|
|
|
+ })
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
|
+
|
|
|
|
|
+ uni.redirectTo({
|
|
|
|
|
+ url: '/myPages/ServiceObjectManagement/index'
|
|
|
|
|
+ });
|
|
|
|
|
+ },2000)
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
- uni.redirectTo({
|
|
|
|
|
- url: '/myPages/ServiceObjectManagement/index'
|
|
|
|
|
- });
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
//头像上传
|
|
//头像上传
|
|
|
uploadImg1(imgIndex) {
|
|
uploadImg1(imgIndex) {
|