Refactoring code module 01_masterdata
This commit is contained in:
parent
82f5380f3e
commit
71be6d095f
22 changed files with 272 additions and 209 deletions
|
|
@ -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>("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue