agilebuilder-ui 1.1.36-sit4 → 1.1.36-tmp1

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 (66) hide show
  1. package/lib/{401-d4decb58.js → 401-c55bdcf2.js} +1 -1
  2. package/lib/{404-74cc4843.js → 404-c1dbd5e1.js} +1 -1
  3. package/lib/{iframe-page-c7973b9d.js → iframe-page-917912ae.js} +1 -1
  4. package/lib/{index-c739d5d5.js → index-6ec53ef7.js} +8463 -8490
  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-18ef0e35.js → tab-content-iframe-index-46a76242.js} +1 -1
  9. package/lib/{tab-content-index-72db2984.js → tab-content-index-132379e6.js} +1 -1
  10. package/lib/{tache-subprocess-history-4d3623ca.js → tache-subprocess-history-384455d6.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 +4 -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 +12 -1
  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 +4 -4
  52. package/src/index.js +3 -38
  53. package/src/store/modules/table.js +1 -0
  54. package/src/styles/theme/dark-blue/sidebar.scss +0 -9
  55. package/src/styles/theme/gray/sidebar.scss +8 -9
  56. package/src/styles/theme/green/sidebar.scss +0 -10
  57. package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
  58. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
  59. package/src/utils/insert_css.js +1 -1
  60. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  61. package/src/views/dsc-component/Sidebar/index.vue +18 -36
  62. package/src/views/layout/components/Menubar/Item.vue +9 -0
  63. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  64. package/src/views/layout/components/Sidebar/Item.vue +1 -4
  65. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  66. 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, limitFilterColumn) {
10
- if (departmentInfo && departmentInfo.length > 0) {
11
- // 加载指定部门时,展开公司节点
12
- return loadPointDepartments(departmentInfo, limitFilterColumn)
13
- } else {
14
- // 加载整个组织结构树时,展开公司节点
15
- return loadDepartment(tenantNodeId)
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
- 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) => {
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
- 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) => {
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
- defaultCheckedKeys = []
44
- selectDepts.forEach((dept) => {
45
- defaultCheckedKeys.push(dept.nodeId)
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 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) => {
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 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) => {
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
- 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) => {
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
- } else {
111
- resolve(selectDepts)
112
- }
113
- })
114
- }
90
+ })
91
+ }
115
92
 
116
- // 选中了组织结构树的根节点
117
- function packageAllDept(tenantNodeId) {
118
- // 表示集合中不存在该用户,则封装该用户
119
- var allDept = {
120
- id: tenantNodeId,
121
- name: '所有部门'
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
- <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>
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 { $emit } from '../../utils/gogocodeTransfer'
44
- import InlineDepartmentUserMultiTree from '../../department-user-tree-inline/src/department-user-multiple-tree-inline.vue'
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
- 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']
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
- color: red;
124
+ color: red;
122
125
  }
123
126
 
124
127
  .inline-select-custom {
125
- width: 100px;
128
+ width: 100px;
126
129
  }
127
130
 
128
131
  .inline-input-custom {
129
- width: 98%;
132
+ width: 98%;
130
133
  }
131
134
  </style>
@@ -1,93 +1,96 @@
1
1
  <template>
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>
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 { $emit } from '../../utils/gogocodeTransfer'
38
- import InlineDepartmentUserSingleTree from '../../department-user-tree-inline/src/department-user-single-tree-inline.vue'
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
- 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']
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>