施工大屏首页

This commit is contained in:
cwchen 2024-04-01 09:56:17 +08:00
parent 4598c4cbbc
commit d40eb96fe0
3 changed files with 22 additions and 6 deletions

View File

@ -179,4 +179,16 @@ body {
height: 28.2%; height: 28.2%;
background: url("../../img/index/pro_cost.png") no-repeat 0 0 / 100% 100%; background: url("../../img/index/pro_cost.png") no-repeat 0 0 / 100% 100%;
background-position: center center !important; 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) */
} }

View File

@ -137,11 +137,11 @@ function loadProCost(montageParam) {
const url = commonUrl + 'screen/largeScreen/xcIndex/getProMoney?params=' + montageParam; const url = commonUrl + 'screen/largeScreen/xcIndex/getProMoney?params=' + montageParam;
ajaxRequestGet(url, "GET", true, function () { ajaxRequestGet(url, "GET", true, function () {
}, function (result) { }, function (result) {
console.log(result);
if (result.code === 200) { if (result.code === 200) {
setData(result.data); setData(result.data);
} else if (result.code === 500) { } else if (result.code === 500) {
console.error('项目成本:' + result.msg); console.error('项目成本:' + result.msg);
setData(null);
} else if (result.code === 401) { } else if (result.code === 401) {
loginout(1); loginout(1);
} }
@ -149,8 +149,12 @@ function loadProCost(montageParam) {
error(xhr, status, error) error(xhr, status, error)
}, aqEnnable); }, aqEnnable);
function setData(data) { function setData(data) {
let nameList = ['黄家村', '曹家村', '吕家村', '大草坝村', '庙坡村', '廉家庄村', '莲花池村', '小西关村', '杜家漕村', '栗子园村', '翟家寺村']; if (data) {
let valueList = ['2', '3', '1', '1', '2', '2', '2', '6', '5', '3', '2']; let nameList = data.time && data.time.length > 0 ? data.time : [];
initEchartsThree(nameList,valueList); let valueList = data.cost && data.cost.length > 0 ? data.cost : [];
initEchartsThree(nameList, valueList,parseFloat(data.proCost.replace('万','')));
}else{
initEchartsThree([], [],0);
}
} }
} }

View File

@ -434,7 +434,7 @@ function initEchartsTwo(value2, value) {
} }
/* 项目成本 */ /* 项目成本 */
function initEchartsThree(nameListData,valueListData) { function initEchartsThree(nameListData,valueListData,proCost) {
let nameList = nameListData; let nameList = nameListData;
let valueList = valueListData; let valueList = valueListData;
let fontSize = '14', fontFamily = 'Alibaba PuHuiTi R', fontColor = '#fff'; let fontSize = '14', fontFamily = 'Alibaba PuHuiTi R', fontColor = '#fff';
@ -553,7 +553,7 @@ function initEchartsThree(nameListData,valueListData) {
data: [{ data: [{
silent: true, silent: true,
name: "阈值", name: "阈值",
yAxis: 5,//res.targetTwo, yAxis: proCost,//res.targetTwo,
lineStyle: { lineStyle: {
color: "#FF8845FF" color: "#FF8845FF"
}, },