feat:bug
This commit is contained in:
parent
bb705ee956
commit
74fd20b462
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 MiB |
BIN
frontend/Skyeye-sys-ui/src/assets/img/login/bg.png
Normal file
BIN
frontend/Skyeye-sys-ui/src/assets/img/login/bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 MiB |
@ -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 => {
|
||||||
this.$message.success('更新用户成功')
|
if (res.code === 200) {
|
||||||
this.userPage()
|
this.$message.success('更新用户成功')
|
||||||
this.close()
|
this.userPage()
|
||||||
|
this.close()
|
||||||
|
} else {
|
||||||
|
this.$message.success(res.msg || '更新用户失败')
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
userSave(form).then(res => {
|
userSave(form).then(res => {
|
||||||
this.$message.success('新增用户成功')
|
if (res.code === 200) {
|
||||||
this.userPage()
|
this.$message.success('新增用户成功')
|
||||||
this.close()
|
this.userPage()
|
||||||
|
this.close()
|
||||||
|
} else {
|
||||||
|
this.$message.success(res.msg || '新增用户失败')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user