解决路由bug

This commit is contained in:
Teo
2025-07-14 16:10:03 +08:00
parent 748464b44a
commit d03efb8d6f
10 changed files with 62 additions and 66 deletions

View File

@ -59,7 +59,7 @@
<el-table-column label="管理人联系电话" align="center" prop="custodianPhone" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="创建时间" align="center" prop="createTime" width="180" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-space wrap>
<el-button link type="primary" icon="View" @click="handleContractorFile(scope.row)">文件</el-button>
@ -179,32 +179,26 @@ const data = reactive<PageData<ContractorForm, ContractorQuery>>({
const { queryParams, form, rules } = toRefs(data);
/** 查询字典数据列表 */
const getDictList = async () => {
const res = await listData({
pageNum: 1,
pageSize: 10,
dictName: '',
dictType: 'contractor_type',
dictLabel: ''
});
dictList.value = res.rows;
const res = await listData('contractor_type');
dictList.value = res.data;
};
// 分包类型
const filterType=(val)=>{
let label='';
dictList.value.forEach(item=>{
if(item.dictValue==val){
label=item.dictLabel
const filterType = (val) => {
let label = '';
dictList.value.forEach((item) => {
if (item.dictValue == val) {
label = item.dictLabel;
}
})
});
return label;
}
};
/** 查询分包单位列表 */
const getList = async () => {
loading.value = true;
const res = await listContractor(queryParams.value);
contractorList.value = res.rows;
total.value = res.total;
loading.value = false;
loading.value = false;
};
/** 取消按钮 */