Browse Source

修复w-grid默认查询配置多选下拉框后台报错问题

main
likunming 5 months ago
parent
commit
03b1bf0fcf
  1. 2
      io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

2
io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

@ -673,7 +673,7 @@ const buildQueryCriterias = (reqParams) => {
nextTick(() => {
const queryFormData = queryForm.getData();
Object.keys(queryFormData).forEach((item) => {
if (!Tools.isEmpty(queryFormData[item]) || (Array.isArray(queryFormData[item] && queryFormData[item].length > 0))) {
if ((!Tools.isEmpty(queryFormData[item]) && !Array.isArray(queryFormData[item]) || (!Tools.isEmpty(queryFormData[item]) && Array.isArray(queryFormData[item]) && queryFormData[item].length > 0))) {
// operator
const criteria = buildCriteria(queryFormData[item], item);
urlSearchParams.append('criteria', JSON.stringify(criteria));

Loading…
Cancel
Save