แก้ ui ดาวน์โหลด

This commit is contained in:
STW_TTTY\stwtt 2024-09-24 11:39:26 +07:00
parent 0290f5cd77
commit e89eeeaba3
3 changed files with 23 additions and 17 deletions

View file

@ -23,7 +23,7 @@ const router = useRouter();
const route = useRoute();
const commandId = ref<string>(route.params.id.toString()); //ID
const store = useCommandDetail();
const isMomFirst = ref<boolean>(false);
const isAttachment = ref<boolean>(true);
const childDetailRef = ref<InstanceType<typeof Detail> | null>(null); //ref components
const childListPersonsRef = ref<InstanceType<typeof ListPersons> | null>(null); //ref components
@ -86,7 +86,9 @@ async function fetchDataCommandList() {
.then(async (res) => {
const data = await res.data.result;
formCommandList = data;
isChangeData.value = false;
// API isAttachment.value = data.isAttachment ;
isAttachment.value = true; //
isChangeData.value = false; //
})
.catch((err) => {
messageError($q, err);
@ -215,6 +217,7 @@ onMounted(async () => {
ref="childAttachedRef"
v-model:is-change-data="isChangeData"
:on-check-change-data="onCheckChangeData"
v-model:is-attachment="isAttachment"
/>
</q-card>
</q-tab-panel>