|
@@ -99,13 +99,19 @@
|
|
:curOne="curOne"
|
|
:curOne="curOne"
|
|
:configList="configList"
|
|
:configList="configList"
|
|
@curItem="curItem"
|
|
@curItem="curItem"
|
|
|
|
+ :needHighline="false"
|
|
></handle-config-list>
|
|
></handle-config-list>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
- <img
|
|
|
|
|
|
+ <div class="canvasBox">
|
|
|
|
+ <!-- <img
|
|
src="../../assets/common/image/others/2.png"
|
|
src="../../assets/common/image/others/2.png"
|
|
width="100%"
|
|
width="100%"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
|
|
+ <canvas-sensor
|
|
|
|
+ v-if="modelImgSrc"
|
|
|
|
+ :modelImgSrc="modelImgSrc"
|
|
|
|
+ :configList="configList"
|
|
|
|
+ ></canvas-sensor>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -118,9 +124,11 @@
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="boxContentA">
|
|
<div class="boxContentA">
|
|
<div class="chart">
|
|
<div class="chart">
|
|
|
|
+ <div class="peiTitle">任务运行状态统计:</div>
|
|
<pie-chart id="pieX"></pie-chart>
|
|
<pie-chart id="pieX"></pie-chart>
|
|
</div>
|
|
</div>
|
|
<div class="chart">
|
|
<div class="chart">
|
|
|
|
+ <div class="peiTitle">结果动态统计:</div>
|
|
<pie-chart id="pieZ"></pie-chart>
|
|
<pie-chart id="pieZ"></pie-chart>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -156,10 +164,12 @@
|
|
import handleConfigList from "../modelLibrary/components/handleConfigList.vue";
|
|
import handleConfigList from "../modelLibrary/components/handleConfigList.vue";
|
|
import tableList from "@/components/grid/TableList";
|
|
import tableList from "@/components/grid/TableList";
|
|
import pieChart from "@/components/echarts/pieChart";
|
|
import pieChart from "@/components/echarts/pieChart";
|
|
|
|
+import canvasSensor from "./components/canvasProjectInfo.vue";
|
|
|
|
+import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "projectInfo", // 项目详情
|
|
name: "projectInfo", // 项目详情
|
|
- components: { handleConfigList, tableList, pieChart },
|
|
|
|
|
|
+ components: { handleConfigList, tableList, pieChart, canvasSensor },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
id: "",
|
|
id: "",
|
|
@@ -226,10 +236,14 @@ export default {
|
|
index: -1,
|
|
index: -1,
|
|
},
|
|
},
|
|
downImgSrc: require("@/assets/common/image/others/noDoc.png"),
|
|
downImgSrc: require("@/assets/common/image/others/noDoc.png"),
|
|
|
|
+ // modelImgSrc: require("@/assets/common/image/others/carTopView.png"), // 车辆图片地址
|
|
|
|
+ modelImgSrc: "", // 车辆图片地址
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
- computed: {},
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(["fileHost", "fileUrl"]),
|
|
|
|
+ },
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
viewRow() {
|
|
viewRow() {
|
|
@@ -246,6 +260,18 @@ export default {
|
|
curItem(item) {
|
|
curItem(item) {
|
|
this.curOne = item;
|
|
this.curOne = item;
|
|
},
|
|
},
|
|
|
|
+ getImgUrl(addr) {
|
|
|
|
+ let url = "";
|
|
|
|
+ if (process.env.VUE_APP_IS_DEV == "true") {
|
|
|
|
+ url = this.fileHost + this.fileUrl;
|
|
|
|
+ } else {
|
|
|
|
+ url = this.fileUrl;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let token = localStorage.getItem("Authorization").split(" ")[1];
|
|
|
|
+ let src = `${url}?objectName=${addr}&access_token=${token}`;
|
|
|
|
+ return src;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -267,6 +293,11 @@ export default {
|
|
this.configList.ogt = res.info.sensorOgtList || [];
|
|
this.configList.ogt = res.info.sensorOgtList || [];
|
|
this.configList.lidar = res.info.sensorLidarList || [];
|
|
this.configList.lidar = res.info.sensorLidarList || [];
|
|
this.configList.gps = res.info.sensorGpsList || [];
|
|
this.configList.gps = res.info.sensorGpsList || [];
|
|
|
|
+
|
|
|
|
+ this.modelImgSrc = this.getImgUrl(
|
|
|
|
+ res.info.vehicleImage
|
|
|
|
+ );
|
|
|
|
+
|
|
if (this.info.nowRunState === "30") {
|
|
if (this.info.nowRunState === "30") {
|
|
this.downImgSrc = require("@/assets/common/image/others/hasDoc.png");
|
|
this.downImgSrc = require("@/assets/common/image/others/hasDoc.png");
|
|
} else {
|
|
} else {
|
|
@@ -386,9 +417,9 @@ export default {
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
padding-top: 30px;
|
|
padding-top: 30px;
|
|
|
|
|
|
- // .list {
|
|
|
|
- // width: 300px;
|
|
|
|
- // }
|
|
|
|
|
|
+ .canvasBox {
|
|
|
|
+ flex: 1;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -402,6 +433,13 @@ export default {
|
|
.chart {
|
|
.chart {
|
|
width: 50%;
|
|
width: 50%;
|
|
height: calc(20vh);
|
|
height: calc(20vh);
|
|
|
|
+
|
|
|
|
+ .peiTitle {
|
|
|
|
+ padding: 0 0 30px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|