|
@@ -147,7 +147,7 @@
|
|
|
<el-row :gutter="0" type="flex" justify="start">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="手机号" prop="mobile">
|
|
|
- <el-input v-model="form.mobile" placeholder="请输入手机号" :readonly="readonly"/>
|
|
|
+ <el-input v-model="form.mobile" placeholder="请输入手机号" :readonly="false"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -289,19 +289,25 @@ export default {
|
|
|
familyName: null,
|
|
|
};
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
activated() {
|
|
|
- const fid = this.$route.query.fid;
|
|
|
- this.queryParams.familyId = fid;
|
|
|
- this.getFamily(fid);
|
|
|
- this.getList();
|
|
|
- this.getDicts("sys_user_sex").then((response) => {
|
|
|
- this.genderOptions = response.data;
|
|
|
- });
|
|
|
- this.getDicts("app_member_state").then((response) => {
|
|
|
- this.stateOptions = response.data;
|
|
|
- });
|
|
|
+ this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ init(){
|
|
|
+ const fid = this.$route.query.fid;
|
|
|
+ this.queryParams.familyId = fid;
|
|
|
+ this.getFamily(fid);
|
|
|
+ this.getList();
|
|
|
+ this.getDicts("sys_user_sex").then((response) => {
|
|
|
+ this.genderOptions = response.data;
|
|
|
+ });
|
|
|
+ this.getDicts("app_member_state").then((response) => {
|
|
|
+ this.stateOptions = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
findSpouse(query){
|
|
|
if (query.length > 1) {
|
|
|
this.loadings = true;
|