clear search
This commit is contained in:
parent
4d47694ea5
commit
2967faf441
5 changed files with 8 additions and 21 deletions
|
|
@ -9,6 +9,7 @@ import { useDisciplineMainStore } from "@/modules/11_discipline/store/Main";
|
|||
|
||||
const mainStore = useDisciplineMainStore();
|
||||
|
||||
const modal = defineModel<boolean>('modal',{required:true})
|
||||
const total = ref<number>(0);
|
||||
const totalList = ref<number>(1);
|
||||
|
||||
|
|
@ -59,11 +60,6 @@ const typeOps = ref<typeOp[]>([
|
|||
|
||||
/** รับค่ามาจาก หน้าหลัก */
|
||||
const props = defineProps({
|
||||
modal: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
required: true,
|
||||
},
|
||||
btnTitle: {
|
||||
type: String,
|
||||
default: "เพิ่ม",
|
||||
|
|
@ -101,7 +97,7 @@ const emit = defineEmits(["returnData"]);
|
|||
|
||||
/** ปิด dialog */
|
||||
async function close() {
|
||||
props.close();
|
||||
modal.value = false
|
||||
rows.value = [];
|
||||
employeeClass.value = "officer";
|
||||
search.value = "";
|
||||
|
|
@ -119,8 +115,7 @@ function savePost() {
|
|||
/** save data หลังจาก ยืนยัน */
|
||||
function saveData() {
|
||||
props.save(selected.value, employeeClass.value);
|
||||
rows.value = [];
|
||||
employeeClass.value = "officer";
|
||||
close()
|
||||
}
|
||||
|
||||
const searchRef = ref<any>(null);
|
||||
|
|
@ -233,7 +228,7 @@ watch(
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<q-dialog v-model="props.modal" persistent>
|
||||
<q-dialog v-model="modal" persistent>
|
||||
<q-card style="min-width: 60vw">
|
||||
<q-toolbar>
|
||||
<q-toolbar-title class="text-subtitle2 text-bold">{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue