This commit is contained in:
wangxueshen 2026-01-28 16:37:46 +08:00
parent bb705ee956
commit 74fd20b462
5 changed files with 18 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 MiB

View File

@ -123,16 +123,25 @@ export default {
const form = { ...this.user.form } const form = { ...this.user.form }
form.password = md5(form.password) form.password = md5(form.password)
if (form.id) { if (form.id) {
userUpdate(this.user.form).then(res => { userUpdate(form).then(res => {
if (res.code === 200) {
this.$message.success('更新用户成功') this.$message.success('更新用户成功')
this.userPage() this.userPage()
this.close() this.close()
} else {
this.$message.success(res.msg || '更新用户失败')
}
}) })
} else { } else {
userSave(form).then(res => { userSave(form).then(res => {
if (res.code === 200) {
this.$message.success('新增用户成功') this.$message.success('新增用户成功')
this.userPage() this.userPage()
this.close() this.close()
} else {
this.$message.success(res.msg || '新增用户失败')
}
}) })
} }
}, },

View File

@ -80,8 +80,8 @@
autocomplete="account" autocomplete="account"
v-model="user.form.account" v-model="user.form.account"
placeholder="请输入用户名称" placeholder="请输入用户名称"
clearable
size="mini" size="mini"
:disabled="user.form.account === 'admin'"
></el-input> ></el-input>
</el-form-item> </el-form-item>

View File

@ -328,7 +328,7 @@ $light_gray: #eee;
// #2e66ce 50%, // #2e66ce 50%,
// #1cb5e0 99% // #1cb5e0 99%
// ); // );
background: url('~@/assets/img/login/bg.gif') no-repeat center center / cover; background: url('~@/assets/img/login/bg.png') no-repeat center center / cover;
// background-color: #000; // background-color: #000;
// animation: dynamic 20s linear infinite; // animation: dynamic 20s linear infinite;
overflow: hidden; overflow: hidden;