get คำถามหน้าแบบสอบถาม
This commit is contained in:
parent
6384d80488
commit
2ad74a38fc
5 changed files with 449 additions and 143 deletions
|
|
@ -256,8 +256,8 @@ const fetchData = async () => {
|
|||
รายละเอียดของ {{ personalData.fullName }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="q-pb-lg" v-if="storePersonal.loading">
|
||||
<q-card class="row q-pb-lg">
|
||||
<div class="q-pb-lg">
|
||||
<q-card class="row q-pb-lg" v-if="storePersonal.loading">
|
||||
<div id="information" name="1" class="col-12 q-pa-sm">
|
||||
<Informationvue
|
||||
v-model:statusEdit="statusEdit"
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
round
|
||||
color="blue"
|
||||
icon="mdi-download-outline"
|
||||
@click="downloadData(file.file)"
|
||||
@click="downloadData(file.pathName)"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดเอกสารหลักฐาน</q-tooltip>
|
||||
</q-btn>
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
color="red"
|
||||
icon="mdi-delete-outline"
|
||||
v-show="edit"
|
||||
@click="deleteData(file.id)"
|
||||
@click="deleteData(file.docId)"
|
||||
>
|
||||
<q-tooltip>ลบเอกสารหลักฐาน</q-tooltip>
|
||||
</q-btn>
|
||||
|
|
@ -206,6 +206,8 @@ const getData = async () => {
|
|||
};
|
||||
|
||||
const deleteData = async (id: string) => {
|
||||
console.log(id);
|
||||
|
||||
showLoader();
|
||||
await http
|
||||
.delete(config.API.documentDelid(profileId.value, id))
|
||||
|
|
@ -228,7 +230,7 @@ const uploadData = async () => {
|
|||
type: file.value[0].type,
|
||||
});
|
||||
const formData = new FormData();
|
||||
formData.append("docs", newFile);
|
||||
formData.append("file", newFile);
|
||||
// formData.append("moss", "newFile");
|
||||
showLoader();
|
||||
await http
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue