@ -167,6 +167,10 @@ async function getFileList(ctx, next) {
queryOptions.roadId = roadId
}
rslt.road = await models.FileRoad.findOne({
where: { rId: roadId }
})
rslt.type = await models.FileType.findOne({
where: { fId }
@ -179,6 +183,9 @@ async function getFileList(ctx, next) {
['id', 'DESC']
]
rslt.counter = await models.Files.count({
where: queryOptions
@ -80,15 +80,15 @@ const DetailList = (props) => {
dataIndex: 'road',
align: 'center',
render: (text, record) => {
return '';
return fileList?.road?.roadName;
}, {
title: '资料类型',
key: 'address',
dataIndex: 'address',
key: 'fileType',
dataIndex: 'fileType',
return fileList?.type?.fileType;
},
{