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.
- package/lib/{401-dff6f99e.js → 401-6ea3c6c5.js} +1 -1
- package/lib/{404-1062cf9d.js → 404-3e2646fe.js} +1 -1
- package/lib/{iframe-page-e229c419.js → iframe-page-90bd67da.js} +1 -1
- package/lib/{index-09cd1ad3.js → index-4d1f30e6.js} +12677 -12739
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +99 -99
- package/lib/{tab-content-iframe-index-0c3b2101.js → tab-content-iframe-index-d5e6b5b7.js} +1 -1
- package/lib/{tab-content-index-dcdefb56.js → tab-content-index-cb415040.js} +1 -1
- package/lib/{tache-subprocess-history-06b435b8.js → tache-subprocess-history-24a665c5.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree/src/department-tree.vue +123 -130
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
- package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
- package/packages/department-tree-inline/src/department-tree-service.js +11 -10
- package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
- package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
- package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
- package/packages/department-user-tree/src/department-user-tree.vue +119 -127
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
- package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
- package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
- package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
- package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
- package/packages/fs-preview/src/fs-preview.vue +2 -20
- package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
- 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 +15 -27
- package/packages/index.js +5 -4
- package/packages/organization-input/src/organization-input.vue +12 -34
- package/packages/super-grid/src/apis.js +4 -21
- package/packages/super-grid/src/dynamic-input.vue +13 -58
- package/packages/super-grid/src/normal-column-content.vue +1 -2
- package/packages/super-grid/src/row-operation.vue +13 -23
- package/packages/super-grid/src/super-grid.vue +42 -51
- package/packages/super-grid/src/utils.js +8 -13
- package/packages/super-icon/src/index.vue +1 -4
- package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
- package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
- package/src/api/sso-service.js +5 -6
- package/src/directives/permission/index.js +5 -4
- package/src/directives/permission/permission.js +1 -0
- package/src/index.js +5 -70
- package/src/store/modules/table.js +1 -0
- package/src/styles/theme/dark-blue/sidebar.scss +0 -9
- package/src/styles/theme/gray/sidebar.scss +8 -9
- package/src/styles/theme/green/sidebar.scss +0 -10
- package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
- package/src/utils/insert_css.js +1 -1
- package/src/utils/util.js +0 -19
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
- package/src/views/dsc-component/Sidebar/index.vue +18 -36
- package/src/views/layout/components/Menubar/Item.vue +9 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
- package/src/views/layout/components/Sidebar/Item.vue +1 -4
- package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
- package/vite.config.js +1 -1
|
@@ -1,124 +1,101 @@
|
|
|
1
|
-
export function getTenant() {
|
|
1
|
+
export function getTenant () {
|
|
2
2
|
const parentId = 0
|
|
3
|
-
return window['$vueApp'].config.globalProperties.$http.get(
|
|
4
|
-
window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId
|
|
5
|
-
)
|
|
3
|
+
return window['$vueApp'].config.globalProperties.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId)
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
// 获得公司节点的孩子节点
|
|
9
|
-
export function getTenantChildren(departmentInfo, tenantNodeId
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
export function getTenantChildren (departmentInfo, tenantNodeId) {
|
|
8
|
+
if (departmentInfo && departmentInfo.length > 0) {
|
|
9
|
+
// 加载指定部门时,展开公司节点
|
|
10
|
+
return loadPointDepartments(departmentInfo)
|
|
11
|
+
} else {
|
|
12
|
+
// 加载整个组织结构树时,展开公司节点
|
|
13
|
+
return loadDepartment(tenantNodeId)
|
|
14
|
+
}
|
|
15
|
+
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return new Promise((resolve, reject) => {
|
|
26
|
-
window['$vueApp'].config.globalProperties.$http.post(url, departmentInfo).then((children) => {
|
|
18
|
+
|
|
19
|
+
// 加载指定部门节点
|
|
20
|
+
export function loadPointDepartments (departmentInfo) {
|
|
21
|
+
return new Promise((resolve,reject)=>{
|
|
22
|
+
window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/point-departments', departmentInfo).then(children => {
|
|
27
23
|
resolve(children)
|
|
28
24
|
})
|
|
29
25
|
})
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.then(
|
|
28
|
+
|
|
29
|
+
// 加载当前节点的子节点
|
|
30
|
+
export function loadDepartment (parentId) {
|
|
31
|
+
return new Promise((resolve,reject)=>{
|
|
32
|
+
window['$vueApp'].config.globalProperties.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId)
|
|
33
|
+
.then(children => {
|
|
38
34
|
resolve(children)
|
|
39
35
|
})
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
export function checkedDeptDefault(selectDepts, defaultCheckedKeys) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
export function checkedDeptDefault (selectDepts, defaultCheckedKeys) {
|
|
39
|
+
defaultCheckedKeys = []
|
|
40
|
+
selectDepts.forEach(dept => {
|
|
41
|
+
defaultCheckedKeys.push(dept.nodeId)
|
|
42
|
+
})
|
|
43
|
+
}
|
|
48
44
|
// 获得所有指定父部门的子部门信息
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.post(
|
|
54
|
-
window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/department-children',
|
|
55
|
-
parentIds
|
|
56
|
-
)
|
|
57
|
-
.then((departments) => {
|
|
45
|
+
export function getChildDepts (parentDept) {
|
|
46
|
+
return new Promise((resolve, reject) => {
|
|
47
|
+
const parentIds = [parentDept.id]
|
|
48
|
+
window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/department-children', parentIds).then(departments => {
|
|
58
49
|
resolve(departments)
|
|
59
|
-
})
|
|
60
|
-
.catch((error) => {
|
|
50
|
+
}).catch(error => {
|
|
61
51
|
reject(error)
|
|
62
52
|
})
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
.get(
|
|
74
|
-
window['$vueApp'].config.globalProperties.baseAPI +
|
|
75
|
-
'/component/organization-trees/select-departments?searchField=' +
|
|
76
|
-
searchField +
|
|
77
|
-
'&selectDeptInfo=' +
|
|
78
|
-
selectDeptInfo +
|
|
79
|
-
'&separator=' +
|
|
80
|
-
separator
|
|
81
|
-
)
|
|
82
|
-
.then((departments) => {
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
function getSelectDepts (searchField, selectDeptInfo, separator) {
|
|
56
|
+
return new Promise((resolve, reject) => {
|
|
57
|
+
if (!searchField) {
|
|
58
|
+
resolve([])
|
|
59
|
+
} else if (!selectDeptInfo) {
|
|
60
|
+
resolve([])
|
|
61
|
+
} else {
|
|
62
|
+
window['$vueApp'].config.globalProperties.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/select-departments?searchField=' + searchField + '&selectDeptInfo=' + selectDeptInfo + '&separator=' + separator).then(departments => {
|
|
83
63
|
resolve(departments)
|
|
84
|
-
})
|
|
85
|
-
.catch((error) => {
|
|
64
|
+
}).catch(error => {
|
|
86
65
|
reject(error)
|
|
87
66
|
})
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function initSelectDepts(selectDepartmentInfo, tenantNodeId, searchField, separator) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.then((departments) => {
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function initSelectDepts (selectDepartmentInfo, tenantNodeId, searchField, separator) {
|
|
72
|
+
return new Promise((resolve, reject) => {
|
|
73
|
+
const selectDepts = []
|
|
74
|
+
if (selectDepartmentInfo) {
|
|
75
|
+
if (selectDepartmentInfo === tenantNodeId || selectDepartmentInfo === '所有部门') {
|
|
76
|
+
// 表示已选择所有用户
|
|
77
|
+
selectDepts.push(packageAllDept(tenantNodeId))
|
|
78
|
+
resolve(selectDepts)
|
|
79
|
+
} else {
|
|
80
|
+
// 表示不是选择的所有用户
|
|
81
|
+
getSelectDepts(searchField, selectDepartmentInfo, separator).then(departments => {
|
|
104
82
|
resolve(departments)
|
|
105
|
-
})
|
|
106
|
-
.catch((error) => {
|
|
83
|
+
}).catch(error => {
|
|
107
84
|
reject(error)
|
|
108
85
|
})
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
resolve(selectDepts)
|
|
109
89
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
})
|
|
114
|
-
}
|
|
90
|
+
})
|
|
91
|
+
}
|
|
115
92
|
|
|
116
|
-
// 选中了组织结构树的根节点
|
|
117
|
-
function packageAllDept(tenantNodeId) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
93
|
+
// 选中了组织结构树的根节点
|
|
94
|
+
function packageAllDept (tenantNodeId) {
|
|
95
|
+
// 表示集合中不存在该用户,则封装该用户
|
|
96
|
+
var allDept = {
|
|
97
|
+
id: tenantNodeId,
|
|
98
|
+
name: '所有部门'
|
|
99
|
+
}
|
|
100
|
+
return allDept
|
|
122
101
|
}
|
|
123
|
-
return allDept
|
|
124
|
-
}
|
|
@@ -1,131 +1,134 @@
|
|
|
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
|
-
</div>
|
|
2
|
+
<div>
|
|
3
|
+
<el-dialog
|
|
4
|
+
ref="userDialog"
|
|
5
|
+
:close-on-click-modal="false"
|
|
6
|
+
:close-on-press-escape="false"
|
|
7
|
+
:title="myTitle"
|
|
8
|
+
:width="width"
|
|
9
|
+
append-to-body
|
|
10
|
+
class="user-tree"
|
|
11
|
+
model-value
|
|
12
|
+
@close="$emit('closeDialog')"
|
|
13
|
+
@closed="$emit('closedDialog')"
|
|
14
|
+
@open="$emit('openDialog')"
|
|
15
|
+
@opend="$emit('opendDialog')"
|
|
16
|
+
>
|
|
17
|
+
<inline-department-user-multi-tree
|
|
18
|
+
ref="inlineDepartmentUser"
|
|
19
|
+
:department-info="departmentInfo"
|
|
20
|
+
:height="height"
|
|
21
|
+
:is-need-virtual-user="isNeedVirtualUser"
|
|
22
|
+
:search-field="searchField"
|
|
23
|
+
:select-user-info="selectUserInfo"
|
|
24
|
+
:separator="separator"
|
|
25
|
+
@result="result"
|
|
26
|
+
/>
|
|
27
|
+
<template v-slot:footer>
|
|
28
|
+
<div class="dialog-footer">
|
|
29
|
+
<el-button size="default" @click="$emit('closeDialog')">
|
|
30
|
+
{{ $t('imatrixUIPublicModel.cancel') }}
|
|
31
|
+
</el-button>
|
|
32
|
+
<el-button size="default" type="primary" @click="confirmSelectUser">
|
|
33
|
+
{{ $t('imatrixUIPublicModel.sure') }}
|
|
34
|
+
</el-button>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
</el-dialog>
|
|
38
|
+
</div>
|
|
40
39
|
</template>
|
|
41
40
|
|
|
42
41
|
<script>
|
|
43
|
-
import {
|
|
44
|
-
import InlineDepartmentUserMultiTree
|
|
42
|
+
import {$emit} from '../../utils/gogocodeTransfer'
|
|
43
|
+
import InlineDepartmentUserMultiTree
|
|
44
|
+
from '../../department-user-tree-inline/src/department-user-multiple-tree-inline.vue'
|
|
45
45
|
|
|
46
46
|
export default {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
47
|
+
name: 'DepartmentUserMultiTree',
|
|
48
|
+
components: {
|
|
49
|
+
InlineDepartmentUserMultiTree,
|
|
50
|
+
},
|
|
51
|
+
props: {
|
|
52
|
+
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
53
|
+
departmentInfo: {
|
|
54
|
+
type: Array,
|
|
55
|
+
default: null,
|
|
56
|
+
},
|
|
57
|
+
// 弹框的标题
|
|
58
|
+
title: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: null,
|
|
61
|
+
},
|
|
62
|
+
// 弹框的宽度
|
|
63
|
+
width: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '920px',
|
|
66
|
+
},
|
|
67
|
+
// 弹框的高度
|
|
68
|
+
height: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: '300px',
|
|
71
|
+
},
|
|
72
|
+
// 是否需要显示虚拟用户
|
|
73
|
+
isNeedVirtualUser: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false,
|
|
76
|
+
},
|
|
77
|
+
// 多选用户树时,已选择用户id或登录名集合,多个之间以逗号隔开
|
|
78
|
+
selectUserInfo: {
|
|
79
|
+
type: [String, Number],
|
|
80
|
+
default: null,
|
|
81
|
+
},
|
|
82
|
+
// 移除用户时,用户属性名称:id、loginName、email、telephone,默认是loginName
|
|
83
|
+
searchField: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: 'loginName',
|
|
86
|
+
},
|
|
87
|
+
// 多选树时结果之间的分隔符,默认是逗号分隔
|
|
88
|
+
separator: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: ',',
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
data() {
|
|
94
|
+
let myTitle = this.$t('imatrixUIMessage.pleaseSelectPersonnel')
|
|
95
|
+
if (this.title) {
|
|
96
|
+
myTitle = this.title
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
myTitle,
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
methods: {
|
|
103
|
+
result(selectNodeInfo) {
|
|
104
|
+
$emit(this, 'closeDialog', selectNodeInfo)
|
|
105
|
+
},
|
|
106
|
+
confirmSelectUser() {
|
|
107
|
+
this.$refs.inlineDepartmentUser.confirmSelectUser()
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
emits: [
|
|
111
|
+
'openDialog',
|
|
112
|
+
'opendDialog',
|
|
113
|
+
'closeDialog',
|
|
114
|
+
'closedDialog',
|
|
115
|
+
'opendDialog',
|
|
116
|
+
'closeDialog',
|
|
117
|
+
'closedDialog',
|
|
118
|
+
],
|
|
116
119
|
}
|
|
117
120
|
</script>
|
|
118
121
|
|
|
119
122
|
<style>
|
|
120
123
|
.searchResult {
|
|
121
|
-
|
|
124
|
+
color: red;
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
.inline-select-custom {
|
|
125
|
-
|
|
128
|
+
width: 100px;
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
.inline-input-custom {
|
|
129
|
-
|
|
132
|
+
width: 98%;
|
|
130
133
|
}
|
|
131
134
|
</style>
|
|
@@ -1,93 +1,96 @@
|
|
|
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
|
-
</div>
|
|
2
|
+
<div>
|
|
3
|
+
<el-dialog
|
|
4
|
+
:close-on-click-modal="false"
|
|
5
|
+
:title="myTitle"
|
|
6
|
+
:width="width"
|
|
7
|
+
append-to-body
|
|
8
|
+
class="user-tree"
|
|
9
|
+
model-value
|
|
10
|
+
@close="$emit('closeDialog')"
|
|
11
|
+
@closed="$emit('closedDialog')"
|
|
12
|
+
@open="$emit('openDialog')"
|
|
13
|
+
@opend="$emit('opendDialog')"
|
|
14
|
+
>
|
|
15
|
+
<inline-department-user-single-tree
|
|
16
|
+
ref="inlineDepartmentUser"
|
|
17
|
+
:department-info="departmentInfo"
|
|
18
|
+
:is-need-virtual-user="isNeedVirtualUser"
|
|
19
|
+
@result="result"
|
|
20
|
+
/>
|
|
21
|
+
<template v-slot:footer>
|
|
22
|
+
<div class="dialog-footer">
|
|
23
|
+
<el-button size="default" @click="$emit('closeDialog')">
|
|
24
|
+
{{ $t('imatrixUIPublicModel.cancel') }}
|
|
25
|
+
</el-button>
|
|
26
|
+
<el-button size="default" type="primary" @click="confirmSelectUser">
|
|
27
|
+
{{ $t('imatrixUIPublicModel.sure') }}
|
|
28
|
+
</el-button>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
</el-dialog>
|
|
32
|
+
</div>
|
|
34
33
|
</template>
|
|
35
34
|
|
|
36
35
|
<script>
|
|
37
|
-
import {
|
|
38
|
-
import InlineDepartmentUserSingleTree
|
|
36
|
+
import {$emit} from '../../utils/gogocodeTransfer'
|
|
37
|
+
import InlineDepartmentUserSingleTree
|
|
38
|
+
from '../../department-user-tree-inline/src/department-user-single-tree-inline.vue'
|
|
39
39
|
|
|
40
40
|
export default {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
41
|
+
name: 'DepartmentUserSingleTree',
|
|
42
|
+
components: {
|
|
43
|
+
InlineDepartmentUserSingleTree,
|
|
44
|
+
},
|
|
45
|
+
props: {
|
|
46
|
+
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
47
|
+
departmentInfo: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default: null,
|
|
50
|
+
},
|
|
51
|
+
// 弹框的标题
|
|
52
|
+
title: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: null,
|
|
55
|
+
},
|
|
56
|
+
// 弹框的宽度
|
|
57
|
+
width: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: '30%',
|
|
60
|
+
},
|
|
61
|
+
// 是否需要显示虚拟用户
|
|
62
|
+
isNeedVirtualUser: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
data() {
|
|
68
|
+
let myTitle = this.$t('imatrixUIMessage.pleaseSelectPersonnel')
|
|
69
|
+
if (this.title) {
|
|
70
|
+
myTitle = this.title
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
myTitle,
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
methods: {
|
|
77
|
+
result(selectNodeInfo) {
|
|
78
|
+
$emit(this, 'closeDialog', selectNodeInfo)
|
|
79
|
+
},
|
|
80
|
+
confirmSelectUser() {
|
|
81
|
+
// this.$refs.inlineDepartmentUser.confirmSelectUser()
|
|
82
|
+
// selectNodeInfo
|
|
83
|
+
$emit(this, 'closeDialog', this.$refs.inlineDepartmentUser.selectNodeInfo)
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
emits: [
|
|
87
|
+
'openDialog',
|
|
88
|
+
'opendDialog',
|
|
89
|
+
'closeDialog',
|
|
90
|
+
'closedDialog',
|
|
91
|
+
'opendDialog',
|
|
92
|
+
'closeDialog',
|
|
93
|
+
'closedDialog',
|
|
94
|
+
],
|
|
92
95
|
}
|
|
93
96
|
</script>
|