Commit 4b331362 by 王志慧

fixed

1 parent 152560db
......@@ -13,6 +13,14 @@
<!-- 表格区域 开始 -->
<GLTable ref="radarRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="deviceStatus" slot-scope="scope">
<span class="status-class" :style="{ 'background-color': deviceStatusEnum[scope.scope.deviceStatus] }"></span>
<span>{{ scope.scope.deviceStatusStr }}</span>
</div>
<div slot="bindingStatus" slot-scope="scope">
<span class="status-class" :style="{ 'background-color': bindingStatusEnum[scope.scope.bindingStatus] }"></span>
<span>{{ scope.scope.bindingStatusStr }}</span>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
......@@ -31,7 +39,7 @@
</el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div>
<a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/红包链接.xlsx" target="_blank">下载模板</a>
<a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/导入设备.xlsx" target="_blank">下载模板</a>
</div>
</el-form-item>
<div class="tip">支持扩展名:xlsx、xls、csv</div>
......@@ -154,11 +162,13 @@ export default {
},
{
label: '设备状态',
prop: 'deviceStatusStr'
prop: 'deviceStatusStr',
addHtml: 'deviceStatus',
},
{
label: '绑定关系',
prop: 'bindingStatusStr'
prop: 'bindingStatusStr',
addHtml: 'bindingStatus',
},
{
label: '入库时间',
......@@ -193,7 +203,9 @@ export default {
label: '绑定'
}
]
}
},
deviceStatusEnum:['#999999','#2CCA74','#EB4E4E'],
bindingStatusEnum:['#999999','#2CCA74']
}
},
......@@ -500,4 +512,13 @@ export default {
margin-top: -20px;
}
}
.status-class {
display: inline-block;
margin-right: 8px;
width: 6px;
height: 6px;
background: #eb4e4e;
border-radius: 4px;
vertical-align: middle;
}
</style>
......@@ -131,7 +131,7 @@ export default {
marker = new AMap.Marker({
icon: require(`@/assets/${icon}.png`),
position: [item.parkingAddressLng, item.parkingAddressLat],
anchor: 'bottom-left',
anchor: 'bottom',
clickable: true,
extData: {
id: item.id,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!