数据修改

This commit is contained in:
Wjl
2022-01-11 16:41:48 +08:00
parent 37c93d07d0
commit eeff59e481
10 changed files with 490 additions and 94 deletions

View File

@@ -254,49 +254,7 @@ $.post(url43, function (data) {
})
var mubiao2 = countTotal(d, 'targetValue');
var nb_value2 = countTotal(d, 'currentValue');
$("#leijimub").html(parseFloat(nb_value2).toFixed(2));
$(".dandu").html(parseFloat(nb_value2/mubiao2*100).toFixed(2))
/* 新建绿道长条部分 */
let option02 = {
grid: {
right: 00,
top: 5,
bottom: 5,
left: 00,
},
xAxis: {
show: false,
},
yAxis: {
type: "category",
show: false,
},
series: [
{
name: "2021",
type: "bar",
data: [nb_value2/mubiao2*100],
itemStyle: {
color: "#83BBFF",
borderRadius: 5,
},
barWidth: "10",
zlevel: 2,
},
{
name: "2021",
type: "bar",
data: 100,
itemStyle: {
color: "#E6F1FF",
borderRadius: 5,
},
barWidth: "10",
barGap: "-100%",
},
],
}
myChart02.setOption(option02)
$.post('https://sznbs.ningbo.gov.cn:89/nbszhjkzz/tojcms/targetProgress.do?taskId=' + taskId43 + '&taskSystem=government&quotaCode=' + quotaCode43, function (data3) {
var nb_value = (data3.infoList.filter(function (item) {
return item['areaName'] == '宁波市'
@@ -388,6 +346,91 @@ $.post(url43, function (data) {
})
})
/* 绿道建设修改 */
$.get("http://118.178.224.202:8024/api/new7",function(data){
$("#leijimub").html(data.data[0].total5);
$(".dandu").html(data.data[0].finish)
/* 新建绿道长条部分 */
/* let option02 = {
grid: {
right: 00,
top: 5,
bottom: 5,
left: 00,
},
xAxis: {
show: false,
},
yAxis: {
type: "category",
show: false,
},
series: [
{
name: "2021",
type: "bar",
data: [nb_value2/mubiao2*100],
itemStyle: {
color: "#83BBFF",
borderRadius: 5,
},
barWidth: "10",
zlevel: 2,
},
{
name: "2021",
type: "bar",
data: 100,
itemStyle: {
color: "#E6F1FF",
borderRadius: 5,
},
barWidth: "10",
barGap: "-100%",
},
],
} */
let option02 = {
grid: {
right: 00,
top: 5,
bottom: 5,
left: 00,
},
xAxis: {
type: "value",
// boundaryGap: [0, 0.05],
show: false,
max: 100,
},
yAxis: {
type: "category",
show: false,
},
series: [
{
name: "2021",
type: "bar",
data: [data.data[0].finish],
itemStyle: {
color: "#269BFF",
borderRadius: 20,
},
barWidth: "10",
showBackground: true,
backgroundStyle: {
borderRadius: 100,
// color: "red",
},
},
],
}
myChart02.setOption(option02)
})
/* 城市建设*/
function jianshe() {