|
|
@@ -62,7 +62,7 @@ |
|
|
|
:initial-index="4" |
|
|
|
fit="cover" |
|
|
|
/> |
|
|
|
<el-button color="#626aef" size="small" @click="assignFn(item)">指派{{ item.id }}</el-button> |
|
|
|
<el-button color="#626aef" size="small" @click="assignFn(item)">指派</el-button> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
@@ -183,20 +183,18 @@ const submitFn = () => { |
|
|
|
} |
|
|
|
visible.value = false; |
|
|
|
|
|
|
|
attendanceRoolcallApi |
|
|
|
.update({ id: assignId.value, personId: checkData.value.personId, personSetId: checkData.value.personSets[0].personSetId }) |
|
|
|
.then(() => { |
|
|
|
ElMessage({ |
|
|
|
message: "指派成功", |
|
|
|
type: "success" |
|
|
|
}); |
|
|
|
UnrecognizedD.value = UnrecognizedD.value.filter((item: any) => item.id !== assignId.value); |
|
|
|
listData.value.map((item: any) => { |
|
|
|
if (item.personId === checkData.value.personId) { |
|
|
|
item.status = 1; |
|
|
|
} |
|
|
|
}); |
|
|
|
attendanceRoolcallApi.update({ id: assignId.value, personId: checkData.value.personId, personSetId: checkData.value.personSetId }).then(() => { |
|
|
|
ElMessage({ |
|
|
|
message: "指派成功", |
|
|
|
type: "success" |
|
|
|
}); |
|
|
|
UnrecognizedD.value = UnrecognizedD.value.filter((item: any) => item.id !== assignId.value); |
|
|
|
listData.value.map((item: any) => { |
|
|
|
if (item.personId === checkData.value.personId) { |
|
|
|
item.status = 1; |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
const handleClose = () => { |
|
|
|
visible.value = false; |
|
|
|