agilebuilder-ui 1.1.35 → 1.1.36-sit1

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 (72) hide show
  1. package/lib/{401-20f1c97c.js → 401-e367a09a.js} +1 -1
  2. package/lib/{404-36d09e24.js → 404-45104bc5.js} +1 -1
  3. package/lib/{iframe-page-51c292dc.js → iframe-page-8a758d4d.js} +1 -1
  4. package/lib/{index-19f46200.js → index-8c6ab0ba.js} +2054 -1966
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +100 -100
  8. package/lib/{tab-content-iframe-index-5d9d85c0.js → tab-content-iframe-index-16f7cb65.js} +1 -1
  9. package/lib/{tab-content-index-bd535c86.js → tab-content-index-f136be89.js} +1 -1
  10. package/lib/{tache-subprocess-history-56bf69ba.js → tache-subprocess-history-4f9a7773.js} +1 -1
  11. package/package.json +1 -1
  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 +111 -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 +25 -51
  27. package/packages/department-user-tree-inline/src/group-user/group-list.vue +97 -90
  28. package/packages/department-user-tree-inline/src/group-user/group-user.vue +28 -32
  29. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +103 -75
  30. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +282 -224
  31. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +58 -51
  32. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
  33. package/packages/organization-input/src/organization-input.vue +34 -12
  34. package/packages/super-grid/src/apis.js +21 -4
  35. package/packages/super-grid/src/dynamic-input.vue +1 -12
  36. package/packages/super-grid/src/formatter.js +4 -3
  37. package/packages/super-grid/src/normal-column-content.vue +25 -1
  38. package/packages/super-grid/src/row-operation.vue +23 -13
  39. package/packages/super-grid/src/search-form-open.vue +0 -1
  40. package/packages/super-grid/src/super-grid-service.js +1 -1
  41. package/packages/super-grid/src/super-grid.vue +51 -42
  42. package/packages/super-grid/src/utils.js +19 -6
  43. package/packages/super-icon/src/index.vue +11 -2
  44. package/packages/utils/value-set.js +147 -1
  45. package/packages/workgroup-tree/src/workgroup-tree.vue +117 -110
  46. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +6 -1
  47. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +103 -75
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +229 -208
  49. package/src/api/sso-service.js +6 -5
  50. package/src/store/modules/table.js +0 -1
  51. package/src/styles/theme/black/font-style.scss +2 -0
  52. package/src/styles/theme/blue/font-style.scss +2 -0
  53. package/src/styles/theme/blue2/font-style.scss +2 -0
  54. package/src/styles/theme/dark-blue/font.scss +2 -0
  55. package/src/styles/theme/dark-blue/sidebar.scss +8 -0
  56. package/src/styles/theme/gray/font-style.scss +2 -0
  57. package/src/styles/theme/green/font.scss +3 -1
  58. package/src/styles/theme/green/sidebar.scss +9 -0
  59. package/src/styles/theme/ocean-blue/font.scss +3 -1
  60. package/src/styles/theme/ocean-blue/sidebar.scss +8 -0
  61. package/src/styles/theme/tiffany-blue-mobile/font.scss +2 -0
  62. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +8 -0
  63. package/src/utils/file-util.ts +32 -0
  64. package/src/utils/insert_css.js +1 -1
  65. package/src/utils/util.js +721 -715
  66. package/src/views/dsc-component/Sidebar/Item.vue +7 -2
  67. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  68. package/src/views/dsc-component/Sidebar/index.vue +36 -18
  69. package/src/views/layout/components/Menubar/Item.vue +0 -9
  70. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  71. package/src/views/layout/components/Sidebar/Item.vue +4 -1
  72. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
@@ -1,99 +1,106 @@
1
1
  <template>
