Browse Source

添加报错维护

hella_online_20240823
wangyufei 3 months ago
parent
commit
d60e736792
  1. 6
      src/components/SearchTable/src/SearchTable.vue

6
src/components/SearchTable/src/SearchTable.vue

@ -200,11 +200,11 @@ const searchFormClick = (searchData) => {
// 20240104 searchData.filters
// 20240321 searchData
if (searchData.filters) {
if (searchConditionRef.value.filters) {
if (searchConditionRef.value&&searchConditionRef.value.filters) {
Object.keys(searchConditionRef.value.filters).forEach((key) => {
searchData.filters.push(searchConditionRef.value.filters[key])
})
} else {
} else if(searchConditionRef.value){
Object.keys(searchConditionRef.value).forEach((key) => {
searchData.filters.push({
action: '==',
@ -216,7 +216,7 @@ const searchFormClick = (searchData) => {
} else {
if (searchConditionRef.value.filters) {
searchData.filters = searchConditionRef.value.filters
} else {
} else if(searchConditionRef.value){
searchData.filters = []
Object.keys(searchConditionRef.value).forEach((key) => {
searchData.filters.push({

Loading…
Cancel
Save