|
@@ -39,6 +39,7 @@ import companyItem from './components/companyItem'
|
|
|
import MPagination from '@/components/CtPagination'
|
|
|
import cityCascadeSelect from '@/views/recruit/personal/position/components/conditionFilter/cityCascadeSelect.vue'
|
|
|
// F:\work\menduner\src\views\recruit\personal\position\components\conditionFilter\cityCascadeSelect.vue
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -63,10 +64,12 @@ const dealRouteQuery = (data) => {
|
|
|
if (str) router.push(`${route.path}?${str}`)
|
|
|
}
|
|
|
|
|
|
-const content = ref(route.query.name || '')
|
|
|
+const content = ref(route?.query?.name ? route.query?.name.includes('&') ? decodeURIComponent(route.query.name) : route.query.name : '')
|
|
|
+
|
|
|
// 搜索
|
|
|
const handleSearch = async (val, key) => {
|
|
|
if (!val && key !== 'name') return
|
|
|
+ if (key === 'name' && val === '&') return Snackbar.warning('请输入要查询的公司名称!')
|
|
|
if (key === 'name') content.value = val
|
|
|
pages.value.pageNo = 1
|
|
|
query.value[key] = val
|