ปรับ Table บันทึกผล
This commit is contained in:
parent
34c9802171
commit
8130c180f0
4 changed files with 53 additions and 21 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue