แก้ไขเรื่องร้องเรียน ไม่โชว์ list ถ้าไม่มีข้อมูล
This commit is contained in:
parent
5acca0efa6
commit
14c232d589
1 changed files with 4 additions and 4 deletions
|
|
@ -44,6 +44,7 @@ const dateNotificationRef = ref<Object | null>(null);
|
||||||
const complaintFromRef = ref<Object | null>(null);
|
const complaintFromRef = ref<Object | null>(null);
|
||||||
const appellantRef = ref<Object | null>(null);
|
const appellantRef = ref<Object | null>(null);
|
||||||
|
|
||||||
|
const fileList = ref<ArrayFileList[]>()
|
||||||
/** รับ props มาจากหน้าหลัก */
|
/** รับ props มาจากหน้าหลัก */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -407,7 +408,7 @@ watch(props.data, async () => {
|
||||||
formData.documentFile = props.data.documentFile;
|
formData.documentFile = props.data.documentFile;
|
||||||
formData.complaintStatus = props.data.complaintStatus;
|
formData.complaintStatus = props.data.complaintStatus;
|
||||||
complainstStore.fetchComplainstAdd(props.data.persons);
|
complainstStore.fetchComplainstAdd(props.data.persons);
|
||||||
formData.fileList = props.data.fileList;
|
fileList.value = props.data.fileList
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -964,12 +965,11 @@ onMounted(() => {
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="q-pa-md" v-if="fileList">
|
||||||
<div class="q-pa-md">
|
|
||||||
<q-list
|
<q-list
|
||||||
bordered
|
bordered
|
||||||
separator
|
separator
|
||||||
v-for="data in formData.fileList"
|
v-for="data in fileList"
|
||||||
:key="data.id"
|
:key="data.id"
|
||||||
>
|
>
|
||||||
<q-item clickable v-ripple class="items-center">
|
<q-item clickable v-ripple class="items-center">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue