This commit is contained in:
Viet An
2026-07-01 11:08:24 +07:00
parent 68872d3f06
commit 0051de6f2c
25 changed files with 49 additions and 71 deletions

View File

@@ -428,9 +428,8 @@
/>
</template>
<script setup>
import { useStore } from "~/stores/index";
import ScrollBox from "~/components/datatable/ScrollBox.vue";
import { cloneDeep, isEqual } from "es-toolkit";
import { cloneDeep } from "es-toolkit";
const props = defineProps({
pagename: String,

View File

@@ -454,7 +454,6 @@
</template>
<script setup>
import { ref } from "vue";
import { useStore } from "~/stores/index";
const store = useStore();
const { $id, $copy, $empty, $stripHtml, $calc, $remove, $copyToClipboard } = useNuxtApp();
var props = defineProps({

View File

@@ -135,7 +135,6 @@
<script setup>
import { createApp } from "vue/dist/vue.esm-bundler.js";
import { isEmpty } from "es-toolkit/compat";
import { useStore } from "~/stores/index";
const emit = defineEmits(["edit", "insert", "dataevent"]);
const {

View File

@@ -3,11 +3,11 @@
v-if="timeopt"
v-bind="{
pagename: vpagename,
api: api,
timeopt: timeopt,
api,
timeopt,
filter: optfilter,
importdata: props.importdata,
newDataAvailable: newDataAvailable,
importdata,
newDataAvailable,
params: vparams,
}"
ref="timeopt"
@@ -34,7 +34,6 @@
<script setup>
import TimeOption from "~/components/datatable/TimeOption";
import { useStore } from "~/stores/index";
// [FIX] Thêm onActivated, onDeactivated để xử lý KeepAlive
import { ref, watch, onBeforeUnmount, onActivated, onDeactivated } from "vue";
import DataTable from "~/components/datatable/DataTable.vue";

View File

@@ -109,7 +109,6 @@
</template>
<script setup>
import { ref } from "vue";
import { useStore } from "~/stores/index";
const emit = defineEmits(["modalevent", "close"]);
const store = useStore();

View File

@@ -258,7 +258,6 @@
</template>
<script setup>
import { cloneDeep } from "es-toolkit";
import { useStore } from "~/stores/index";
const emit = defineEmits(["modalevent"]);
const store = useStore();
const { $id, $copy, $empty, $stripHtml, $createField, $calc, $isNumber } = useNuxtApp();

View File

@@ -198,7 +198,6 @@
<script setup>
import TimeOption from "~/components/datatable/TimeOption";
import { ref, computed, watch, onMounted, onBeforeUnmount, defineComponent } from "vue";
import { useStore } from "~/stores/index";
import { cloneDeep } from "es-toolkit";
const emit = defineEmits(["modalevent", "dataevent", "dataUpdated", "edit", "insert"]);

View File

@@ -78,7 +78,6 @@
</template>
<script setup>
import { cloneDeep } from "es-toolkit";
import { useStore } from "~/stores/index";
const emit = defineEmits(["close"]);
const { $stripHtml, $arrayMove, $remove } = useNuxtApp();
const store = useStore();

View File

@@ -170,8 +170,6 @@
</template>
<script>
import { useStore } from "~/stores/index";
export default {
setup() {
const store = useStore();