agilebuilder-ui 1.1.36-sit5 → 1.1.36-tmp2

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 (68) hide show
  1. package/lib/{401-dff6f99e.js → 401-6ea3c6c5.js} +1 -1
  2. package/lib/{404-1062cf9d.js → 404-3e2646fe.js} +1 -1
  3. package/lib/{iframe-page-e229c419.js → iframe-page-90bd67da.js} +1 -1
  4. package/lib/{index-09cd1ad3.js → index-4d1f30e6.js} +12677 -12739
  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-0c3b2101.js → tab-content-iframe-index-d5e6b5b7.js} +1 -1
  9. package/lib/{tab-content-index-dcdefb56.js → tab-content-index-cb415040.js} +1 -1
  10. package/lib/{tache-subprocess-history-06b435b8.js → tache-subprocess-history-24a665c5.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree/src/department-tree.vue +123 -130
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
  16. package/packages/department-tree-inline/src/department-tree-service.js +11 -10
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
  22. package/packages/department-user-tree/src/department-user-tree.vue +119 -127
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
  33. package/packages/fs-preview/src/fs-preview.vue +2 -20
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
  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 +15 -27
  37. package/packages/index.js +5 -4
  38. package/packages/organization-input/src/organization-input.vue +12 -34
  39. package/packages/super-grid/src/apis.js +4 -21
  40. package/packages/super-grid/src/dynamic-input.vue +13 -58
  41. package/packages/super-grid/src/normal-column-content.vue +1 -2
  42. package/packages/super-grid/src/row-operation.vue +13 -23
  43. package/packages/super-grid/src/super-grid.vue +42 -51
  44. package/packages/super-grid/src/utils.js +8 -13
  45. package/packages/super-icon/src/index.vue +1 -4
  46. package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
  47. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
  49. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
  50. package/src/api/sso-service.js +5 -6
  51. package/src/directives/permission/index.js +5 -4
  52. package/src/directives/permission/permission.js +1 -0
  53. package/src/index.js +5 -70
  54. package/src/store/modules/table.js +1 -0
  55. package/src/styles/theme/dark-blue/sidebar.scss +0 -9
  56. package/src/styles/theme/gray/sidebar.scss +8 -9
  57. package/src/styles/theme/green/sidebar.scss +0 -10
  58. package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
  59. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
  60. package/src/utils/insert_css.js +1 -1
  61. package/src/utils/util.js +0 -19
  62. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  63. package/src/views/dsc-component/Sidebar/index.vue +18 -36
  64. package/src/views/layout/components/Menubar/Item.vue +9 -0
  65. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  66. package/src/views/layout/components/Sidebar/Item.vue +1 -4
  67. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  68. package/vite.config.js +1 -1
@@ -1,106 +1,99 @@
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
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>
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>
52
44
  </template>
53
45
  <script setup>
54
- import { EditPen, Delete } from '@element-plus/icons-vue'
46
+ import {EditPen,Delete} from '@element-plus/icons-vue'
55
47
  </script>
56
48
  <script>
57
- import GroupInput from './group-input.vue'
49
+ import GroupInput from './group-input'
58
50
  import groupUserTreeSevice from '../group-user-tree-service'
59
51
  export default {
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
- }
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
+ }
105
98
  }
106
99
  </script>
@@ -1,38 +1,42 @@
1
1
  <template>
2
2
  <span style="padding-left: 10px">
3
- <el-icon><CirclePlus @click="isShowList = true" /></el-icon>
4
- <GroupList v-if="isShowList" @closeDialog="closeList()" />
3
+ <el-icon><CirclePlus @click="isShowList = true" /></el-icon>
4
+ <GroupList
5
+ v-if="isShowList"
6
+ @closeDialog="closeList()"
7
+ />
5
8
  </span>
6
9
  </template>
7
10
  <script>
8
- import GroupList from './group-list.vue'
11
+ import GroupList from './group-list'
9
12
  import groupUserTreeService from '../group-user-tree-service'
