Compare commits
No commits in common. "7573d0127ddbe88d8b4a3ab2444bc17bdb05cb3c" and "a4eafbbdba2ec2ad248c68d9a6ad642c832f8471" have entirely different histories.
7573d0127d
...
a4eafbbdba
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
18
src/App.vue
18
src/App.vue
|
|
@ -8,15 +8,15 @@ export default {
|
|||
return {};
|
||||
},
|
||||
mounted() {
|
||||
autofit.init(
|
||||
{
|
||||
dh: 3240,
|
||||
dw: 7680,
|
||||
el: "#app",
|
||||
resize: true,
|
||||
},
|
||||
false
|
||||
);
|
||||
// autofit.init(
|
||||
// {
|
||||
// dh: 3240,
|
||||
// dw: 7680,
|
||||
// el: "#app",
|
||||
// resize: true,
|
||||
// },
|
||||
// false
|
||||
// );
|
||||
|
||||
if (window.vuplex) {
|
||||
this.addMessageListener();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
<<<<<<< HEAD
|
||||
import request from "@/utils/request";
|
||||
//
|
||||
export function loadBrand(limit) {
|
||||
=======
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 负荷管理
|
||||
|
|
@ -42,7 +37,6 @@ export function GetFhzb () {
|
|||
}
|
||||
// 生产线负荷
|
||||
export function GetScxfh () {
|
||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
||||
return request({
|
||||
url: `brand?limit=${limit}`,
|
||||
method: "GET",
|
||||
|
|
|
|||
|
|
@ -4,45 +4,6 @@ import request from "@/utils/request";
|
|||
export function GetKdfhzy() {
|
||||
return request({
|
||||
url: `/api/GetAdjustableload`,
|
||||
<<<<<<< HEAD
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
// 可调负荷策略
|
||||
export function GetKdfhcl() {
|
||||
return request({
|
||||
url: `/api/GetLoadControlStrategy`,
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
// 可调负荷分析
|
||||
export function GetKdfhfx() {
|
||||
return request({
|
||||
url: `/api/GetAdjustableLoadAnalysis`,
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
// 刚性可调负荷
|
||||
export function GetGang() {
|
||||
return request({
|
||||
url: `/api/GetRigidAdjustableLoads`,
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
// 柔性可调负荷
|
||||
export function GetRou() {
|
||||
return request({
|
||||
url: `/api/GetFlexibleAdjustableLoad`,
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
//可调设备
|
||||
export function GetKdsb() {
|
||||
return request({
|
||||
url: `/api/GetAdjustableDevice`,
|
||||
method: "GET",
|
||||
});
|
||||
=======
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
|
@ -80,5 +41,4 @@ export function GetKdsb () {
|
|||
url: `/api/GetAdjustableDevice`,
|
||||
method: 'GET'
|
||||
})
|
||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,9 +157,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="area1">
|
||||
<keep-alive>
|
||||
<router-view />
|
||||
</keep-alive>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -366,13 +364,13 @@ export default {
|
|||
message: `${this.click1}_true`,
|
||||
});
|
||||
if (this.click1 == "配电室") {
|
||||
this.$router.push(
|
||||
this.$router.replace(
|
||||
"/area/nyjcd/pds",
|
||||
() => {},
|
||||
() => {}
|
||||
);
|
||||
} else {
|
||||
this.$router.push(
|
||||
this.$router.replace(
|
||||
`/area/nyjcd/scx1?type=${this.click1}`,
|
||||
() => {},
|
||||
() => {}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
<span :class="res == '月' ? 'active' : ''" @click="res = '月'"
|
||||
>月</span
|
||||
>
|
||||
>
|
||||
<span :class="res == '日' ? 'active' : ''" @click="res = '日'"
|
||||
>日</span
|
||||
>
|
||||
|
|
@ -179,14 +178,9 @@
|
|||
</template>
|
||||
<script>
|
||||
import * as echarts from "echarts";
|
||||
<<<<<<< HEAD
|
||||
import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
|
||||
const color = ["#099FE3", "#00DBEB", "#50F4C1"];
|
||||
=======
|
||||
// import "echarts-gl";
|
||||
// import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
|
||||
// const color = ["#099FE3", "#00DBEB", "#50F4C1"];
|
||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -1003,9 +997,7 @@ export default {
|
|||
}
|
||||
f = Math.round(num * Math.pow(10, n)) / Math.pow(10, n); // n 幂
|
||||
var s = f.toString();
|
||||
if (s) {
|
||||
var rs = s.indexOf(".");
|
||||
}
|
||||
//判定如果是整数,增加小数点再补0
|
||||
if (rs < 0) {
|
||||
rs = s.length;
|
||||
|
|
@ -1180,7 +1172,8 @@ export default {
|
|||
];
|
||||
const series = this.getPie3D(optionsData, 0.8, 240, 28, 26, 0.5);
|
||||
series.push({
|
||||
type: "pie3d",
|
||||
name: "pie2d",
|
||||
type: "pie",
|
||||
label: {
|
||||
opacity: 1,
|
||||
fontSize: 14,
|
||||
|
|
@ -1269,7 +1262,7 @@ export default {
|
|||
},
|
||||
defineEcharts(dom, option) {
|
||||
var chartDom = document.getElementById(dom);
|
||||
var myChart = this.$echarts.init(chartDom, option, {
|
||||
var myChart = this.$echarts.init(chartDom, null, {
|
||||
devicePixelRatio: 10, // 设置为2或更高的值
|
||||
});
|
||||
myChart.setOption(option);
|
||||
|
|
@ -1535,63 +1528,6 @@ export default {
|
|||
myChart.setOption(option, true);
|
||||
},
|
||||
|
||||
<<<<<<< HEAD
|
||||
//
|
||||
// 初始化label样式
|
||||
setLabel() {
|
||||
this.optionData.forEach((item, index) => {
|
||||
item.itemStyle = {
|
||||
color: color[index],
|
||||
};
|
||||
item.label = {
|
||||
normal: {
|
||||
show: true,
|
||||
color: color[index],
|
||||
position: "right",
|
||||
// distance:-10,
|
||||
offset: [0, 3],
|
||||
formatter: [
|
||||
"{d|{d}%}",
|
||||
"————",
|
||||
// '{c|{c}}{b|台}',
|
||||
"{b|{b}}",
|
||||
].join("\n"), // 用\n来换行
|
||||
rich: {
|
||||
b: {
|
||||
lineHeight: 25,
|
||||
align: "left",
|
||||
fontSize: 30,
|
||||
color: "#fff",
|
||||
},
|
||||
c: {
|
||||
fontSize: 22,
|
||||
// color: '#fff',
|
||||
textShadowColor: "#1c90a6",
|
||||
textShadowOffsetX: 0,
|
||||
textShadowOffsetY: 2,
|
||||
textShadowBlur: 5,
|
||||
color: color[index],
|
||||
},
|
||||
d: {
|
||||
color: color[index],
|
||||
fontSize: 40,
|
||||
align: "left",
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
item.labelLine = {
|
||||
normal: {
|
||||
length2: 200,
|
||||
lineStyle: {
|
||||
width: 2,
|
||||
color: color[index],
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
},
|
||||
=======
|
||||
//
|
||||
// 初始化label样式
|
||||
// setLabel() {
|
||||
|
|
@ -1647,7 +1583,6 @@ export default {
|
|||
// };
|
||||
// });
|
||||
// },
|
||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
||||
// // 图表初始化
|
||||
// initChart() {
|
||||
// this.statusChart = echarts.init(this.$refs.chart);
|
||||
|
|
@ -1827,13 +1762,8 @@ export default {
|
|||
// });
|
||||
// },
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
created() {
|
||||
this.setLabel();
|
||||
=======
|
||||
created(){
|
||||
// this.setLabel();
|
||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
||||
},
|
||||
mounted() {
|
||||
this.defineEcharts("pdsssdh", this.option1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue