แก้ไขปุ่มบันทึก รายชื่อลูกจ้างชั่วคราว
This commit is contained in:
parent
7af08524e0
commit
132aa6db0d
1 changed files with 8 additions and 2 deletions
|
|
@ -380,7 +380,7 @@
|
|||
class="q-px-md items-center"
|
||||
color="light-blue-10"
|
||||
label="บันทึก"
|
||||
@click="saveData, router.go(-1)"
|
||||
@click="saveData"
|
||||
/>
|
||||
</div>
|
||||
<q-separator />
|
||||
|
|
@ -406,7 +406,7 @@ import HeaderTop from "@/modules/08_registryEmployee/views/top.vue";
|
|||
import HistoryTable from "@/components/TableHistory.vue";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useRoute } from "vue-router";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { useProfileDataStore } from "@/modules/08_registryEmployee/store";
|
||||
import type { QTableColumn, QForm } from "quasar";
|
||||
|
||||
|
|
@ -426,6 +426,7 @@ const props = defineProps({
|
|||
});
|
||||
const emit = defineEmits(["update:statusEdit"]);
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
|
|
@ -1093,11 +1094,16 @@ const saveData = async () => {
|
|||
await myform.value.validate().then(async (saveDataTest: Boolean) => {
|
||||
if (saveDataTest) {
|
||||
await addData();
|
||||
await clickBack();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const clickBack = () => {
|
||||
router.push({ name: "registryEmployee" });
|
||||
};
|
||||
|
||||
const getClass = (val: boolean) => {
|
||||
return {
|
||||
"full-width inputgreen cursor-pointer": val,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue