แก้ไข popup โครงสร้าง
This commit is contained in:
parent
e181ad1d90
commit
9e1386c052
2 changed files with 4 additions and 8 deletions
|
|
@ -15,6 +15,7 @@ const $q = useQuasar();
|
|||
const mixin = useCounterMixin();
|
||||
const { dialogConfirm } = mixin;
|
||||
|
||||
const status = defineModel("status");
|
||||
const rows = ref<any[]>([]);
|
||||
const typeOp = ref<DataOption[]>([
|
||||
{
|
||||
|
|
@ -70,6 +71,7 @@ function validateForm() {
|
|||
/** ฟังชั่น บันทึก */
|
||||
function onSubmit() {
|
||||
dialogConfirm($q, () => {
|
||||
status.value = true;
|
||||
console.log(formData);
|
||||
});
|
||||
modal.value = false;
|
||||
|
|
|
|||
|
|
@ -45,12 +45,6 @@ function onClickHistory() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<q-btn
|
||||
color="indigo-9"
|
||||
label="pop up สร้างโครงสร้างใหม่"
|
||||
@click="modalNewStructure = true"
|
||||
>
|
||||
</q-btn>
|
||||
<div class="row">
|
||||
<div class="toptitle text-dark row items-center">โครงสร้างอัตรากำลัง</div>
|
||||
<q-space />
|
||||
|
|
@ -94,7 +88,7 @@ function onClickHistory() {
|
|||
color="primary"
|
||||
size="lg"
|
||||
icon="add"
|
||||
@click="isStatusData = true"
|
||||
@click="modalNewStructure = true"
|
||||
>
|
||||
<q-tooltip>เพิ่มโครงสร้าง </q-tooltip>
|
||||
</q-btn>
|
||||
|
|
@ -173,7 +167,7 @@ function onClickHistory() {
|
|||
</div>
|
||||
</q-card>
|
||||
|
||||
<DialogFormNewStructure v-model:new-structure="modalNewStructure" />
|
||||
<DialogFormNewStructure v-model:new-structure="modalNewStructure" v-model:status="isStatusData"/>
|
||||
<DialogDateTime :modal="modalDateTime" :close="onClickDateTime" />
|
||||
|
||||
<DialogHistory :modal="modalHistory" :close="onClickHistory" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue