ソースを参照

优化

master
suyanyan 4ヶ月前
コミット
4d59274394
1個のファイルの変更12行の追加14行の削除
  1. +12
    -14
      SafeCampus.WEB/src/views/attendance/roolcall/detail.vue

+ 12
- 14
SafeCampus.WEB/src/views/attendance/roolcall/detail.vue ファイルの表示

@@ -62,7 +62,7 @@
:initial-index="4" :initial-index="4"
fit="cover" 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> </li>
</ul> </ul>
</div> </div>
@@ -183,20 +183,18 @@ const submitFn = () => {
} }
visible.value = false; 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 = () => { const handleClose = () => {
visible.value = false; visible.value = false;


読み込み中…
キャンセル
保存