|
@@ -9,7 +9,8 @@
|
|
|
<el-form @submit.native.prevent :model="userForm" :rules="userRule" ref="userForm" label-width="160px"
|
|
|
class="demo-ruleForm" style="marginTop:15px;">
|
|
|
<el-form-item :label="$t('SystemManage.DepartManage.user_login_accout')" prop="account">
|
|
|
- <el-input v-model="userForm.account" :placeholder="$t('SystemManage.DepartManage.user_add_placeholder01')" :disabled="userForm.disabledForm" clearable>
|
|
|
+ <el-input v-model="userForm.account" :placeholder="$t('SystemManage.DepartManage.user_add_placeholder01')"
|
|
|
+ :disabled="userForm.disabledForm || userForm.isAdminEdit" clearable>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('SystemManage.DepartManage.user_login_pwd')" prop="pwd" v-if="userForm.title == $t('SystemManage.DepartManage.user_add_btn')">
|
|
@@ -17,7 +18,8 @@
|
|
|
:type="userForm.title == $t('SystemManage.DepartManage.user_add_btn') ? 'text' : 'password' " clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('SystemManage.DepartManage.user_table_name')" prop="name">
|
|
|
- <el-input v-model="userForm.name" :placeholder="$t('SystemManage.DepartManage.user_add_placeholder03')" clearable>
|
|
|
+ <el-input v-model="userForm.name" :placeholder="$t('SystemManage.DepartManage.user_add_placeholder03')" clearable
|
|
|
+ :disabled="userForm.isAdminEdit">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('SystemManage.DepartManage.user_table_mobile')" prop="mobile" class="mobile-input-item">
|
|
@@ -46,7 +48,7 @@
|
|
|
<el-input :disabled="hasEmployeeNo" v-model="userForm.employeeNumber" :placeholder="$t('SystemManage.DepartManage.user_add_placeholder07')"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('SystemManage.DepartManage.user_role')" prop="role">
|
|
|
- <el-select v-model="userForm.role" :placeholder="$t('SystemManage.DepartManage.user_role')" :disabled="userForm.disabledForm" @change="roleChange">
|
|
|
+ <el-select v-model="userForm.role" :placeholder="$t('SystemManage.DepartManage.user_role')" :disabled="userForm.disabledForm || userForm.isAdminEdit" @change="roleChange">
|
|
|
<el-option v-for="item in roleArr" :key="item.RoleId" :label="item.RoleName" :value="item.RoleId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -66,7 +68,7 @@
|
|
|
:cityInfo="userForm.city"
|
|
|
@selected="selectRegion"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="$t('SystemManage.DepartManage.user_table_status')" prop="status">
|
|
|
+ <el-form-item :label="$t('SystemManage.DepartManage.user_table_status')" prop="status" v-if="!userForm.isAdminEdit">
|
|
|
<el-radio-group v-model="userForm.status" :disabled="userForm.disabledStatus">
|
|
|
<el-radio :label="1">{{$t('SystemManage.DepartManage.user_table_status_open')}}</el-radio>
|
|
|
<el-radio :label="0">{{$t('SystemManage.DepartManage.user_table_status_ban')}}</el-radio>
|