agilebuilder-ui 1.1.36-tmp4 → 1.1.37

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 (67) hide show
  1. package/lib/{401-c55bdcf2.js → 401-9314ce87.js} +1 -1
  2. package/lib/{404-c1dbd5e1.js → 404-572d631d.js} +1 -1
  3. package/lib/{iframe-page-917912ae.js → iframe-page-87c9c0d0.js} +1 -1
  4. package/lib/{index-6ec53ef7.js → index-79b98485.js} +12729 -12671
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +99 -99
  8. package/lib/{tab-content-iframe-index-46a76242.js → tab-content-iframe-index-070ce653.js} +1 -1
  9. package/lib/{tab-content-index-132379e6.js → tab-content-index-3b98efb4.js} +1 -1
  10. package/lib/{tache-subprocess-history-384455d6.js → tache-subprocess-history-46442012.js} +1 -1
  11. package/package.json +2 -2
  12. package/packages/department-tree/src/department-tree.vue +130 -123
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +435 -466
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +335 -342
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +18 -11
  16. package/packages/department-tree-inline/src/department-tree-service.js +10 -11
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +103 -75
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +256 -225
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +98 -75
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +112 -115
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +85 -88
  22. package/packages/department-user-tree/src/department-user-tree.vue +127 -119
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +6 -1
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +5 -0
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +18 -11
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +26 -51
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +25 -45
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +97 -90
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +28 -32
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +103 -75
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +282 -224
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +58 -51
  33. package/packages/fs-preview/src/fs-preview.vue +20 -2
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +30 -7
  35. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
  36. package/packages/fs-upload-new/src/fs-preview-new.vue +27 -15
  37. package/packages/index.js +4 -4
  38. package/packages/organization-input/src/organization-input.vue +34 -12
  39. package/packages/super-grid/src/apis.js +21 -4
  40. package/packages/super-grid/src/dynamic-input.vue +58 -13
  41. package/packages/super-grid/src/normal-column-content.vue +1 -1
  42. package/packages/super-grid/src/row-operation.vue +10 -4
  43. package/packages/super-grid/src/super-grid.vue +51 -42
  44. package/packages/super-grid/src/utils.js +13 -8
  45. package/packages/super-icon/src/index.vue +4 -1
  46. package/packages/workgroup-tree/src/workgroup-tree.vue +117 -110
  47. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +6 -1
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +103 -75
  49. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +229 -208
  50. package/src/api/sso-service.js +6 -5
  51. package/src/directives/permission/index.js +4 -4
  52. package/src/index.js +71 -2
  53. package/src/store/modules/table.js +0 -1
  54. package/src/styles/theme/dark-blue/sidebar.scss +9 -0
  55. package/src/styles/theme/gray/sidebar.scss +9 -8
  56. package/src/styles/theme/green/sidebar.scss +10 -0
  57. package/src/styles/theme/ocean-blue/sidebar.scss +9 -0
  58. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +9 -0
  59. package/src/utils/insert_css.js +1 -1
  60. package/src/utils/util.js +19 -0
  61. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  62. package/src/views/dsc-component/Sidebar/index.vue +36 -18
  63. package/src/views/layout/components/Menubar/Item.vue +0 -9
  64. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  65. package/src/views/layout/components/Sidebar/Item.vue +4 -1
  66. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  67. package/vite.config.js +1 -1
@@ -6,6 +6,7 @@
6
6
  :height="height"
7
7
  :check-strictly="checkStrictly"
8
8
  :department-info="departmentInfo"
9
+ :limit-filter-column="limitFilterColumn"
9
10
  :select-department-info="selectDepartmentInfo"
10
11
  :search-field="searchField"
11
12
  :separator="separator"
@@ -15,6 +16,7 @@
15
16
  v-if="!multiple"
16
17
  ref="inlineDeparmentTree"
17
18
  :department-info="departmentInfo"
19
+ :limit-filter-column="limitFilterColumn"
18
20
  @result="result"
19
21
  />
20
22
  </div>
@@ -28,47 +30,52 @@ export default {
28
30
  name: 'InlineDepartmentTree',
29
31
  components: {
30
32
  InlineDepartmentMultiTree,
31
- InlineDepartmentSingleTree,
33
+ InlineDepartmentSingleTree
32
34
  },
33
35
  props: {
34
36
  // 是否是多选树,默认是true
35
37
  multiple: {
36
38
  type: Boolean,
37
- default: true,
39
+ default: true
38
40
  },
39
41
  checkStrictly: {
40
42
  type: Boolean,
41
- default: false,
43
+ default: false
42
44
  },
43
45
  // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
44
46
  departmentInfo: {
45
47
  type: Array,
46
- default: null,
48
+ default: null
47
49
  },
48
50
  // 弹框的高度
49
51
  height: {
50
52
  type: String,
51
- default: '300px',
53
+ default: '300px'
52
54
  },
53
55
  // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
54
56
  selectDepartmentInfo: {
55
57
  type: [String, Number],
56
- default: null,
58
+ default: null
57
59
  },
58
60
  // 移除部门时,部门属性名称:id、name、code,默认是id
59
61
  searchField: {
60
62
  type: String,
61
- default: 'id',
63
+ default: 'id'
62
64
  },
63
65
  // 多选树时结果之间的分隔符,默认是逗号分隔
64
66
  separator: {
65
67
  type: String,
66
- default: ',',
68
+ default: ','
67
69
  },
70
+ // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
71
+ limitFilterColumn: {
72
+ type: String,
73
+ default: 'code'
74
+ }
68
75
  },
69
76
  data() {
70
77
  return {
71
- selectNodeInfo: null, // 单选时,选择的用户信息
78
+ selectNodeInfo: null // 单选时,选择的用户信息
72
79
  }
73
80
  },
74
81
  mounted() {},
@@ -79,8 +86,8 @@ export default {
79
86
  },
80
87
  selectDepartment() {
81
88
  this.$refs.inlineDeparmentTree.selectDepartment()
82
- },
89
+ }
83
90
  },
