评估结果

This commit is contained in:
zhanglipeng 2020-11-25 17:45:42 +08:00
parent 64cca4c5cd
commit 1fa713b284

View File

@ -17,10 +17,7 @@
<radar-chart :psMsg="item.dictValue" /> <radar-chart :psMsg="item.dictValue" />
</div> </div>
<h2 class="result-title">各项评估结果</h2> <h2 class="result-title">各项评估结果</h2>
<el-tabs <el-tabs v-model="childTab" @tab-click="handleTabClick">
v-model="childTab"
@tab-click="handleTabClick"
>
<el-tab-pane label="健康" name="one"> <el-tab-pane label="健康" name="one">
<radar-chart_jk :psMsg="item.dictValue" v-if="childTab === 'one'" /> <radar-chart_jk :psMsg="item.dictValue" v-if="childTab === 'one'" />
<div class="block"> <div class="block">
@ -28,7 +25,7 @@
<div <div
class="block" class="block"
v-for="itemLy in assessmentcontentList.filter( v-for="itemLy in assessmentcontentList.filter(
p => p.parentId == item.dictValue && p.name == '健康' (p) => p.parentId == item.dictValue && p.name == '健康'
)" )"
:key="itemLy.id" :key="itemLy.id"
> >
@ -36,7 +33,7 @@
<div <div
class="block" class="block"
v-for="itemFzly in assessmentcontentList.filter( v-for="itemFzly in assessmentcontentList.filter(
p => p.parentId == itemLy.id (p) => p.parentId == itemLy.id
)" )"
:key="itemFzly.id" :key="itemFzly.id"
> >
@ -46,9 +43,16 @@
<ul class="block-content"> <ul class="block-content">
<li <li
v-for="itemMb in assessmentcontentList.filter( v-for="itemMb in assessmentcontentList.filter(
p => p.parentId == itemFzly.id (p) => p.parentId == itemFzly.id
)" )"
:key="itemMb.id" :key="itemMb.id"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
).length == 0
? false
: true
"
> >
<p class="block-content-title"> <p class="block-content-title">
<span class="num">{{ itemMb.sort }}. </span <span class="num">{{ itemMb.sort }}. </span
@ -56,13 +60,13 @@
</p> </p>
<div <div
class="checkbox-content" class="checkbox-content"
v-for="itemYs in assessmentcontentList.filter( v-for="(itemYs, i) in assessmentcontentList.filter(
p => p.parentId == itemMb.id (p) => p.parentId == itemMb.id
)" )"
:key="itemYs.id" :key="itemYs.id"
> >
<p class="checkbox-item flex align-center"> <p class="checkbox-item flex align-center">
{{ itemYs.jyjy }} 建议{{ i + 1 }}.{{ itemYs.jyjy }}
</p> </p>
</div> </div>
</li> </li>
@ -78,7 +82,7 @@
<div <div
class="block" class="block"
v-for="itemLy in assessmentcontentList.filter( v-for="itemLy in assessmentcontentList.filter(
p => p.parentId == item.dictValue && p.name == '语言' (p) => p.parentId == item.dictValue && p.name == '语言'
)" )"
:key="itemLy.id" :key="itemLy.id"
> >
@ -86,7 +90,7 @@
<div <div
class="block" class="block"
v-for="itemFzly in assessmentcontentList.filter( v-for="itemFzly in assessmentcontentList.filter(
p => p.parentId == itemLy.id (p) => p.parentId == itemLy.id
)" )"
:key="itemFzly.id" :key="itemFzly.id"
> >
@ -96,9 +100,16 @@
<ul class="block-content"> <ul class="block-content">
<li <li
v-for="itemMb in assessmentcontentList.filter( v-for="itemMb in assessmentcontentList.filter(
p => p.parentId == itemFzly.id (p) => p.parentId == itemFzly.id
)" )"
:key="itemMb.id" :key="itemMb.id"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
).length == 0
? false
: true
"
> >
<p class="block-content-title"> <p class="block-content-title">
<span class="num">{{ itemMb.sort }}. </span <span class="num">{{ itemMb.sort }}. </span
@ -106,13 +117,13 @@
</p> </p>
<div <div
class="checkbox-content" class="checkbox-content"
v-for="itemYs in assessmentcontentList.filter( v-for="(itemYs, i) in assessmentcontentList.filter(
p => p.parentId == itemMb.id (p) => p.parentId == itemMb.id
)" )"
:key="itemYs.id" :key="itemYs.id"
> >
<p class="checkbox-item flex align-center"> <p class="checkbox-item flex align-center">
{{ itemYs.jyjy }} 建议{{ i + 1 }}.{{ itemYs.jyjy }}
</p> </p>
</div> </div>
</li> </li>
@ -131,7 +142,7 @@
<div <div
class="block" class="block"
v-for="itemLy in assessmentcontentList.filter( v-for="itemLy in assessmentcontentList.filter(
p => p.parentId == item.dictValue && p.name == '社会' (p) => p.parentId == item.dictValue && p.name == '社会'
)" )"
:key="itemLy.id" :key="itemLy.id"
> >
@ -139,7 +150,7 @@
<div <div
class="block" class="block"
v-for="itemFzly in assessmentcontentList.filter( v-for="itemFzly in assessmentcontentList.filter(
p => p.parentId == itemLy.id (p) => p.parentId == itemLy.id
)" )"
:key="itemFzly.id" :key="itemFzly.id"
> >
@ -149,9 +160,16 @@
<ul class="block-content"> <ul class="block-content">
<li <li
v-for="itemMb in assessmentcontentList.filter( v-for="itemMb in assessmentcontentList.filter(
p => p.parentId == itemFzly.id (p) => p.parentId == itemFzly.id
)" )"
:key="itemMb.id" :key="itemMb.id"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
).length == 0
? false
: true
"
> >
<p class="block-content-title"> <p class="block-content-title">
<span class="num">{{ itemMb.sort }}. </span <span class="num">{{ itemMb.sort }}. </span
@ -159,13 +177,13 @@
</p> </p>
<div <div
class="checkbox-content" class="checkbox-content"
v-for="itemYs in assessmentcontentList.filter( v-for="(itemYs, i) in assessmentcontentList.filter(
p => p.parentId == itemMb.id (p) => p.parentId == itemMb.id
)" )"
:key="itemYs.id" :key="itemYs.id"
> >
<p class="checkbox-item flex align-center"> <p class="checkbox-item flex align-center">
{{ itemYs.jyjy }} 建议{{ i + 1 }}.{{ itemYs.jyjy }}
</p> </p>
</div> </div>
</li> </li>
@ -184,7 +202,7 @@
<div <div
class="block" class="block"
v-for="itemLy in assessmentcontentList.filter( v-for="itemLy in assessmentcontentList.filter(
p => p.parentId == item.dictValue && p.name == '科学' (p) => p.parentId == item.dictValue && p.name == '科学'
)" )"
:key="itemLy.id" :key="itemLy.id"
> >
@ -192,7 +210,7 @@
<div <div
class="block" class="block"
v-for="itemFzly in assessmentcontentList.filter( v-for="itemFzly in assessmentcontentList.filter(
p => p.parentId == itemLy.id (p) => p.parentId == itemLy.id
)" )"
:key="itemFzly.id" :key="itemFzly.id"
> >
@ -202,9 +220,16 @@
<ul class="block-content"> <ul class="block-content">
<li <li
v-for="itemMb in assessmentcontentList.filter( v-for="itemMb in assessmentcontentList.filter(
p => p.parentId == itemFzly.id (p) => p.parentId == itemFzly.id
)" )"
:key="itemMb.id" :key="itemMb.id"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
).length == 0
? false
: true
"
> >
<p class="block-content-title"> <p class="block-content-title">
<span class="num">{{ itemMb.sort }}. </span <span class="num">{{ itemMb.sort }}. </span
@ -212,13 +237,13 @@
</p> </p>
<div <div
class="checkbox-content" class="checkbox-content"
v-for="itemYs in assessmentcontentList.filter( v-for="(itemYs, i) in assessmentcontentList.filter(
p => p.parentId == itemMb.id (p) => p.parentId == itemMb.id
)" )"
:key="itemYs.id" :key="itemYs.id"
> >
<p class="checkbox-item flex align-center"> <p class="checkbox-item flex align-center">
{{ itemYs.jyjy }} 建议{{ i + 1 }}.{{ itemYs.jyjy }}
</p> </p>
</div> </div>
</li> </li>
@ -237,7 +262,7 @@
<div <div
class="block" class="block"
v-for="itemLy in assessmentcontentList.filter( v-for="itemLy in assessmentcontentList.filter(
p => p.parentId == item.dictValue && p.name == '艺术' (p) => p.parentId == item.dictValue && p.name == '艺术'
)" )"
:key="itemLy.id" :key="itemLy.id"
> >
@ -245,7 +270,7 @@
<div <div
class="block" class="block"
v-for="itemFzly in assessmentcontentList.filter( v-for="itemFzly in assessmentcontentList.filter(
p => p.parentId == itemLy.id (p) => p.parentId == itemLy.id
)" )"
:key="itemFzly.id" :key="itemFzly.id"
> >
@ -255,9 +280,16 @@
<ul class="block-content"> <ul class="block-content">
<li <li
v-for="itemMb in assessmentcontentList.filter( v-for="itemMb in assessmentcontentList.filter(
p => p.parentId == itemFzly.id (p) => p.parentId == itemFzly.id
)" )"
:key="itemMb.id" :key="itemMb.id"
v-show="
assessmentcontentList.filter(
(p) => p.parentId == itemMb.id
).length == 0
? false
: true
"
> >
<p class="block-content-title"> <p class="block-content-title">
<span class="num">{{ itemMb.sort }}. </span <span class="num">{{ itemMb.sort }}. </span
@ -265,13 +297,13 @@
</p> </p>
<div <div
class="checkbox-content" class="checkbox-content"
v-for="itemYs in assessmentcontentList.filter( v-for="(itemYs, i) in assessmentcontentList.filter(
p => p.parentId == itemMb.id (p) => p.parentId == itemMb.id
)" )"
:key="itemYs.id" :key="itemYs.id"
> >
<p class="checkbox-item flex align-center"> <p class="checkbox-item flex align-center">
{{ itemYs.jyjy }} 建议{{ i + 1 }}.{{ itemYs.jyjy }}
</p> </p>
</div> </div>
</li> </li>
@ -316,20 +348,19 @@ export default {
RadarChart_yy, RadarChart_yy,
RadarChart_sh, RadarChart_sh,
RadarChart_kx, RadarChart_kx,
RadarChart_ys RadarChart_ys,
}, },
data() { data() {
return { return {
childId: "", childId: "",
childName: "", childName: "",
classid: "", classid: "",
assessmentscope: "",
// tabs // tabs
tabsList: [], tabsList: [],
activeName: "", activeName: "",
// //
assessmentcontentList: [], assessmentcontentList: [],
childTab: "one" childTab: "one",
}; };
}, },
created() { created() {
@ -344,13 +375,13 @@ export default {
methods: { methods: {
/** 查询幼儿未评估内容列表 */ /** 查询幼儿未评估内容列表 */
getNoAssessmentList() { getNoAssessmentList() {
listNoAssessmentcontentByChild(this.childId).then(response => { listNoAssessmentcontentByChild(this.childId).then((response) => {
// console.log("rows:" + response.rows); // console.log("rows:" + response.rows);
this.assessmentcontentList = response.rows; this.assessmentcontentList = response.rows;
}); });
}, },
getChild(childId) { getChild(childId) {
getChildByAssessment(childId).then(response => { getChildByAssessment(childId).then((response) => {
// console.log(response); // console.log(response);
if (response.code == "200") { if (response.code == "200") {
this.childName = response.data.name; this.childName = response.data.name;
@ -360,7 +391,7 @@ export default {
}, },
/** 查询评估内容列表 */ /** 查询评估内容列表 */
getList(childId) { getList(childId) {
getAssessmentDictData(childId).then(response => { getAssessmentDictData(childId).then((response) => {
// console.log("rows:" + response.dictdata.length); // console.log("rows:" + response.dictdata.length);
if (response.dictdata.length > 0) { if (response.dictdata.length > 0) {
this.activeName = response.dictdata[0].dictLabel; this.activeName = response.dictdata[0].dictLabel;
@ -376,8 +407,8 @@ export default {
}, },
handleTabClick(tab) { handleTabClick(tab) {
this.childTab = tab.name; this.childTab = tab.name;
} },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>