fix : 修复页面排版及项目管理的公司查询

This commit is contained in:
2024-08-01 22:16:30 +08:00
parent ff668b1887
commit 2f42a7464a
22 changed files with 291 additions and 133 deletions

View File

@@ -10,6 +10,7 @@
<script setup lang="jsx">
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {toThousands} from '@/utils/changePrice.js'
import { getSubCompOpt } from '@/api/user/user.js';
const router = useRouter()
const shortcuts = [
{
@@ -40,7 +41,19 @@ const shortcuts = [
},
},
]
const searchConfig = reactive([
const searchConfig = ref([
{
label: '征集公司',
prop: 'affiliatedCompanyId',
component: 'el-tree-select',
props: {
placeholder: '请输入征集公司查询',
clearable: true,
data: [],
filterable: true,
checkStrictly: true
}
},
{
label: '项目名称',
prop: 'projectName',
@@ -314,5 +327,10 @@ const handleApply = (row) => {
}
})
}
const init = async () => {
const res = await getSubCompOpt()
searchConfig.value.find(item=>item.prop == 'affiliatedCompanyId').props.data = res.data
}
init()
</script>