fix:默认类型正式员工
This commit is contained in:
parent
62b5acce3f
commit
9084d91604
|
@ -192,16 +192,16 @@
|
|||
label-width="100px"
|
||||
label-position="left"
|
||||
>
|
||||
<el-form-item label="账户类型:" prop="type">
|
||||
<el-select v-model="addForm.type" placeholder="账号类型">
|
||||
<el-option
|
||||
v-for="item in userTypeOptions2"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="账户类型:" prop="type">
|
||||
<el-select v-model="addForm.type" placeholder="账号类型">
|
||||
<el-option
|
||||
v-for="item in userTypeOptions2"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="登录账号" prop="username">
|
||||
<el-input
|
||||
v-model="addForm.username"
|
||||
|
@ -355,7 +355,13 @@ export default {
|
|||
add() {
|
||||
this.type = "add";
|
||||
this.limitedVisible = true;
|
||||
this.addForm = {};
|
||||
this.addForm.type='employee';
|
||||
this.addForm.username='';
|
||||
this.addForm.name='';
|
||||
this.addForm.phone='';
|
||||
this.addForm.is_deleted=false;
|
||||
this.addForm.is_active = true;
|
||||
|
||||
},
|
||||
//重置密码
|
||||
formReset(row){
|
||||
|
|
Loading…
Reference in New Issue