[SIT วินัย] ค้นหารายงาน nodeId => dnaId
This commit is contained in:
parent
151e1d1968
commit
47edf0961c
1 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ async function fetchDataTree() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSelectedNode(data: any) {
|
function onSelectedNode(data: any) {
|
||||||
nodeId.value = data.orgTreeId;
|
nodeId.value = data.orgTreeDnaId;
|
||||||
nodeLevel.value = data.orgLevel;
|
nodeLevel.value = data.orgLevel;
|
||||||
org.value = data.orgName;
|
org.value = data.orgName;
|
||||||
expandedModal.value = false;
|
expandedModal.value = false;
|
||||||
|
|
@ -463,7 +463,7 @@ onMounted(async () => {
|
||||||
<template v-slot:default-header="prop">
|
<template v-slot:default-header="prop">
|
||||||
<q-item
|
<q-item
|
||||||
@click.stop="onSelectedNode(prop.node)"
|
@click.stop="onSelectedNode(prop.node)"
|
||||||
:active="nodeId === prop.node.orgTreeId"
|
:active="nodeId === prop.node.orgTreeDnaId"
|
||||||
clickable
|
clickable
|
||||||
active-class="my-list-link text-primary text-weight-medium"
|
active-class="my-list-link text-primary text-weight-medium"
|
||||||
class="row col-12 items-center text-dark q-py-xs q-pl-sm rounded-borders my-list"
|
class="row col-12 items-center text-dark q-py-xs q-pl-sm rounded-borders my-list"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue