fix filter ทดลองงาน
This commit is contained in:
parent
cf449123e5
commit
d043396010
5 changed files with 7 additions and 7 deletions
|
|
@ -201,7 +201,7 @@ async function getList() {
|
|||
commandType.value ? (commandType.value == "C-PM-11" ? 2 : 3) : ""
|
||||
}&page=${pagination.value.page}&pageSize=${
|
||||
pagination.value.rowsPerPage
|
||||
}&keyword=${filter.value}`
|
||||
}&keyword=${filter.value.trim()}`
|
||||
)
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result.data;
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ watchEffect(() => {
|
|||
<d-table
|
||||
:columns="columns"
|
||||
:rows="rows"
|
||||
:filter="filterKeyword"
|
||||
:filter="filterKeyword.trim()"
|
||||
row-key="id"
|
||||
:visible-columns="visibleColumns"
|
||||
selection="single"
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ async function getPerson() {
|
|||
isDirector: isDirector.value,
|
||||
pageSize: pagination.value.rowsPerPage,
|
||||
page: pagination.value.page,
|
||||
keyword: filterKeyword.value,
|
||||
keyword: filterKeyword.value.trim(),
|
||||
})
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result.data;
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ onMounted(async () => {
|
|||
ref="table"
|
||||
:columns="columns"
|
||||
:rows="rows"
|
||||
:filter="filterKeyword"
|
||||
:filter="filterKeyword.trim()"
|
||||
row-key="Order"
|
||||
flat
|
||||
:visible-columns="visibleColumns"
|
||||
|
|
|
|||
|
|
@ -246,9 +246,9 @@ async function getpersonalList() {
|
|||
config.API.probationPersonalList() +
|
||||
`?status=${!fillter.value ? "" : fillter.value}&page=${
|
||||
pagination.value.page
|
||||
}&pageSize=${pagination.value.rowsPerPage}&keyword=${
|
||||
filterKeyword.value
|
||||
}`
|
||||
}&pageSize=${
|
||||
pagination.value.rowsPerPage
|
||||
}&keyword=${filterKeyword.value.trim()}`
|
||||
)
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue