From d40eb96fe09c5c089ce093d8afe840c94c319996 Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Mon, 1 Apr 2024 09:56:17 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=A4=A7=E5=B1=8F?=
=?UTF-8?q?=E9=A6=96=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
css/index/index.css | 12 ++++++++++++
js/pages/index/indexAjax.js | 12 ++++++++----
js/pages/index/indexEcharts.js | 4 ++--
3 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/css/index/index.css b/css/index/index.css
index a465baa..8280a4e 100644
--- a/css/index/index.css
+++ b/css/index/index.css
@@ -179,4 +179,16 @@ body {
height: 28.2%;
background: url("../../img/index/pro_cost.png") no-repeat 0 0 / 100% 100%;
background-position: center center !important;
+}
+
+img {
+ image-rendering: -moz-crisp-edges;
+ /* Firefox */
+ image-rendering: -o-crisp-edges;
+ /* Opera */
+ image-rendering: -webkit-optimize-contrast;
+ /*Webkit (non-standard naming) */
+ image-rendering: crisp-edges;
+ -ms-interpolation-mode: nearest-neighbor;
+ /* IE (non-standard property) */
}
\ No newline at end of file
diff --git a/js/pages/index/indexAjax.js b/js/pages/index/indexAjax.js
index 42e0a53..b72eebd 100644
--- a/js/pages/index/indexAjax.js
+++ b/js/pages/index/indexAjax.js
@@ -137,11 +137,11 @@ function loadProCost(montageParam) {
const url = commonUrl + 'screen/largeScreen/xcIndex/getProMoney?params=' + montageParam;
ajaxRequestGet(url, "GET", true, function () {
}, function (result) {
- console.log(result);
if (result.code === 200) {
setData(result.data);
} else if (result.code === 500) {
console.error('项目成本:' + result.msg);
+ setData(null);
} else if (result.code === 401) {
loginout(1);
}
@@ -149,8 +149,12 @@ function loadProCost(montageParam) {
error(xhr, status, error)
}, aqEnnable);
function setData(data) {
- let nameList = ['黄家村', '曹家村', '吕家村', '大草坝村', '庙坡村', '廉家庄村', '莲花池村', '小西关村', '杜家漕村', '栗子园村', '翟家寺村'];
- let valueList = ['2', '3', '1', '1', '2', '2', '2', '6', '5', '3', '2'];
- initEchartsThree(nameList,valueList);
+ if (data) {
+ let nameList = data.time && data.time.length > 0 ? data.time : [];
+ let valueList = data.cost && data.cost.length > 0 ? data.cost : [];
+ initEchartsThree(nameList, valueList,parseFloat(data.proCost.replace('万','')));
+ }else{
+ initEchartsThree([], [],0);
+ }
}
}
\ No newline at end of file
diff --git a/js/pages/index/indexEcharts.js b/js/pages/index/indexEcharts.js
index 849737e..7a579d5 100644
--- a/js/pages/index/indexEcharts.js
+++ b/js/pages/index/indexEcharts.js
@@ -434,7 +434,7 @@ function initEchartsTwo(value2, value) {
}
/* 项目成本 */
-function initEchartsThree(nameListData,valueListData) {
+function initEchartsThree(nameListData,valueListData,proCost) {
let nameList = nameListData;
let valueList = valueListData;
let fontSize = '14', fontFamily = 'Alibaba PuHuiTi R', fontColor = '#fff';
@@ -553,7 +553,7 @@ function initEchartsThree(nameListData,valueListData) {
data: [{
silent: true,
name: "阈值",
- yAxis: 5,//res.targetTwo,
+ yAxis: proCost,//res.targetTwo,
lineStyle: {
color: "#FF8845FF"
},
From c493047206ec46e549a2d0a64431abec42d53801 Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Mon, 1 Apr 2024 12:51:34 +0800
Subject: [PATCH 2/2] dtree
---
js/pages/video/video.js | 2 +
js/pages/video/videoAjax.js | 21 +
pages/video/video.html | 1 +
plugin/layui-v2.9.7/layui/dtree/dtree.css | 112 +
plugin/layui-v2.9.7/layui/dtree/dtree.js | 4947 +++++++++++++++++
.../layui/dtree/font/dtreefont.css | 229 +
.../layui/dtree/font/dtreefont.eot | Bin 0 -> 19508 bytes
.../layui/dtree/font/dtreefont.svg | 80 +
.../layui/dtree/font/dtreefont.ttf | Bin 0 -> 19344 bytes
.../layui/dtree/font/dtreefont.woff | Bin 0 -> 19420 bytes
.../layui-v2.9.7/layui/dtree/font/icons.json | 283 +
11 files changed, 5675 insertions(+)
create mode 100644 js/pages/video/videoAjax.js
create mode 100644 plugin/layui-v2.9.7/layui/dtree/dtree.css
create mode 100644 plugin/layui-v2.9.7/layui/dtree/dtree.js
create mode 100644 plugin/layui-v2.9.7/layui/dtree/font/dtreefont.css
create mode 100644 plugin/layui-v2.9.7/layui/dtree/font/dtreefont.eot
create mode 100644 plugin/layui-v2.9.7/layui/dtree/font/dtreefont.svg
create mode 100644 plugin/layui-v2.9.7/layui/dtree/font/dtreefont.ttf
create mode 100644 plugin/layui-v2.9.7/layui/dtree/font/dtreefont.woff
create mode 100644 plugin/layui-v2.9.7/layui/dtree/font/icons.json
diff --git a/js/pages/video/video.js b/js/pages/video/video.js
index 40027ad..dd29df2 100644
--- a/js/pages/video/video.js
+++ b/js/pages/video/video.js
@@ -10,4 +10,6 @@ layui.use(['layer', 'form'], function () {
setTimeout(() => {
QXPlayVideo('201115200124261007', '0', winDom)
}, 2000);
+
+ loadVideoTree();
});
diff --git a/js/pages/video/videoAjax.js b/js/pages/video/videoAjax.js
new file mode 100644
index 0000000..5aae72b
--- /dev/null
+++ b/js/pages/video/videoAjax.js
@@ -0,0 +1,21 @@
+/* 球机树 */
+function loadVideoTree() {
+ const bidCode = parent.$('#bidPro').val();
+ const paramData = 'bidCode=' + bidCode + '&roleCode=' + roleCode + '&orgId=' + orgId + '&userId=' + userId;
+ let montageParam = aqEnnable ? encryptCBC(paramData) : ' &' + encryptCBC(paramData);
+ const url = commonUrl + 'screen/largeScreen/video/getVideoTree?params=' + montageParam;
+ ajaxRequestGet(url, "GET", true, function () {
+ }, function (result) {
+ console.log(result);
+ if (result.code === 200) {
+ // setData(result.data);
+ } else if (result.code === 500) {
+ console.error('视频树' + result.msg);
+ } else if (result.code === 401) {
+ loginout(1);
+ }
+ }, function (xhr, status, error) {
+ error(xhr, status, error)
+ }, aqEnnable);
+
+}
\ No newline at end of file
diff --git a/pages/video/video.html b/pages/video/video.html
index d6d3520..ec7f8a0 100644
--- a/pages/video/video.html
+++ b/pages/video/video.html
@@ -171,6 +171,7 @@
+