Commit b645634d authored by 杨贺晨吉's avatar 杨贺晨吉

feat: 1

parent 5c37cfa5
......@@ -126,6 +126,7 @@
>
<FormItem label="账号:" prop="username">
<Input
:disabled="isEdit"
v-model="form.username"
autocomplete="off"
placeholder="请输入账号"
......@@ -133,6 +134,7 @@
</FormItem>
<FormItem label="密码:" prop="password" :error="errorPass">
<Input
:disabled="isEdit"
type="password"
password
v-model="form.password"
......@@ -464,6 +466,7 @@ export default {
],
data: [], // 用户数据
total: 0, // 总数
isEdit: false,
};
},
computed: {
......@@ -700,9 +703,11 @@ export default {
};
this.$refs["dep"].clearSelect();
this.userModalVisible = true;
this.isEdit = false;
},
// 编辑用户
async edit(v) {
this.isEdit = true;
this.$refs.form.resetFields();
this.form = JSON.parse(JSON.stringify(v));
this.modalType = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment