ลบ component สมัครที่ไม่ใช้

This commit is contained in:
Kittapath 2023-03-30 22:37:24 +07:00
parent abe8e9186c
commit 98738aa814
14 changed files with 20 additions and 697 deletions

View file

@ -175,11 +175,6 @@
</q-form>
</q-card>
</q-dialog>
<!-- <q-dialog :model-value="modalConsend" persistent>
<q-card style="min-width: 800px">
<Conference :ok="consendOk" :close="consenClose" />
</q-card>
</q-dialog> -->
</template>
<script setup lang="ts">
import { onMounted, ref, watch } from 'vue'
@ -201,26 +196,9 @@ import DialogFooter from '@/components/DialogFooter.vue'
import { useRoute } from 'vue-router'
const props = defineProps({
loader: {
// main refresh data
type: Boolean,
required: true
},
status: {
type: String,
required: true
},
statusEdit: {
type: Boolean,
required: true
},
notiNoEdit: {
type: Function,
default: () => console.log('not function')
},
btnSave: {
type: Boolean,
required: true
}
})
@ -253,8 +231,6 @@ const route = useRoute()
const examId = ref<string>(route.params.id.toString())
const filter = ref<string>('') //search data table
const emit = defineEmits(['update:loader', 'update:statusEdit'])
const visibleColumns = ref<String[]>([])
examData.education.columns.length == 0
@ -309,22 +285,10 @@ const columns = ref<Columns>([
}
])
// watch(props, async (count: any, prevCount: any) => {
// if (props.btnSave == true) await saveData()
// })
watch(loader, (count: boolean, prevCount: boolean) => {
emit('update:loader', count)
})
watch(visibleColumns, async (count: String[], prevCount: String[]) => {
await changeExamColumns('education', count)
})
watch(edit, (count: boolean, prevCount: boolean) => {
emit('update:statusEdit', count)
})
onMounted(async () => {
await fetchData()
await fetcheducationLevel()
@ -605,16 +569,6 @@ const addRow = () => {
duration.value = [new Date(), new Date()]
}
// const consenClose = () => {
// modalConsend.value = false
// }
// const consendOk = () => {
// modalConsend.value = false
// store.consend = true
// clickSave()
// }
/**
* งกนปมยกเลกการแกไขขอม
*/