changes
This commit is contained in:
@@ -65,7 +65,6 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { computed } from "vue";
|
||||
import { useStore } from "~/stores/index";
|
||||
|
||||
const store = useStore();
|
||||
const isVietnamese = computed(() => store.lang === "vi");
|
||||
|
||||
@@ -199,7 +199,6 @@
|
||||
import InputPhone from "~/components/common/InputPhone";
|
||||
import InputEmail from "~/components/common/InputEmail";
|
||||
import SearchBox from "~/components/SearchBox";
|
||||
import { useStore } from "~/stores/index";
|
||||
var props = defineProps({
|
||||
pagename: String,
|
||||
row: Object,
|
||||
|
||||
@@ -73,7 +73,6 @@ import { useNuxtApp } from "#app";
|
||||
import CustomerForm from "~/components/customer/CustomerForm.vue";
|
||||
import CustomerView from "~/components/customer/CustomerView.vue";
|
||||
import Modal from "~/components/Modal.vue";
|
||||
import { useStore } from "~/stores/index";
|
||||
import ImageGallery from "~/components/media/ImageGallery.vue";
|
||||
const nuxtApp = useNuxtApp();
|
||||
const { $dialog } = nuxtApp;
|
||||
|
||||
@@ -241,7 +241,6 @@
|
||||
|
||||
<script setup>
|
||||
import { isEqual, pick } from "es-toolkit";
|
||||
import { useStore } from "~/stores/index";
|
||||
import InputPhone from "~/components/common/InputPhone";
|
||||
import InputEmail from "~/components/common/InputEmail";
|
||||
import SearchBox from "~/components/SearchBox";
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
import { ref, computed } from "vue";
|
||||
import InputPhone from "~/components/common/InputPhone.vue";
|
||||
import InputEmail from "~/components/common/InputEmail.vue";
|
||||
import { useStore } from "~/stores/index";
|
||||
import { isNotNil, pickBy } from "es-toolkit";
|
||||
|
||||
const emit = defineEmits(["close", "update", "modalevent"]);
|
||||
|
||||
@@ -296,7 +296,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useStore } from "~/stores/index";
|
||||
export default {
|
||||
setup() {
|
||||
const store = useStore();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -109,7 +109,6 @@
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import { useStore } from "~/stores/index";
|
||||
|
||||
const emit = defineEmits(["modalevent", "close"]);
|
||||
const store = useStore();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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"]);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -170,8 +170,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useStore } from "~/stores/index";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const store = useStore();
|
||||
|
||||
@@ -44,8 +44,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useStore } from "~/stores/index";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const store = useStore();
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
</a>
|
||||
</template>
|
||||
<script>
|
||||
import { useStore } from "~/stores/index";
|
||||
export default {
|
||||
setup() {
|
||||
const store = useStore();
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
>
|
||||
</template>
|
||||
<script setup>
|
||||
import { useStore } from "~/stores/index";
|
||||
const store = useStore();
|
||||
const emit = defineEmits(["clickevent"]);
|
||||
const props = defineProps({
|
||||
|
||||
@@ -257,7 +257,6 @@ import InputEmail from "~/components/common/InputEmail";
|
||||
import SearchBox from "~/components/SearchBox";
|
||||
import Datepicker from "~/components/datepicker/Datepicker";
|
||||
|
||||
import { useStore } from "~/stores/index";
|
||||
var props = defineProps({
|
||||
pagename: String,
|
||||
row: Object,
|
||||
|
||||
@@ -178,7 +178,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useStore } from "~/stores/index";
|
||||
export default {
|
||||
setup() {
|
||||
const store = useStore();
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script setup>
|
||||
import { useStore } from "~/stores/index";
|
||||
import Info from "~/components/snackbar/Info.vue";
|
||||
import Success from "~/components/snackbar/Success.vue";
|
||||
import Error from "~/components/snackbar/Error.vue";
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
import Logout from "~/components/user/Logout";
|
||||
import UserInfo from "~/components/user/UserInfo";
|
||||
import ChangePass from "~/components/user/ChangePass";
|
||||
import { useStore } from "~/stores/index";
|
||||
const store = useStore();
|
||||
const lang = computed(() => store.lang);
|
||||
const isVietnamese = computed(() => lang.value === "vi");
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { useStore } from "~/stores/index";
|
||||
export default {
|
||||
props: ["userId"],
|
||||
setup() {
|
||||
|
||||
Reference in New Issue
Block a user