1
0
dukai 3 жил өмнө
parent
commit
3cf4447007

+ 51 - 0
src/api/system/employeenInfo.js

@@ -81,4 +81,55 @@ export function updateAuthRole(data) {
 		method: 'put',
 		data: data
 	})
+}
+
+// 查询数据角色信息列表
+export function listDataRole(query) {
+	return request({
+	  url: '/system/dataRole/list',
+	  method: 'get',
+	  params: query
+	})
+  }
+
+// 根据员工序号获取授权数据权限
+export function getDataRole(userId) {
+    return request({
+        url: '/system/user/dataRole/' + userId,
+        method: 'GET'
+    })
+}
+
+// 更新员工授权数据权限
+export function updateDataRole(data) {
+	return request({
+		url: '/system/user/dataRole',
+		method: 'put',
+		data: data
+	})
+}
+
+// 根据员工序号获取账号信息
+export function getAccountInfo(userId) {
+    return request({
+        url: '/system/user/accountInfo/' + userId,
+        method: 'GET'
+    })
+}
+
+// 根据员工Id获取基本信息
+export function getPersonnel(userId) {
+    return request({
+        url: '/system/user/personnel/' + userId,
+        method: 'GET'
+    })
+}
+
+// 修改员工账号信息
+export function updateUser(data) {
+	return request({
+		url: '/system/user',
+		method: 'put',
+		data: data
+	})
 }

+ 2 - 1
src/components/treeChoice/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<div class="tree-choice">
-		<el-input placeholder="输入名称搜索" v-model="filterText" style="margin-bottom: 10px"></el-input>
+		<!-- <el-input placeholder="输入名称搜索" v-model="filterText" style="margin-bottom: 10px"></el-input> -->
 		<el-tree
 			:data="dataList"
 			node-key="id"
@@ -51,6 +51,7 @@
 				return data[this.nodeVal].indexOf(value) !== -1
 			},
 			nodeClick(data) {
+				console.log(data)
 				this.$emit('itemClick', data)
 			}
 		}

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 331 - 320
src/views/system/employeenInfo/index.vue


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно