feat: 设备信息首页调整

This commit is contained in:
Tony 2023-12-04 16:30:40 +08:00
parent c568a3d68d
commit e0bdea1f67
2 changed files with 10 additions and 10 deletions

View File

@ -23,12 +23,11 @@
<el-table-column label="设备编号" align="center" prop="num" /> <el-table-column label="设备编号" align="center" prop="num" />
<el-table-column label="名称" align="center" prop="name" /> <el-table-column label="名称" align="center" prop="name" />
<el-table-column label="设备类型" align="center" prop="type" /> <el-table-column label="设备类型" align="center" prop="type" />
<el-table-column <el-table-column label="设备状态" align="center" prop="status">
label="设备状态" <template slot-scope="scope">
align="center" <span :style="`color: ${scope.row.status === '离线' ? 'red' : '#62cfa2'};`">{{ scope.row.status }}</span>
class="zzz" </template>
prop="status" </el-table-column>
/>
<el-table-column label="品牌" align="center" prop="brand" /> <el-table-column label="品牌" align="center" prop="brand" />
</el-table> </el-table>
</div> </div>
@ -153,9 +152,6 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import url(../../../styles/mainPage.scss); @import url(../../../styles/mainPage.scss);
.zzz {
color: red;
}
.top-card-inner { .top-card-inner {
flex-direction: row !important; flex-direction: row !important;
box-shadow: 2px 2px 2px #25252525; box-shadow: 2px 2px 2px #25252525;

View File

@ -4,6 +4,7 @@
<energy-home v-else-if="port === '9160'"></energy-home> <energy-home v-else-if="port === '9160'"></energy-home>
<machinery-home v-else-if="port === '9170'"></machinery-home> <machinery-home v-else-if="port === '9170'"></machinery-home>
<deviceMap v-else-if="port === '9190'"></deviceMap> <deviceMap v-else-if="port === '9190'"></deviceMap>
<device-info v-else-if="port === '9210'"></device-info>
<cityManageMap v-else-if="port === '9180'" /> <cityManageMap v-else-if="port === '9180'" />
<operate-home v-else-if="port === '80' || port === ''"></operate-home> <operate-home v-else-if="port === '80' || port === ''"></operate-home>
<home-page v-else></home-page> <home-page v-else></home-page>
@ -16,6 +17,8 @@ import EnergyHome from './energy/home/index.vue'
import MachineryHome from './machinery/home/index.vue' import MachineryHome from './machinery/home/index.vue'
import deviceMap from './monitorMap/deviceMap/index.vue' import deviceMap from './monitorMap/deviceMap/index.vue'
import cityManageMap from './cityManage/map/index.vue' import cityManageMap from './cityManage/map/index.vue'
import deviceInfo from './deviceInfo/home/index.vue'
export default { export default {
components: { components: {
HomePage, HomePage,
@ -23,7 +26,8 @@ export default {
EnergyHome, EnergyHome,
MachineryHome, MachineryHome,
deviceMap, deviceMap,
cityManageMap cityManageMap,
deviceInfo
}, },
data() { data() {
return { return {