ปรับ Table บันทึกผล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-07 10:48:02 +07:00
parent 34c9802171
commit 8130c180f0
4 changed files with 53 additions and 21 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, onMounted, watch, reactive, computed, } from "vue";
import { ref, onMounted, watch, reactive, computed } from "vue";
import { useQuasar, QForm } from "quasar";
import type { QTableProps } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
@ -216,7 +216,7 @@ const getTable = async () => {
await http
.get(config.API.personalList(examIdString))
.then(async (res: any) => {
// console.log(res);
console.log(res);
dataRes.value = res.data.result;
rowsAll.value = [];
(rowsFilter.value = []),
@ -226,7 +226,7 @@ const getTable = async () => {
idCard: data.idCard,
fullName: data.fullName + " " + data.idCard,
name: data.fullName,
profilePhoto: data.profilePhoto,
profilePhoto: data.profilePhoto ?? "",
organizationName:
data.organizationName +
" " +
@ -616,11 +616,15 @@ const paginationLabel = (start: number, end: number, total: number) => {
<q-item v-ripple>
<q-item-section avatar>
<img
v-if="props.row.avatar == null"
v-if="props.row.profilePhoto == ''"
src="@/assets/avatar_user.jpg"
class="col-4 img-info"
/>
<img v-else :src="props.row.avatar" class="col-4 img-info" />
<img
v-else
:src="props.row.profilePhoto"
class="col-4 img-info"
/>
</q-item-section>
<q-item-section>