过滤公司优化

This commit is contained in:
bb_pan 2025-02-26 18:24:48 +08:00
parent e5ceffae1b
commit bb92996ed9
3 changed files with 12 additions and 12 deletions

View File

@ -259,7 +259,7 @@
<el-table-column align="center" prop="maintenanceAlarmDay" label="有效期" />
<el-table-column align="center" prop="fileInfoList" label="检测证明">
<template #default="scope">
<span v-for="(item, index) in scope.row.fileInfoList" :key="index">
<div v-for="(item, index) in scope.row.fileInfoList" :key="index">
<a
:href="item.fileUrl"
target="_blank"
@ -269,9 +269,9 @@
cursor: pointer;
margin-right: 5px;
"
>查看</a
>{{ item.fileName?.split('/').pop() }}</a
>
</span>
</div>
<span v-if="!scope.row.fileInfoList.length">无检测证明</span>
<!-- <a
v-if="row.row.fileInfo && row.row.fileInfo.fileUrl"

View File

@ -478,12 +478,12 @@ const lowerClassData = async () => {
//
const getCompanyAddressListData = async () => {
const res: any = await getCompanyListApi()
const addressList = res.data.map((e: any) => {
// console.log('🚀 ~ addressList ~ e:', e)
if (e.isShow) {
const addressList = res.data
.filter((e: any) => e.isShow)
.map((e: any) => {
// console.log('🚀 ~ addressList ~ e:', e)
return { ...e, name: e.companyName, value: e.companyId, isChecked: false, index: 4 }
}
})
})
screenChooseList[4].list.push(...addressList)
}
//

View File

@ -349,11 +349,11 @@ const getCompanyAddressListData = async () => {
const addressList = result.data.map((e: any) => {
return { ...e, name: e.areaName, value: e.areaCode, isChecked: false, index: 1 }
})
const companyList = res.data.map((e: any) => {
if (e.isShow) {
const companyList = res.data
.filter((e: any) => e.isShow)
.map((e: any) => {
return { ...e, name: e.companyName, value: e.companyId, isChecked: false, index: 2 }
}
})
})
screenChooseList[1].list.push(...addressList)
screenChooseList[2].list.push(...companyList)