filter Tree
This commit is contained in:
parent
990c35de50
commit
6cdb755d07
3 changed files with 4 additions and 2 deletions
|
|
@ -73,6 +73,7 @@ interface DataTree {
|
||||||
orgRootShortName: string;
|
orgRootShortName: string;
|
||||||
responsibility: string;
|
responsibility: string;
|
||||||
isDeputy: boolean;
|
isDeputy: boolean;
|
||||||
|
labelName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DataProfile {
|
interface DataProfile {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ const { showLoader, hideLoader, messageError, success, dialogRemove } =
|
||||||
const filter = ref<string>(""); // ค้นหาข้อมูลโครงาสร้าง
|
const filter = ref<string>(""); // ค้นหาข้อมูลโครงาสร้าง
|
||||||
const nodes = ref<Array<NodeTree>>([
|
const nodes = ref<Array<NodeTree>>([
|
||||||
{
|
{
|
||||||
labelName: "",
|
labelName: "หน่วยงานทั้งหมด",
|
||||||
orgCode: "",
|
orgCode: "",
|
||||||
orgLevel: 0,
|
orgLevel: 0,
|
||||||
orgName: "",
|
orgName: "",
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ const nodeTree = ref<DataTree[]>([
|
||||||
orgRootShortName: "",
|
orgRootShortName: "",
|
||||||
responsibility: "",
|
responsibility: "",
|
||||||
isDeputy: false,
|
isDeputy: false,
|
||||||
|
labelName: "หน่วยงานทั้งหมด",
|
||||||
},
|
},
|
||||||
]); // ข้อมูลรายการโครงสร้าง
|
]); // ข้อมูลรายการโครงสร้าง
|
||||||
const expanded = ref<Array<string>>([]); // เปิดรายการโครงสร้าง
|
const expanded = ref<Array<string>>([]); // เปิดรายการโครงสร้าง
|
||||||
|
|
@ -256,7 +257,7 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
:nodes="nodeTree"
|
:nodes="nodeTree"
|
||||||
node-key="orgRootName"
|
node-key="orgRootName"
|
||||||
label-key="orgRootName"
|
label-key="labelName"
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
no-results-label="ไม่พบข้อมูลที่ค้นหา"
|
no-results-label="ไม่พบข้อมูลที่ค้นหา"
|
||||||
no-nodes-label="ไม่มีข้อมูล"
|
no-nodes-label="ไม่มีข้อมูล"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue