init
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<el-dialog title="新增用户" :close-on-click-modal="false" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-dialog title="修改用户" :close-on-click-modal="false" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="用户类型" prop="userType">
|
||||
<el-select v-model="form.userType" clearable size="small" style="width: 95%">
|
||||
<el-form-item label="用户类型" prop="cardNumAuth">
|
||||
<el-select v-model="form.cardNumAuth" clearable size="small" style="width: 95%">
|
||||
<el-option
|
||||
v-for="dict in appUserTypeList"
|
||||
:key="dict.value"
|
||||
@@ -208,7 +208,7 @@ export default {
|
||||
avatar: undefined,
|
||||
nickname: undefined,
|
||||
mobile: undefined,
|
||||
userType: undefined,
|
||||
type: undefined,
|
||||
},
|
||||
rules:{
|
||||
annualIncome: [
|
||||
@@ -250,7 +250,7 @@ export default {
|
||||
mobile: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
userType: [
|
||||
type: [
|
||||
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||
],
|
||||
},
|
||||
@@ -281,7 +281,7 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.$refs['form'].resetFields();
|
||||
getUser(row.id).then(response => {
|
||||
this.areaOption = response.data
|
||||
this.form = response.data
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user