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
@@ -2,134 +2,117 @@
2
2
  <div>
3
3
  <el-card class="card-content" style="height: 50px">
4
4
  <el-row class="item-row item-row-all">
5
- <el-col style="width: 100%">
5
+ <el-col style="width: 100%;">
6
6
  <div style="display: flex">
7
- <div style="flex: 0 0 20%; text-align: left">
8
- <el-checkbox
9
- v-if="multiple"
10
- v-model="checkAll"
11
- :label="$t('departmentTreeInline.allCheck')"
12
- value="all"
13
- @change="changeAllCheck"
14
- />
7
+ <div style="flex: 0 0 20%;text-align:left">
8
+ <el-checkbox v-if="multiple" v-model="checkAll" :label="$t('departmentTreeInline.allCheck')" value="all" @change="changeAllCheck" />
15
9
  </div>
16
- <div style="flex: 0 0 80%; text-align: right">
17
- <el-input
18
- v-model="searchParam.searchValue"
19
- :placeholder="$t('departmentTreeInline.pleaseInputNameOrCode')"
20
- @clear="filterAppendNodes"
21
- @keyup.enter="filterAppendNodes"
22
- @blur="filterAppendNodes"
23
- clearable
24
- >
25
- <template v-slot:suffix>
26
- <el-icon @click="filterAppendNodes"><Search /></el-icon>
10
+ <div style="flex: 0 0 80%;text-align:right">
11
+ <el-input v-model="searchParam.searchValue" :placeholder="$t('departmentTreeInline.pleaseInputNameOrCode')" @clear="filterAppendNodes" @keyup.enter="filterAppendNodes" @blur="filterAppendNodes" clearable>
12
+ <template v-slot:suffix>
13
+ <el-icon @click="filterAppendNodes"><Search /></el-icon>
27
14
  </template>
28
15
  </el-input>
29
16
  </div>
30
17
  </div>
31
- </el-col>
18
+ </el-col>
32
19
  </el-row>
33
20
  </el-card>
34
- <el-card v-if="tenantName" class="card-content" style="height: 40px">
21
+ <el-card v-if="tenantName" class="card-content" style="height: 40px">
35
22
  <el-row class="item-row item-row-all">
36
23
  <el-col class="item-label dept-path">
37
24
  <el-breadcrumb separator="/">
38
- <el-breadcrumb-item>
39
- <span>{{ tenantName }}</span>
40
- </el-breadcrumb-item>
25
+ <el-breadcrumb-item>
26
+ <span>{{tenantName}}</span>
27
+ </el-breadcrumb-item>
41
28
  </el-breadcrumb>
42
29
  </el-col>
43
30
  </el-row>
44
31
  </el-card>
45
- <el-card class="card-content org-tree" style="overflow: auto">
32
+ <el-card class="card-content org-tree" style="overflow: auto;">
46
33
  <el-tree
47
- ref="orgTreeRef"
48
- :data="departments"
49
- :show-checkbox="multiple"
50
- node-key="nodeId"
51
- check-on-click-node
52
- :default-checked-keys="defaultCheckedKeys"
53
- @check-change="handleCheckNode"
54
- @node-click="handleClickNode"
55
- >
56
- <template #default="{ node, data }">
57
- <div class="item-row">
58
- <div class="item-label">{{ data.name }}</div>
59
- <!-- <div v-if="!data.leaf" class="item-side" @click="loadChildren(data,false)">
34
+ ref="orgTreeRef"
35
+ :data="departments"
36
+ :show-checkbox="multiple"
37
+ node-key="nodeId"
38
+ check-on-click-node
39
+ :default-checked-keys="defaultCheckedKeys"
40
+ @check-change="handleCheckNode"
41
+ @node-click="handleClickNode"
42
+ >
43
+ <template #default="{ node, data }">
44
+ <div class="item-row">
45
+ <div class="item-label">{{ data.name }}</div>
46
+ <!-- <div v-if="!data.leaf" class="item-side" @click="loadChildren(data,false)">
60
47
  <el-icon><ArrowRight /></el-icon>
61
48
  </div> -->
62
- </div>
63
- </template>
64
- </el-tree>
49
+ </div>
50
+ </template>
51
+ </el-tree>
65
52
  </el-card>
66
- <el-card class="card-footer" style="height: 40px">
67
- <div style="display: flex">
68
- <div class="select-result" @click="showResult">
69
- <!-- 已选择:6人,其中有一个部门(含子部门) -->
70
- <span v-if="multiple" @click="showResult">
71
- <span v-if="selectDepts.length > 0">
72
- {{ $t('departmentTreeInline.selectResultInfoHasSelect')
73
- }}{{ $t('departmentTreeInline.workgroupTree', { num: selectDepts.length }) }}
74
- <span style="padding-left: 10px"
75
- ><el-icon><ArrowUpBold /></el-icon
76
- ></span>
77
- </span>
53
+ <el-card class="card-footer" style="height: 40px">
54
+ <div style="display: flex;">
55
+ <div class="select-result" @click="showResult">
56
+ <!-- 已选择:6人,其中有一个部门(含子部门) -->
57
+ <span v-if="multiple" @click="showResult">
58
+ <span v-if="selectDepts.length > 0">
59
+ {{$t('departmentTreeInline.selectResultInfoHasSelect')}}{{$t('departmentTreeInline.workgroupTree',{num: selectDepts.length })}}
60
+ <span style="padding-left: 10px"><el-icon><ArrowUpBold /></el-icon></span>
78
61
  </span>
79
- <span v-else-if="selectDepts.length > 0">
80
- {{ $t('departmentTreeInline.selectResultInfoHasSelect') }}{{ selectDepts[0].name }}
81
- </span>
82
- </div>
83
- <div class="button-area">
84
- <el-button size="large" type="primary" @click="saveDept">{{ $t('imatrixUIPublicModel.sure') }}</el-button>
85
- </div>
62
+ </span>
63
+ <span v-else-if="selectDepts.length > 0">
64
+ {{$t('departmentTreeInline.selectResultInfoHasSelect')}}{{selectDepts[0].name }}
65
+ </span>
86
66
  </div>
67
+ <div class="button-area">
68
+ <el-button size="large" type="primary" @click="saveDept">{{$t('imatrixUIPublicModel.sure')}}</el-button>
69
+ </div>
70
+ </div>
87
71
  </el-card>
88
- <deptResult ref="deptResultRef" :selectDepts="selectDepts" @removeDept="removeResultDept" />
72
+ <deptResult ref="deptResultRef" :selectDepts="selectDepts" @removeDept="removeResultDept"/>
89
73
  </div>
90
74
  </template>
91
75
 
92
- <script setup lang="ts">
93
- import { reactive, ref, onMounted, defineEmits, Ref } from 'vue'
94
- import { ArrowRight, Search, ArrowUpBold } from '@element-plus/icons-vue'
95
- import { getTenant, getTenantChildren, checkedDeptDefault, initSelectGroups } from './workgroup-tree-service.ts'
96
- import { resizeScrollTargetHeightUtil, getDeptNamePath } from '../../utils/organization.ts'
76
+ <script setup lang="ts">
77
+ import { reactive,ref,onMounted, defineEmits,Ref } from 'vue'
78
+ import {
79
+ ArrowRight,
80
+ Search,
81
+ ArrowUpBold
82
+ } from '@element-plus/icons-vue'
83
+ import {getTenant, getTenantChildren, checkedDeptDefault, initSelectGroups} from './workgroup-tree-service.ts'
84
+ import {resizeScrollTargetHeightUtil, getDeptNamePath} from '../../utils/organization.ts'
97
85
  import deptResult from './dept-result.vue'
98
- import { ElMessage } from 'element-plus'
99
- import { useI18n } from 'vue-i18n'
86
+ import {ElMessage} from 'element-plus'
87
+ import {useI18n} from "vue-i18n"
100
88
  const props = defineProps<{
101
- // 是否是多选树,默认是true
102
- multiple: {
103
- type: Boolean
104
- default: true
105
- }
106
- // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
107
- branchInfo: {
108
- type: Array<any>
109
- default: null
110
- }
111
- // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
112
- selectWorkgroupInfo: {
113
- type: [String, Number]
114
- default: null
115
- }
116
- // 移除部门时,部门属性名称:id、name、code,默认是id
117
- searchField: {
118
- type: String
119
- default: 'code'
120
- }
121
- // 多选树时结果之间的分隔符,默认是逗号分隔
122
- separator: {
123
- type: String
124
- default: ','
125
- }
126
- // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
127
- limitFilterColumn: {
128
- type: String
129
- default: 'code'
130
- }
131
- }>()
132
- const emits = defineEmits(['close'])
89
+ // 是否是多选树,默认是true
90
+ multiple: {
91
+ type: Boolean,
92
+ default: true,
93
+ },
94
+ // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
95
+ branchInfo: {
96
+ type: Array<any>,
97
+ default: null,
98
+ },
99
+ // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
100
+ selectWorkgroupInfo: {
101
+ type: [String, Number],
102
+ default: null,
103
+ },
104
+ // 移除部门时,部门属性名称:id、name、code,默认是id
105
+ searchField: {
106
+ type: String,
107
+ default: 'code',
108
+ },
109
+ // 多选树时结果之间的分隔符,默认是逗号分隔
110
+ separator: {
111
+ type: String,
112
+ default: ','
113
+ }
114
+ }>()
115
+ const emits = defineEmits(["close"])
133
116
  const orgTreeRef = ref(null)
