Skip to content

Commit 592085b

Browse files
authored
feat: 修改用户信息时,不展示密码的输入框 (#40)
1 parent 0d74f18 commit 592085b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/personnel/user/index.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
</el-form-item>
129129
</el-col>
130130
<el-col :span="12">
131-
<el-form-item :label="dialogType === 'create' ? '新密码':'重置密码'" prop="password">
131+
<!-- 修改用户时,不显示密码字段 -->
132+
<el-form-item :label="dialogType === 'create' ? '新密码':'重置密码'" prop="password" v-if="dialogType === 'create'">
132133
<el-input v-model.trim="dialogFormData.password" autocomplete="off" :type="passwordType" :placeholder="dialogType === 'create' ? '新密码':'重置密码'" />
133134
<span class="show-pwd" @click="showPwd">
134135
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />

0 commit comments

Comments
 (0)