init
This commit is contained in:
@@ -26,6 +26,20 @@
|
||||
<el-input v-model="form.nickname" />
|
||||
</el-form-item>
|
||||
</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-option
|
||||
v-for="dict in userForPersonalsList"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="头像" prop="avatar">
|
||||
<image-upload2 v-model="form.avatar"/>
|
||||
@@ -133,6 +147,32 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<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-option
|
||||
v-for="dict in userCarStatusList"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</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-option
|
||||
v-for="dict in userHousingStatusList"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="照片" prop="pictures">
|
||||
@@ -183,7 +223,6 @@ import {
|
||||
import Treeselect from '@riophae/vue-treeselect'
|
||||
import { getTreeAreaCode } from '@/api/xq/areaCode'
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
import { addBanner } from '@/api/xq/banner'
|
||||
import { addUser } from '@/api/xq/user'
|
||||
|
||||
export default {
|
||||
@@ -216,6 +255,9 @@ export default {
|
||||
nickname: undefined,
|
||||
mobile: undefined,
|
||||
type: undefined,
|
||||
forPersonals: undefined,
|
||||
carStatus: undefined,
|
||||
housingStatus: undefined,
|
||||
pictures: undefined
|
||||
},
|
||||
rules:{
|
||||
@@ -261,6 +303,15 @@ export default {
|
||||
type: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
forPersonals: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
carStatus: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
housingStatus: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
},
|
||||
areaOption: [],
|
||||
};
|
||||
|
||||
@@ -26,6 +26,20 @@
|
||||
<el-input v-model="form.nickname" />
|
||||
</el-form-item>
|
||||
</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-option
|
||||
v-for="dict in userForPersonalsList"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="头像" prop="avatar">
|
||||
<image-upload2 v-model="form.avatar"/>
|
||||
@@ -133,6 +147,32 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<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-option
|
||||
v-for="dict in userCarStatusList"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</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-option
|
||||
v-for="dict in userHousingStatusList"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||
@@ -209,6 +249,9 @@ export default {
|
||||
nickname: undefined,
|
||||
mobile: undefined,
|
||||
type: undefined,
|
||||
forPersonals: undefined,
|
||||
carStatus: undefined,
|
||||
housingStatus: undefined,
|
||||
},
|
||||
rules:{
|
||||
annualIncome: [
|
||||
@@ -253,6 +296,15 @@ export default {
|
||||
type: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
forPersonals: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
carStatus: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
housingStatus: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
},
|
||||
areaOption: [],
|
||||
};
|
||||
|
||||
@@ -35,8 +35,8 @@ module.exports = {
|
||||
proxy: {
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: `http://localhost:8080`,
|
||||
// target: `http://xq.qiqizl.com/prod-api`,
|
||||
// target: `http://localhost:8080`,
|
||||
target: `http://xq.qiqizl.com/prod-api`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
||||
Reference in New Issue
Block a user