{
map-options
:options="columns"
option-value="name"
-
style="min-width: 140px"
/>
diff --git a/src/modules/01_masterdata/views/Strategic.vue b/src/modules/01_masterdata/views/Strategic.vue
index f8bcb2ea1..59af3b146 100644
--- a/src/modules/01_masterdata/views/Strategic.vue
+++ b/src/modules/01_masterdata/views/Strategic.vue
@@ -190,13 +190,7 @@ onMounted(() => {
-
-
+
@@ -208,7 +202,7 @@ onMounted(() => {
:nodes="nodes"
node-key="id"
label-key="name"
- :filter="filter"
+ :filter="filter.trim()"
no-results-label="ไม่พบข้อมูลที่ค้นหา"
no-nodes-label="ไม่มีข้อมูล"
v-model:expanded="expanded"
@@ -325,6 +319,7 @@ onMounted(() => {
-import { ref, reactive, onMounted,watch } from "vue";
+import { ref, reactive, onMounted, watch } from "vue";
import { useQuasar, type QTableProps } from "quasar";
import { useRouter, useRoute } from "vue-router";
@@ -87,7 +87,7 @@ function fetchList() {
http
.post(config.API.kpiPlan + `/search-edit`, {
isAll: isAll.value,
- keyword: nodeData.keyword,
+ keyword: nodeData.keyword.trim(),
node: nodeData.node ? nodeData.node : 0,
nodeId: nodeData.nodeId,
period: nodeData.round,
@@ -98,9 +98,9 @@ function fetchList() {
.then((res) => {
const data = res.data.result.data;
totalList.value = Math.ceil(
- res.data.result.total / pagination.value.rowsPerPage
- );
- total.value = res.data.result.total;
+ res.data.result.total / pagination.value.rowsPerPage
+ );
+ total.value = res.data.result.total;
rows.value = data;
})
.catch((err) => {
@@ -127,20 +127,6 @@ function onClickView(id: string = "") {
router.push(`/masterdata/indicator-plan/view/${id}`);
}
-function fetchActive() {
- // showLoader();
- // http
- // .get(config.API.activeOrganization)
- // .then((res) => {
- // const data = res.data.result;
- // // fetchTree(data.activeId);
- // })
- // .catch((err) => {
- // messageError($q, err);
- // hideLoader();
- // });
-}
-
/** ดึงข้อมูลโครงสรร้าง */
async function fetchTree() {
node.value = await fetchStructureTree(route.meta.Key as string, true);
@@ -206,7 +192,6 @@ function onClickHistory(id: string) {
function updatePagination(newPagination: any) {
pagination.value.page = 1;
pagination.value.rowsPerPage = newPagination.rowsPerPage;
-
}
function getSearch() {
@@ -242,13 +227,7 @@ onMounted(() => {
-
-
+
{
node-key="orgTreeName"
label-key="labelName"
v-model:expanded="expanded"
- :filter="filterMain"
+ :filter="filterMain.trim()"
no-results-label="ไม่พบข้อมูลที่ค้นหา"
no-nodes-label="ไม่มีข้อมูล"
v-model:selected="nodeData.nodeId"
@@ -329,9 +308,7 @@ onMounted(() => {
@@ -354,9 +331,7 @@ onMounted(() => {
@@ -393,18 +368,11 @@ onMounted(() => {
v-model="nodeData.keyword"
ref="filterRef"
outlined
- style="width: 150px"
placeholder="ค้นหา"
@keydown.enter.prevent="getSearch"
>
-
-
+
{
map-options
:options="columns"
option-value="name"
-
style="min-width: 140px"
/>
diff --git a/src/modules/01_masterdata/views/indicatorByRole.vue b/src/modules/01_masterdata/views/indicatorByRole.vue
index caf9f8771..cf8db9931 100644
--- a/src/modules/01_masterdata/views/indicatorByRole.vue
+++ b/src/modules/01_masterdata/views/indicatorByRole.vue
@@ -103,9 +103,11 @@ const roundOp = ref([
]);
async function fetchList() {
+ showLoader();
+ rows.value = [];
await http
.post(config.API.kpiRoleMainList + `/search-edit`, {
- keyword: formFilter.keyword,
+ keyword: formFilter.keyword.trim(),
position: formFilter.position,
period: formFilter.round,
node: 0,
@@ -407,13 +409,7 @@ onMounted(async () => {
@keyup.enter="(formFilter.page = 1), fetchList()"
>
-
-
+
@@ -428,7 +424,6 @@ onMounted(async () => {
map-options
:options="columns"
option-value="name"
-
style="min-width: 140px"
/>
diff --git a/src/modules/19_condition/view/Main.vue b/src/modules/19_condition/view/Main.vue
index 140251df2..b231ce1d2 100644
--- a/src/modules/19_condition/view/Main.vue
+++ b/src/modules/19_condition/view/Main.vue
@@ -316,9 +316,9 @@ onMounted(async () => {
-
+
-
+
@@ -329,7 +329,7 @@ onMounted(async () => {
:nodes="nodeTree"
node-key="orgTreeId"
label-key="labelName"
- :filter="filter"
+ :filter="filter.trim()"
no-results-label="ไม่พบข้อมูลที่ค้นหา"
no-nodes-label="ไม่มีข้อมูล"
v-model:expanded="expanded"