Commit 1ee1bf27 by zhangquan

Merge branch 'yc_v1.0.0' of http://192.168.3.233:8090/saas/scrm-micro-charge into yc_v1.0.0

2 parents df030993 4b331362
...@@ -13,6 +13,14 @@ ...@@ -13,6 +13,14 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="radarRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <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"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div> </div>
...@@ -155,11 +163,13 @@ export default { ...@@ -155,11 +163,13 @@ export default {
}, },
{ {
label: '设备状态', label: '设备状态',
prop: 'deviceStatusStr' prop: 'deviceStatusStr',
addHtml: 'deviceStatus'
}, },
{ {
label: '绑定关系', label: '绑定关系',
prop: 'bindingStatusStr' prop: 'bindingStatusStr',
addHtml: 'bindingStatus'
}, },
{ {
label: '入库时间', label: '入库时间',
...@@ -194,7 +204,9 @@ export default { ...@@ -194,7 +204,9 @@ export default {
label: '绑定' label: '绑定'
} }
] ]
} },
deviceStatusEnum: ['#999999', '#2CCA74', '#EB4E4E'],
bindingStatusEnum: ['#999999', '#2CCA74']
} }
}, },
...@@ -501,4 +513,13 @@ export default { ...@@ -501,4 +513,13 @@ export default {
margin-top: -20px; margin-top: -20px;
} }
} }
.status-class {
display: inline-block;
margin-right: 8px;
width: 6px;
height: 6px;
background: #eb4e4e;
border-radius: 4px;
vertical-align: middle;
}
</style> </style>
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
marker = new AMap.Marker({ marker = new AMap.Marker({
icon: require(`@/assets/${icon}.png`), icon: require(`@/assets/${icon}.png`),
position: [item.parkingAddressLng, item.parkingAddressLat], position: [item.parkingAddressLng, item.parkingAddressLat],
anchor: 'bottom-left', anchor: 'bottom',
clickable: true, clickable: true,
extData: { extData: {
id: item.id, id: item.id,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!