134
117
  let tenantInfo = ref(null)
135
118
  let containBranch = ref(false)
@@ -141,23 +124,23 @@ let selectDepts = ref([])
141
124
  let selectDeptNodeIds = ref([])
142
125
  let clickDepts = ref([])
143
126
  let defaultCheckedKeys = ref([])
144
- let deptResultRef: Ref<any> = ref(null)
127
+ let deptResultRef:Ref<any> = ref(null)
145
128
  let checkAll = ref(false)
146
129
  let searchParam = ref({
147
130
  searchValue: null,
148
131
  treeType: 'GROUP_TREE',
149
132
  departmentInfo: null
150
133
  })
151
- const { t } = useI18n()
152
- onMounted(() => {
153
- initSelectGroups(props.searchField, props.selectWorkgroupInfo, props.separator).then((departments) => {
134
+ const {t} = useI18n()
135
+ onMounted(()=>{
136
+ initSelectGroups(props.searchField, props.selectWorkgroupInfo, props.separator ).then((departments)=>{
154
137
  selectDepts.value = departments
155
138
  getTenantInfo()
156
139
  })
157
140
  resizeScrollTargetHeight()
158
141
  })
159
142
  function getTenantInfo() {
160
- getTenant().then((data) => {
143
+ getTenant().then(data=>{
161
144
  const tenantData = data[0].data
162
145
  tenantInfo.value = JSON.parse(tenantData)
163
146
  containBranch.value = data[0].containBranch
@@ -167,28 +150,28 @@ function getTenantInfo() {
167
150
  }
168
151
 
169
152
  function getTenantChildrenDept() {
170
- getTenantChildren(props.branchInfo, tenantNodeId).then((children) => {
171
- departments.value = children
172
- checkedDeptDefault(selectDepts.value, defaultCheckedKeys.value)
173
- })
153
+ getTenantChildren(props.branchInfo, tenantNodeId).then(children=>{
154
+ departments.value = children
155
+ checkedDeptDefault(selectDepts.value, defaultCheckedKeys.value)
156
+ })
174
157
  }
175
158
 
176
- function resizeScrollTargetHeight() {
177
- const scrollTarget = document.querySelector('.org-tree')
178
- let height = resizeScrollTargetHeightUtil(scrollTarget)
179
- const titleArea = 110
180
- const deptPathArea = 60
181
- const allCheckArea = 60
182
- const buttonArea = 60
183
- height = height - titleArea - deptPathArea - allCheckArea - buttonArea
184
- scrollTarget['style'].height = height + 'px'
185
- scrollTarget['style'].minHeight = '300px'
186
- // scrollTarget.style.maxHeight = height + 'px'
159
+ function resizeScrollTargetHeight () {
160
+ const scrollTarget = document.querySelector('.org-tree')
161
+ let height = resizeScrollTargetHeightUtil(scrollTarget)
162
+ const titleArea = 110
163
+ const deptPathArea = 60
164
+ const allCheckArea = 60
165
+ const buttonArea = 60
166
+ height = height - titleArea - deptPathArea - allCheckArea - buttonArea
167
+ scrollTarget['style'].height = height + 'px'
168
+ scrollTarget['style'].minHeight = '300px'
169
+ // scrollTarget.style.maxHeight = height + 'px'
187
170
  }
188
171
  // 点击复选框时处理
189
172
  function handleCheckNode(data, check, isChildrenCheck) {
190
- if (props.multiple) {
191
- if (check) {
173
+ if(props.multiple){
174
+ if(check) {
192
175
  // 表示选择节点时
193
176
  addToSelectDept(data)
194
177
  } else {
@@ -199,48 +182,49 @@ function handleCheckNode(data, check, isChildrenCheck) {
199
182
  }
200
183
 
201
184
  function handleClickNode(data, node, treenode, events) {
202
- if (!props.multiple && data.nodeType && data.nodeType === 'WORKGROUP') {
185
+ if(!props.multiple && data.nodeType && data.nodeType === 'WORKGROUP') {
203
186
  selectDepts.value = [data]
204
187
  }
205
188
  }
206
189
 
190
+
207
191
  function addToSelectDept(dept) {
208
192
  console.log('addToSelectDept---selectDepts.value=', selectDepts.value, 'dept=', dept)
209
- if (dept.nodeType && dept.nodeType === 'WORKGROUP') {
210
- const filterValue = selectDepts.value.filter((item) => item.nodeId === dept.nodeId)
211
- if (!filterValue || filterValue.length === 0) {
212
- // 表示集合中没有该记录,需要记录到结果集合中
213
- selectDepts.value.push(JSON.parse(JSON.stringify(dept)))
193
+ if(dept.nodeType && dept.nodeType === 'WORKGROUP') {
194
+ const filterValue = selectDepts.value.filter(item=> item.nodeId === dept.nodeId)
195
+ if(!filterValue || filterValue.length === 0) {
196
+ // 表示集合中没有该记录,需要记录到结果集合中
197
+ selectDepts.value.push(JSON.parse(JSON.stringify(dept)))
198
+ }
214
199
  }
215
- }
216
200
  }
217
201
 
218
202
  function removeSelectDept(dept) {
219
- const index = selectDepts.value.findIndex((selectItem) => selectItem.nodeId === dept.nodeId)
203
+ const index = selectDepts.value.findIndex(selectItem=> selectItem.nodeId === dept.nodeId)
220
204
  console.log('removeSelectDept---selectDepts.value=', selectDepts.value, 'dept=', dept, 'index=', index)
221
- if (index !== undefined && index !== -1) {
222
- // 删除指定元素
223
- selectDepts.value.splice(index, 1)
224
- }
225
- checkAll.value = false
205
+ if(index !== undefined && index !== -1) {
206
+ // 删除指定元素
207
+ selectDepts.value.splice(index, 1)
208
+ }
209
+ checkAll.value =false
226
210
  }
227
211
  function changeAllCheck(value: boolean) {
228
212
  console.log('changeCheck====value=', value)
229
- if (props.multiple) {
213
+ if(props.multiple) {
230
214
  // 表示是复选组织树
231
- if (value) {
215
+ if(value){
232
216
  // 表示全选时
233
- const allNodeIds = departments.value.map((item) => {
234
- return item['nodeId']
217
+ const allNodeIds = departments.value.map((item)=>{
218
+ return item['nodeId'];
235
219
  })
236
220
  orgTreeRef.value.setCheckedKeys(allNodeIds, false)
237
- departments.value.forEach((item) => {
221
+ departments.value.forEach(item=>{
238
222
  addToSelectDept(item)
239
223
  })
240
224
  } else {
241
225
  // 表示取消全选时
242
- departments.value.forEach((item) => {
243
- removeSelectDept(item)
226
+ departments.value.forEach(item=>{
227
+ removeSelectDept(item)
244
228
  })
245
229
  orgTreeRef.value.setCheckedKeys([], false)
246
230
  }
@@ -277,13 +261,13 @@ function showResult() {
277
261
  }
278
262
 
279
263
  function removeResultDept(dept) {
280
- const removeDeptInDepts = selectDepts.value.filter((item) => item.nodeId === dept.nodeId)
281
- console.log('removeResultDept-----removeDeptInDepts=', removeDeptInDepts)
282
- if (removeDeptInDepts && removeDeptInDepts.length > 0) {
264
+ const removeDeptInDepts = selectDepts.value.filter(item=>item.nodeId === dept.nodeId)
265
+ console.log('removeResultDept-----removeDeptInDepts=', removeDeptInDepts)
266
+ if(removeDeptInDepts && removeDeptInDepts.length > 0) {
283
267
  // departments结果存在当前移除的节点时,check-change事件会走removeSelectDept的逻辑
284
268
  const selectNodeIds = []
285
- selectDepts.value.forEach((item) => {
286
- if (item.nodeId !== dept.nodeId) {
269
+ selectDepts.value.forEach(item=>{
270
+ if(item.nodeId !== dept.nodeId) {
287
271
  selectNodeIds.push(item.nodeId)
288
272
  }
289
273
  })
@@ -294,103 +278,98 @@ function removeResultDept(dept) {
294
278
  }
295
279
 
296
280
  function saveDept() {
297
- if (props.multiple) {
298
- let leafSelectNodeInfo = {
299
- ids: [],
300
- names: [],
301
- codes: [],
302
- workgroups: []
303
- }
304
- // const parentIds = []
305
- selectDepts.value.forEach((node) => {
306
- // node.data是部门对象的json字符串信息,通过JSON.parse(node.data)将json字符串转为对象
307
- let departmentData
308
- // 点开initSelectDepts 查询的数据只有一层
309
- if (node.data !== null && node.data !== undefined) {
310
- departmentData = JSON.parse(node.data)
281
+ if (props.multiple) {
282
+ let leafSelectNodeInfo = {
283
+ ids: [],
284
+ names: [],
285
+ codes: [],
286
+ workgroups: []
287
+ }
288
+ // const parentIds = []
289
+ selectDepts.value.forEach(node => {
290
+ // node.data是部门对象的json字符串信息,通过JSON.parse(node.data)将json字符串转为对象
291
+ let departmentData
292
+ // 点开initSelectDepts 查询的数据只有一层
293
+ if (node.data !== null && node.data !== undefined) {
294
+ departmentData = JSON.parse(node.data)
295
+ } else {
296
+ departmentData = node
297
+ }
298
+ addSelectedDepartmentInfo(leafSelectNodeInfo, node, departmentData)
299
+ })
300
+ let selectNodeInfo = {
301
+ ids: [],
302
+ names: [],
303
+ codes: [],
304
+ workgroups: []
305
+ }
306
+ Object.assign(selectNodeInfo, leafSelectNodeInfo)
307
+ if (selectNodeInfo.ids.length > 0) {
308
+ emits('close', selectNodeInfo)
309
+ } else {
310
+ ElMessage({
311
+ message: t('imatrixUIMessage.pleaseSelectDepartment'),
312
+ type: 'warning',
313
+ })
314
+ }
311
315
  } else {
312
- departmentData = node
316
+ const dept = selectDepts.value[0]
317
+ const department = JSON.parse(dept.data)
318
+ const showName = dept.name
319
+ // if (this.containBranch && dept.branchName) {
320
+ // // 如果包含分支机构,则拼接分支机构名称
321
+ // name = name + '(' + dept.branchName + ')'
322
+ // }
323
+ department.tenantName = tenantInfo.value.tenantName
324
+ department.tenantCode = tenantInfo.value.code
325
+ const selectNodeInfo = {
326
+ id: dept.id,
327
+ name: showName,
328
+ code: department.code,
329
+ containBranch: containBranch.value,
330
+ workgroup: department
331
+ }
332
+ emits('close', selectNodeInfo)
313
333
  }
314
- addSelectedDepartmentInfo(leafSelectNodeInfo, node, departmentData)
315
- })
316
- let selectNodeInfo = {
317
- ids: [],
318
- names: [],
319
- codes: [],
320
- workgroups: []
321
334
  }
322
- Object.assign(selectNodeInfo, leafSelectNodeInfo)
323
- if (selectNodeInfo.ids.length > 0) {
324
- emits('close', selectNodeInfo)
325
- } else {
326
- ElMessage({
327
- message: t('imatrixUIMessage.pleaseSelectDepartment'),
328
- type: 'warning'
329
- })
330
- }
331
- } else {
332
- const dept = selectDepts.value[0]
333
- const department = JSON.parse(dept.data)
334
- const showName = dept.name
335
- // if (this.containBranch && dept.branchName) {
336
- // // 如果包含分支机构,则拼接分支机构名称
337
- // name = name + '(' + dept.branchName + ')'
338
- // }
339
- department.tenantName = tenantInfo.value.tenantName
340
- department.tenantCode = tenantInfo.value.code
341
- const selectNodeInfo = {
342
- id: dept.id,
343
- name: showName,
344
- code: department.code,
345
- containBranch: containBranch.value,
346
- workgroup: department
335
+ // 将选中的部门节点添加到结果集合中
336
+ function addSelectedDepartmentInfo (result, node, department) {
337
+ result.ids.push(node.id)
338
+ result.codes.push(department.code)
339
+ result.containBranch = containBranch.value
340
+ department.tenantCode = tenantInfo.value.code
341
+ department.tenantName = tenantInfo.value.tenantName
342
+ result.workgroups.push(department)
343
+ const showName = department.name
344
+ // if (this.containBranch && node.branchName) {
345
+ // // 如果包含分支机构,则拼接分支机构名称
346
+ // name = name + '(' + node.branchName + ')'
347
+ // }
348
+ result.names.push(showName)
347
349
  }
348
- emits('close', selectNodeInfo)
349
- }
350
- }
351
- // 将选中的部门节点添加到结果集合中
352
- function addSelectedDepartmentInfo(result, node, department) {
353
- result.ids.push(node.id)
354
- result.codes.push(department.code)
355
- result.containBranch = containBranch.value
356
- department.tenantCode = tenantInfo.value.code
357
- department.tenantName = tenantInfo.value.tenantName
358
- result.workgroups.push(department)
359
- const showName = department.name
360
- // if (this.containBranch && node.branchName) {
361
- // // 如果包含分支机构,则拼接分支机构名称
362
- // name = name + '(' + node.branchName + ')'
363
- // }
364
- result.names.push(showName)
365
- }
366
350
 
367
- function filterAppendNodes() {
368
- if (searchParam.value.searchValue) {
369
- searchParam.value.searchValue = searchParam.value.searchValue.trim()
370
- searchParam.value.departmentInfo = props.branchInfo
371
- window['$vueApp'].config.globalProperties.$http
372
- .post(
373
- window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/search-mobile-workgroups',
374
- searchParam.value
375
- )
376
- .then((result) => {
351
+ function filterAppendNodes ( ) {
352
+ if (searchParam.value.searchValue) {
353
+ searchParam.value.searchValue = searchParam.value.searchValue.trim()
354
+ searchParam.value.departmentInfo = props.branchInfo
355
+ window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/search-mobile-workgroups', searchParam.value).then(result => {
377
356
  if (result) {
378
357
  if (result.length === 0) {
379
358
  ElMessage({
380
359
  message: t('imatrixUIMessage.queryResultIsEmpty'),
381
- type: 'warning'
360
+ type: 'warning',
382
361
  })
383
362
  }
384
363
  departments.value = result
385
364
  } else {
386
365
  ElMessage({
387
366
  message: t('imatrixUIMessage.queryResultIsEmpty'),
388
- type: 'warning'
367
+ type: 'warning',
389
368
  })
390
369
  }
391
370
  })
392
- } else {
393
- getTenantChildrenDept()
394
- }
371
+ } else {
372
+ getTenantChildrenDept()
373
+ }
395
374
  }
396
- </script>
375
+ </script>
@@ -141,11 +141,11 @@ function getUserLangAndTheme() {
141
141
  }
142
142
  }
143
143
 
144
- function getForgetPasswordMailType(username) {
145
- return request.get(window.$vueApp.config.globalProperties.baseAPI + '/sso/forget-passwords/mail-type?username=' + username)
146
- }
147
-
148
- function forgetPasswordSendMail(userInfo) {
144
+ function forgetPasswordSendMail(username, email) {
145
+ const userInfo = {
146
+ username,
147
+ email,
148
+ }
149
149
  return request.post(
150
150
  window.$vueApp.config.globalProperties.baseAPI +
151
151
  '/sso/forget-passwords/send-mails',
@@ -236,7 +236,6 @@ export default {
236
236
  getUserLanguage,
237
237
  getUserLangAndTheme,
238
238
  forgetPasswordSendMail,
239
- getForgetPasswordMailType,
240
239
  isResetPasswordJwtOverdue,
241
240
  resetPassword,
242
241
  isLoginTimeOut,
@@ -1,13 +1,14 @@
1
1
  import permission from './permission'
2
2
 
3
3
  const install = function (Vue) {
4
+ alert('permission---install----5555')
4
5
  Vue.directive('permission', permission)
5
6
  }
6
7
 
7
- if (window.Vue) {
8
- window['permission'] = permission
9
- window.$vueApp.use(install) // eslint-disable-line
10
- }
8
+ // if (window.Vue) {
9
+ // window['permission'] = permission
10
+ // window.$vueApp.use(install) // eslint-disable-line
11
+ // }
11
12
 
12
13
  permission.install = install
13
14
  export default permission
@@ -1,6 +1,7 @@
1
1
  import checkPermission from '../../utils/permission'
2
2
  export default {
3
3
  mounted(el, binding, vnode) {
4
+ alert('permission--mounted----555')
4
5
  const { value } = binding
5
6
  // const currentUserPermissions = store.getters && store.getters.currentUserPermissions
6
7