|
@@ -1,9 +1,5 @@
|
|
|
const test61 = (function () {
|
|
|
-<<<<<<< HEAD
|
|
|
function test61(id, domTitle) {
|
|
|
-=======
|
|
|
- function test61 (id, domTitle) {
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
if (domTitle) {
|
|
|
$(".test61 .title h2").text(domTitle);
|
|
|
}
|
|
@@ -34,19 +30,11 @@ const test61 = (function () {
|
|
|
$(".sf1").slideDown();
|
|
|
$(".sf3").slideUp();
|
|
|
$(".sf4").slideUp();
|
|
|
-<<<<<<< HEAD
|
|
|
sp1Ajax11();
|
|
|
sp1Ajax12();
|
|
|
sp1Ajax14();
|
|
|
sp1Ajax15();
|
|
|
sp1Ajax17();
|
|
|
-=======
|
|
|
- sp1Ajax11()
|
|
|
- sp1Ajax12()
|
|
|
- sp1Ajax14()
|
|
|
- sp1Ajax15()
|
|
|
- sp1Ajax17()
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
});
|
|
|
|
|
|
// 浪潮
|
|
@@ -54,13 +42,8 @@ const test61 = (function () {
|
|
|
$(".sf4").slideDown();
|
|
|
$(".sf1").slideUp();
|
|
|
$(".sf3").slideUp();
|
|
|
-<<<<<<< HEAD
|
|
|
sp4Ajax25();
|
|
|
sp4Ajax26();
|
|
|
-=======
|
|
|
- sp4Ajax25()
|
|
|
- sp4Ajax26()
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
sp4Ajax27();
|
|
|
sp4Ajax28();
|
|
|
sp4Ajax29();
|
|
@@ -72,7 +55,6 @@ const test61 = (function () {
|
|
|
$(".sf3").slideDown();
|
|
|
$(".sf1").slideUp();
|
|
|
$(".sf4").slideUp();
|
|
|
-<<<<<<< HEAD
|
|
|
sp3Ajax18();
|
|
|
sp3Ajax19();
|
|
|
sp3Ajax21();
|
|
@@ -80,22 +62,12 @@ const test61 = (function () {
|
|
|
myAjax1();
|
|
|
myAjax2();
|
|
|
myAjax3();
|
|
|
-=======
|
|
|
- sp3Ajax18()
|
|
|
- sp3Ajax19()
|
|
|
- sp3Ajax21()
|
|
|
- sp3Ajax22()
|
|
|
- myAjax1()
|
|
|
- myAjax2()
|
|
|
- myAjax3()
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
});
|
|
|
|
|
|
$(".test61 .close-Popup").click(function () {
|
|
|
$(".test61 .Popup").css("display", "none");
|
|
|
});
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
const domPop = $(".Popup .tablebox");
|
|
|
let popFlag = false;
|
|
|
$(".test61 .left-box-three").click(function () {
|
|
@@ -132,50 +104,11 @@ const test61 = (function () {
|
|
|
}
|
|
|
|
|
|
return `
|
|
|
-=======
|
|
|
- const domPop = $('.Popup .tablebox');
|
|
|
- let popFlag = false;
|
|
|
- $(".test61 .left-box-three").click(function () {
|
|
|
- const tit = $(this).find('.left-box-one-title').html();
|
|
|
- $('.Popup-name span').eq(0).text(tit);
|
|
|
- const id = +$(this).attr('data-id');
|
|
|
- $.ajax({
|
|
|
- url: basicUrl +
|
|
|
- "/SystemRisk/GetSystemRiskList",
|
|
|
- data: {
|
|
|
- officeId: id
|
|
|
- },
|
|
|
- success: function (res) {
|
|
|
- console.log('安全等级弹框', res);
|
|
|
- const { result } = res;
|
|
|
- const html = result.map((item, index) => {
|
|
|
- const high = item.high_risk_number;
|
|
|
- const middle = item.middle_risk_number;
|
|
|
- let sum = high + middle;
|
|
|
- if (isNaN(sum)) {
|
|
|
- sum = 0;
|
|
|
- }
|
|
|
- let status = '中';
|
|
|
- switch (item.safety_status) {
|
|
|
- case 1:
|
|
|
- status = '低'
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- status = '中'
|
|
|
- break;
|
|
|
- default:
|
|
|
- status = '高'
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- return `
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
<tr class="Tr-td">
|
|
|
<td>${item.system_name}</td>
|
|
|
<td>${high}</td>
|
|
|
<td>${middle}</td>
|
|
|
<td>${status}</td>
|
|
|
-<<<<<<< HEAD
|
|
|
<td>${
|
|
|
item.update_time
|
|
|
? item.update_time.substring(0, 10)
|
|
@@ -190,15 +123,6 @@ const test61 = (function () {
|
|
|
$(".box61 .Popup tbody").html(html);
|
|
|
setTimeout(() => {
|
|
|
scroll(domPop, 0, popFlag);
|
|
|
-=======
|
|
|
- <td>${item.update_time ? item.update_time.substring(0, 10) : false || item.create_time ? item.create_time.substring(0, 10) : false}</td>
|
|
|
- </tr>
|
|
|
- `
|
|
|
- }).join('');
|
|
|
- $('.box61 .Popup tbody').html(html);
|
|
|
- setTimeout(() => {
|
|
|
- scroll(domPop, 0, popFlag)
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
popFlag = true;
|
|
|
}, 1500);
|
|
|
},
|
|
@@ -207,7 +131,6 @@ const test61 = (function () {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
$(".test61 .Popup").css("display", "block");
|
|
|
});
|
|
|
|
|
@@ -248,63 +171,12 @@ const test61 = (function () {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-=======
|
|
|
-
|
|
|
- $(".test61 .Popup").css("display", "block");
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- const dom = $('.test61 .box61 .left-box');
|
|
|
- const dom1Children = $('.test61 .box61 .left-box').children();
|
|
|
-
|
|
|
- const dom2 = $('.test61 .box61 .right-box');
|
|
|
- const dom2Children = $('.test61 .box61 .right-box').children();
|
|
|
-
|
|
|
- dom.append(dom2Children.clone(true))
|
|
|
- dom.append(dom1Children.clone(true))
|
|
|
- dom.append(dom2Children.clone(true))
|
|
|
-
|
|
|
-
|
|
|
- dom2.append(dom1Children.clone(true))
|
|
|
- dom2.append(dom2Children.clone(true))
|
|
|
- dom2.append(dom1Children.clone(true))
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- hoverAnimation(dom, dom2)
|
|
|
- hoverAnimation(dom2, dom)
|
|
|
- function hoverAnimation (dom, dom2) {
|
|
|
- dom.hover(() => {
|
|
|
- dom.css({
|
|
|
- 'animation-play-state': 'paused'
|
|
|
- })
|
|
|
- dom2.css({
|
|
|
- 'animation-play-state': 'paused'
|
|
|
- })
|
|
|
- },
|
|
|
- () => {
|
|
|
- dom.css({
|
|
|
- 'animation-play-state': 'running'
|
|
|
- })
|
|
|
- dom2.css({
|
|
|
- 'animation-play-state': 'running'
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
setTimeout(() => {
|
|
|
const scroll = (dom, curLeft) => {
|
|
|
const option = {
|
|
|
duration: 16,
|
|
|
total: 5000,
|
|
|
begin: {
|
|
|
-<<<<<<< HEAD
|
|
|
left: curLeft,
|
|
|
},
|
|
|
end: {
|
|
@@ -344,57 +216,22 @@ const test61 = (function () {
|
|
|
player.startAnimation();
|
|
|
player.onFrame(function (i) {});
|
|
|
});
|
|
|
+ var playerOne = new SVGA.Player("#dzContainer");
|
|
|
+ var parserOne = new SVGA.Parser("#dzContainer");
|
|
|
+ parserOne.load("../svga/dizuo.svga", function (item) {
|
|
|
+ playerOne.loops = 999999999999; // 循环次数
|
|
|
+ playerOne.clearsAfterStop = false;
|
|
|
+ playerOne.setVideoItem(item);
|
|
|
+ playerOne.startAnimation();
|
|
|
+ playerOne.onFrame(function (i) {});
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
function setCharts(echartDom, testDom) {
|
|
|
-=======
|
|
|
- left: curLeft
|
|
|
- },
|
|
|
- end: {
|
|
|
- left: -dom.width() / 2
|
|
|
- },
|
|
|
- startMove (curData) {
|
|
|
- curLeft = curData.left;
|
|
|
- dom.css('margin-left', curLeft)
|
|
|
- },
|
|
|
- stopMove () {
|
|
|
- dom.css('margin-left', 0)
|
|
|
-
|
|
|
- curLeft = 0;
|
|
|
- scroll(dom, 0)
|
|
|
- }
|
|
|
- }
|
|
|
- const animate = animateScrool(option);
|
|
|
- animate.start();
|
|
|
- dom.hover(() => {
|
|
|
- animate.stop();
|
|
|
- }, () => {
|
|
|
- animate.start();
|
|
|
- })
|
|
|
- return animate;
|
|
|
- }
|
|
|
- // scroll(dom,0)
|
|
|
- }, 1500);
|
|
|
-
|
|
|
-
|
|
|
- var player = new SVGA.Player('#dzContainer');
|
|
|
- var parser = new SVGA.Parser('#dzContainer');
|
|
|
- parser.load('../svga/dizuo.svga', function (item) {
|
|
|
- player.loops = 999999999999; // 循环次数
|
|
|
- player.clearsAfterStop = false;
|
|
|
- player.setVideoItem(item);
|
|
|
- player.startAnimation();
|
|
|
- player.onFrame(function (i) { });
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- function setCharts (echartDom, testDom) {
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
var myChart = echarts.init(echartDom);
|
|
|
// 地图背景颜色
|
|
|
var highlight = "#03b7c9";
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
var demoData = [
|
|
|
{
|
|
|
name: "平均温度",
|
|
@@ -421,33 +258,6 @@ const test61 = (function () {
|
|
|
[1, "#119eff"],
|
|
|
],
|
|
|
},
|
|
|
-=======
|
|
|
- var demoData = [{
|
|
|
- name: "平均温度",
|
|
|
- value: 22,
|
|
|
- unit: "°",
|
|
|
- pos: ["25%", "40%"],
|
|
|
- range: [-40, 100],
|
|
|
- YS: [
|
|
|
- [0.4, "#119eff"],
|
|
|
- [0.5, "#30da74"],
|
|
|
- [1, "#f3390d"],
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- name: "平均温度",
|
|
|
- value: 90,
|
|
|
- unit: "°",
|
|
|
- pos: ["75%", "40%"],
|
|
|
- range: [0, 100],
|
|
|
- splitNum: 10,
|
|
|
- YS: [
|
|
|
- [0.3, "#f3390d"],
|
|
|
- [0.8, "#30da74"],
|
|
|
- [1, "#119eff"],
|
|
|
- ],
|
|
|
- },
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
];
|
|
|
|
|
|
option = {
|
|
@@ -457,7 +267,6 @@ const test61 = (function () {
|
|
|
demoData.forEach(function (item) {
|
|
|
result.push(
|
|
|
// 外围刻度
|
|
|
-<<<<<<< HEAD
|
|
|
{
|
|
|
type: "gauge",
|
|
|
center: item.pos,
|
|
@@ -581,130 +390,6 @@ const test61 = (function () {
|
|
|
width: 5,
|
|
|
},
|
|
|
},
|
|
|
-=======
|
|
|
- {
|
|
|
- type: "gauge",
|
|
|
- center: item.pos,
|
|
|
- radius: "50%", // 1行2个
|
|
|
- splitNumber: item.splitNum || 10,
|
|
|
- min: item.range[0],
|
|
|
- max: item.range[1],
|
|
|
- startAngle: 225,
|
|
|
- endAngle: -45,
|
|
|
- axisLine: {
|
|
|
- show: true,
|
|
|
- lineStyle: {
|
|
|
- width: 2,
|
|
|
- shadowBlur: 0,
|
|
|
- color: [
|
|
|
- [1, highlight]
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- axisTick: {
|
|
|
- show: true,
|
|
|
- lineStyle: {
|
|
|
- color: highlight,
|
|
|
- width: 1,
|
|
|
- },
|
|
|
- length: -5,
|
|
|
- splitNumber: 10,
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- show: true,
|
|
|
- length: -10,
|
|
|
- lineStyle: {
|
|
|
- color: highlight,
|
|
|
- },
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- distance: -18,
|
|
|
- textStyle: {
|
|
|
- color: highlight,
|
|
|
- fontSize: "10",
|
|
|
- },
|
|
|
- },
|
|
|
- pointer: {
|
|
|
- show: 0,
|
|
|
- },
|
|
|
- detail: {
|
|
|
- show: 0,
|
|
|
- },
|
|
|
- }, {
|
|
|
- name: "速度",
|
|
|
- type: "gauge",
|
|
|
- center: item.pos,
|
|
|
- splitNumber: item.splitNum || 10,
|
|
|
- min: item.range[0],
|
|
|
- max: item.range[1],
|
|
|
- radius: "45%",
|
|
|
- axisLine: {
|
|
|
- // 坐标轴线
|
|
|
- show: false,
|
|
|
- lineStyle: {
|
|
|
- // 属性lineStyle控制线条样式
|
|
|
- color: item.YS,
|
|
|
- shadowColor: "#ccc",
|
|
|
- shadowBlur: 25,
|
|
|
- width: 0,
|
|
|
- },
|
|
|
- },
|
|
|
- axisLabel: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- axisTick: {
|
|
|
- // 坐标轴小标记
|
|
|
- // show: false,
|
|
|
- length: 20, // 属性length控制线长
|
|
|
- lineStyle: {
|
|
|
- // 属性lineStyle控制线条样式
|
|
|
- color: "auto",
|
|
|
- width: 2,
|
|
|
- },
|
|
|
- },
|
|
|
- splitLine: {
|
|
|
- // 分隔线
|
|
|
- show: false,
|
|
|
- length: 20, // 属性length控制线长
|
|
|
- lineStyle: {
|
|
|
- // 属性lineStyle(详见lineStyle)控制线条样式
|
|
|
- color: "auto",
|
|
|
- },
|
|
|
- },
|
|
|
- title: {
|
|
|
- textStyle: {
|
|
|
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
|
|
|
- fontWeight: "bolder",
|
|
|
- fontSize: 20,
|
|
|
- fontStyle: "italic",
|
|
|
- },
|
|
|
- },
|
|
|
- detail: {
|
|
|
- show: true,
|
|
|
- offsetCenter: [0, "100%"],
|
|
|
- textStyle: {
|
|
|
- fontSize: 25,
|
|
|
- },
|
|
|
- formatter: [
|
|
|
- "{value} " + (item.unit || ""),
|
|
|
- "{name|" + item.name + "}",
|
|
|
- ].join("\n"),
|
|
|
- rich: {
|
|
|
- name: {
|
|
|
- fontSize: 16,
|
|
|
- lineHeight: 30,
|
|
|
- color: "#4be4de",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- data: [{
|
|
|
- value: item.value,
|
|
|
- },],
|
|
|
- pointer: {
|
|
|
- width: 5,
|
|
|
- },
|
|
|
- },
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
// 内侧指针、数值显示
|
|
|
{
|
|
|
name: item.name,
|
|
@@ -719,13 +404,7 @@ const test61 = (function () {
|
|
|
show: true,
|
|
|
lineStyle: {
|
|
|
width: 16,
|
|
|
-<<<<<<< HEAD
|
|
|
color: [[1, "rgba(75,228,255,.1)"]],
|
|
|
-=======
|
|
|
- color: [
|
|
|
- [1, "rgba(75,228,255,.1)"]
|
|
|
- ],
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
},
|
|
|
},
|
|
|
axisTick: {
|
|
@@ -768,17 +447,11 @@ const test61 = (function () {
|
|
|
},
|
|
|
},
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
data: [
|
|
|
{
|
|
|
value: item.value,
|
|
|
},
|
|
|
],
|
|
|
-=======
|
|
|
- data: [{
|
|
|
- value: item.value,
|
|
|
- },],
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|
|
|
}
|
|
|
);
|
|
|
});
|
|
@@ -795,8 +468,4 @@ const test61 = (function () {
|
|
|
obsDom(testDom, myChart);
|
|
|
}
|
|
|
return test61;
|
|
|
-<<<<<<< HEAD
|
|
|
-})();
|
|
|
-=======
|
|
|
})();
|
|
|
->>>>>>> e24c935307d344b19d1705f0f20916a46bc2aff7
|