|
|
@@ -181,8 +181,8 @@
|
|
181
|
181
|
</template>
|
|
182
|
182
|
|
|
183
|
183
|
<script setup name="PostRecord">
|
|
184
|
|
-import { listPostRecord, getPostRecord, delPostRecord, addPostRecord, updatePostRecord, positionList, teamList } from "@/api/attendance/postRecord"
|
|
185
|
|
-import { listRecord } from "@/api/attendance/record"
|
|
|
184
|
+import { listPostRecord, getPostRecord, delPostRecord, addPostRecord, updatePostRecord, positionList, teamList, selectUserListByCondition } from "@/api/attendance/postRecord"
|
|
|
185
|
+
|
|
186
|
186
|
import UserSelect from "@/components/UserSelect"
|
|
187
|
187
|
|
|
188
|
188
|
const { proxy } = getCurrentInstance()
|
|
|
@@ -328,13 +328,17 @@ const { queryParams, form, rules } = toRefs(data)
|
|
328
|
328
|
|
|
329
|
329
|
|
|
330
|
330
|
const handleTeamChange = async (newTeamId) => {
|
|
331
|
|
-
|
|
|
331
|
+
|
|
332
|
332
|
if (newTeamId) {
|
|
333
|
333
|
// 当班组ID变化时,获取该班组的成员
|
|
334
|
334
|
try {
|
|
335
|
|
- const response = await listRecord({ attendanceTeamId: newTeamId,pageSize: 1000 })
|
|
|
335
|
+ const response = await selectUserListByCondition({
|
|
|
336
|
+ deptId: newTeamId, roleKeyList: [
|
|
|
337
|
+ "SecurityCheck"
|
|
|
338
|
+ ],
|
|
|
339
|
+ })
|
|
336
|
340
|
// 获取团队成员的用户ID列表
|
|
337
|
|
- const teamUserIds = response.rows.map(item => item.userId)
|
|
|
341
|
+ const teamUserIds = response.data.map(item => item.userId)
|
|
338
|
342
|
// 将团队成员的用户ID赋值给form.userId
|
|
339
|
343
|
form.value.userIdList = teamUserIds
|
|
340
|
344
|
} catch (error) {
|