dukai преди 3 години
родител
ревизия
7bea899378
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/system/employeenInfo/index.vue

+ 4 - 2
src/views/system/employeenInfo/index.vue

@@ -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) {