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