|
@@ -54,6 +54,7 @@ const pages = ref({
|
|
const query = ref({})
|
|
const query = ref({})
|
|
|
|
|
|
const dealRouteQuery = (data) => {
|
|
const dealRouteQuery = (data) => {
|
|
|
|
+ data.date = new Date().getTime() // 用于前端刷新路由参数
|
|
const arr = Object.keys(data).map(e => {
|
|
const arr = Object.keys(data).map(e => {
|
|
if (data[e]) {
|
|
if (data[e]) {
|
|
return Array.isArray(data[e]) ? `${e}=${data[e].join('_')}` : `${e}=${data[e]}`
|
|
return Array.isArray(data[e]) ? `${e}=${data[e].join('_')}` : `${e}=${data[e]}`
|
|
@@ -93,6 +94,7 @@ const inputChange = async({ idName: key, values }) => { // areaIds
|
|
const noParams = ref(true)
|
|
const noParams = ref(true)
|
|
const getCompanyData = async () => {
|
|
const getCompanyData = async () => {
|
|
noParams.value = true
|
|
noParams.value = true
|
|
|
|
+ if (query.value?.date) delete query.value.date
|
|
Object.keys(query.value).forEach(key => {
|
|
Object.keys(query.value).forEach(key => {
|
|
// 没有筛选条件不请求数据
|
|
// 没有筛选条件不请求数据
|
|
if (query.value[key]) noParams.value = false
|
|
if (query.value[key]) noParams.value = false
|