Ver código fonte

添加并在流程设计中使用按租户ID查询用户列表接口

lph 1 ano atrás
pai
commit
926e68b452

+ 8 - 0
zkqy-ui/src/api/system/user.js

@@ -141,3 +141,11 @@ export function getIsExistUser(query) {
     params: query
   })
 }
+// 根据租户id获取用户列表
+export function getUserListByTenantId(query) {
+  return request({
+    url: '/system/user/userListByTenantId',
+    method: 'get',
+    params: query
+  })
+}

+ 6 - 2
zkqy-ui/src/views/system/bpmnPro/index.vue

@@ -79,7 +79,7 @@ import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
 import { getProcess, getNodeData } from "@/api/bpmprocess/process";
 
 import { listScript } from "@/api/bpmprocess/process";
-import { listUser } from "@/api/system/user";
+import { listUser, getUserListByTenantId } from "@/api/system/user";
 import { listRole } from "@/api/system/role";
 
 export default {
@@ -143,8 +143,12 @@ export default {
     },
     // 获取所有用户列表
     async getAllUserList() {
+      // console.log(this.$store.state.user.tenant.tenantId);
       try {
-        let res = await listUser({ isEnablePaging: false });
+        // let res = await listUser({ isEnablePaging: false });
+        let res = await getUserListByTenantId({
+          tenantId: this.$store.state?.user?.tenant?.tenantId,
+        });
         if (res.code == 200) {
           // res.rows.forEach((item) => {
           // this.exeUserValueList.push({