fix: make advanced filters work

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-03-02 17:36:25 +08:00
parent e3a143f730
commit cf821b78aa
2 changed files with 40 additions and 15 deletions

View File

@ -736,7 +736,12 @@ const querySearchType = (queryString: string, cb: any) => {
const getList = () => {
loading.value = true;
listMaterialBase(queryParams)
// Stringify advancedFilters to JSON string as backend expects
const params = {
...queryParams,
advancedFilters: JSON.stringify(queryParams.advancedFilters || [])
};
listMaterialBase(params)
.then((response: any) => {
if (response && response.data) {
tableData.value = response.data.items;