เเก้คำ
This commit is contained in:
parent
ce3c5a0b48
commit
b5fae92a03
2 changed files with 45 additions and 5 deletions
|
|
@ -533,7 +533,7 @@ const pagination = ref({
|
|||
/>
|
||||
</q-item-section>
|
||||
<q-item-section
|
||||
>เลือกหน่วยงานที่รับโอน</q-item-section
|
||||
>เลือกหน่วยงาน/ตำแหน่ง</q-item-section
|
||||
>
|
||||
</q-item>
|
||||
<q-item
|
||||
|
|
|
|||
|
|
@ -167,10 +167,10 @@
|
|||
{{ props.row.fileName }}
|
||||
</q-td>
|
||||
<q-td key="btnMicrosoft" :props="props">
|
||||
<q-btn flat dense round color="red" icon="picture_as_pdf">
|
||||
<q-tooltip>ดาวน์โหลด</q-tooltip>
|
||||
<q-btn flat dense round color="red" icon="picture_as_pdf" @click="filePdf(props.row.id,'pdf')">
|
||||
<q-tooltip>ไฟล์ PDF</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn flat dense round color="blue" icon="mdi-file-word">
|
||||
<q-btn flat dense round color="blue" icon="mdi-file-word" @click="fileDoc(props.row.id,'docx')">
|
||||
<q-tooltip>ไฟล์ WORD</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
|
|
@ -463,7 +463,41 @@ const responseData = ref<ResponseDataDetail>({
|
|||
status: "",
|
||||
fullname: "",
|
||||
});
|
||||
const filePdf = (id:number,type:string) =>{
|
||||
|
||||
}
|
||||
const fileDoc = (id:number,type:string) =>{
|
||||
|
||||
}
|
||||
// const downloadFile = (response: any, filename: string) => {
|
||||
// const link = document.createElement("a");
|
||||
// var fileName = filename;
|
||||
// link.href = window.URL.createObjectURL(new Blob([response.data]));
|
||||
// link.setAttribute("download", fileName);
|
||||
// document.body.appendChild(link);
|
||||
// link.click();
|
||||
// document.body.removeChild(link);
|
||||
// };
|
||||
|
||||
// const FileDownload = async (type: string) => {
|
||||
// showLoader();
|
||||
// await http
|
||||
// .get(config.API.reportEvaluateRecord1(type, numTab.id), {
|
||||
// responseType: "blob",
|
||||
// })
|
||||
// .then(async (res) => {
|
||||
// downloadFile(
|
||||
// res,
|
||||
// `แบบบันทึกผล(ผู้ดูเเล)_${fullname.value}_ครั้งที่.${type}`
|
||||
// );
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
// };
|
||||
const rows = ref<TypeFile[]>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
|
|
@ -503,22 +537,28 @@ onMounted(async () => {
|
|||
await getData();
|
||||
});
|
||||
|
||||
const rowsFileDownload = ref<TypeFile[]>([{
|
||||
const rowsFileDownload = ref<any[]>([{
|
||||
id:1,
|
||||
fileName: "คําร้องขอโอนไปถึงส่วนราชการอื่นนอก กรุงเทพมหานครที่ข้าราชการประสงค์ขอโอน",
|
||||
pathName: ""
|
||||
},{
|
||||
id:2,
|
||||
fileName: "หนังสือแจ้งสํานักงานการเจ้าหน้าที่ สํานักปลัดกรุงเทพมหานคร ให้ทราบตําแหน่งและตําแหน่งเลขที่ที่ดําเนินการให้โอน",
|
||||
pathName: ""
|
||||
},{
|
||||
id:3,
|
||||
fileName: "หนังสือยินยอมให้โอนและวันที่พร้อมจะให้โอนไปยัง หน่วยงานที่รับโอน",
|
||||
pathName: ""
|
||||
},{
|
||||
id:4,
|
||||
fileName: "หนังสือแจ้งสหกรณ์ออมทรัพย์กรุงเทพมหานครเพื่อขอ ตรวจสอบภาระหนี้สินสหกรณ์ออมทรัพย์",
|
||||
pathName: ""
|
||||
},{
|
||||
id:5,
|
||||
fileName: "หนังสือถึงสํานักงานการเจ้าหน้าที่ สํานักปลัดกรุงเทพมหานครเพื่อขอตรวจสอบพฤติการณ์ทางวินัย และภาระหนี้สินสวัสดิการ",
|
||||
pathName: ""
|
||||
},{
|
||||
id:6,
|
||||
fileName: "หนังสือถึงสถาบันพัฒนาข้าราชการกรุงเทพมหานครเพื่อขอตรวจสอบเรื่องภาระผูกพันการรับทุนและการลา ศึกษาต่อกับทางกรุงเทพมหานคร",
|
||||
pathName: ""
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue