agilebuilder-ui 1.1.36 → 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-b8934d65.js → 401-ce7358c2.js} +1 -1
- package/lib/{404-743a4631.js → 404-8a0c9304.js} +1 -1
- package/lib/{iframe-page-5e102433.js → iframe-page-53f52856.js} +1 -1
- package/lib/{index-a0c08bb5.js → index-2e61e67f.js} +10747 -10648
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +98 -98
- package/lib/{tab-content-iframe-index-e9b465bf.js → tab-content-iframe-index-e0a67343.js} +1 -1
- package/lib/{tab-content-index-313404d0.js → tab-content-index-fd4f9ad4.js} +1 -1
- package/lib/{tache-subprocess-history-7d87cd77.js → tache-subprocess-history-7381fba2.js} +1 -1
- package/package.json +1 -1
- 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/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/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
|
@@ -1,101 +1,124 @@
|
|
|
1
|
-
export function getTenant
|
|
1
|
+
export function getTenant() {
|
|
2
2
|
const parentId = 0
|
|
3
|
-
return window['$vueApp'].config.globalProperties.$http.get(
|
|
3
|
+
return window['$vueApp'].config.globalProperties.$http.get(
|
|
4
|
+
window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId
|
|
5
|
+
)
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
// 获得公司节点的孩子节点
|
|
7
|
-
export function getTenantChildren
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
export function getTenantChildren(departmentInfo, tenantNodeId, limitFilterColumn) {
|
|
10
|
+
if (departmentInfo && departmentInfo.length > 0) {
|
|
11
|
+
// 加载指定部门时,展开公司节点
|
|
12
|
+
return loadPointDepartments(departmentInfo, limitFilterColumn)
|
|
13
|
+
} else {
|
|
14
|
+
// 加载整个组织结构树时,展开公司节点
|
|
15
|
+
return loadDepartment(tenantNodeId)
|
|
16
|
+
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
// 加载指定部门节点
|
|
20
|
+
export function loadPointDepartments(departmentInfo, limitFilterColumn) {
|
|
21
|
+
let url = window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/point-departments'
|
|
22
|
+
if (limitFilterColumn) {
|
|
23
|
+
url += '/' + limitFilterColumn
|
|
24
|
+
}
|
|
25
|
+
return new Promise((resolve, reject) => {
|
|
26
|
+
window['$vueApp'].config.globalProperties.$http.post(url, departmentInfo).then((children) => {
|
|
23
27
|
resolve(children)
|
|
24
28
|
})
|
|
25
29
|
})
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
.then(children => {
|
|
32
|
+
// 加载当前节点的子节点
|
|
33
|
+
export function loadDepartment(parentId) {
|
|
34
|
+
return new Promise((resolve, reject) => {
|
|
35
|
+
window['$vueApp'].config.globalProperties.$http
|
|
36
|
+
.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId)
|
|
37
|
+
.then((children) => {
|
|
34
38
|
resolve(children)
|
|
35
39
|
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
export function checkedDeptDefault(selectDepts, defaultCheckedKeys) {
|
|
43
|
+
defaultCheckedKeys = []
|
|
44
|
+
selectDepts.forEach((dept) => {
|
|
45
|
+
defaultCheckedKeys.push(dept.nodeId)
|
|
46
|
+
})
|
|
47
|
+
}
|
|
44
48
|
// 获得所有指定父部门的子部门信息
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
export function getChildDepts(parentDept) {
|
|
50
|
+
return new Promise((resolve, reject) => {
|
|
51
|
+
const parentIds = [parentDept.id]
|
|
52
|
+
window['$vueApp'].config.globalProperties.$http
|
|
53
|
+
.post(
|
|
54
|
+
window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/department-children',
|
|
55
|
+
parentIds
|
|
56
|
+
)
|
|
57
|
+
.then((departments) => {
|
|
49
58
|
resolve(departments)
|
|
50
|
-
})
|
|
59
|
+
})
|
|
60
|
+
.catch((error) => {
|
|
51
61
|
reject(error)
|
|
52
62
|
})
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
function getSelectDepts(searchField, selectDeptInfo, separator) {
|
|
66
|
+
return new Promise((resolve, reject) => {
|
|
67
|
+
if (!searchField) {
|
|
68
|
+
resolve([])
|
|
69
|
+
} else if (!selectDeptInfo) {
|
|
70
|
+
resolve([])
|
|
71
|
+
} else {
|
|
72
|
+
window['$vueApp'].config.globalProperties.$http
|
|
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) => {
|
|
63
83
|
resolve(departments)
|
|
64
|
-
})
|
|
84
|
+
})
|
|
85
|
+
.catch((error) => {
|
|
65
86
|
reject(error)
|
|
66
87
|
})
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function initSelectDepts(selectDepartmentInfo, tenantNodeId, searchField, separator) {
|
|
93
|
+
return new Promise((resolve, reject) => {
|
|
94
|
+
const selectDepts = []
|
|
95
|
+
if (selectDepartmentInfo) {
|
|
96
|
+
if (selectDepartmentInfo === tenantNodeId || selectDepartmentInfo === '所有部门') {
|
|
97
|
+
// 表示已选择所有用户
|
|
98
|
+
selectDepts.push(packageAllDept(tenantNodeId))
|
|
99
|
+
resolve(selectDepts)
|
|
100
|
+
} else {
|
|
101
|
+
// 表示不是选择的所有用户
|
|
102
|
+
getSelectDepts(searchField, selectDepartmentInfo, separator)
|
|
103
|
+
.then((departments) => {
|
|
82
104
|
resolve(departments)
|
|
83
|
-
})
|
|
105
|
+
})
|
|
106
|
+
.catch((error) => {
|
|
84
107
|
reject(error)
|
|
85
108
|
})
|
|
86
|
-
}
|
|
87
|
-
} else {
|
|
88
|
-
resolve(selectDepts)
|
|
89
109
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
// 选中了组织结构树的根节点
|
|
94
|
-
function packageAllDept (tenantNodeId) {
|
|
95
|
-
// 表示集合中不存在该用户,则封装该用户
|
|
96
|
-
var allDept = {
|
|
97
|
-
id: tenantNodeId,
|
|
98
|
-
name: '所有部门'
|
|
110
|
+
} else {
|
|
111
|
+
resolve(selectDepts)
|
|
99
112
|
}
|
|
100
|
-
|
|
113
|
+
})
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// 选中了组织结构树的根节点
|
|
117
|
+
function packageAllDept(tenantNodeId) {
|
|
118
|
+
// 表示集合中不存在该用户,则封装该用户
|
|
119
|
+
var allDept = {
|
|
120
|
+
id: tenantNodeId,
|
|
121
|
+
name: '所有部门'
|
|
101
122
|
}
|
|
123
|
+
return allDept
|
|
124
|
+
}
|
|
@@ -1,134 +1,131 @@
|
|
|
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
|
-
|
|
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
|
+
:limit-filter-column="limitFilterColumn"
|
|
23
|
+
:search-field="searchField"
|
|
24
|
+
:select-user-info="selectUserInfo"
|
|
25
|
+
:separator="separator"
|
|
26
|
+
@result="result"
|
|
27
|
+
/>
|
|
28
|
+
<template v-slot:footer>
|
|
29
|
+
<div class="dialog-footer">
|
|
30
|
+
<el-button size="default" @click="$emit('closeDialog')">
|
|
31
|
+
{{ $t('imatrixUIPublicModel.cancel') }}
|
|
32
|
+
</el-button>
|
|
33
|
+
<el-button size="default" type="primary" @click="confirmSelectUser">
|
|
34
|
+
{{ $t('imatrixUIPublicModel.sure') }}
|
|
35
|
+
</el-button>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
</el-dialog>
|
|
39
|
+
</div>
|
|
39
40
|
</template>
|
|
40
41
|
|
|
41
42
|
<script>
|
|
42
|
-
import {$emit} from '../../utils/gogocodeTransfer'
|
|
43
|
-
import InlineDepartmentUserMultiTree
|
|
44
|
-
from '../../department-user-tree-inline/src/department-user-multiple-tree-inline.vue'
|
|
43
|
+
import { $emit } from '../../utils/gogocodeTransfer'
|
|
44
|
+
import InlineDepartmentUserMultiTree 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
|
-
|
|
116
|
-
'closeDialog',
|
|
117
|
-
'closedDialog',
|
|
118
|
-
],
|
|
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
|
+
// 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
|
|
93
|
+
limitFilterColumn: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: 'code'
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
data() {
|
|
99
|
+
let myTitle = this.$t('imatrixUIMessage.pleaseSelectPersonnel')
|
|
100
|
+
if (this.title) {
|
|
101
|
+
myTitle = this.title
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
myTitle
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
methods: {
|
|
108
|
+
result(selectNodeInfo) {
|
|
109
|
+
$emit(this, 'closeDialog', selectNodeInfo)
|
|
110
|
+
},
|
|
111
|
+
confirmSelectUser() {
|
|
112
|
+
this.$refs.inlineDepartmentUser.confirmSelectUser()
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
emits: ['openDialog', 'opendDialog', 'closeDialog', 'closedDialog', 'opendDialog', 'closeDialog', 'closedDialog']
|
|
119
116
|
}
|
|
120
117
|
</script>
|
|
121
118
|
|
|
122
119
|
<style>
|
|
123
120
|
.searchResult {
|
|
124
|
-
|
|
121
|
+
color: red;
|
|
125
122
|
}
|
|
126
123
|
|
|
127
124
|
.inline-select-custom {
|
|
128
|
-
|
|
125
|
+
width: 100px;
|
|
129
126
|
}
|
|
130
127
|
|
|
131
128
|
.inline-input-custom {
|
|
132
|
-
|
|
129
|
+
width: 98%;
|
|
133
130
|
}
|
|
134
131
|
</style>
|
|
@@ -1,96 +1,93 @@
|
|
|
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
|
-
|
|
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
|
+
:limit-filter-column="limitFilterColumn"
|
|
20
|
+
@result="result"
|
|
21
|
+
/>
|
|
22
|
+
<template v-slot:footer>
|
|
23
|
+
<div class="dialog-footer">
|
|
24
|
+
<el-button size="default" @click="$emit('closeDialog')">
|
|
25
|
+
{{ $t('imatrixUIPublicModel.cancel') }}
|
|
26
|
+
</el-button>
|
|
27
|
+
<el-button size="default" type="primary" @click="confirmSelectUser">
|
|
28
|
+
{{ $t('imatrixUIPublicModel.sure') }}
|
|
29
|
+
</el-button>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
</el-dialog>
|
|
33
|
+
</div>
|
|
33
34
|
</template>
|
|
34
35
|
|
|
35
36
|
<script>
|
|
36
|
-
import {$emit} from '../../utils/gogocodeTransfer'
|
|
37
|
-
import InlineDepartmentUserSingleTree
|
|
38
|
-
from '../../department-user-tree-inline/src/department-user-single-tree-inline.vue'
|
|
37
|
+
import { $emit } from '../../utils/gogocodeTransfer'
|
|
38
|
+
import InlineDepartmentUserSingleTree 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
|
-
|
|
92
|
-
'closeDialog',
|
|
93
|
-
'closedDialog',
|
|
94
|
-
],
|
|
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
|
+
// 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
|
|
67
|
+
limitFilterColumn: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: 'code'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
data() {
|
|
73
|
+
let myTitle = this.$t('imatrixUIMessage.pleaseSelectPersonnel')
|
|
74
|
+
if (this.title) {
|
|
75
|
+
myTitle = this.title
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
myTitle
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
methods: {
|
|
82
|
+
result(selectNodeInfo) {
|
|
83
|
+
$emit(this, 'closeDialog', selectNodeInfo)
|
|
84
|
+
},
|
|
85
|
+
confirmSelectUser() {
|
|
86
|
+
// this.$refs.inlineDepartmentUser.confirmSelectUser()
|
|
87
|
+
// selectNodeInfo
|
|
88
|
+
$emit(this, 'closeDialog', this.$refs.inlineDepartmentUser.selectNodeInfo)
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
emits: ['openDialog', 'opendDialog', 'closeDialog', 'closedDialog', 'opendDialog', 'closeDialog', 'closedDialog']
|
|
95
92
|
}
|
|
96
93
|
</script>
|