jobdone-shared-files 1.1.4 → 1.1.6

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.
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
 
35
35
  <div class="overflow-auto flex-grow-1 py-1">
36
- <slot name="list-content-top"></slot>
36
+ <slot name="list-content-top" :moduleInfo="moduleInfoData"></slot>
37
37
  <template v-if="moduleInfoData.generalApps?.length > 0">
38
38
  <ul class="list-group list-group-aside">
39
39
  <div class="bg-gray-100 text-gray-500 ps-4 pt-3 pb-2">
@@ -62,7 +62,7 @@
62
62
  </li>
63
63
  </ul>
64
64
  </template>
65
- <slot name="list-content-bottom"></slot>
65
+ <slot name="list-content-bottom" :moduleInfo="moduleInfoData"></slot>
66
66
  </div>
67
67
 
68
68
  <div class="bg-body sticky-bottom border-top">
@@ -88,22 +88,16 @@ const setSelected = (userId) => {
88
88
  resetSelected()
89
89
  return
90
90
  }
91
- let userIdList = optsAdjust.value.flatMap(i => i.users.map(item => (
92
- {
93
- ...item,
94
- organization: {
95
- organName: i.organName,
96
- organId: i.organId,
97
- users: i.users
98
- }
99
- }
100
- ))) || []
91
+ let userIdList = optsAdjust.value.flatMap(i => i.users) || []
101
92
  let user = userIdList.find(i => i.userId == userId)
102
93
  if (!user) {
103
94
  resetSelected()
104
95
  return
105
96
  }
106
- selectOrgan(user.organization)
97
+ selectOrgan({
98
+ organName: user.organization?.name,
99
+ organId: user.organization?.id,
100
+ })
107
101
  selectUser(user, true)
108
102
  }
109
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {