init
This commit is contained in:
@@ -344,14 +344,19 @@ export default {
|
||||
})
|
||||
},
|
||||
submitForm(){
|
||||
addUser(this.form).then(data => {
|
||||
this.$modal.msgSuccess("新增用户成功");
|
||||
this.buttonLoading = false;
|
||||
this.open = false
|
||||
this.$emit('refreshDataList')
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.buttonLoading = true;
|
||||
addUser(this.form).then(data => {
|
||||
this.$modal.msgSuccess("新增用户成功");
|
||||
this.buttonLoading = false;
|
||||
this.open = false
|
||||
this.$emit('refreshDataList')
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="用户类型" prop="type">
|
||||
<el-select v-model="form.type" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.type" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in appUserTypeList"
|
||||
:key="dict.value"
|
||||
@@ -28,7 +28,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="为谁征婚" prop="forPersonals">
|
||||
<el-select v-model="form.forPersonals" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.forPersonals" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in userForPersonalsList"
|
||||
:key="dict.value"
|
||||
@@ -49,7 +49,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="性别" prop="gender">
|
||||
<el-select v-model="form.gender" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.gender" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in genderList"
|
||||
:key="dict.value"
|
||||
@@ -98,7 +98,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="学历" prop="education">
|
||||
<el-select v-model="form.education" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.education" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in userEducationList"
|
||||
:key="dict.value"
|
||||
@@ -110,7 +110,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="婚况" prop="marriage">
|
||||
<el-select v-model="form.marriage" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.marriage" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in userMarriageList"
|
||||
:key="dict.value"
|
||||
@@ -124,7 +124,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="职业" prop="profession">
|
||||
<el-select v-model="form.profession" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.profession" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in professionList"
|
||||
:key="dict.value"
|
||||
@@ -136,7 +136,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="年收入" prop="annualIncome">
|
||||
<el-select v-model="form.annualIncome" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.annualIncome" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in userAnnualIncomeList"
|
||||
:key="dict.value"
|
||||
@@ -150,7 +150,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="购车情况" prop="carStatus">
|
||||
<el-select v-model="form.carStatus" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.carStatus" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in userCarStatusList"
|
||||
:key="dict.value"
|
||||
@@ -162,7 +162,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="购房情况" prop="housingStatus">
|
||||
<el-select v-model="form.housingStatus" clearable size="small" style="width: 95%">
|
||||
<el-select v-model="form.housingStatus" size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in userHousingStatusList"
|
||||
:key="dict.value"
|
||||
@@ -339,7 +339,7 @@ export default {
|
||||
},
|
||||
submitForm(){
|
||||
updateUser(this.form).then(data => {
|
||||
this.$modal.msgSuccess("新增用户成功");
|
||||
this.$modal.msgSuccess("编辑用户成功");
|
||||
this.buttonLoading = false;
|
||||
this.open = false
|
||||
this.$emit('refreshDataList')
|
||||
|
||||
Reference in New Issue
Block a user