10
13
  import { CirclePlus } from '@element-plus/icons-vue'
11
14
  export default {
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
- }
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
+ }
37
41
  }
38
42
  </script>
@@ -1,147 +1,119 @@
1
1
  <template>
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
- >
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()">
12
3
  <template #header>
13
- <div style="text-align: center">
14
- {{ $t('imatrixUIMessage.pleaseSelect') }}
15
- </div>
4
+ <div style="text-align: center;">
5
+ {{$t('imatrixUIMessage.pleaseSelect')}}
6
+ </div>
16
7
  </template>
17
8
  <template #default>
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
- />
9
+ <InlineDepartmentUserTreeApp v-if="isShowForm" :multiple="multiple" :departmentInfo="departmentInfo" :selectUserInfo="selectUserInfo" :searchField="searchField" :separator="separator" @close="closeTree"/>
28
10
  </template>
29
11
  </el-drawer>
12
+
30
13
  </template>
31
- <script lang="ts">
14
+ <script lang="ts">
32
15
  export default {
33
16
  name: 'DepartmentUserTreeMobile'
34
17
  }
35
18
  </script>
36
- <script setup lang="ts">
19
+ <script setup lang="ts">
37
20
  import InlineDepartmentUserTreeApp from './department-user-tree-inline-app.vue'
38
- import { reactive, ref, onMounted, defineEmits } from 'vue'
21
+ import { reactive,ref,onMounted, defineEmits } from 'vue'
39
22
  const props = defineProps<{
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})
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})
84
62
  </script>
85
63
  <style>
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;
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;
92
67
  }
93
68
 
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;
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;
100
72
  }
101
73
  .organization-tree .el-card__body {
102
- padding-top: 10px;
74
+ padding-top: 10px;
103
75
  }
104
76
  .organization-tree .card-content {
105
- margin-top: 10px;
77
+ margin-top: 10px;
106
78
  }
107
79
  .organization-tree .item-row-all {
108
- margin-bottom: 10px;
80
+ margin-bottom: 10px;
109
81
  }
110
82
  .organization-tree .item-row {
111
- display: flex;
112
- width: 100%;
83
+ display: flex;
84
+ width: 100%;
113
85
  }
114
86
  .organization-tree .item-label {
115
- flex: 0 0 90%;
116
- text-align: left;
87
+ flex: 0 0 90%;
88
+ text-align: left;
117
89
  }
118
90
  .organization-tree .item-side {
119
- flex: 0 0 10%;
120
- text-align: right;
91
+ flex: 0 0 10%;
92
+ text-align: right;
121
93
  }
122
94
  .organization-tree .el-tree-node {
123
- margin-bottom: 10px;
95
+ margin-bottom: 10px;
124
96
  }
125
97
 
126
- .organization-tree .el-tree-node__content > .el-tree-node__expand-icon {
127
- padding: 0;
128
- display: none;
98
+ .organization-tree .el-tree-node__content>.el-tree-node__expand-icon {
99
+ padding: 0;
100
+ display: none;
129
101
  }
130
102
 
131
103
  .organization-tree .card-footer {
132
- padding: 20px;
104
+ padding: 20px;
133
105
  }
134
106
  .organization-tree .card-footer .select-result {
135
- color: #409eff;
136
- flex: 1 1 75%;
137
- text-align: left;
107
+ color: #409EFF;
108
+ flex:1 1 75%;
109
+ text-align: left;
138
110
  }
139
111
  .organization-tree .card-footer .button-area {
140
- flex: 0 0 20%;
141
- text-align: right;
112
+ flex:0 0 20%;
113
+ text-align: right;
142
114
  }
143
115
 
144
- .organization-tree .dept-path .breadcrumb-label-link {
145
- color: #409eff;
116
+ .organization-tree .dept-path .breadcrumb-label-link{
117
+ color:#409EFF
146
118
  }
147
119
  </style>