2
- <div>
3
- <el-dialog
4
- model-value
5
- :title="$t('departmentUserTreeInline.groupList')"
6
- :close-on-click-modal="false"
7
- append-to-body
8
- width="30%"
9
- @open="$emit('openDialog')"
10
- @opend="$emit('opendDialog')"
11
- @close="$emit('closeDialog')"
12
- @closed="$emit('closedDialog')"
13
- >
14
- <div>
15
- <div style="padding-bottom: 5px">
16
- <el-button size="small" @click="addGroup()">
17
- {{ $t('imatrixUIPublicModel.add') }}
18
- </el-button>
19
- </div>
20
- <el-table :data="tableData" border style="width: 100%" max-height="350">
21
- <el-table-column :label="$t('superGrid.index')" align="center" width="60">
22
- <template #default="scope">
23
- {{ scope.$index+1 }}
24
- </template>
25
- </el-table-column>
26
- <el-table-column prop="name" :label="$t('departmentUserTreeInline.groupName')" />
27
- <el-table-column :label="$t('imatrixUIPublicModel.edit')" align="center" width="130">
28
- <template #default="scope">
29
- <div>
30
- <el-button type="primary" size="small" :icon="EditPen" circle @click="updateGroup(scope.$index, scope.row)" />
31
- <el-button type="danger" size="small" :icon="Delete" circle @click="removeGroup(scope.$index, scope.row)" />
32
- </div>
33
- </template>
34
- </el-table-column>
35
- </el-table>
36
- </div>
37
- </el-dialog>
38
- <GroupInput
39
- v-if="isShowInput2"
40
- :group-id="groupId"
41
- @closeDialog="closeGroupInput"
42
- />
43
- </div>
2
+ <div>
3
+ <el-dialog
4
+ model-value
5
+ :title="$t('departmentUserTreeInline.groupList')"
6
+ :close-on-click-modal="false"
7
+ append-to-body
8
+ width="30%"
9
+ @open="$emit('openDialog')"
10
+ @opend="$emit('opendDialog')"
11
+ @close="$emit('closeDialog')"
12
+ @closed="$emit('closedDialog')"
13
+ >
14
+ <div>
15
+ <div style="padding-bottom: 5px">
16
+ <el-button size="small" @click="addGroup()">
17
+ {{ $t('imatrixUIPublicModel.add') }}
18
+ </el-button>
19
+ </div>
20
+ <el-table :data="tableData" border style="width: 100%" max-height="350">
21
+ <el-table-column :label="$t('superGrid.index')" align="center" width="60">
22
+ <template #default="scope">
23
+ {{ scope.$index + 1 }}
24
+ </template>
25
+ </el-table-column>
26
+ <el-table-column prop="name" :label="$t('departmentUserTreeInline.groupName')" />
27
+ <el-table-column :label="$t('imatrixUIPublicModel.edit')" align="center" width="130">
28
+ <template #default="scope">
29
+ <div>
30
+ <el-button
31
+ type="primary"
32
+ size="small"
33
+ :icon="EditPen"
34
+ circle
35
+ @click="updateGroup(scope.$index, scope.row)"
36
+ />
37
+ <el-button
38
+ type="danger"
39
+ size="small"
40
+ :icon="Delete"
41
+ circle
42
+ @click="removeGroup(scope.$index, scope.row)"
43
+ />
44
+ </div>
45
+ </template>
46
+ </el-table-column>
47
+ </el-table>
48
+ </div>
49
+ </el-dialog>
50
+ <GroupInput v-if="isShowInput2" :group-id="groupId" @closeDialog="closeGroupInput" />
51
+ </div>
44
52
  </template>
45
53
  <script setup>
46
- import {EditPen,Delete} from '@element-plus/icons-vue'
54
+ import { EditPen, Delete } from '@element-plus/icons-vue'
47
55
  </script>
48
56
  <script>
49
- import GroupInput from './group-input'
57
+ import GroupInput from './group-input.vue'
50
58
  import groupUserTreeSevice from '../group-user-tree-service'
51
59
  export default {
52
- name: 'GroupList',
53
- components: {
54
- GroupInput,
55
- },
56
- props: {
57
- },
58
- data() {
59
- return {
60
- tableData: [],
61
- isShowInput2: false,
62
- groupId: null
63
- }
64
- },
65
- created() {
66
- this.listGroups()
67
- },
68
- methods: {
69
- ...groupUserTreeSevice,
70
- listGroups() {
71
- this.getUserGroupList().then((data) => {
72
- this.tableData = data
73
- })
74
- },
75
- updateGroup(rowindex, row) {
76
- this.groupId = row.id
77
- this.isShowInput2 = true
78
- },
79
- removeGroup(rowindex, row) {
80
- this.deleteUserGroup(row.id).then(() => {
81
- this.$message({
82
- showClose: true,
83
- type: 'success',
84
- message: this.$t('superGrid.deleteSuccessful')
85
- })
86
- this.listGroups()
87
- })
88
- },
89
- closeGroupInput() {
90
- this.isShowInput2 = false
91
- this.listGroups()
92
- },
93
- addGroup() {
94
- this.groupId = null
95
- this.isShowInput2 = true
96
- }
97
- }
60
+ name: 'GroupList',
61
+ components: {
62
+ GroupInput
63
+ },
64
+ props: {},
65
+ data() {
66
+ return {
67
+ tableData: [],
68
+ isShowInput2: false,
69
+ groupId: null
70
+ }
71
+ },
72
+ created() {
73
+ this.listGroups()
74
+ },
75
+ methods: {
76
+ ...groupUserTreeSevice,
77
+ listGroups() {
78
+ this.getUserGroupList().then((data) => {
79
+ this.tableData = data
80
+ })
81
+ },
82
+ updateGroup(rowindex, row) {
83
+ this.groupId = row.id
84
+ this.isShowInput2 = true
85
+ },
86
+ removeGroup(rowindex, row) {
87
+ this.deleteUserGroup(row.id).then(() => {
88
+ this.$message({
89
+ showClose: true,
90
+ type: 'success',
91
+ message: this.$t('superGrid.deleteSuccessful')
92
+ })
93
+ this.listGroups()
94
+ })
95
+ },
96
+ closeGroupInput() {
97
+ this.isShowInput2 = false
98
+ this.listGroups()
99
+ },
100
+ addGroup() {
101
+ this.groupId = null
102
+ this.isShowInput2 = true
103
+ }
104
+ }
98
105
  }
99
106
  </script>
@@ -1,42 +1,38 @@
1
1
  <template>
2
2
  <span style="padding-left: 10px">
3
- <el-icon><CirclePlus @click="isShowList = true" /></el-icon>
4
- <GroupList
5
- v-if="isShowList"
6
- @closeDialog="closeList()"
7
- />
3
+ <el-icon><CirclePlus @click="isShowList = true" /></el-icon>
4
+ <GroupList v-if="isShowList" @closeDialog="closeList()" />
8
5
  </span>
9
6
  </template>
10
7
  <script>
11
- import GroupList from './group-list'
8
+ import GroupList from './group-list.vue'
12
9
  import groupUserTreeService from '../group-user-tree-service'
13
10
  import { CirclePlus } from '@element-plus/icons-vue'
14
11
  export default {
15
- name: 'GroupUser',
16
- components: {
17
- GroupList,
18
- CirclePlus
19
- },
20
- props: {
21
- activeTab: {
22
- type: String,
23
- default: null
24
- }
25
- },
26
- data() {
27
- return {
28
- isShowList: false,
29
- groupId: null
30
- }
31
- },
32
- created() {
33
- },
34
- methods: {
35
- ...groupUserTreeService,
36
- closeList() {
37
- this.isShowList = false
38
- this.$emit('update-group-tree')
39
- },
40
- }
12
+ name: 'GroupUser',
13
+ components: {
14
+ GroupList,
15
+ CirclePlus
16
+ },
17
+ props: {
18
+ activeTab: {
19
+ type: String,
20
+ default: null
21
+ }
22
+ },
23
+ data() {
24
+ return {
25
+ isShowList: false,
26
+ groupId: null
27
+ }
28
+ },
29
+ created() {},
30
+ methods: {
31
+ ...groupUserTreeService,
32
+ closeList() {
33
+ this.isShowList = false
34
+ this.$emit('update-group-tree')
35
+ }
36
+ }
41
37
  }
42
38
  </script>
@@ -1,119 +1,147 @@
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
- <InlineDepartmentUserTreeApp v-if="isShowForm" :multiple="multiple" :departmentInfo="departmentInfo" :selectUserInfo="selectUserInfo" :searchField="searchField" :separator="separator" @close="closeTree"/>
18
+ <InlineDepartmentUserTreeApp
19
+ v-if="isShowForm"
20
+ :multiple="multiple"
21
+ :departmentInfo="departmentInfo"
22
+ :selectUserInfo="selectUserInfo"
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
- <script lang="ts">
31
+ <script lang="ts">
15
32
  export default {
16
33
  name: 'DepartmentUserTreeMobile'
17
34
  }
18
35
  </script>
19
- <script setup lang="ts">
36
+ <script setup lang="ts">
20
37
  import InlineDepartmentUserTreeApp from './department-user-tree-inline-app.vue'
21
- import { reactive,ref,onMounted, defineEmits } from 'vue'
38
+ import { reactive, ref, onMounted, defineEmits } from 'vue'
22
39
  const props = defineProps<{
23
- // 是否是多选树,默认是true
24
- multiple: {
25
- type: Boolean,
26
- default: true,
27
- },
28
- // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
29
- departmentInfo: {
30
- type: Array<any>,
31
- default: null,
32
- },
33
- // 多选用户树时,已选择用户id或登录名集合,多个之间以逗号隔开
34
- selectUserInfo: {
35
- type: [String, Number],
36
- default: null,
37
- },
38
- // 移除用户时,用户属性名称:id、loginName、email、telephone,默认是loginName
39
- searchField: {
40
- type: String,
41
- default: 'loginName',
42
- },
43
- // 多选树时结果之间的分隔符,默认是逗号分隔
44
- separator: {
45
- type: String,
46
- default: ','
47
- }
48
- }>()
49
- const emits = defineEmits(['close'])
50
- let isShowForm = ref(true)
51
- // function showTree() {
52
- // isShowForm.value = true
53
- // }
54
- function closeTree(selectNodeInfo) {
55
- emits('close', selectNodeInfo)
56
- isShowForm.value = false
57
- }
58
- function selectDepartment() {
59
- // this.$refs.inlineDeparmentTree.selectDepartment()
60
- }
61
- // defineExpose({showTree})
40
+ // 是否是多选树,默认是true
41
+ multiple: {
42
+ type: Boolean
43
+ default: true
44
+ }
45
+ // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
46
+ departmentInfo: {
47
+ type: Array<any>
48
+ default: null
49
+ }
50
+ // 多选用户树时,已选择用户id或登录名集合,多个之间以逗号隔开
51
+ selectUserInfo: {
52
+ type: [String, Number]
53
+ default: null
54
+ }
55
+ // 移除用户时,用户属性名称:id、loginName、email、telephone,默认是loginName
56
+ searchField: {
57
+ type: String
58
+ default: 'loginName'
59
+ }
60
+ // 多选树时结果之间的分隔符,默认是逗号分隔
61
+ separator: {
62
+ type: String
63
+ default: ','
64
+ }
65
+ // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
66
+ limitFilterColumn: {
67
+ type: String
68
+ default: 'code'
69
+ }
70
+ }>()
71
+ const emits = defineEmits(['close'])
72
+ let isShowForm = ref(true)
73
+ // function showTree() {
74
+ // isShowForm.value = true
75
+ // }
76
+ function closeTree(selectNodeInfo) {
77
+ emits('close', selectNodeInfo)
78
+ isShowForm.value = false
79
+ }
80
+ function selectDepartment() {
81
+ // this.$refs.inlineDeparmentTree.selectDepartment()
82
+ }
83
+ // defineExpose({showTree})
62
84
  </script>
63
85
  <style>
64
- .organization-tree, .organization-tree .el-checkbox__label,.organization-tree .el-breadcrumb__inner,.organization-tree .el-tree {
65
- font-size: 17px;
66
- font-weight: 700;
86
+ .organization-tree,
87
+ .organization-tree .el-checkbox__label,
88
+ .organization-tree .el-breadcrumb__inner,
89
+ .organization-tree .el-tree {
90
+ font-size: 17px;
91
+ font-weight: 700;
67
92
  }
68
93
 
69
- .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 {
70
- font-size: 17px;
71
- font-weight: 700;
94
+ .organization-tree .el-breadcrumb__item:last-child .el-breadcrumb__inner,
95
+ .el-breadcrumb__item:last-child .el-breadcrumb__inner a,
96
+ .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
97
+ .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
98
+ font-size: 17px;
99
+ font-weight: 700;
72
100
  }
73
101
  .organization-tree .el-card__body {
74
- padding-top: 10px;
102
+ padding-top: 10px;
75
103
  }
76
104
  .organization-tree .card-content {
77
- margin-top: 10px;
105
+ margin-top: 10px;
78
106
  }
79
107
  .organization-tree .item-row-all {
80
- margin-bottom: 10px;
108
+ margin-bottom: 10px;
81
109
  }
82
110
  .organization-tree .item-row {
83
- display: flex;
84
- width: 100%;
111
+ display: flex;
112
+ width: 100%;
85
113
  }
86
114
  .organization-tree .item-label {
87
- flex: 0 0 90%;
88
- text-align: left;
115
+ flex: 0 0 90%;
116
+ text-align: left;
89
117
  }
90
118
  .organization-tree .item-side {
91
- flex: 0 0 10%;
92
- text-align: right;
119
+ flex: 0 0 10%;
120
+ text-align: right;
93
121
  }
94
122
  .organization-tree .el-tree-node {
95
- margin-bottom: 10px;
123
+ margin-bottom: 10px;
96
124
  }
97
125
 
98
- .organization-tree .el-tree-node__content>.el-tree-node__expand-icon {
99
- padding: 0;
100
- display: none;
126
+ .organization-tree .el-tree-node__content > .el-tree-node__expand-icon {
127
+ padding: 0;
128
+ display: none;
101
129
  }
102
130
 
103
131
  .organization-tree .card-footer {
104
- padding: 20px;
132
+ padding: 20px;
105
133
  }
106
134
  .organization-tree .card-footer .select-result {
107
- color: #409EFF;
108
- flex:1 1 75%;
109
- text-align: left;
135
+ color: #409eff;
136
+ flex: 1 1 75%;
137
+ text-align: left;
110
138
  }
111
139
  .organization-tree .card-footer .button-area {
112
- flex:0 0 20%;
113
- text-align: right;
140
+ flex: 0 0 20%;
141
+ text-align: right;
114
142
  }
115
143
 
116
- .organization-tree .dept-path .breadcrumb-label-link{
117
- color:#409EFF
144
+ .organization-tree .dept-path .breadcrumb-label-link {
145
+ color: #409eff;
118
146
  }
119
147
  </style>