ย้าย ปฏิทิน เข้าใน ฟอร์ม

This commit is contained in:
setthawutttty 2023-12-06 17:55:06 +07:00
parent ecb81632ab
commit 3b138d9bf6
6 changed files with 243 additions and 99 deletions

View file

@ -1,10 +1,7 @@
<script setup lang="ts">
import { ref, useAttrs } from "vue";
import type { Pagination } from "@/modules/04_registry/interface/index/Main";
import CalandarDialog from "@/modules/11_discipline/components/3_InvestigateDisciplinary/CalandarDialog.vue";
const calendarModal = ref<boolean>(false);
const calendarModalclose = () => (calendarModal.value = !calendarModal.value);
const table = ref<any>(null);
const filterRef = ref<any>(null);
const attrs = ref<any>(useAttrs());
@ -46,10 +43,6 @@ const emit = defineEmits([
"update:editvisible",
]);
function calendarOpen() {
calendarModal.value = true;
}
function paginationLabel(start: string, end: string, total: string) {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
@ -72,20 +65,6 @@ function resetFilter() {
<template>
<div class="q-pb-sm row q-col-gutter-sm">
<div>
<q-btn
name="calendar"
round
size="12px"
flat
icon="mdi-calendar-month"
class="q-mr-sm"
color="primary"
@click="calendarOpen"
>
<q-tooltip>ปฏ</q-tooltip>
</q-btn>
</div>
<q-space />
<!-- นหาขอความใน table -->
<q-input
@ -148,7 +127,6 @@ function resetFilter() {
<slot v-bind="props" name="columns"></slot>
</template>
</d-table>
<CalandarDialog :modal="calendarModal" :close="calendarModalclose" />
</template>
<style lang="scss">