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 {};
|
return {};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
autofit.init(
|
// autofit.init(
|
||||||
{
|
// {
|
||||||
dh: 3240,
|
// dh: 3240,
|
||||||
dw: 7680,
|
// dw: 7680,
|
||||||
el: "#app",
|
// el: "#app",
|
||||||
resize: true,
|
// resize: true,
|
||||||
},
|
// },
|
||||||
false
|
// false
|
||||||
);
|
// );
|
||||||
|
|
||||||
if (window.vuplex) {
|
if (window.vuplex) {
|
||||||
this.addMessageListener();
|
this.addMessageListener();
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
<<<<<<< HEAD
|
|
||||||
import request from "@/utils/request";
|
|
||||||
//
|
|
||||||
export function loadBrand(limit) {
|
|
||||||
=======
|
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
// 负荷管理
|
// 负荷管理
|
||||||
|
|
@ -42,7 +37,6 @@ export function GetFhzb () {
|
||||||
}
|
}
|
||||||
// 生产线负荷
|
// 生产线负荷
|
||||||
export function GetScxfh () {
|
export function GetScxfh () {
|
||||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
|
||||||
return request({
|
return request({
|
||||||
url: `brand?limit=${limit}`,
|
url: `brand?limit=${limit}`,
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
|
|
||||||
|
|
@ -4,45 +4,6 @@ import request from "@/utils/request";
|
||||||
export function GetKdfhzy() {
|
export function GetKdfhzy() {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/GetAdjustableload`,
|
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'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -80,5 +41,4 @@ export function GetKdsb () {
|
||||||
url: `/api/GetAdjustableDevice`,
|
url: `/api/GetAdjustableDevice`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,9 +157,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="area1">
|
<div class="area1">
|
||||||
<keep-alive>
|
|
||||||
<router-view />
|
<router-view />
|
||||||
</keep-alive>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -366,13 +364,13 @@ export default {
|
||||||
message: `${this.click1}_true`,
|
message: `${this.click1}_true`,
|
||||||
});
|
});
|
||||||
if (this.click1 == "配电室") {
|
if (this.click1 == "配电室") {
|
||||||
this.$router.push(
|
this.$router.replace(
|
||||||
"/area/nyjcd/pds",
|
"/area/nyjcd/pds",
|
||||||
() => {},
|
() => {},
|
||||||
() => {}
|
() => {}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.$router.push(
|
this.$router.replace(
|
||||||
`/area/nyjcd/scx1?type=${this.click1}`,
|
`/area/nyjcd/scx1?type=${this.click1}`,
|
||||||
() => {},
|
() => {},
|
||||||
() => {}
|
() => {}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
<span :class="res == '月' ? 'active' : ''" @click="res = '月'"
|
<span :class="res == '月' ? 'active' : ''" @click="res = '月'"
|
||||||
>月</span
|
>月</span
|
||||||
>
|
>
|
||||||
>
|
|
||||||
<span :class="res == '日' ? 'active' : ''" @click="res = '日'"
|
<span :class="res == '日' ? 'active' : ''" @click="res = '日'"
|
||||||
>日</span
|
>日</span
|
||||||
>
|
>
|
||||||
|
|
@ -179,14 +178,9 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
<<<<<<< HEAD
|
|
||||||
import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
|
|
||||||
const color = ["#099FE3", "#00DBEB", "#50F4C1"];
|
|
||||||
=======
|
|
||||||
// import "echarts-gl";
|
// import "echarts-gl";
|
||||||
// import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
|
// import { getPie3D, getParametricEquation } from "../../../utils/fhgl";
|
||||||
// const color = ["#099FE3", "#00DBEB", "#50F4C1"];
|
// const color = ["#099FE3", "#00DBEB", "#50F4C1"];
|
||||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -1003,9 +997,7 @@ export default {
|
||||||
}
|
}
|
||||||
f = Math.round(num * Math.pow(10, n)) / Math.pow(10, n); // n 幂
|
f = Math.round(num * Math.pow(10, n)) / Math.pow(10, n); // n 幂
|
||||||
var s = f.toString();
|
var s = f.toString();
|
||||||
if (s) {
|
|
||||||
var rs = s.indexOf(".");
|
var rs = s.indexOf(".");
|
||||||
}
|
|
||||||
//判定如果是整数,增加小数点再补0
|
//判定如果是整数,增加小数点再补0
|
||||||
if (rs < 0) {
|
if (rs < 0) {
|
||||||
rs = s.length;
|
rs = s.length;
|
||||||
|
|
@ -1180,7 +1172,8 @@ export default {
|
||||||
];
|
];
|
||||||
const series = this.getPie3D(optionsData, 0.8, 240, 28, 26, 0.5);
|
const series = this.getPie3D(optionsData, 0.8, 240, 28, 26, 0.5);
|
||||||
series.push({
|
series.push({
|
||||||
type: "pie3d",
|
name: "pie2d",
|
||||||
|
type: "pie",
|
||||||
label: {
|
label: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|
@ -1269,7 +1262,7 @@ export default {
|
||||||
},
|
},
|
||||||
defineEcharts(dom, option) {
|
defineEcharts(dom, option) {
|
||||||
var chartDom = document.getElementById(dom);
|
var chartDom = document.getElementById(dom);
|
||||||
var myChart = this.$echarts.init(chartDom, option, {
|
var myChart = this.$echarts.init(chartDom, null, {
|
||||||
devicePixelRatio: 10, // 设置为2或更高的值
|
devicePixelRatio: 10, // 设置为2或更高的值
|
||||||
});
|
});
|
||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
|
|
@ -1535,63 +1528,6 @@ export default {
|
||||||
myChart.setOption(option, true);
|
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样式
|
// 初始化label样式
|
||||||
// setLabel() {
|
// setLabel() {
|
||||||
|
|
@ -1647,7 +1583,6 @@ export default {
|
||||||
// };
|
// };
|
||||||
// });
|
// });
|
||||||
// },
|
// },
|
||||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
|
||||||
// // 图表初始化
|
// // 图表初始化
|
||||||
// initChart() {
|
// initChart() {
|
||||||
// this.statusChart = echarts.init(this.$refs.chart);
|
// this.statusChart = echarts.init(this.$refs.chart);
|
||||||
|
|
@ -1827,13 +1762,8 @@ export default {
|
||||||
// });
|
// });
|
||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
created() {
|
|
||||||
this.setLabel();
|
|
||||||
=======
|
|
||||||
created(){
|
created(){
|
||||||
// this.setLabel();
|
// this.setLabel();
|
||||||
>>>>>>> a4eafbbdba2ec2ad248c68d9a6ad642c832f8471
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.defineEcharts("pdsssdh", this.option1);
|
this.defineEcharts("pdsssdh", this.option1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue