แก้ ui ดาวน์โหลด
This commit is contained in:
parent
0290f5cd77
commit
e89eeeaba3
3 changed files with 23 additions and 17 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue