fix: dataTreeFormatted
This commit is contained in:
parent
13005eaa5c
commit
1da8ce8d49
4 changed files with 22 additions and 20 deletions
|
|
@ -4,7 +4,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
import { useQuasar } from "quasar";
|
||||
import { ref, watch, reactive } from "vue";
|
||||
import type { QTableProps } from "quasar";
|
||||
import CardPosition from "@/modules/05_placement/components/PersonalList/CardPosition.vue";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ async function onClickSelectPos(id: string) {
|
|||
positionId.value = id;
|
||||
selectedPos.value = [];
|
||||
const position: DataPositionNo = positionData.value.find(
|
||||
(e: DataPositionNo) => e.id === id
|
||||
(e: DataPositionNo) => e.id === id,
|
||||
);
|
||||
|
||||
// หาตำแหน่ง
|
||||
|
|
@ -397,7 +397,7 @@ async function onClickSelectPos(id: string) {
|
|||
rowsPosition.value = position.positions;
|
||||
if (seletcId.value) {
|
||||
selectedPos.value = rowsPosition.value.filter(
|
||||
(e) => e.id === seletcId.value
|
||||
(e) => e.id === seletcId.value,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -448,7 +448,7 @@ watch(
|
|||
expanded.value = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
|
|
@ -457,7 +457,7 @@ watch(
|
|||
if (value !== oldVal) {
|
||||
getDataTable(nodeId.value, nodeLevel.value);
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
|
|
@ -466,7 +466,7 @@ watch(
|
|||
if (value !== oldVal) {
|
||||
getDataTable(nodeId.value, nodeLevel.value);
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
|
|
@ -475,11 +475,11 @@ watch(
|
|||
if (n) {
|
||||
onClickSelectPos(n);
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
function onSubmit() {
|
||||
const dataPosMaster = posMasterMain.value?.find(
|
||||
(e: any) => e.id === positionId.value
|
||||
(e: any) => e.id === positionId.value,
|
||||
);
|
||||
|
||||
console.log(dataPosMaster);
|
||||
|
|
@ -650,7 +650,6 @@ function onSubmit() {
|
|||
map-options
|
||||
:options="columns"
|
||||
option-value="name"
|
||||
|
||||
style="min-width: 140px"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue