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