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

feat: 1

parent 5c37cfa5
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
> >
<FormItem label="账号:" prop="username"> <FormItem label="账号:" prop="username">
<Input <Input
:disabled="isEdit"
v-model="form.username" v-model="form.username"
autocomplete="off" autocomplete="off"
placeholder="请输入账号" placeholder="请输入账号"
...@@ -133,6 +134,7 @@ ...@@ -133,6 +134,7 @@
</FormItem> </FormItem>
<FormItem label="密码:" prop="password" :error="errorPass"> <FormItem label="密码:" prop="password" :error="errorPass">
<Input <Input
:disabled="isEdit"
type="password" type="password"
password password
v-model="form.password" v-model="form.password"
...@@ -464,6 +466,7 @@ export default { ...@@ -464,6 +466,7 @@ export default {
], ],
data: [], // 用户数据 data: [], // 用户数据
total: 0, // 总数 total: 0, // 总数
isEdit: false,
}; };
}, },
computed: { computed: {
...@@ -700,9 +703,11 @@ export default { ...@@ -700,9 +703,11 @@ export default {
}; };
this.$refs["dep"].clearSelect(); this.$refs["dep"].clearSelect();
this.userModalVisible = true; this.userModalVisible = true;
this.isEdit = false;
}, },
// 编辑用户 // 编辑用户
async edit(v) { async edit(v) {
this.isEdit = true;
this.$refs.form.resetFields(); this.$refs.form.resetFields();
this.form = JSON.parse(JSON.stringify(v)); this.form = JSON.parse(JSON.stringify(v));
this.modalType = 1; 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