Browse Source

Merge remote-tracking branch 'origin/master'

main
kami 1 year ago
parent
commit
9771b49d84
  1. 562
      src/views/datav/Jwpy.vue

562
src/views/datav/Jwpy.vue

@ -562,28 +562,20 @@ function getData() {
// //
GetGLFW().then((res) => { GetGLFW().then((res) => {
console.log("GetGLFW ==== " + res) dcmyd.value=res
dcmyd.value = res.lstson
console.log("dcmyd.value ==== " + dcmyd.value)
option1.value.xAxis.data = dcmyd.value[0].lstson.map(item => item.SonPeriodName); option1.value.xAxis.data = dcmyd.value[0].lstson.map(item => item.SonPeriodName);
option1.value.series[0].data = dcmyd.value[0].lstson.map(item => item.FinalRP); option1.value.series[0].data = dcmyd.value[0].lstson.map(item => item.FinalRP);
}); });
// //
GetZRSJXF().then((res) => { GetZRSJXF().then((res) => {
console.log("GetZRSJXF ==== " + res) tableData.value = res.lstShen
let tempTable = res.lstShen
console.log("tempTable ==== " + tempTable)
tempTable = tempTable.filter(item => item.Name !== null)
tableData.value = tempTable;
}); });
// //
GetZHMYLPM().then((res) => { GetZHMYLPM().then((res) => {
console.log("GetZHMYLPM ==== " + res) tableData1.value = res[0].lstCity
tableData1.value = res.lstCity let temp = res[0].lstSheng;
let temp = res.lstSheng;
console.log("temp ==== " + temp)
const group2 = temp.filter(item => item.SetName === "(省)县市考评"); const group2 = temp.filter(item => item.SetName === "(省)县市考评");
const group3 = temp.filter(item => item.SetName === "(省)区"); const group3 = temp.filter(item => item.SetName === "(省)区");
tableData2.value = group2 tableData2.value = group2
@ -593,7 +585,7 @@ function getData() {
// //
GetBMYYBQS().then((res) => { GetBMYYBQS().then((res) => {
console.log("GetBMYYBQS ==== " + res) console.log("GetBMYYBQS ==== " + res)
bmyybqs.value = res bmyybqs.value = res;
option2.value.xAxis.data = bmyybqs.value.map(item => item.SonPeriodName); option2.value.xAxis.data = bmyybqs.value.map(item => item.SonPeriodName);
option2.value.series[0].data = bmyybqs.value.map(item => item.QACount); option2.value.series[0].data = bmyybqs.value.map(item => item.QACount);
@ -601,7 +593,8 @@ function getData() {
// //
GetDXFX().then((res) => { GetDXFX().then((res) => {
dxfx.value = res.lstson console.log("GetDXFX ==== " + res)
dxfx.value = res;
option3.value.xAxis.data = dxfx.value[0].lstson.map(item => item.MasterName); option3.value.xAxis.data = dxfx.value[0].lstson.map(item => item.MasterName);
option3.value.series[0].data = dxfx.value[0].lstson.map(item => item.FinalRP); option3.value.series[0].data = dxfx.value[0].lstson.map(item => item.FinalRP);
option3.value.series[1].data = dxfx.value[1].lstson.map(item => item.FinalRP); option3.value.series[1].data = dxfx.value[1].lstson.map(item => item.FinalRP);
@ -609,9 +602,9 @@ function getData() {
}); });
GetRCSQQK().then((res) => { GetRCSQQK().then((res) => {
let text = res.lstShen let text = res
text = text.filter(item => item.Name !== null) text = text.filter(item => item.Name !== null)
tableData4.value= text tableData4.value = text
}); });
// GetZRSJXF().then((res) => { }); // GetZRSJXF().then((res) => { });
@ -634,279 +627,278 @@ setTimeout(() => {
}] }]
// //
dcmyd.value = dcmyd.value = [
[ {
Bak: "满意度",
FinalRP: 95.3,
lstson: [
{
"State3": 43486,
"FinalRP": 94.37,
"PeriodSonID": "37",
"SonSerialNo": 1,
"SonPeriodName": "1月"
},
{
"State3": 28974,
"FinalRP": 94.12,
"PeriodSonID": "38",
"SonSerialNo": 2,
"SonPeriodName": "2月"
},
{
"State3": 36326,
"FinalRP": 94.68,
"PeriodSonID": "39",
"SonSerialNo": 3,
"SonPeriodName": "3月"
},
{
"State3": 47753,
"FinalRP": 96.11,
"PeriodSonID": "40",
"SonSerialNo": 4,
"SonPeriodName": "4月"
},
{
"State3": 55153,
"FinalRP": 95.89,
"PeriodSonID": "41",
"SonSerialNo": 5,
"SonPeriodName": "5月"
},
{
"State3": 50433,
"FinalRP": 95.29,
"PeriodSonID": "42",
"SonSerialNo": 6,
"SonPeriodName": "6月"
},
{
"State3": 63952,
"FinalRP": 95.77,
"PeriodSonID": "43",
"SonSerialNo": 7,
"SonPeriodName": "7月"
},
{
"State3": 53520,
"FinalRP": 94.94,
"PeriodSonID": "44",
"SonSerialNo": 8,
"SonPeriodName": "8月"
},
{
"State3": 48500,
"FinalRP": 95.81,
"PeriodSonID": "45",
"SonSerialNo": 9,
"SonPeriodName": "9月"
},
{
"State3": 45397,
"FinalRP": 95.64,
"PeriodSonID": "46",
"SonSerialNo": 10,
"SonPeriodName": "10月"
},
{
"State3": 17486,
"FinalRP": 95.77,
"PeriodSonID": "47",
"SonSerialNo": 11,
"SonPeriodName": "11月"
},
{
"State3": 0,
"FinalRP": 0,
"PeriodSonID": "48",
"SonSerialNo": 12,
"SonPeriodName": "12月"
}
]
},
{
"Bak": "去年同期",
"FinalRP": 97.23,
"lstson": [
{
"State3": 43486,
"FinalRP": 96.46,
"PeriodSonID": "37",
"SonSerialNo": 1,
"SonPeriodName": "1月"
},
{
"State3": 28974,
"FinalRP": 97.27,
"PeriodSonID": "38",
"SonSerialNo": 2,
"SonPeriodName": "2月"
},
{
"State3": 36326,
"FinalRP": 97.15,
"PeriodSonID": "39",
"SonSerialNo": 3,
"SonPeriodName": "3月"
},
{
"State3": 47753,
"FinalRP": 97.26,
"PeriodSonID": "40",
"SonSerialNo": 4,
"SonPeriodName": "4月"
},
{
"State3": 55153,
"FinalRP": 97.18,
"PeriodSonID": "41",
"SonSerialNo": 5,
"SonPeriodName": "5月"
},
{ {
Bak: "满意度", "State3": 50433,
FinalRP: 95.3, "FinalRP": 97.4,
lstson: [ "PeriodSonID": "42",
{ "SonSerialNo": 6,
"State3": 43486, "SonPeriodName": "6月"
"FinalRP": 94.37,
"PeriodSonID": "37",
"SonSerialNo": 1,
"SonPeriodName": "1月"
},
{
"State3": 28974,
"FinalRP": 94.12,
"PeriodSonID": "38",
"SonSerialNo": 2,
"SonPeriodName": "2月"
},
{
"State3": 36326,
"FinalRP": 94.68,
"PeriodSonID": "39",
"SonSerialNo": 3,
"SonPeriodName": "3月"
},
{
"State3": 47753,
"FinalRP": 96.11,
"PeriodSonID": "40",
"SonSerialNo": 4,
"SonPeriodName": "4月"
},
{
"State3": 55153,
"FinalRP": 95.89,
"PeriodSonID": "41",
"SonSerialNo": 5,
"SonPeriodName": "5月"
},
{
"State3": 50433,
"FinalRP": 95.29,
"PeriodSonID": "42",
"SonSerialNo": 6,
"SonPeriodName": "6月"
},
{
"State3": 63952,
"FinalRP": 95.77,
"PeriodSonID": "43",
"SonSerialNo": 7,
"SonPeriodName": "7月"
},
{
"State3": 53520,
"FinalRP": 94.94,
"PeriodSonID": "44",
"SonSerialNo": 8,
"SonPeriodName": "8月"
},
{
"State3": 48500,
"FinalRP": 95.81,
"PeriodSonID": "45",
"SonSerialNo": 9,
"SonPeriodName": "9月"
},
{
"State3": 45397,
"FinalRP": 95.64,
"PeriodSonID": "46",
"SonSerialNo": 10,
"SonPeriodName": "10月"
},
{
"State3": 17486,
"FinalRP": 95.77,
"PeriodSonID": "47",
"SonSerialNo": 11,
"SonPeriodName": "11月"
},
{
"State3": 0,
"FinalRP": 0,
"PeriodSonID": "48",
"SonSerialNo": 12,
"SonPeriodName": "12月"
}
]
}, },
{ {
"Bak": "去年同期", "State3": 63952,
"FinalRP": 97.23, "FinalRP": 97.07,
"lstson": [ "PeriodSonID": "43",
{ "SonSerialNo": 7,
"State3": 43486, "SonPeriodName": "7月"
"FinalRP": 96.46,
"PeriodSonID": "37",
"SonSerialNo": 1,
"SonPeriodName": "1月"
},
{
"State3": 28974,
"FinalRP": 97.27,
"PeriodSonID": "38",
"SonSerialNo": 2,
"SonPeriodName": "2月"
},
{
"State3": 36326,
"FinalRP": 97.15,
"PeriodSonID": "39",
"SonSerialNo": 3,
"SonPeriodName": "3月"
},
{
"State3": 47753,
"FinalRP": 97.26,
"PeriodSonID": "40",
"SonSerialNo": 4,
"SonPeriodName": "4月"
},
{
"State3": 55153,
"FinalRP": 97.18,
"PeriodSonID": "41",
"SonSerialNo": 5,
"SonPeriodName": "5月"
},
{
"State3": 50433,
"FinalRP": 97.4,
"PeriodSonID": "42",
"SonSerialNo": 6,
"SonPeriodName": "6月"
},
{
"State3": 63952,
"FinalRP": 97.07,
"PeriodSonID": "43",
"SonSerialNo": 7,
"SonPeriodName": "7月"
},
{
"State3": 53520,
"FinalRP": 97.19,
"PeriodSonID": "44",
"SonSerialNo": 8,
"SonPeriodName": "8月"
},
{
"State3": 48500,
"FinalRP": 97.36,
"PeriodSonID": "45",
"SonSerialNo": 9,
"SonPeriodName": "9月"
},
{
"State3": 45397,
"FinalRP": 97.2,
"PeriodSonID": "46",
"SonSerialNo": 10,
"SonPeriodName": "10月"
},
{
"State3": 17486,
"FinalRP": 97.49,
"PeriodSonID": "47",
"SonSerialNo": 11,
"SonPeriodName": "11月"
},
{
"State3": 0,
"FinalRP": 97.83,
"PeriodSonID": "48",
"SonSerialNo": 12,
"SonPeriodName": "12月"
}
]
}, },
{ {
Bak: "上一期", "State3": 53520,
FinalRP: 0, "FinalRP": 97.19,
lstson: [ "PeriodSonID": "44",
{ "SonSerialNo": 8,
"State3": 43486, "SonPeriodName": "8月"
"FinalRP": 0, },
"PeriodSonID": "37", {
"SonSerialNo": 1, "State3": 48500,
"SonPeriodName": "1月" "FinalRP": 97.36,
}, "PeriodSonID": "45",
{ "SonSerialNo": 9,
"State3": 28974, "SonPeriodName": "9月"
"FinalRP": 94.37, },
"PeriodSonID": "38", {
"SonSerialNo": 2, "State3": 45397,
"SonPeriodName": "2月" "FinalRP": 97.2,
}, "PeriodSonID": "46",
{ "SonSerialNo": 10,
"State3": 36326, "SonPeriodName": "10月"
"FinalRP": 94.12, },
"PeriodSonID": "39", {
"SonSerialNo": 3, "State3": 17486,
"SonPeriodName": "3月" "FinalRP": 97.49,
}, "PeriodSonID": "47",
{ "SonSerialNo": 11,
"State3": 47753, "SonPeriodName": "11月"
"FinalRP": 94.68, },
"PeriodSonID": "40", {
"SonSerialNo": 4, "State3": 0,
"SonPeriodName": "4月" "FinalRP": 97.83,
}, "PeriodSonID": "48",
{ "SonSerialNo": 12,
"State3": 55153, "SonPeriodName": "12月"
"FinalRP": 96.11, }
"PeriodSonID": "41", ]
"SonSerialNo": 5, },
"SonPeriodName": "5月" {
}, Bak: "上一期",
{ FinalRP: 0,
"State3": 50433, lstson: [
"FinalRP": 95.89, {
"PeriodSonID": "42", "State3": 43486,
"SonSerialNo": 6, "FinalRP": 0,
"SonPeriodName": "6月" "PeriodSonID": "37",
}, "SonSerialNo": 1,
{ "SonPeriodName": "1月"
"State3": 63952, },
"FinalRP": 95.29, {
"PeriodSonID": "43", "State3": 28974,
"SonSerialNo": 7, "FinalRP": 94.37,
"SonPeriodName": "7月" "PeriodSonID": "38",
}, "SonSerialNo": 2,
{ "SonPeriodName": "2月"
"State3": 53520, },
"FinalRP": 95.77, {
"PeriodSonID": "44", "State3": 36326,
"SonSerialNo": 8, "FinalRP": 94.12,
"SonPeriodName": "8月" "PeriodSonID": "39",
}, "SonSerialNo": 3,
{ "SonPeriodName": "3月"
"State3": 48500, },
"FinalRP": 94.94, {
"PeriodSonID": "45", "State3": 47753,
"SonSerialNo": 9, "FinalRP": 94.68,
"SonPeriodName": "9月" "PeriodSonID": "40",
}, "SonSerialNo": 4,
{ "SonPeriodName": "4月"
"State3": 45397, },
"FinalRP": 95.81, {
"PeriodSonID": "46", "State3": 55153,
"SonSerialNo": 10, "FinalRP": 96.11,
"SonPeriodName": "10月" "PeriodSonID": "41",
}, "SonSerialNo": 5,
{ "SonPeriodName": "5月"
"State3": 17486, },
"FinalRP": 95.64, {
"PeriodSonID": "47", "State3": 50433,
"SonSerialNo": 11, "FinalRP": 95.89,
"SonPeriodName": "11月" "PeriodSonID": "42",
}, "SonSerialNo": 6,
{ "SonPeriodName": "6月"
"State3": 0, },
"FinalRP": 95.77, {
"PeriodSonID": "48", "State3": 63952,
"SonSerialNo": 12, "FinalRP": 95.29,
"SonPeriodName": "12月" "PeriodSonID": "43",
} "SonSerialNo": 7,
] "SonPeriodName": "7月"
},
{
"State3": 53520,
"FinalRP": 95.77,
"PeriodSonID": "44",
"SonSerialNo": 8,
"SonPeriodName": "8月"
},
{
"State3": 48500,
"FinalRP": 94.94,
"PeriodSonID": "45",
"SonSerialNo": 9,
"SonPeriodName": "9月"
},
{
"State3": 45397,
"FinalRP": 95.81,
"PeriodSonID": "46",
"SonSerialNo": 10,
"SonPeriodName": "10月"
},
{
"State3": 17486,
"FinalRP": 95.64,
"PeriodSonID": "47",
"SonSerialNo": 11,
"SonPeriodName": "11月"
},
{
"State3": 0,
"FinalRP": 95.77,
"PeriodSonID": "48",
"SonSerialNo": 12,
"SonPeriodName": "12月"
} }
] ]
}
]
option1.value.xAxis.data = dcmyd.value[0].lstson.map(item => item.SonPeriodName); option1.value.xAxis.data = dcmyd.value[0].lstson.map(item => item.SonPeriodName);
option1.value.series[0].data = dcmyd.value[0].lstson.map(item => item.FinalRP); option1.value.series[0].data = dcmyd.value[0].lstson.map(item => item.FinalRP);
@ -1151,7 +1143,7 @@ setTimeout(() => {
option3.value.series[0].data = dxfx.value[0].lstson.map(item => item.FinalRP); option3.value.series[0].data = dxfx.value[0].lstson.map(item => item.FinalRP);
option3.value.series[1].data = dxfx.value[1].lstson.map(item => item.FinalRP); option3.value.series[1].data = dxfx.value[1].lstson.map(item => item.FinalRP);
option3.value.series[2].data = dxfx.value[2].lstson.map(item => item.FinalRP); option3.value.series[2].data = dxfx.value[2].lstson.map(item => item.FinalRP);
// //
let tempTable = [ let tempTable = [
{ {
"MasterID": "37", "MasterID": "37",
@ -1341,6 +1333,7 @@ setTimeout(() => {
tempTable = tempTable.filter(item => item.Name !== null) tempTable = tempTable.filter(item => item.Name !== null)
tableData.value = tempTable tableData.value = tempTable
//
let temp = [ let temp = [
{ {
"OrganizeID": null, "OrganizeID": null,
@ -1496,7 +1489,7 @@ setTimeout(() => {
"MydRanking": "1", "MydRanking": "1",
"State3": 490980 "State3": 490980
} }
] ] //
tableData2.value = group2 tableData2.value = group2
tableData3.value = group3 tableData3.value = group3
@ -1607,7 +1600,6 @@ setTimeout(() => {
} }
] ]
text = text.filter(item => item.Name !== null) text = text.filter(item => item.Name !== null)
tableData4.value = text tableData4.value = text
}, 2000) }, 2000)

Loading…
Cancel
Save