用户管理修改回显尝试,薪资管理时间戳修正
This commit is contained in:
@@ -70,7 +70,7 @@ spring:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
profiles:
|
||||
active: @profiles.active@
|
||||
active: prod
|
||||
# 文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
"element-plus": "2.9.9",
|
||||
"file-saver": "2.0.5",
|
||||
"fuse.js": "6.6.2",
|
||||
"i": "^0.3.7",
|
||||
"js-beautify": "1.14.11",
|
||||
"js-cookie": "3.0.5",
|
||||
"jsencrypt": "3.3.2",
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
clearable
|
||||
v-model="form.uploadTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
placeholder="请选择上传时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
@@ -501,6 +501,14 @@ function handleAdd() {
|
||||
function handleUpdate(row) {
|
||||
reset()
|
||||
const userId = row.userId || ids.value
|
||||
// let userId
|
||||
// if (row && row.userId) {
|
||||
// userId = row.userId
|
||||
// } else if (ids.value && ids.value.length > 0) {
|
||||
// userId = ids.value[0]
|
||||
// } else {
|
||||
// return
|
||||
// }
|
||||
getUser(userId).then(response => {
|
||||
form.value = response.data
|
||||
postOptions.value = response.data.posts
|
||||
@@ -509,7 +517,7 @@ function handleUpdate(row) {
|
||||
form.value.roleIds = response.data.roleIds
|
||||
open.value = true
|
||||
title.value = "修改用户"
|
||||
form.password = ""
|
||||
form.value.password = ""
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user