84
- emits: ['result'],
91
+ emits: ['result']
85
92
  }
86
93
  </script>
@@ -249,17 +249,16 @@ const departmentTreeService = {
249
249
  },
250
250
  // 加载指定部门节点
251
251
  loadPointDepartments() {
252
- this.$http
253
- .post(
254
- window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-departments',
255
- this.departmentInfo
256
- )
257
- .then((children) => {
258
- this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId, children)
259
- if (this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]) {
260
- this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded = true
261
- }
262
- })
252
+ let url = window.$vueApp.config.globalProperties.baseAPI + '/component/organization-trees/point-departments'
253
+ if (this.limitFilterColumn) {
254
+ url += '/' + this.limitFilterColumn
255
+ }
256
+ this.$http.post(url, this.departmentInfo).then((children) => {
257
+ this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId, children)
258
+ if (this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]) {
259
+ this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded = true
260
+ }
261
+ })
263
262
  },
264
263
  getSelectDepts(searchField, selectDeptInfo, separator) {
265
264
  return new Promise((resolve, reject) => {
@@ -1,120 +1,148 @@
1
1
  <template>
2
- <el-drawer v-model="isShowForm" append-to-body :close-on-click-modal="false" :close-on-press-escape="false" direction="btt" size="100%" class="organization-tree" @close="closeTree()">
2
+ <el-drawer
3
+ v-model="isShowForm"
4
+ append-to-body
5
+ :close-on-click-modal="false"
6
+ :close-on-press-escape="false"
7
+ direction="btt"
8
+ size="100%"
9
+ class="organization-tree"
10
+ @close="closeTree()"
11
+ >
3
12
  <template #header>
4
- <div style="text-align: center;">
5
- {{$t('imatrixUIMessage.pleaseSelect')}}
6
- </div>
13
+ <div style="text-align: center">
14
+ {{ $t('imatrixUIMessage.pleaseSelect') }}
15
+ </div>
7
16
  </template>
8
17
  <template #default>
9
- <InlineDepartmentTreeApp v-if="isShowForm" :multiple="multiple" :departmentInfo="departmentInfo" :selectDepartmentInfo="selectDepartmentInfo" :searchField="searchField" :separator="separator" @close="closeTree"/>
18
+ <InlineDepartmentTreeApp
19
+ v-if="isShowForm"
20
+ :multiple="multiple"
21
+ :departmentInfo="departmentInfo"
22
+ :selectDepartmentInfo="selectDepartmentInfo"
23
+ :searchField="searchField"
24
+ :separator="separator"
25
+ :limitFilterColumn="limitFilterColumn"
26
+ @close="closeTree"
27
+ />
10
28
  </template>
11
29
  </el-drawer>
12
-
13
30
  </template>
14
31
 
15
- <script lang="ts">
32
+ <script lang="ts">
16
33
  export default {
17
34
  name: 'DepartmentTreeMobile'
18
35
  }
19
36
  </script>
20
- <script setup lang="ts">
37
+ <script setup lang="ts">
21
38
  import InlineDepartmentTreeApp from './department-tree-inline-app.vue'
22
- import { reactive,ref,onMounted, defineEmits } from 'vue'
39
+ import { reactive, ref, onMounted, defineEmits } from 'vue'
23
40
  const props = defineProps<{
24
- // 是否是多选树,默认是true
25
- multiple: {
26
- type: Boolean,
27
- default: true,
28
- },
29
- // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
30
- departmentInfo: {
31
- type: Array<any>,
32
- default: null,
33
- },
34
- // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
35
- selectDepartmentInfo: {
36
- type: [String, Number],
37
- default: null,
38
- },
39
- // 移除部门时,部门属性名称:id、name、code,默认是id
40
- searchField: {
41
- type: String,
42
- default: 'id',
43
- },
44
- // 多选树时结果之间的分隔符,默认是逗号分隔
45
- separator: {
46
- type: String,
47
- default: ','
48
- }
49
- }>()
50
- const emits = defineEmits(['close'])
51
- let isShowForm = ref(true)
52
- // function showTree() {
53
- // isShowForm.value = true
54
- // }
55
- function closeTree(selectNodeInfo) {
56
- emits('close', selectNodeInfo)
57
- isShowForm.value = false
58
- }
59
- function selectDepartment() {
60
- // this.$refs.inlineDeparmentTree.selectDepartment()
61
- }
62
- // defineExpose({showTree})
41
+ // 是否是多选树,默认是true
42
+ multiple: {
43
+ type: Boolean
44
+ default: true
45
+ }
46
+ // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
47
+ departmentInfo: {
48
+ type: Array<any>
49
+ default: null
50
+ }
51
+ // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
52
+ selectDepartmentInfo: {
53
+ type: [String, Number]
54
+ default: null
55
+ }
56
+ // 移除部门时,部门属性名称:id、name、code,默认是id
57
+ searchField: {
58
+ type: String
59
+ default: 'id'
60
+ }
61
+ // 多选树时结果之间的分隔符,默认是逗号分隔
62
+ separator: {
63
+ type: String
64
+ default: ','
65
+ }
66
+ // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
67
+ limitFilterColumn: {
68
+ type: String
69
+ default: 'code'
70
+ }
71
+ }>()
72
+ const emits = defineEmits(['close'])
73
+ let isShowForm = ref(true)
74
+ // function showTree() {
75
+ // isShowForm.value = true
76
+ // }
77
+ function closeTree(selectNodeInfo) {
78
+ emits('close', selectNodeInfo)
79
+ isShowForm.value = false
80
+ }
81
+ function selectDepartment() {
82
+ // this.$refs.inlineDeparmentTree.selectDepartment()
83
+ }
84
+ // defineExpose({showTree})
63
85
  </script>
64
86
  <style>
65
- .organization-tree, .organization-tree .el-checkbox__label,.organization-tree .el-breadcrumb__inner,.organization-tree .el-tree {
66
- font-size: 17px;
67
- font-weight: 700;
87
+ .organization-tree,
88
+ .organization-tree .el-checkbox__label,
89
+ .organization-tree .el-breadcrumb__inner,
90
+ .organization-tree .el-tree {
91
+ font-size: 17px;
92
+ font-weight: 700;
68
93
  }
69
94
 
70
- .organization-tree .el-breadcrumb__item:last-child .el-breadcrumb__inner, .el-breadcrumb__item:last-child .el-breadcrumb__inner a, .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover, .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
71
- font-size: 17px;
72
- font-weight: 700;
95
+ .organization-tree .el-breadcrumb__item:last-child .el-breadcrumb__inner,
96
+ .el-breadcrumb__item:last-child .el-breadcrumb__inner a,
97
+ .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
98
+ .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
99
+ font-size: 17px;
100
+ font-weight: 700;
73
101
  }
74
102
  .organization-tree .el-card__body {
75
- padding-top: 10px;
103
+ padding-top: 10px;
76
104
  }
77
105
  .organization-tree .card-content {
78
- margin-top: 10px;
106
+ margin-top: 10px;
79
107
  }
80
108
  .organization-tree .item-row-all {
81
- margin-bottom: 10px;
109
+ margin-bottom: 10px;
82
110
  }
83
111
  .organization-tree .item-row {
84
- display: flex;
85
- width: 100%;
112
+ display: flex;
113
+ width: 100%;
86
114
  }
87
115
  .organization-tree .item-label {
88
- flex: 0 0 90%;
89
- text-align: left;
116
+ flex: 0 0 90%;
117
+ text-align: left;
90
118
  }
91
119
  .organization-tree .item-side {
92
- flex: 0 0 10%;
93
- text-align: right;
120
+ flex: 0 0 10%;
121
+ text-align: right;
94
122
  }
95
123
  .organization-tree .el-tree-node {
96
- margin-bottom: 10px;
124
+ margin-bottom: 10px;
97
125
  }
98
126
 
99
- .organization-tree .el-tree-node__content>.el-tree-node__expand-icon {
100
- padding: 0;
101
- display: none;
127
+ .organization-tree .el-tree-node__content > .el-tree-node__expand-icon {
128
+ padding: 0;
129
+ display: none;
102
130
  }
103
131
 
104
132
  .organization-tree .card-footer {
105
- padding: 20px;
133
+ padding: 20px;
106
134
  }
107
135
  .organization-tree .card-footer .select-result {
108
- color: #409EFF;
109
- flex:1 1 75%;
110
- text-align: left;
136
+ color: #409eff;
137
+ flex: 1 1 75%;
138
+ text-align: left;
111
139
  }
112
140
  .organization-tree .card-footer .button-area {
113
- flex:0 0 20%;
114
- text-align: right;
141
+ flex: 0 0 20%;
142
+ text-align: right;
115
143
  }
116
144
 
117
- .organization-tree .dept-path .breadcrumb-label-link{
118
- color:#409EFF
145
+ .organization-tree .dept-path .breadcrumb-label-link {
146
+ color: #409eff;
119
147
  }
120
148
  </style>