|
@@ -737,6 +737,7 @@
|
|
|
getTreeselect() {
|
|
|
treeselect().then((response) => {
|
|
|
this.deptOptions = response.data
|
|
|
+ this.deptOptions.map((item) => (item.id.toString()))
|
|
|
})
|
|
|
},
|
|
|
// 节点单击事件
|
|
@@ -891,6 +892,7 @@
|
|
|
getLevelTreeSelect().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.levelList = res.data
|
|
|
+ this.levelList.map((item) => (item.id.toString()))
|
|
|
} else {
|
|
|
this.$msg({ type: 'error', message: res.msg })
|
|
|
}
|
|
@@ -901,6 +903,7 @@
|
|
|
getNatureTreeSelect().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.natureList = res.data
|
|
|
+ this.natureList.map((item) => (item.id.toString()))
|
|
|
} else {
|
|
|
this.$msg({ type: 'error', message: res.msg })
|
|
|
}
|
|
@@ -919,7 +922,7 @@
|
|
|
this.open = true
|
|
|
this.title = '修改用户'
|
|
|
this.accountForm = response.data
|
|
|
- this.accountForm.deptIds = response.data.deptIds.split(',').map((item) => Number(item))
|
|
|
+ this.accountForm.deptIds = response.data.deptIds.split(',')
|
|
|
this.accountForm.levelJobIds = response.data.levelJobIds.split(',')
|
|
|
this.accountForm.naturePostIds = response.data.naturePostIds.split(',')
|
|
|
})
|
|
@@ -946,7 +949,6 @@
|
|
|
str.descriptionJson = JSON.stringify(str.descriptionJson)
|
|
|
let params = { ...accountStr, ...str }
|
|
|
params.userId = this.userId
|
|
|
- console.log(params)
|
|
|
this.$refs['accountForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (params.userId != null) {
|