代码优化

This commit is contained in:
BianLzhaoMin 2024-12-13 15:46:07 +08:00
parent 3a36987c6b
commit 3a0fc4e226
2 changed files with 38 additions and 17 deletions

4
env/.env.dev vendored
View File

@ -9,8 +9,8 @@ VITE_API_URL = '/proxyApi'
# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅
# VITE_proxyTarget = 'http://192.168.2.127:28080' # 梁超
# VITE_proxyTarget = 'http://36.33.26.201:17788/proxyApi' # 测试服务
VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
VITE_proxyTarget = 'http://36.33.26.201:17788/proxyApi' # 测试服务
# VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
# VITE_proxyTarget = 'http://192.168.2.72:28080' # 盛旭
# VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型)

View File

@ -56,8 +56,8 @@
<div class="viewNnum">
<div>浏览 {{ pageData.searchNum }}</div>
<div style="color: #00a288; display: flex; align-items: center">
<Location style="width: 1em; height: 1em; margin-right: 8px" />
安徽省合肥市蜀山区
<!-- <Location style="width: 1em; height: 1em; margin-right: 8px" />
安徽省合肥市蜀山区 -->
</div>
</div>
<div class="infoBox">
@ -174,8 +174,7 @@
</div>
<div class="item" v-for="(v, i) in propertyNames" :key="i">
<div class="label">{{ v.propertyName }}</div>
<div
>
<div>
{{ v.propertyValue }}
</div>
</div>
@ -197,7 +196,19 @@
<el-col :span="22">
<div class="prove-container">
<div v-for="item in pageData.insurancePdf" :key="item.id">
<img :src="item.fileUrl" alt="" />
<!-- <img :src="item.fileUrl" alt="" /> -->
<el-image
style="width: 100%; height: 100%"
:src="item.fileUrl"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
:preview-src-list="[item.fileUrl]"
:initial-index="0"
fit="cover"
z-index="9999999999"
:preview-teleported="true"
/>
</div>
</div>
</el-col>
@ -209,7 +220,19 @@
<el-col :span="22">
<div class="prove-container">
<div v-for="item in pageData.examinationPdf" :key="item.id">
<img :src="item.fileUrl" alt="" />
<!-- <img :src="item.fileUrl" alt="" /> -->
<el-image
style="width: 100%; height: 100%"
:src="item.fileUrl"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
:preview-src-list="[item.fileUrl]"
:initial-index="0"
fit="cover"
z-index="9999999999"
:preview-teleported="true"
/>
</div>
</div>
</el-col>
@ -664,8 +687,6 @@ const equipDetailKeyList = reactive([
const propertyNames = ref([])
//
const dialogPhone = ref(false)
@ -864,8 +885,8 @@ const getData = async () => {
console.log('res详情数据', res)
pageData.value = res.data
if(res.data.devInfoProperties.length > 0 && res.data.devInfoProperties !=null) {
propertyNames.value = [];
if (res.data.devInfoProperties.length > 0 && res.data.devInfoProperties != null) {
propertyNames.value = []
propertyNames.value = res.data.devInfoProperties
// res.data.devInfoProperties.forEach((item:any) => {
// propertyNames.value.push({labelany:item.propertyName,keya:any:item.propertyValue})
@ -1396,10 +1417,10 @@ const onAddCart = async () => {
margin: 0;
}
img {
width: 100%;
height: 100%;
}
// img {
// width: 100%;
// height: 100%;
// }
}
}
}