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) : ""
|
commandType.value ? (commandType.value == "C-PM-11" ? 2 : 3) : ""
|
||||||
}&page=${pagination.value.page}&pageSize=${
|
}&page=${pagination.value.page}&pageSize=${
|
||||||
pagination.value.rowsPerPage
|
pagination.value.rowsPerPage
|
||||||
}&keyword=${filter.value}`
|
}&keyword=${filter.value.trim()}`
|
||||||
)
|
)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = await res.data.result.data;
|
const data = await res.data.result.data;
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ watchEffect(() => {
|
||||||
<d-table
|
<d-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
selection="single"
|
selection="single"
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ async function getPerson() {
|
||||||
isDirector: isDirector.value,
|
isDirector: isDirector.value,
|
||||||
pageSize: pagination.value.rowsPerPage,
|
pageSize: pagination.value.rowsPerPage,
|
||||||
page: pagination.value.page,
|
page: pagination.value.page,
|
||||||
keyword: filterKeyword.value,
|
keyword: filterKeyword.value.trim(),
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = await res.data.result.data;
|
const data = await res.data.result.data;
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ onMounted(async () => {
|
||||||
ref="table"
|
ref="table"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:filter="filterKeyword"
|
:filter="filterKeyword.trim()"
|
||||||
row-key="Order"
|
row-key="Order"
|
||||||
flat
|
flat
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
|
|
|
||||||
|
|
@ -246,9 +246,9 @@ async function getpersonalList() {
|
||||||
config.API.probationPersonalList() +
|
config.API.probationPersonalList() +
|
||||||
`?status=${!fillter.value ? "" : fillter.value}&page=${
|
`?status=${!fillter.value ? "" : fillter.value}&page=${
|
||||||
pagination.value.page
|
pagination.value.page
|
||||||
}&pageSize=${pagination.value.rowsPerPage}&keyword=${
|
}&pageSize=${
|
||||||
filterKeyword.value
|
pagination.value.rowsPerPage
|
||||||
}`
|
}&keyword=${filterKeyword.value.trim()}`
|
||||||
)
|
)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = await res.data.result.data;
|
const data = await res.data.result.data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue