Refactoring code module 01_masterdata

This commit is contained in:
STW_TTTY\stwtt 2024-09-12 15:42:47 +07:00
parent 82f5380f3e
commit 71be6d095f
22 changed files with 272 additions and 209 deletions

View file

@ -1,17 +1,16 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { checkPermission } from "@/utils/permissions";
// import type { ItemsMenu } from "@/modules/01_masterdata/interface/index/Main";
import type { DataStrategic } from "@/modules/01_masterdata/interface/response/Strategic";
import DialogHeader from "@/components/DialogHeader.vue";
import { useCounterMixin } from "@/stores/mixin";
import { checkPermission } from "@/utils/permissions";
import { useRoute } from "vue-router";
const $q = useQuasar();
const {
showLoader,
@ -22,29 +21,7 @@ const {
success,
} = useCounterMixin();
// const ListMenu = ref<ItemsMenu[]>([
// {
// label: "",
// icon: "add",
// value: "ADD",
// color: "primary",
// },
// {
// label: "",
// icon: "edit",
// value: "EDIT",
// color: "edit",
// },
// {
// label: "",
// icon: "delete",
// value: "DEL",
// color: "red",
// },
// ]);
const route = useRoute();
const nodes = ref<any[]>([]);
const nodes = ref<DataStrategic[]>([]);
const filter = ref<string>("");
const expanded = ref<Array<string>>([]);
const nodeId = ref<string>("");