Browse Source

筛选和头部组件修改路由名称参数

master
陈薪名 1 year ago
parent
commit
0237b053af
  1. 10
      src/components/SearchHigh/src/SearchHigh.vue
  2. 1
      src/components/TableHead/src/TableHead.vue

10
src/components/SearchHigh/src/SearchHigh.vue

@ -59,10 +59,18 @@ import * as tableColumnsFun from '@/utils/disposition/tableColumns'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const props = defineProps({
// name
routeName: {
type: String,
default: ''
}
})
const message = useMessage() // const message = useMessage() //
const route = useRoute() // const route = useRoute() //
const popoverVisible = ref(false) const popoverVisible = ref(false)
const searchOption_high = ref(tableColumnsFun[route.name]?.allSchemas.tableColumns.filter(item => (item.field != "action"))) const searchOption_high = ref(tableColumnsFun[props.routeName?props.routeName:route.name]?.allSchemas.tableColumns.filter(item => (item.field != "action")))
const moreListData = ref({ const moreListData = ref({
filters:[] filters:[]
}) })

1
src/components/TableHead/src/TableHead.vue

@ -33,6 +33,7 @@
<SearchHigh <SearchHigh
ref="searchHigh_Ref" ref="searchHigh_Ref"
class="searchHighClass" class="searchHighClass"
:routeName="routeName"
:showPrimaryBaseButton="false" :showPrimaryBaseButton="false"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:isHighExcludePrimary="false" :isHighExcludePrimary="false"

Loading…
Cancel
Save