Commit 4b331362 by 王志慧

fixed

1 parent 152560db
...@@ -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>
...@@ -31,7 +39,7 @@ ...@@ -31,7 +39,7 @@
</el-button> </el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" /> <input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div> </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> </div>
</el-form-item> </el-form-item>
<div class="tip">支持扩展名:xlsx、xls、csv</div> <div class="tip">支持扩展名:xlsx、xls、csv</div>
...@@ -154,11 +162,13 @@ export default { ...@@ -154,11 +162,13 @@ export default {
}, },
{ {
label: '设备状态', label: '设备状态',
prop: 'deviceStatusStr' prop: 'deviceStatusStr',
addHtml: 'deviceStatus',
}, },
{ {
label: '绑定关系', label: '绑定关系',
prop: 'bindingStatusStr' prop: 'bindingStatusStr',
addHtml: 'bindingStatus',
}, },
{ {
label: '入库时间', label: '入库时间',
...@@ -193,7 +203,9 @@ export default { ...@@ -193,7 +203,9 @@ export default {
label: '绑定' label: '绑定'
} }
] ]
} },
deviceStatusEnum:['#999999','#2CCA74','#EB4E4E'],
bindingStatusEnum:['#999999','#2CCA74']
} }
}, },
...@@ -500,4 +512,13 @@ export default { ...@@ -500,4 +512,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!