@steedos/standard-ui 2.5.12-beta.2 → 2.5.12-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,6 +107,9 @@ tab_items:
107
107
  admin_flow_roles:
108
108
  group: approval_workflow
109
109
  index: 26
110
+ admin_flow_positions:
111
+ group: approval_workflow
112
+ index: 26.5
110
113
  admin_flows:
111
114
  group: approval_workflow
112
115
  index: 27
@@ -156,6 +159,6 @@ tab_items:
156
159
  group: development
157
160
  index: 42
158
161
  objects: []
159
- sort: 9100
162
+ sort: 999999
160
163
  #url: /app/admin
161
- visible: false
164
+ visible: true
@@ -2,7 +2,7 @@
2
2
  * @Author: 殷亮辉 yinlianghui@hotoa.com
3
3
  * @Date: 2023-05-16 17:00:38
4
4
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
5
- * @LastEditTime: 2023-08-04 12:48:06
5
+ * @LastEditTime: 2023-08-11 16:19:45
6
6
  */
7
7
  var buttonTriggerHistoryPathsChange;
8
8
  ; (function () {
@@ -121,10 +121,10 @@ function clearHistoryFilters(context, lastPath) {
121
121
  if (!lastPath || lastPath.params.app_id != params.app_id || lastPath.params.object_name != params.object_name || lastPath.params.list_view_id != params.list_view_id) {
122
122
  let listViewPropsStoreKey;
123
123
  if (lastPath) {
124
- listViewPropsStoreKey = lastPath.path + "/crud/" + (lastPath.params.list_view_id || "");
124
+ listViewPropsStoreKey = lastPath.path + "/crud";
125
125
  }
126
126
  else {
127
- listViewPropsStoreKey = path + "/crud/" + (params.list_view_id || "");
127
+ listViewPropsStoreKey = path + "/crud";
128
128
  }
129
129
  sessionStorage.removeItem(listViewPropsStoreKey);
130
130
  }
@@ -0,0 +1,21 @@
1
+ name: admin_flow_positions
2
+ desktop: true
3
+ icon: queue
4
+ is_new_window: false
5
+ label: 岗位成员
6
+ mobile: true
7
+ permissions:
8
+ - permission: 'on'
9
+ permission_set: admin
10
+ - permission: 'off'
11
+ permission_set: user
12
+ - permission: 'off'
13
+ permission_set: customer
14
+ - permission: 'off'
15
+ permission_set: supplier
16
+ - permission: 'off'
17
+ permission_set: organization_admin
18
+ - permission: 'off'
19
+ permission_set: workflow_admin
20
+ type: object
21
+ object: flow_positions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.5.12-beta.2",
3
+ "version": "2.5.12-beta.20",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "6def35560835825fae8495f2fa3da434c2760a3d"
15
+ "gitHead": "53a812e605b94993a2af7637a86d08927cf1ad4d"
16
16
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-07-29 09:40:31
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-12-09 13:41:00
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2023-08-19 19:56:00
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -36,7 +36,29 @@ module.exports = {
36
36
  * Actions
37
37
  */
38
38
  actions: {
39
-
39
+ getUsersName: {
40
+ rest: {
41
+ method: "POST",
42
+ fullPath: "/service/api/standard-ui/getUsersName"
43
+ },
44
+ async handler(ctx) {
45
+ const { userIds } = ctx.params;
46
+ if(!userIds || userIds.length == 0){
47
+ return []
48
+ }
49
+ //此查询不带权限, 使用userIds 获取用户姓名
50
+ return await ctx.broker.call(
51
+ 'objectql.find',
52
+ {
53
+ objectName: 'space_users',
54
+ query: {
55
+ fields: ['_id', 'user', 'name'],
56
+ filters: [["user", "in", userIds]]
57
+ },
58
+ }
59
+ );
60
+ }
61
+ }
40
62
  },
41
63
 
42
64
  /**