From 5e683633126db46f06ab2eca83cd05c59672a0e7 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 3 Jul 2023 09:38:36 +0200 Subject: [PATCH] refs #5334 onsearch postlink --- modules/worker/front/department/index/index.js | 4 ++++ modules/worker/front/department/main/index.html | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/worker/front/department/index/index.js b/modules/worker/front/department/index/index.js index 6d015768df..118e189e2b 100644 --- a/modules/worker/front/department/index/index.js +++ b/modules/worker/front/department/index/index.js @@ -4,6 +4,10 @@ import Section from 'salix/components/section'; class Controller extends Section { $postLink() { this.$.treeview.fetch(); + if (this.$params.q) { + const search = JSON.parse(this.$params.q); + this.onSearch(search); + } } onSearch(params) { diff --git a/modules/worker/front/department/main/index.html b/modules/worker/front/department/main/index.html index a272490ad3..a1caef294d 100644 --- a/modules/worker/front/department/main/index.html +++ b/modules/worker/front/department/main/index.html @@ -4,14 +4,6 @@ limit="20" order="id"> - - - -