This commit is contained in:
parent
6e3de35010
commit
94b5e45422
File diff suppressed because one or more lines are too long
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,48 +1,6 @@
|
||||||
<<<<<<< HEAD
|
|
||||||
import request from '@/utils/request'
|
|
||||||
|
|
||||||
// 负荷管理
|
|
||||||
export function GetFhgl () {
|
|
||||||
return request({
|
|
||||||
url: `brand?limit=${limit}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 负荷分析
|
|
||||||
export function GetFhfx () {
|
|
||||||
return request({
|
|
||||||
url: `brand?limit=${limit}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 变压器负载率
|
|
||||||
export function GetByqfzl () {
|
|
||||||
return request({
|
|
||||||
url: `brand?limit=${limit}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 负荷分类
|
|
||||||
export function GetFhfl () {
|
|
||||||
return request({
|
|
||||||
url: `brand?limit=${limit}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 生产线负荷占比
|
|
||||||
export function GetFhzb () {
|
|
||||||
return request({
|
|
||||||
url: `brand?limit=${limit}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 生产线负荷
|
|
||||||
export function GetScxfh () {
|
|
||||||
=======
|
|
||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
//
|
//
|
||||||
export function loadBrand(limit) {
|
export function loadBrand(limit) {
|
||||||
>>>>>>> 33de1560eeb2b0f1604115c12dd7230b16dfc72c
|
|
||||||
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",
|
||||||
});
|
});
|
||||||
>>>>>>> 33de1560eeb2b0f1604115c12dd7230b16dfc72c
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="area1">
|
<div class="area1">
|
||||||
|
<keep-alive>
|
||||||
<router-view />
|
<router-view />
|
||||||
|
</keep-alive>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -364,13 +366,13 @@ export default {
|
||||||
message: `${this.click1}_true`,
|
message: `${this.click1}_true`,
|
||||||
});
|
});
|
||||||
if (this.click1 == "配电室") {
|
if (this.click1 == "配电室") {
|
||||||
this.$router.replace(
|
this.$router.push(
|
||||||
"/area/nyjcd/pds",
|
"/area/nyjcd/pds",
|
||||||
() => {},
|
() => {},
|
||||||
() => {}
|
() => {}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.$router.replace(
|
this.$router.push(
|
||||||
`/area/nyjcd/scx1?type=${this.click1}`,
|
`/area/nyjcd/scx1?type=${this.click1}`,
|
||||||
() => {},
|
() => {},
|
||||||
() => {}
|
() => {}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
<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
|
||||||
>
|
>
|
||||||
|
|
@ -178,7 +179,6 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
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"];
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -997,7 +997,9 @@ 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;
|
||||||
|
|
@ -1172,8 +1174,7 @@ 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({
|
||||||
name: "pie2d",
|
type: "pie3d",
|
||||||
type: "pie",
|
|
||||||
label: {
|
label: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|
@ -1262,7 +1263,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, null, {
|
var myChart = this.$echarts.init(chartDom, option, {
|
||||||
devicePixelRatio: 10, // 设置为2或更高的值
|
devicePixelRatio: 10, // 设置为2或更高的值
|
||||||
});
|
});
|
||||||
myChart.setOption(option);
|
myChart.setOption(option);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue