fix : 修复首页待立项等区域点击跳转

This commit is contained in:
2024-09-12 21:55:38 +08:00
parent 21cc38ed73
commit fa977c5134
3 changed files with 56 additions and 13 deletions

View File

@@ -12,6 +12,7 @@ import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {toThousands} from '@/utils/changePrice.js'
import { getSubCompOpt } from '@/api/user/user.js';
const route = useRoute()
const router = useRouter()
const shortcuts = [
{
@@ -443,6 +444,11 @@ const handlePhaseChangeEdit = (row) => {
const init = async () => {
const res = await getSubCompOpt()
searchConfig.value.find(item=>item.prop == 'affiliatedCompanyId').props.data = res.data
if(route.query.state=='0'){
search({state:route.query.state})
}else if(route.query.state=='4'){
search({state:route.query.state})
}
}
init()