ลบ store ออก
This commit is contained in:
parent
55ce294f79
commit
18a151716e
10 changed files with 269 additions and 356 deletions
|
|
@ -10,7 +10,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
|
||||
/** importStore*/
|
||||
import { useDevelopmentDataStoreHistory } from "@/modules/15_development/store/developmentStoreHistory";
|
||||
import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ const formFilter = reactive<FormFilter>({
|
|||
|
||||
/** use*/
|
||||
const router = useRouter();
|
||||
const store = useDevelopmentDataStoreHistory();
|
||||
const store = useDevelopmentDataStore();
|
||||
const $q = useQuasar();
|
||||
const { showLoader, hideLoader, messageError } = useCounterMixin();
|
||||
|
||||
|
|
@ -126,13 +126,13 @@ const columns = ref<QTableProps["columns"]>([
|
|||
]);
|
||||
|
||||
function onAdd() {
|
||||
store.status = false;
|
||||
store.statusEdit = false;
|
||||
router.push(`/development/employee-history/add`);
|
||||
}
|
||||
function onDownload() {}
|
||||
|
||||
function onEdit(id: string) {
|
||||
store.status = true;
|
||||
store.statusEdit = true;
|
||||
router.push(`/development/employee-history/${id}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
|
||||
/** importStore*/
|
||||
import { useDevelopmentDataStoreHistory } from "@/modules/15_development/store/developmentStoreHistory";
|
||||
import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ const formFilter = reactive<FormFilter>({
|
|||
|
||||
/** use*/
|
||||
const router = useRouter();
|
||||
const store = useDevelopmentDataStoreHistory();
|
||||
const store = useDevelopmentDataStore();
|
||||
const $q = useQuasar();
|
||||
const { showLoader, hideLoader, messageError } = useCounterMixin();
|
||||
|
||||
|
|
@ -135,13 +135,13 @@ const columns = ref<QTableProps["columns"]>([
|
|||
]);
|
||||
|
||||
function onAdd() {
|
||||
store.status = false;
|
||||
store.statusEdit = false;
|
||||
router.push(`/development/history/add`);
|
||||
}
|
||||
function onDownload() {}
|
||||
|
||||
function onEdit(id: string) {
|
||||
store.status = true;
|
||||
store.statusEdit = true;
|
||||
router.push(`/development/history/${id}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue