ลบ log
This commit is contained in:
parent
4d0e40ea91
commit
e4188b7ed3
38 changed files with 108 additions and 167 deletions
|
|
@ -5,7 +5,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
import { useResultDataStore } from "@/modules/07_insignia/storeResult";
|
||||
|
||||
import Dialogbody from "@/modules/07_insignia/components/3_result/Dialogbody.vue"
|
||||
import Dialogbody from "@/modules/07_insignia/components/3_result/Dialogbody.vue";
|
||||
import DialogForm from "@/modules/07_insignia/components/3_result/DialogForm.vue";
|
||||
import fileUploadview from "../components/3_result/fileUpload.vue";
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ const fileResult = ref<any>(null);
|
|||
const fileinvoice = ref<any>(null);
|
||||
const loadView = ref<boolean>(false);
|
||||
const insigniaTypeOption = ref<any>([]);
|
||||
const ModalDialog = ref<boolean>(false)
|
||||
const ModalDialog = ref<boolean>(false);
|
||||
onMounted(async () => {
|
||||
await fecthRound();
|
||||
});
|
||||
|
|
@ -59,7 +59,7 @@ const fecthRound = async () => {
|
|||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
|
|
@ -89,7 +89,6 @@ const fecthInsigniaType = async () => {
|
|||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
console.log("fecthInsigniaType");
|
||||
});
|
||||
};
|
||||
const visibleColumns = ref<String[]>([
|
||||
|
|
@ -266,8 +265,6 @@ const columns = ref<QTableProps["columns"]>([
|
|||
watch(tab, () => {
|
||||
if (tab.value !== "doc") {
|
||||
fecthlistInsignia();
|
||||
console.log(DataStore.insigniaOp);
|
||||
|
||||
insigniaTypeOption.value = DataStore.insigniaOp.filter(
|
||||
(e: any) => e.insigniaType == tab.value || e.name == "ทั้งหมด"
|
||||
);
|
||||
|
|
@ -349,7 +346,7 @@ const filter = ref<string>("");
|
|||
|
||||
const close = () => {
|
||||
modal.value = false;
|
||||
ModalDialog.value = false
|
||||
ModalDialog.value = false;
|
||||
};
|
||||
|
||||
const addData = () => {
|
||||
|
|
@ -383,7 +380,6 @@ const perviewfile = async (event: any, actionType: string) => {
|
|||
await http
|
||||
.put(config.API.previewfileInsignia(actionType, id), formdata)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
let data = res.data.result;
|
||||
rowspreview.value = data.map((e: any) => ({
|
||||
id: e.id,
|
||||
|
|
@ -405,7 +401,7 @@ const perviewfile = async (event: any, actionType: string) => {
|
|||
}));
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
messageError($q,err)
|
||||
})
|
||||
.finally(() => {
|
||||
modelPerview.value = true;
|
||||
|
|
@ -430,9 +426,9 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
|||
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
|
||||
else return start + "-" + end + " ใน " + total;
|
||||
};
|
||||
const OpenModal = () =>{
|
||||
ModalDialog.value = true
|
||||
}
|
||||
const OpenModal = () => {
|
||||
ModalDialog.value = true;
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -694,23 +690,52 @@ const OpenModal = () =>{
|
|||
</div>
|
||||
|
||||
<div v-else-if="props.col.name == 'action'">
|
||||
<q-btn icon="mdi-dots-vertical" size="12px" color="grey-7"
|
||||
flat round dense >
|
||||
<q-menu transition-show="jump-down" transition-hide="jump-up" >
|
||||
<q-list dense style="min-width: 100px" >
|
||||
<q-item clickable v-close-popup @click.stop="editData(props.row)" >
|
||||
<q-item-section style="min-width: 0px" avatar class="q-py-sm" >
|
||||
<q-icon size="xs" name="mdi-pencil-outline" color="primary"/>
|
||||
</q-item-section>
|
||||
<q-btn
|
||||
icon="mdi-dots-vertical"
|
||||
size="12px"
|
||||
color="grey-7"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
>
|
||||
<q-menu
|
||||
transition-show="jump-down"
|
||||
transition-hide="jump-up"
|
||||
>
|
||||
<q-list dense style="min-width: 100px">
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click.stop="editData(props.row)"
|
||||
>
|
||||
<q-item-section
|
||||
>เเก้ไขข้อมูล</q-item-section
|
||||
style="min-width: 0px"
|
||||
avatar
|
||||
class="q-py-sm"
|
||||
>
|
||||
<q-icon
|
||||
size="xs"
|
||||
name="mdi-pencil-outline"
|
||||
color="primary"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>เเก้ไขข้อมูล</q-item-section>
|
||||
</q-item>
|
||||
<q-item clickable v-close-popup @click="OpenModal()">
|
||||
<q-item-section style="min-width: 0px" avatar class="q-py-sm" >
|
||||
<q-icon size="xs" name="mdi-information-outline" color="blue"/>
|
||||
<q-item-section
|
||||
style="min-width: 0px"
|
||||
avatar
|
||||
class="q-py-sm"
|
||||
>
|
||||
<q-icon
|
||||
size="xs"
|
||||
name="mdi-information-outline"
|
||||
color="blue"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section no-wrap>รับ-คืนเครื่องราชฯ</q-item-section>
|
||||
<q-item-section no-wrap
|
||||
>รับ-คืนเครื่องราชฯ</q-item-section
|
||||
>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
|
|
@ -729,10 +754,7 @@ const OpenModal = () =>{
|
|||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
|
||||
<Dialogbody
|
||||
:modal="ModalDialog"
|
||||
:close="close"
|
||||
/>
|
||||
<Dialogbody :modal="ModalDialog" :close="close" />
|
||||
<DialogForm
|
||||
:modal="modal"
|
||||
:save="save"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue