fix: ไม่แสดง template code C-PM-47
This commit is contained in:
parent
fa22a301aa
commit
9efb30c531
2 changed files with 17 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ interface ListOrder {
|
|||
isActive: boolean;
|
||||
isAttachment: boolean;
|
||||
category?: string;
|
||||
code: string;
|
||||
commandSysId: string;
|
||||
isUploadAttachment: boolean;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ const filteredTabs = computed(() =>
|
|||
: tabs.value.filter((tab) => tab.value !== "attachment")
|
||||
);
|
||||
|
||||
const isCode = ref<string>(""); // ตัวแปรเก็บ code
|
||||
const isActive = ref<boolean>(true); // สถานะของรายการคำสั่ง
|
||||
const isAttachment = ref<boolean>(true); // บัญชีแนบท้าย
|
||||
const isSalary = ref<boolean>(true); // แก้ไขเงินเดือน
|
||||
|
|
@ -206,6 +207,12 @@ function onSubmit() {
|
|||
* เก็บ id list คำสั่งที่เลือก เพื่อใช้ class
|
||||
*/
|
||||
function selectInbox(data: ListOrder) {
|
||||
isCode.value = data.code;
|
||||
if (data.code === "C-PM-47") {
|
||||
isAttachmentShow.value = false;
|
||||
activeCommandId.value = "";
|
||||
return;
|
||||
}
|
||||
store.currentTab =
|
||||
!data.isAttachment && store.currentTab == "attachment"
|
||||
? "cover"
|
||||
|
|
@ -404,6 +411,15 @@ onMounted(async () => {
|
|||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="isCode == 'C-PM-47'"
|
||||
style="height: auto; max-width: 100%; max-height: 90vh"
|
||||
>
|
||||
<div
|
||||
class="absolute-center text-center text-grey-9"
|
||||
style="width: 100%"
|
||||
></div>
|
||||
</div>
|
||||
<div v-else style="height: auto; max-width: 100%; max-height: 90vh">
|
||||
<div
|
||||
class="absolute-center text-center text-grey-9"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue