Commit f6bce482 authored by 纪泽龙's avatar 纪泽龙

优化

parent 38f8fe2b
...@@ -685,43 +685,43 @@ ...@@ -685,43 +685,43 @@
}, },
] ]
}); });
myChart32.setOption({ // myChart32.setOption({
title: { // title: {
text: '设备数量:'+data.deviceNum, // text: '设备数量:'+data.deviceNum,
left: 'center', // left: 'center',
textStyle: { // textStyle: {
color: "#0ff" // color: "#0ff"
} // }
}, // },
tooltip: { // tooltip: {
trigger: 'item' // trigger: 'item'
}, // },
series: [ // series: [
{ // {
name: '设备概况', // name: '设备概况',
type: 'pie', // type: 'pie',
radius: ['50%', '70%'], // radius: ['50%', '70%'],
center: ['50%', '60%'], // center: ['50%', '60%'],
avoidLabelOverlap: false, // avoidLabelOverlap: false,
label: { // label: {
show: false, // show: false,
position: 'center' // position: 'center'
}, // },
emphasis: { // emphasis: {
label: { // label: {
show: true, // show: true,
fontSize: '40', // fontSize: '40',
fontWeight: 'bold' // fontWeight: 'bold'
} // }
}, // },
labelLine: { // labelLine: {
show: false // show: false
}, // },
data:data.divice, // data:data.divice,
color:["#188df0","#ffff00","#FF4040"] // color:["#188df0","#ffff00","#FF4040"]
} // }
] // ]
}); // });
} }
} }
} }
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:45:12 * @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-02-26 23:23:01 * @LastEditTime: 2022-02-26 23:40:59
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js * @FilePath: /test/hello-world/src/utils/mapClass.js
...@@ -349,7 +349,6 @@ export class EditorMap { ...@@ -349,7 +349,6 @@ export class EditorMap {
// 地图上add管道 // 地图上add管道
addPipeLine(objData, component) { addPipeLine(objData, component) {
const { path, pipePressure, iconType } = objData; const { path, pipePressure, iconType } = objData;
console.log(path);
// 根据压力获取颜色 // 根据压力获取颜色
const color = pipeColor[pipePressure + 1]; const color = pipeColor[pipePressure + 1];
const pipe = this.createPipeLine({ const pipe = this.createPipeLine({
...@@ -361,7 +360,6 @@ export class EditorMap { ...@@ -361,7 +360,6 @@ export class EditorMap {
}); });
this.map.add(pipe); this.map.add(pipe);
console.log(pipe.getExtData());
// pipe.hide(); // pipe.hide();
if (!Array.isArray(this.pipeArr[iconType])) { if (!Array.isArray(this.pipeArr[iconType])) {
this.pipeArr[iconType] = []; this.pipeArr[iconType] = [];
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:44:17 * @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-02-26 23:31:14 * @LastEditTime: 2022-02-26 23:40:26
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue * @FilePath: /test/hello-world/src/views/Home.vue
...@@ -313,8 +313,8 @@ export default { ...@@ -313,8 +313,8 @@ export default {
} }
this.currentTime(); this.currentTime();
// this.$refs.mychild.choice(0); this.$refs.mychild.choice(0);
// this.$refs.mychild2.choice(0); this.$refs.mychild2.choice(0);
}, },
methods: { methods: {
...mapActions({ ...mapActions({
......
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