แก้ไข fiter ประเภทเครื่องราชฯ
This commit is contained in:
parent
c812866dce
commit
8d4813b79e
4 changed files with 14 additions and 4 deletions
|
|
@ -830,6 +830,7 @@ const closeModalEdit = () => {
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
<q-td v-else auto-width></q-td>
|
||||||
<q-td
|
<q-td
|
||||||
auto-width
|
auto-width
|
||||||
v-if="props.row.insigniaSend == 'เหรียญจักรพรรดิมาลา'"
|
v-if="props.row.insigniaSend == 'เหรียญจักรพรรดิมาลา'"
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,10 @@ const downloadDocument = async (type: string) => {
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
if (download) {
|
if (download) {
|
||||||
downloadFile(res, `ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}`);
|
downloadFile(
|
||||||
|
res,
|
||||||
|
`ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
@ -91,4 +94,4 @@ const downloadFile = (response: any, filename: string) => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
|
||||||
insigniaOp.value = [{ name: "ทั้งหมด", id: "" }]
|
insigniaOp.value = [{ name: "ทั้งหมด", id: "" }]
|
||||||
insigniaOp2.value = []
|
insigniaOp2.value = []
|
||||||
data.forEach((e: any) => {
|
data.forEach((e: any) => {
|
||||||
insigniaOp.value.push({ name: e.name, id: e.id })
|
insigniaOp.value.push({ name: e.name, id: e.id, insigniaType: e.insigniaType.id })
|
||||||
});
|
});
|
||||||
data.forEach((e: any) => {
|
data.forEach((e: any) => {
|
||||||
insigniaOp2.value.push({ name: e.name, id: e.id })
|
insigniaOp2.value.push({ name: e.name, id: e.id })
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ const profileType = ref<string>("");
|
||||||
const fileResult = ref<any>(null);
|
const fileResult = ref<any>(null);
|
||||||
const fileinvoice = ref<any>(null);
|
const fileinvoice = ref<any>(null);
|
||||||
const loadView = ref<boolean>(false);
|
const loadView = ref<boolean>(false);
|
||||||
|
const insigniaTypeOption = ref<any>([]);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fecthRound();
|
await fecthRound();
|
||||||
|
|
@ -264,6 +265,11 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
watch(tab, () => {
|
watch(tab, () => {
|
||||||
if (tab.value !== "doc") {
|
if (tab.value !== "doc") {
|
||||||
fecthlistInsignia();
|
fecthlistInsignia();
|
||||||
|
console.log(DataStore.insigniaOp);
|
||||||
|
|
||||||
|
insigniaTypeOption.value = DataStore.insigniaOp.filter(
|
||||||
|
(e: any) => e.insigniaType == tab.value || e.name == "ทั้งหมด"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
watch(modal, () => {
|
watch(modal, () => {
|
||||||
|
|
@ -555,7 +561,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
option-label="name"
|
option-label="name"
|
||||||
:options="DataStore.insigniaOp"
|
:options="insigniaTypeOption"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:readonly="false"
|
:readonly="false"
|
||||||
:borderless="false"
|
:borderless="false"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue