fix(系统设置): 编辑用户时禁止修改ID

This commit is contained in:
shiziyuan9527 2021-05-31 11:21:20 +08:00 committed by 刘瑞斌
parent 2afd8fefc5
commit df783a624e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<div v-loading="result.loading">
<el-form :model="form" label-position="right" label-width="120px" size="small" :rules="rule" ref="createUserForm">
<el-form-item label="ID" prop="id">
<el-input v-model="form.id" autocomplete="off" :placeholder="$t('user.input_id_placeholder')"/>
<el-input v-model="form.id" autocomplete="off" :placeholder="$t('user.input_id_placeholder')" :disabled="type === 'Edit'"/>
</el-form-item>
<el-form-item :label="$t('commons.username')" prop="name">
<el-input v-model="form.name" autocomplete="off" :placeholder="$t('user.input_name')"/>