แก้โหลด

This commit is contained in:
setthawutttty 2025-04-03 16:21:55 +07:00
parent 946083bd66
commit b515bc36c0

View file

@ -53,7 +53,6 @@ const selectedModal = defineModel<any[]>("selectedModal");
const filter = ref<string>("");
const isAll = ref<boolean>(false);
const isBlank = ref<boolean>(false);
const positionNo = ref<DataPositionNo[]>([]);
const itemTaps = ref<string[]>();
const positionId = ref<string>("");
@ -124,7 +123,6 @@ function close() {
modal.value = false;
filter.value = "";
isAll.value = false;
isBlank.value = false;
expanded.value = [];
nodeLevel.value = 0;
nodeId.value = "";
@ -208,24 +206,6 @@ watch(
}
);
watch(
() => isAll.value,
(value, oldVal) => {
if (value !== oldVal) {
getDataTable(nodeId.value, nodeLevel.value);
}
}
);
watch(
() => isBlank.value,
(value, oldVal) => {
if (value !== oldVal) {
getDataTable(nodeId.value, nodeLevel.value);
}
}
);
watch(
() => positionId.value,
(n) => {
@ -324,6 +304,7 @@ onMounted(async () => {
v-model="isAll"
label="แสดงทั้งหมด"
color="primary"
@click="getDataTable(nodeId, nodeLevel)"
>
<q-tooltip>แสดงทงหมด</q-tooltip>
</q-checkbox>