dukai 3 anos atrás
pai
commit
753bae7d54
1 arquivos alterados com 10 adições e 10 exclusões
  1. 10 10
      src/views/system/employeenInfo/index.vue

+ 10 - 10
src/views/system/employeenInfo/index.vue

@@ -552,7 +552,7 @@ import {
 	getPersonnel
 } from '@/api/system/employeenInfo'
 import { getToken } from '@/utils/auth'
-import { treeselect } from '@/api/system/dept'
+// import { treeselect } from '@/api/system/dept'
 import userAvatar from './profile/userAvatar.vue'
 import Treeselect from '@riophae/vue-treeselect'
 import TreeChoice from '@/components/deptTreeChoice/index.vue'
@@ -746,7 +746,7 @@ export default {
 	},
 	created() {
 		this.getList()
-		this.getTreeselect()
+		// this.getTreeselect()
 	},
 	methods: {
 		/** 查询用户列表 */
@@ -759,12 +759,12 @@ export default {
 			})
 		},
 		/** 查询部门下拉树结构 */
-		getTreeselect() {
-			treeselect().then((response) => {
-				this.deptOptions = response.data
-				// this.deptOptions.map((item) => item.id.toString())
-			})
-		},
+		// getTreeselect() {
+		// 	treeselect().then((response) => {
+		// 		this.deptOptions = response.data
+		// 		// this.deptOptions.map((item) => item.id.toString())
+		// 	})
+		// },
 		// 节点单击事件
 		handleNodeClick(data) {
 			this.queryParams.deptId = data.id
@@ -814,7 +814,7 @@ export default {
 		/** 新增按钮操作 */
 		handleAdd() {
 			this.reset()
-			this.getTreeselect()
+			// this.getTreeselect()
 			this.open = true
 			this.title = '添加用户'
 			this.getLevelList()
@@ -948,7 +948,7 @@ export default {
 		handleUpdate(row) {
 			// debugger
 			this.userId = row.userId
-			this.getTreeselect()
+			// this.getTreeselect()
 			this.getLevelList()
 			this.getNatureList()
 			// 查询账号信息