Commit d7d6de7c authored by kangzhenfei's avatar kangzhenfei

设备监控

parent fdf5d990
...@@ -58,10 +58,10 @@ ...@@ -58,10 +58,10 @@
</div> </div>
</template> </template>
<template slot="card" slot-scope="{row}"> <template slot="card" slot-scope="{row}">
<div class="body" v-for="i of 2" :key="i"> <div class="body">
<Row class="title-i"> <Row class="title-i">
<Col :span="16" class="order-code"> <Col :span="16" class="order-code">
<Ellipsis :text="row.productName+i" :lines="1" tooltip transfer /> <Ellipsis :text="row.productName" :lines="1" tooltip transfer />
</Col> </Col>
<Col :span="4" class="order-code"> <Col :span="4" class="order-code">
<a>查看详情</a> <a>查看详情</a>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<div class="panel-text"> <div class="panel-text">
<Row> <Row>
<Col span="8"> <Col span="8">
<a @click="getImagpage()" > <a @click="getImagpage(row)" >
<img <img
:src="getUrl(row.productUrl)" :src="getUrl(row.productUrl)"
width="120" title="设备监控详情" width="120" title="设备监控详情"
...@@ -118,7 +118,9 @@ export default { ...@@ -118,7 +118,9 @@ export default {
} }
}, },
downUrl: fileUrlDown, downUrl: fileUrlDown,
columns: [], columns: {
count:7,
},
comondata:[ comondata:[
{ {
productName: "德玛吉235550", productName: "德玛吉235550",
...@@ -152,80 +154,79 @@ export default { ...@@ -152,80 +154,79 @@ export default {
MachineCode: "JCBM-06224", MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012", MachineIp: "1231-111-26012",
information: "V-5633-12112", information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei05.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei06.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei07.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei08.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei09.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei10.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei11.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei12.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
},{
productName: "德玛吉235537",
statu: "运行中",
productUrl:"shebei13.png",
MachineType: "V1-256-16334",
MachineCode: "JCBM-06224",
MachineIp: "1231-111-26012",
information: "V-5633-12112",
}, },
// {
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei05.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei06.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei07.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei08.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei09.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei10.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei11.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei12.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },{
// productName: "德玛吉235537",
// statu: "运行中",
// productUrl:"shebei13.png",
// MachineType: "V1-256-16334",
// MachineCode: "JCBM-06224",
// MachineIp: "1231-111-26012",
// information: "V-5633-12112",
// },
], ],
typeInfo: "card", typeInfo: "card",
iconInfo: "md-apps", iconInfo: "md-apps",
...@@ -350,8 +351,13 @@ export default { ...@@ -350,8 +351,13 @@ export default {
} }
return tempUrl; return tempUrl;
}, },
getImagpage(){ getImagpage(rowDta){
this.$router.push("/dncmnc/mnc/monitoring"); console.log(rowDta)
// this.$router.push("/dncmnc/mnc/monitoring");
this.$router.push({
path: "/dncmnc/mnc/monitoring",
query: { imgData: rowDta }
});
}, },
gotoTable(){ gotoTable(){
//跳转到数据分析表页面 获取id:this.$route.query.id //跳转到数据分析表页面 获取id:this.$route.query.id
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
.set_card_body{ .set_card_body{
padding: 10px; padding: 10px;
.set_img{ .set_img{
min-width: 150px; width: 150px;
min-height: 120px; height: 120px;
text-align: center; text-align: center;
} }
.statu_box{ .statu_box{
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<div class="set_card_body"> <div class="set_card_body">
<Row> <Row>
<Col span="10"> <Col span="10">
<img class="set_img" src="../image/shebei.png" alt=""/> <img class="set_img" :src="getUrl()" alt=""/>
<!-- <img class="set_img" src="../image/shebei.png" alt=""/> -->
</Col> </Col>
<Col span="14"> <Col span="14">
<div class="set_masage"> <div class="set_masage">
...@@ -171,16 +172,31 @@ export default { ...@@ -171,16 +172,31 @@ export default {
Echart3, Echart3,
Echart5, Echart5,
}, },
created(){
// this.laode()
},
data(){ data(){
return{ return{
formData:this.$router.currentRoute.query
}; };
}, },
methods:{ methods:{
// laode(){},
goView(){ goView(){
//返回设备监控页面 获取id:this.$route.query.id //返回设备监控页面 获取id:this.$route.query.id
this.$router.push("/dncmnc/mnc"); this.$router.push("/dncmnc/mnc");
}, },
getUrl() {
let url = this.formData.imgData.productUrl
let tempUrl = "";
if (url && url.length > 0) {
// tempUrl = this.downUrl + url;
tempUrl = mncImg + url;
} else {
tempUrl = iconImg + "noPic_product.png";
}
return tempUrl;
},
}, },
} }
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment