agilebuilder-ui 1.1.46-sit1 → 1.1.46-sit2

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.
Files changed (40) hide show
  1. package/lib/{401-17c1ba58.js → 401-75472dcd.js} +1 -1
  2. package/lib/{404-0bb0c21e.js → 404-e5ce8455.js} +1 -1
  3. package/lib/{iframe-page-200e9f78.js → iframe-page-9d5ce6b0.js} +1 -1
  4. package/lib/{index-fbc950ca.js → index-789fbe10.js} +11058 -11021
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +88 -88
  8. package/lib/{tab-content-iframe-index-23a2150d.js → tab-content-iframe-index-47fae8cf.js} +1 -1
  9. package/lib/{tab-content-index-55c47eb2.js → tab-content-index-6e5f5717.js} +1 -1
  10. package/lib/{tache-subprocess-history-9ffc5f04.js → tache-subprocess-history-1ed95cee.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +42 -34
  13. package/packages/department-tree-inline/src/department-single-tree-inline.vue +53 -42
  14. package/packages/department-tree-inline/src/search-result.vue +187 -219
  15. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +52 -43
  16. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +52 -42
  17. package/packages/department-user-tree-inline/src/search-result.vue +207 -220
  18. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +7 -2
  19. package/packages/empty-state/index.vue +28 -0
  20. package/packages/fs-preview/src/fs-preview.vue +7 -2
  21. package/packages/fs-upload/src/fs-upload-multi.vue +6 -4
  22. package/packages/fs-upload/src/fs-upload-single.vue +7 -6
  23. package/packages/fs-upload/src/fs-upload.vue +3 -1
  24. package/packages/fs-upload/src/see-big-picture.vue +3 -0
  25. package/packages/fs-upload-list/src/fs-upload-list.vue +2 -1
  26. package/packages/fs-upload-new/src/fs-button-upload.vue +3 -3
  27. package/packages/fs-upload-new/src/fs-drag-upload.vue +3 -3
  28. package/packages/fs-upload-new/src/fs-preview-new.vue +8 -5
  29. package/packages/plugins/export-data-new.js +2 -0
  30. package/packages/super-grid/src/components/grid-icon.vue +6 -3
  31. package/packages/super-grid/src/normal-column-content.vue +1 -1
  32. package/packages/utils/utils.js +26 -9
  33. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
  34. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +45 -36
  35. package/src/i18n/langs/cn.js +3 -3
  36. package/src/i18n/langs/en.js +4 -4
  37. package/src/styles/index.scss +26 -0
  38. package/src/utils/common-util.js +22 -0
  39. package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
  40. package/src/views/dsc-component/tabs/tab-content.vue +6 -0
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-fbc950ca.js";
2
+ import { _ as s } from "./index-789fbe10.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-fbc950ca.js";
1
+ import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-789fbe10.js";
2
2
  import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
3
3
  const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-fbc950ca.js";
2
+ import { _ as I } from "./index-789fbe10.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.46-sit1",
3
+ "version": "1.1.46-sit2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -19,39 +19,42 @@
19
19
  </el-autocomplete>
20
20
  </el-header>
21
21
  <el-main style="padding: 10px">
22
- <div
23
- v-if="!searchValue"
24
- style="padding-top: 5px; overflow: auto; width: 100%; display: inline-block !important"
25
- >
26
- <el-tree
27
- ref="deparmentTree"
28
- :filter-node-method="filterNode"
29
- :load="loadNode"
30
- :props="defaultProps"
31
- :show-checkbox="true"
32
- check-strictly
33
- lazy
34
- node-key="id"
35
- @check="handleCheckNode"
36
- @check-change="handleCheckChange"
37
- @node-expand="handleNodeExpand"
38
- @node-click="handleNodeClick"
22
+ <template v-if="!searchValue">
23
+ <div
24
+ v-if="canShowOrgTree"
25
+ style="padding-top: 5px; overflow: auto; width: 100%; display: inline-block !important"
39
26
  >
40
- <template #default="{ node, data }">
41
- <span>
42
- <el-icon>
43
- <Menu v-if="node.data.id === -1 || node.data.branch" />
44
- <Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
45
- <Calendar v-else />
46
- </el-icon>
47
- <span :title="node.label">
48
- {{ node.label }}
27
+ <el-tree
28
+ ref="deparmentTree"
29
+ :filter-node-method="filterNode"
30
+ :load="loadNode"
31
+ :props="defaultProps"
32
+ :show-checkbox="true"
33
+ check-strictly
34
+ lazy
35
+ node-key="id"
36
+ @check="handleCheckNode"
37
+ @check-change="handleCheckChange"
38
+ @node-expand="handleNodeExpand"
39
+ @node-click="handleNodeClick"
40
+ >
41
+ <template #default="{ node, data }">
42
+ <span>
43
+ <el-icon>
44
+ <Menu v-if="node.data.id === -1 || node.data.branch" />
45
+ <Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
46
+ <Calendar v-else />
47
+ </el-icon>
48
+ <span :title="node.label">
49
+ {{ node.label }}
50
+ </span>
49
51
  </span>
50
- </span>
51
- </template>
52
- </el-tree>
53
- </div>
54
-
52
+ </template>
53
+ </el-tree>
54
+ </div>
55
+ <!-- 暂无信息 -->
56
+ <EmptyState v-else style="width: 100%; height: 100%" />
57
+ </template>
55
58
  <div v-if="searchValue && searchValue.length > 0" style="height: 100%; overflow: hidden">
56
59
  <user-result
57
60
  :grid-data="searchResult"
@@ -96,7 +99,7 @@ import utils from '../../utils/utils'
96
99
  import departmentTreeService from './department-tree-service'
97
100
  import UserResult from './search-result.vue'
98
101
  import memoryCacheUtils from '../../utils/memory-cache-utils'
99
-
102
+ import EmptyState from '../../empty-state/index.vue'
100
103
  export default {
101
104
  data() {
102
105
  return {
@@ -139,12 +142,14 @@ export default {
139
142
  memoryCacheKey: 'DEPARTMENT_MEMORY_KEY',
140
143
  // 记忆选择数据, 搜索框获得焦点后,下拉显示最近选中的10个人,倒序排列,最后选中的在最上面显示。
141
144
  memoryCacheData: [],
142
- ElIconSearch
145
+ ElIconSearch,
146
+ canShowOrgTree: false
143
147
  }
144
148
  },
145
149
  name: 'InlineDepartmentMultiTree',
146
150
  components: {
147
- UserResult
151
+ UserResult,
152
+ EmptyState
148
153
  },
149
154
  props: {
150
155
  checkStrictly: {
@@ -199,6 +204,9 @@ export default {
199
204
  }
200
205
  },
201
206
  created() {
207
+ utils.canShowOrgTree().then((showOrgTree) => {
208
+ this.canShowOrgTree = showOrgTree
209
+ })
202
210
  this.initSelectDepts(this.searchField, this.selectDepartmentInfo, this.separator).then((selectUsers) => {
203
211
  if (selectUsers) {
204
212
  this.selectResult = selectUsers
@@ -17,47 +17,51 @@
17
17
  </el-autocomplete>
18
18
  </el-header>
19
19
  <el-main style="padding: 10px">
20
- <div
21
- v-if="!searchValue"
22
- style="padding-top: 5px; overflow: auto; width: 100%; display: inline-block !important"
23
- >
24
- <el-tree
25
- ref="deparmentTree"
26
- :filter-node-method="filterNode"
27
- :load="loadNode"
28
- :props="defaultProps"
29
- :show-checkbox="false"
30
- check-strictly
31
- lazy
32
- node-key="id"
33
- @check-change="handleCheckChange"
34
- @node-expand="handleNodeExpand"
35
- @node-click="handleNodeClick"
20
+ <template v-if="!searchValue">
21
+ <div
22
+ v-if="canShowOrgTree"
23
+ style="padding-top: 5px; overflow: auto; width: 100%; display: inline-block !important"
36
24
  >
37
- <template #default="{ node, data }">
38
- <span>
39
- <el-icon>
40
- <Menu v-if="node.data.id === -1 || node.data.branch" />
41
- <Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
42
- <Calendar v-else />
43
- </el-icon>
44
- <span
45
- :class="
46
- data.nodeType &&
47
- data.nodeType === 'DEPARTMENT' &&
48
- searchValue &&
49
- data.name.indexOf(searchValue) > -1
50
- ? 'searchResult'
51
- : ''
52
- "
53
- :title="node.label"
54
- >
55
- {{ node.label }}
25
+ <el-tree
26
+ ref="deparmentTree"
27
+ :filter-node-method="filterNode"
28
+ :load="loadNode"
29
+ :props="defaultProps"
30
+ :show-checkbox="false"
31
+ check-strictly
32
+ lazy
33
+ node-key="id"
34
+ @check-change="handleCheckChange"
35
+ @node-expand="handleNodeExpand"
36
+ @node-click="handleNodeClick"
37
+ >
38
+ <template #default="{ node, data }">
39
+ <span>
40
+ <el-icon>
41
+ <Menu v-if="node.data.id === -1 || node.data.branch" />
42
+ <Tickets v-else-if="node.data.id === -2 || node.data.id === -3" />
43
+ <Calendar v-else />
44
+ </el-icon>
45
+ <span
46
+ :class="
47
+ data.nodeType &&
48
+ data.nodeType === 'DEPARTMENT' &&
49
+ searchValue &&
50
+ data.name.indexOf(searchValue) > -1
51
+ ? 'searchResult'
52
+ : ''
53
+ "
54
+ :title="node.label"
55
+ >
56
+ {{ node.label }}
57
+ </span>
56
58
  </span>
57
- </span>
58
- </template>
59
- </el-tree>
60
- </div>
59
+ </template>
60
+ </el-tree>
61
+ </div>
62
+ <!-- 暂无信息 -->
63
+ <EmptyState v-else style="width: 100%; height: 100%" />
64
+ </template>
61
65
  <div v-if="searchValue && searchValue.length > 0" style="height: 100%; overflow: hidden">
62
66
  <user-result
63
67
  :grid-data="searchResult"
@@ -81,7 +85,7 @@ import utils from '../../utils/utils'
81
85
  import departmentTreeService from './department-tree-service'
82
86
  import memoryCacheUtils from '../../utils/memory-cache-utils'
83
87
  import UserResult from './search-result.vue'
84
-
88
+ import EmptyState from '../../empty-state/index.vue'
85
89
  export default {
86
90
  data() {
87
91
  return {
@@ -120,12 +124,14 @@ export default {
120
124
  memoryCacheKey: 'DEPARTMENT_MEMORY_KEY',
121
125
  // 记忆选择数据, 搜索框获得焦点后,下拉显示最近选中的10个人,倒序排列,最后选中的在最上面显示。
122
126
  memoryCacheData: [],
123
- ElIconSearch
127
+ ElIconSearch,
128
+ canShowOrgTree: false
124
129
  }
125
130
  },
126
131
  name: 'InlineDepartmentSingleTree',
127
132
  components: {
128
- UserResult
133
+ UserResult,
134
+ EmptyState
129
135
  },
130
136
  props: {
131
137
  // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
@@ -175,6 +181,11 @@ export default {
175
181
  }
176
182
  }
177
183
  },
184
+ created() {
185
+ utils.canShowOrgTree().then((showOrgTree) => {
186
+ this.canShowOrgTree = showOrgTree
187
+ })
188
+ },
178
189
  mounted() {
179
190
  var searchDepartment = localStorage.getObject(this.searchStoreKey)
180
191
  if (searchDepartment) {