Merge branch 'master' into xinbo
This commit is contained in:
@ -85,3 +85,19 @@ export function getAssessmentStatistics(childid, scope) {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询领域目标
|
||||
export function getAssessmentStatisticsmb(childid, scope, type) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent/getassessmentstatisticsmb/' + childid + '/' + scope + '/' + type,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询评估统计
|
||||
export function getAssessmentStatisticsbymb(childid, scope, type) {
|
||||
return request({
|
||||
url: '/benyi/assessmentcontent/getassessmentstatisticsbymb/' + childid + '/' + scope + '/' + type,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ const service = axios.create({
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_BASE_API,
|
||||
// 超时
|
||||
timeout: 10000
|
||||
timeout: 1000000
|
||||
})
|
||||
// request拦截器
|
||||
service.interceptors.request.use(
|
||||
|
@ -31,7 +31,7 @@
|
||||
<radar-chart_ys :psMsg="item.dictValue" />
|
||||
</div>
|
||||
<div class="block">
|
||||
<h2 class="block-item-title flex align-center">评估建议</h2>
|
||||
<h2 class="block-item-title flex align-center">教育建议</h2>
|
||||
<!-- <ul class="block-content">
|
||||
<li>
|
||||
<p class="block-content-title">
|
||||
@ -108,8 +108,6 @@ export default {
|
||||
assessmentscope: "",
|
||||
// tabs列表
|
||||
tabsList: [],
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
activeName: "",
|
||||
};
|
||||
},
|
||||
|
@ -45,7 +45,7 @@
|
||||
:label="itemLy.name"
|
||||
:name="itemLy.name"
|
||||
>
|
||||
<div
|
||||
<div v-loading="loading"
|
||||
class="block"
|
||||
v-for="itemFzly in assessmentcontentList.filter(
|
||||
(p) => p.parentId == itemLy.id
|
||||
|
@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div :class="className" :style="{ height: height, width: width }" />
|
||||
<div
|
||||
v-loading="loading"
|
||||
:class="className"
|
||||
:style="{ height: height, width: width }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -35,6 +39,8 @@ export default {
|
||||
return {
|
||||
chart: null,
|
||||
childId: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@ -75,11 +81,22 @@ export default {
|
||||
);
|
||||
},
|
||||
async initChart() {
|
||||
this.loading = true;
|
||||
await this.getData();
|
||||
this.loading = false;
|
||||
this.chart = echarts.init(this.$el, "macarons");
|
||||
|
||||
if (this.psMsg == "3") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿学习与发展评估结果综合统计",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -89,7 +106,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "52%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -143,6 +160,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "2") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿学习与发展评估结果综合统计",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -152,7 +178,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "52%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -206,6 +232,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "1") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿学习与发展评估结果综合统计",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -215,7 +250,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "52%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
|
@ -1,17 +1,26 @@
|
||||
<template>
|
||||
<div :class="className" :style="{ height: height, width: width }" />
|
||||
<div
|
||||
v-loading="loading"
|
||||
:class="className"
|
||||
:style="{ height: height, width: width }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import echarts from "echarts";
|
||||
require("echarts/theme/macarons"); // echarts theme
|
||||
import resize from "./mixins/resize";
|
||||
import { getAssessmentStatistics } from "@/api/benyi/assessmentcontent";
|
||||
import {
|
||||
getAssessmentStatisticsmb,
|
||||
getAssessmentStatisticsbymb,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
const animationDuration = 3000;
|
||||
|
||||
export default {
|
||||
mbvalues: [],
|
||||
values: [],
|
||||
names: [],
|
||||
mixins: [resize],
|
||||
props: {
|
||||
className: {
|
||||
@ -35,6 +44,8 @@ export default {
|
||||
return {
|
||||
chart: null,
|
||||
childId: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@ -42,9 +53,9 @@ export default {
|
||||
this.childId = childId;
|
||||
// console.log("child-chart:" + childId);
|
||||
// console.log("psMsg:" + this.psMsg);
|
||||
// this.$nextTick(() => {
|
||||
// this.initChart();
|
||||
// });
|
||||
this.$nextTick(() => {
|
||||
this.initChart();
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (!this.chart) {
|
||||
@ -55,13 +66,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
await getAssessmentStatistics(this.childId, this.psMsg).then(
|
||||
await getAssessmentStatisticsbymb(this.childId, this.psMsg, 0).then(
|
||||
(response) => {
|
||||
console.log(response);
|
||||
let value = [];
|
||||
let len = response.statistics;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
console.log(len[j]);
|
||||
// console.log(len[j]);
|
||||
if (len[j] == "NaN") {
|
||||
value.push(0);
|
||||
} else {
|
||||
@ -74,12 +84,49 @@ export default {
|
||||
}
|
||||
);
|
||||
},
|
||||
async getNameData() {
|
||||
await getAssessmentStatisticsmb(this.childId, this.psMsg, 0).then(
|
||||
(response) => {
|
||||
let value = [];
|
||||
let mbvalues = [];
|
||||
let len = response.mb;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
// console.log(len[j]);
|
||||
if (this.psMsg == "1") {
|
||||
len[j].max = 48;
|
||||
} else if (this.psMsg == "2") {
|
||||
len[j].max = 60;
|
||||
} else if (this.psMsg == "3") {
|
||||
len[j].max = 72;
|
||||
}
|
||||
mbvalues.push(len[j].max);
|
||||
value.push(len[j]);
|
||||
}
|
||||
this.mbvalues = mbvalues;
|
||||
this.names = value;
|
||||
//console.log(this.names);
|
||||
//console.log(this.values);
|
||||
}
|
||||
);
|
||||
},
|
||||
async initChart() {
|
||||
this.loading = true;
|
||||
await this.getData();
|
||||
await this.getNameData();
|
||||
this.loading = false;
|
||||
this.chart = echarts.init(this.$el, "macarons");
|
||||
|
||||
if (this.psMsg == "3") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-健康",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -89,7 +136,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -101,13 +148,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -129,7 +170,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [72, 72, 72, 72, 72],
|
||||
value: this.mbvalues,
|
||||
name: "60-72个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -143,6 +184,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "2") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-健康",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -152,7 +202,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -164,13 +214,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -192,7 +236,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [60, 60, 60, 60, 60],
|
||||
value: this.mbvalues,
|
||||
name: "48-60个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -206,6 +250,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "1") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-健康",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -215,7 +268,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -227,13 +280,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -255,7 +302,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [48, 48, 48, 48, 48],
|
||||
value: this.mbvalues,
|
||||
name: "36-48个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
|
@ -1,17 +1,26 @@
|
||||
<template>
|
||||
<div :class="className" :style="{ height: height, width: width }" />
|
||||
<div
|
||||
v-loading="loading"
|
||||
:class="className"
|
||||
:style="{ height: height, width: width }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import echarts from "echarts";
|
||||
require("echarts/theme/macarons"); // echarts theme
|
||||
import resize from "./mixins/resize";
|
||||
import { getAssessmentStatistics } from "@/api/benyi/assessmentcontent";
|
||||
import {
|
||||
getAssessmentStatisticsmb,
|
||||
getAssessmentStatisticsbymb,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
const animationDuration = 3000;
|
||||
|
||||
export default {
|
||||
mbvalues: [],
|
||||
values: [],
|
||||
names: [],
|
||||
mixins: [resize],
|
||||
props: {
|
||||
className: {
|
||||
@ -35,6 +44,8 @@ export default {
|
||||
return {
|
||||
chart: null,
|
||||
childId: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@ -42,9 +53,9 @@ export default {
|
||||
this.childId = childId;
|
||||
// console.log("child-chart:" + childId);
|
||||
// console.log("psMsg:" + this.psMsg);
|
||||
// this.$nextTick(() => {
|
||||
// this.initChart();
|
||||
// });
|
||||
this.$nextTick(() => {
|
||||
this.initChart();
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (!this.chart) {
|
||||
@ -55,13 +66,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
await getAssessmentStatistics(this.childId, this.psMsg).then(
|
||||
await getAssessmentStatisticsbymb(this.childId, this.psMsg, 3).then(
|
||||
(response) => {
|
||||
console.log(response);
|
||||
let value = [];
|
||||
let len = response.statistics;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
console.log(len[j]);
|
||||
// console.log(len[j]);
|
||||
if (len[j] == "NaN") {
|
||||
value.push(0);
|
||||
} else {
|
||||
@ -74,12 +84,49 @@ export default {
|
||||
}
|
||||
);
|
||||
},
|
||||
async getNameData() {
|
||||
await getAssessmentStatisticsmb(this.childId, this.psMsg, 3).then(
|
||||
(response) => {
|
||||
let value = [];
|
||||
let mbvalues = [];
|
||||
let len = response.mb;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
// console.log(len[j]);
|
||||
if (this.psMsg == "1") {
|
||||
len[j].max = 48;
|
||||
} else if (this.psMsg == "2") {
|
||||
len[j].max = 60;
|
||||
} else if (this.psMsg == "3") {
|
||||
len[j].max = 72;
|
||||
}
|
||||
mbvalues.push(len[j].max);
|
||||
value.push(len[j]);
|
||||
}
|
||||
this.mbvalues = mbvalues;
|
||||
this.names = value;
|
||||
//console.log(this.names);
|
||||
//console.log(this.values);
|
||||
}
|
||||
);
|
||||
},
|
||||
async initChart() {
|
||||
this.loading = true;
|
||||
await this.getData();
|
||||
await this.getNameData();
|
||||
this.loading = false;
|
||||
this.chart = echarts.init(this.$el, "macarons");
|
||||
|
||||
if (this.psMsg == "3") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-科学",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -89,7 +136,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -101,13 +148,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -129,7 +170,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [72, 72, 72, 72, 72],
|
||||
value: this.mbvalues,
|
||||
name: "60-72个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -143,6 +184,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "2") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-科学",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -152,7 +202,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -164,13 +214,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -192,7 +236,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [60, 60, 60, 60, 60],
|
||||
value: this.mbvalues,
|
||||
name: "48-60个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -206,6 +250,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "1") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-科学",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -215,7 +268,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -227,13 +280,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -255,7 +302,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [48, 48, 48, 48, 48],
|
||||
value: this.mbvalues,
|
||||
name: "36-48个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
|
@ -1,17 +1,26 @@
|
||||
<template>
|
||||
<div :class="className" :style="{ height: height, width: width }" />
|
||||
<div
|
||||
v-loading="loading"
|
||||
:class="className"
|
||||
:style="{ height: height, width: width }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import echarts from "echarts";
|
||||
require("echarts/theme/macarons"); // echarts theme
|
||||
import resize from "./mixins/resize";
|
||||
import { getAssessmentStatistics } from "@/api/benyi/assessmentcontent";
|
||||
import {
|
||||
getAssessmentStatisticsmb,
|
||||
getAssessmentStatisticsbymb,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
const animationDuration = 3000;
|
||||
|
||||
export default {
|
||||
mbvalues: [],
|
||||
values: [],
|
||||
names: [],
|
||||
mixins: [resize],
|
||||
props: {
|
||||
className: {
|
||||
@ -35,6 +44,8 @@ export default {
|
||||
return {
|
||||
chart: null,
|
||||
childId: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@ -42,9 +53,9 @@ export default {
|
||||
this.childId = childId;
|
||||
// console.log("child-chart:" + childId);
|
||||
// console.log("psMsg:" + this.psMsg);
|
||||
// this.$nextTick(() => {
|
||||
// this.initChart();
|
||||
// });
|
||||
this.$nextTick(() => {
|
||||
this.initChart();
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (!this.chart) {
|
||||
@ -55,13 +66,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
await getAssessmentStatistics(this.childId, this.psMsg).then(
|
||||
await getAssessmentStatisticsbymb(this.childId, this.psMsg, 2).then(
|
||||
(response) => {
|
||||
console.log(response);
|
||||
let value = [];
|
||||
let len = response.statistics;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
console.log(len[j]);
|
||||
// console.log(len[j]);
|
||||
if (len[j] == "NaN") {
|
||||
value.push(0);
|
||||
} else {
|
||||
@ -74,12 +84,49 @@ export default {
|
||||
}
|
||||
);
|
||||
},
|
||||
async getNameData() {
|
||||
await getAssessmentStatisticsmb(this.childId, this.psMsg, 2).then(
|
||||
(response) => {
|
||||
let value = [];
|
||||
let mbvalues = [];
|
||||
let len = response.mb;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
// console.log(len[j]);
|
||||
if (this.psMsg == "1") {
|
||||
len[j].max = 48;
|
||||
} else if (this.psMsg == "2") {
|
||||
len[j].max = 60;
|
||||
} else if (this.psMsg == "3") {
|
||||
len[j].max = 72;
|
||||
}
|
||||
mbvalues.push(len[j].max);
|
||||
value.push(len[j]);
|
||||
}
|
||||
this.mbvalues = mbvalues;
|
||||
this.names = value;
|
||||
//console.log(this.names);
|
||||
//console.log(this.values);
|
||||
}
|
||||
);
|
||||
},
|
||||
async initChart() {
|
||||
this.loading = true;
|
||||
await this.getData();
|
||||
await this.getNameData();
|
||||
this.loading = false;
|
||||
this.chart = echarts.init(this.$el, "macarons");
|
||||
|
||||
if (this.psMsg == "3") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-社会",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -89,7 +136,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -101,13 +148,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -129,7 +170,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [72, 72, 72, 72, 72],
|
||||
value: this.mbvalues,
|
||||
name: "60-72个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -143,6 +184,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "2") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-社会",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -152,7 +202,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -164,13 +214,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -192,7 +236,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [60, 60, 60, 60, 60],
|
||||
value: this.mbvalues,
|
||||
name: "48-60个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -206,6 +250,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "1") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-社会",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -215,7 +268,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -227,13 +280,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -255,7 +302,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [48, 48, 48, 48, 48],
|
||||
value: this.mbvalues,
|
||||
name: "36-48个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
|
@ -1,17 +1,26 @@
|
||||
<template>
|
||||
<div :class="className" :style="{ height: height, width: width }" />
|
||||
<div
|
||||
v-loading="loading"
|
||||
:class="className"
|
||||
:style="{ height: height, width: width }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import echarts from "echarts";
|
||||
require("echarts/theme/macarons"); // echarts theme
|
||||
import resize from "./mixins/resize";
|
||||
import { getAssessmentStatistics } from "@/api/benyi/assessmentcontent";
|
||||
import {
|
||||
getAssessmentStatisticsmb,
|
||||
getAssessmentStatisticsbymb,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
const animationDuration = 3000;
|
||||
|
||||
export default {
|
||||
mbvalues: [],
|
||||
values: [],
|
||||
names: [],
|
||||
mixins: [resize],
|
||||
props: {
|
||||
className: {
|
||||
@ -35,6 +44,8 @@ export default {
|
||||
return {
|
||||
chart: null,
|
||||
childId: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@ -42,9 +53,9 @@ export default {
|
||||
this.childId = childId;
|
||||
// console.log("child-chart:" + childId);
|
||||
// console.log("psMsg:" + this.psMsg);
|
||||
// this.$nextTick(() => {
|
||||
// this.initChart();
|
||||
// });
|
||||
this.$nextTick(() => {
|
||||
this.initChart();
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (!this.chart) {
|
||||
@ -55,13 +66,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
await getAssessmentStatistics(this.childId, this.psMsg).then(
|
||||
await getAssessmentStatisticsbymb(this.childId, this.psMsg, 4).then(
|
||||
(response) => {
|
||||
console.log(response);
|
||||
let value = [];
|
||||
let len = response.statistics;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
console.log(len[j]);
|
||||
// console.log(len[j]);
|
||||
if (len[j] == "NaN") {
|
||||
value.push(0);
|
||||
} else {
|
||||
@ -74,12 +84,49 @@ export default {
|
||||
}
|
||||
);
|
||||
},
|
||||
async getNameData() {
|
||||
await getAssessmentStatisticsmb(this.childId, this.psMsg, 4).then(
|
||||
(response) => {
|
||||
let value = [];
|
||||
let mbvalues = [];
|
||||
let len = response.mb;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
// console.log(len[j]);
|
||||
if (this.psMsg == "1") {
|
||||
len[j].max = 48;
|
||||
} else if (this.psMsg == "2") {
|
||||
len[j].max = 60;
|
||||
} else if (this.psMsg == "3") {
|
||||
len[j].max = 72;
|
||||
}
|
||||
mbvalues.push(len[j].max);
|
||||
value.push(len[j]);
|
||||
}
|
||||
this.mbvalues = mbvalues;
|
||||
this.names = value;
|
||||
//console.log(this.names);
|
||||
//console.log(this.values);
|
||||
}
|
||||
);
|
||||
},
|
||||
async initChart() {
|
||||
this.loading = true;
|
||||
await this.getData();
|
||||
await this.getNameData();
|
||||
this.loading = false;
|
||||
this.chart = echarts.init(this.$el, "macarons");
|
||||
|
||||
if (this.psMsg == "3") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-艺术",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -89,7 +136,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -101,13 +148,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -129,7 +170,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [72, 72, 72, 72, 72],
|
||||
value: this.mbvalues,
|
||||
name: "60-72个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -143,6 +184,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "2") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-艺术",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -152,7 +202,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -164,13 +214,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -192,7 +236,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [60, 60, 60, 60, 60],
|
||||
value: this.mbvalues,
|
||||
name: "48-60个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -206,6 +250,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "1") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-艺术",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -215,7 +268,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -227,13 +280,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -255,7 +302,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [48, 48, 48, 48, 48],
|
||||
value: this.mbvalues,
|
||||
name: "36-48个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
|
@ -1,17 +1,26 @@
|
||||
<template>
|
||||
<div :class="className" :style="{ height: height, width: width }" />
|
||||
<div
|
||||
v-loading="loading"
|
||||
:class="className"
|
||||
:style="{ height: height, width: width }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import echarts from "echarts";
|
||||
require("echarts/theme/macarons"); // echarts theme
|
||||
import resize from "./mixins/resize";
|
||||
import { getAssessmentStatistics } from "@/api/benyi/assessmentcontent";
|
||||
import {
|
||||
getAssessmentStatisticsmb,
|
||||
getAssessmentStatisticsbymb,
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
const animationDuration = 3000;
|
||||
|
||||
export default {
|
||||
mbvalues: [],
|
||||
values: [],
|
||||
names: [],
|
||||
mixins: [resize],
|
||||
props: {
|
||||
className: {
|
||||
@ -35,6 +44,8 @@ export default {
|
||||
return {
|
||||
chart: null,
|
||||
childId: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@ -42,9 +53,9 @@ export default {
|
||||
this.childId = childId;
|
||||
// console.log("child-chart:" + childId);
|
||||
// console.log("psMsg:" + this.psMsg);
|
||||
// this.$nextTick(() => {
|
||||
// this.initChart();
|
||||
// });
|
||||
this.$nextTick(() => {
|
||||
this.initChart();
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (!this.chart) {
|
||||
@ -55,13 +66,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
await getAssessmentStatistics(this.childId, this.psMsg).then(
|
||||
await getAssessmentStatisticsbymb(this.childId, this.psMsg, 1).then(
|
||||
(response) => {
|
||||
console.log(response);
|
||||
let value = [];
|
||||
let len = response.statistics;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
console.log(len[j]);
|
||||
// console.log(len[j]);
|
||||
if (len[j] == "NaN") {
|
||||
value.push(0);
|
||||
} else {
|
||||
@ -74,12 +84,49 @@ export default {
|
||||
}
|
||||
);
|
||||
},
|
||||
async getNameData() {
|
||||
await getAssessmentStatisticsmb(this.childId, this.psMsg, 1).then(
|
||||
(response) => {
|
||||
let value = [];
|
||||
let mbvalues = [];
|
||||
let len = response.mb;
|
||||
for (var j = 0; j < len.length; j++) {
|
||||
// console.log(len[j]);
|
||||
if (this.psMsg == "1") {
|
||||
len[j].max = 48;
|
||||
} else if (this.psMsg == "2") {
|
||||
len[j].max = 60;
|
||||
} else if (this.psMsg == "3") {
|
||||
len[j].max = 72;
|
||||
}
|
||||
mbvalues.push(len[j].max);
|
||||
value.push(len[j]);
|
||||
}
|
||||
this.mbvalues = mbvalues;
|
||||
this.names = value;
|
||||
//console.log(this.names);
|
||||
//console.log(this.values);
|
||||
}
|
||||
);
|
||||
},
|
||||
async initChart() {
|
||||
this.loading = true;
|
||||
await this.getData();
|
||||
await this.getNameData();
|
||||
this.loading = false;
|
||||
this.chart = echarts.init(this.$el, "macarons");
|
||||
|
||||
if (this.psMsg == "3") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-语言",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -89,7 +136,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -101,13 +148,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -129,7 +170,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [72, 72, 72, 72, 72],
|
||||
value: this.mbvalues,
|
||||
name: "60-72个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -143,6 +184,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "2") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-语言",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -152,7 +202,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -164,13 +214,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -192,7 +236,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [60, 60, 60, 60, 60],
|
||||
value: this.mbvalues,
|
||||
name: "48-60个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
@ -206,6 +250,15 @@ export default {
|
||||
});
|
||||
} else if (this.psMsg == "1") {
|
||||
this.chart.setOption({
|
||||
title: {
|
||||
text: "幼儿评估结果-语言",
|
||||
textStyle: {
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
},
|
||||
top: "top",
|
||||
left: "center",
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
@ -215,7 +268,7 @@ export default {
|
||||
},
|
||||
radar: {
|
||||
radius: "66%",
|
||||
center: ["50%", "42%"],
|
||||
center: ["50%", "50%"],
|
||||
splitNumber: 8,
|
||||
splitArea: {
|
||||
areaStyle: {
|
||||
@ -227,13 +280,7 @@ export default {
|
||||
shadowOffsetY: 15,
|
||||
},
|
||||
},
|
||||
indicator: [
|
||||
{ name: "健康", max: 100 },
|
||||
{ name: "语言", max: 100 },
|
||||
{ name: "社会", max: 100 },
|
||||
{ name: "科学", max: 100 },
|
||||
{ name: "艺术", max: 100 },
|
||||
],
|
||||
indicator: this.names,
|
||||
},
|
||||
legend: {
|
||||
left: "center",
|
||||
@ -255,7 +302,7 @@ export default {
|
||||
},
|
||||
data: [
|
||||
{
|
||||
value: [48, 48, 48, 48, 48],
|
||||
value: this.mbvalues,
|
||||
name: "36-48个月幼儿测评范围值",
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user