agilebuilder-ui 1.1.36-tmp4 → 1.1.37-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.
- package/lib/{401-c55bdcf2.js → 401-ce7358c2.js} +1 -1
- package/lib/{404-c1dbd5e1.js → 404-8a0c9304.js} +1 -1
- package/lib/{iframe-page-917912ae.js → iframe-page-53f52856.js} +1 -1
- package/lib/{index-6ec53ef7.js → index-2e61e67f.js} +13090 -13013
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +97 -97
- package/lib/{tab-content-iframe-index-46a76242.js → tab-content-iframe-index-e0a67343.js} +1 -1
- package/lib/{tab-content-index-132379e6.js → tab-content-index-fd4f9ad4.js} +1 -1
- package/lib/{tache-subprocess-history-384455d6.js → tache-subprocess-history-7381fba2.js} +1 -1
- package/package.json +2 -2
- package/packages/department-tree/src/department-tree.vue +130 -123
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +435 -466
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +335 -342
- package/packages/department-tree-inline/src/department-tree-inline.vue +18 -11
- package/packages/department-tree-inline/src/department-tree-service.js +10 -11
- package/packages/department-tree-mobile/src/department-tree-app.vue +103 -75
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +256 -225
- package/packages/department-tree-mobile/src/department-tree-service.ts +98 -75
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +112 -115
- package/packages/department-user-tree/src/department-user-single-tree.vue +85 -88
- package/packages/department-user-tree/src/department-user-tree.vue +127 -119
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +6 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +5 -0
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +18 -11
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +26 -51
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +25 -45
- package/packages/department-user-tree-inline/src/group-user/group-list.vue +97 -90
- package/packages/department-user-tree-inline/src/group-user/group-user.vue +28 -32
- package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +103 -75
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +282 -224
- package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +58 -51
- package/packages/fs-preview/src/fs-preview.vue +20 -2
- package/packages/fs-upload-list/src/fs-upload-list.vue +30 -7
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
- package/packages/fs-upload-new/src/fs-preview-new.vue +27 -15
- package/packages/index.js +4 -4
- package/packages/organization-input/src/organization-input.vue +34 -12
- package/packages/super-grid/src/apis.js +25 -4
- package/packages/super-grid/src/dynamic-input.vue +85 -15
- package/packages/super-grid/src/normal-column-content.vue +2 -1
- package/packages/super-grid/src/row-operation.vue +23 -13
- package/packages/super-grid/src/super-grid.vue +51 -42
- package/packages/super-grid/src/utils.js +28 -9
- package/packages/super-icon/src/index.vue +4 -1
- package/packages/workgroup-tree/src/workgroup-tree.vue +117 -110
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +6 -1
- package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +103 -75
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +229 -208
- package/src/api/sso-service.js +6 -5
- package/src/directives/permission/index.js +4 -4
- package/src/index.js +71 -2
- package/src/store/modules/table.js +0 -1
- package/src/styles/theme/dark-blue/sidebar.scss +9 -0
- package/src/styles/theme/gray/sidebar.scss +9 -8
- package/src/styles/theme/green/sidebar.scss +10 -0
- package/src/styles/theme/ocean-blue/sidebar.scss +9 -0
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +9 -0
- package/src/utils/common-util.js +2 -1
- package/src/utils/insert_css.js +1 -1
- package/src/utils/util.js +19 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
- package/src/views/dsc-component/Sidebar/index.vue +36 -18
- package/src/views/layout/components/Menubar/Item.vue +0 -9
- package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
- package/src/views/layout/components/Sidebar/Item.vue +4 -1
- package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
- package/vite.config.js +1 -1
|
@@ -1,99 +1,106 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
13
|
+
<div style="text-align: center">
|
|
14
|
+
{{ $t('imatrixUIMessage.pleaseSelect') }}
|
|
15
|
+
</div>
|
|
7
16
|
</template>
|
|
8
17
|
<template #default>
|
|
9
|
-
|
|
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
|
|
31
|
+
<script lang="ts">
|
|
15
32
|
export default {
|
|
16
33
|
name: 'DepartmentUserTreeMobile'
|
|
17
34
|
}
|
|
18
35
|
</script>
|
|
19
|
-
<script
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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,
|
|
65
|
-
|
|
66
|
-
|
|
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,
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
102
|
+
padding-top: 10px;
|
|
75
103
|
}
|
|
76
104
|
.organization-tree .card-content {
|
|
77
|
-
|
|
105
|
+
margin-top: 10px;
|
|
78
106
|
}
|
|
79
107
|
.organization-tree .item-row-all {
|
|
80
|
-
|
|
108
|
+
margin-bottom: 10px;
|
|
81
109
|
}
|
|
82
110
|
.organization-tree .item-row {
|
|
83
|
-
|
|
84
|
-
|
|
111
|
+
display: flex;
|
|
112
|
+
width: 100%;
|
|
85
113
|
}
|
|
86
114
|
.organization-tree .item-label {
|
|
87
|
-
|
|
88
|
-
|
|
115
|
+
flex: 0 0 90%;
|
|
116
|
+
text-align: left;
|
|
89
117
|
}
|
|
90
118
|
.organization-tree .item-side {
|
|
91
|
-
|
|
92
|
-
|
|
119
|
+
flex: 0 0 10%;
|
|
120
|
+
text-align: right;
|
|
93
121
|
}
|
|
94
122
|
.organization-tree .el-tree-node {
|
|
95
|
-
|
|
123
|
+
margin-bottom: 10px;
|
|
96
124
|
}
|
|
97
125
|
|
|
98
|
-
.organization-tree .el-tree-node__content
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
132
|
+
padding: 20px;
|
|
105
133
|
}
|
|
106
134
|
.organization-tree .card-footer .select-result {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
135
|
+
color: #409eff;
|
|
136
|
+
flex: 1 1 75%;
|
|
137
|
+
text-align: left;
|
|
110
138
|
}
|
|
111
139
|
.organization-tree .card-footer .button-area {
|
|
112
|
-
|
|
113
|
-
|
|
140
|
+
flex: 0 0 20%;
|
|
141
|
+
text-align: right;
|
|
114
142
|
}
|
|
115
143
|
|
|
116
|
-
.organization-tree .dept-path .breadcrumb-label-link{
|
|
117
|
-
|
|
144
|
+
.organization-tree .dept-path .breadcrumb-label-link {
|
|
145
|
+
color: #409eff;
|
|
118
146
|
}
|
|
119
147
|
</style>
|