|
@@ -1,277 +1,276 @@
|
|
|
<template>
|
|
|
- <div class="scatter-container">
|
|
|
- <Row class-name="base-table-row">
|
|
|
- <Col span="12">
|
|
|
- <span class="component-title" style="margin-right: 55px">{{$t('totalAnalysis.le_title4')}}</span>
|
|
|
- <!-- <span class="pie-to-bar" @click="changeRadarOrBar">
|
|
|
+ <div class="scatter-container">
|
|
|
+ <Row class-name="base-table-row">
|
|
|
+ <Col span="12">
|
|
|
+ <span class="component-title" style="margin-right: 55px">{{$t('totalAnalysis.le_title4')}}</span>
|
|
|
+ <!-- <span class="pie-to-bar" @click="changeRadarOrBar">
|
|
|
<Icon :type="isShowRadar ? 'ios-podium' : 'ios-pie'" />
|
|
|
{{isShowRadar?$t('totalAnalysis.ka_chart_text1'):$t('totalAnalysis.ka_chart_text2')}}
|
|
|
</span> -->
|
|
|
- <div>
|
|
|
- <BaseDetailBar echartsId="levelDetailBar" :classIndex="classIndex" @handleItemClick="handleItemClick"
|
|
|
- ref="levelDetailBar"></BaseDetailBar>
|
|
|
- </div>
|
|
|
-<!-- <div v-if="isShowRadar">
|
|
|
+ <div>
|
|
|
+ <BaseDetailBar echartsId="levelDetailBar" :classIndex="classIndex" @handleItemClick="handleItemClick" ref="levelDetailBar"></BaseDetailBar>
|
|
|
+ </div>
|
|
|
+ <!-- <div v-if="isShowRadar">
|
|
|
<BaseRadar echartsId="levelRadar" :classIndex="classIndex"></BaseRadar>
|
|
|
</div> -->
|
|
|
- </Col>
|
|
|
- <Col span="12">
|
|
|
- <span class="component-title-point"><span>{{$t('totalAnalysis.ka_text3')}}:{{transArr[+currentPoint-1]}}</span></span>
|
|
|
- <div>
|
|
|
- <BaseMyTable :columns="detailsColumns" :tableName="$t('totalAnalysis.le_title5')"
|
|
|
- tableRef="levelScoreTable" :tableDatas="tableData" ref="detailsTable"></BaseMyTable>
|
|
|
- </div>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Divider />
|
|
|
- <Row class-name="base-table-row">
|
|
|
- <BaseMyTable :columns="tableColumns" :tableName="$t('totalAnalysis.le_title6')" tableRef="levelWrongTable"
|
|
|
- :tableDatas="numData" ref="numTable" :tips="$t('totalAnalysis.ka_tip1')"></BaseMyTable>
|
|
|
- </Row>
|
|
|
- </div>
|
|
|
+ </Col>
|
|
|
+ <Col span="12">
|
|
|
+ <span class="component-title-point"><span>{{$t('totalAnalysis.ka_text3')}}:{{transArr[+currentPoint-1]}}</span></span>
|
|
|
+ <div>
|
|
|
+ <BaseMyTable :columns="detailsColumns" :tableName="$t('totalAnalysis.le_title5') + '(' + pointName + ')'" tableRef="levelScoreTable" :tableDatas="tableData" ref="detailsTable"></BaseMyTable>
|
|
|
+ </div>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Divider />
|
|
|
+ <Row class-name="base-table-row">
|
|
|
+ <BaseMyTable :columns="tableColumns" :tableName="$t('totalAnalysis.le_title6')" tableRef="levelWrongTable" :tableDatas="numData" ref="numTable" :tips="$t('totalAnalysis.ka_tip1')"></BaseMyTable>
|
|
|
+ </Row>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import BaseDetailBar from '@/components/student-analysis/total/BaseLevelDetail.vue'
|
|
|
- import BaseMyTable from '@/components/student-analysis/total/BaseMyTable.vue'
|
|
|
- import BaseRadar from '@/components/student-analysis/total/BaseRadar.vue'
|
|
|
- export default {
|
|
|
- props:{
|
|
|
- classIndex:{
|
|
|
- type:Number,
|
|
|
- default:-1
|
|
|
- }
|
|
|
- },
|
|
|
- components: {
|
|
|
- BaseDetailBar,
|
|
|
- BaseMyTable,
|
|
|
- BaseRadar
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- isShowRadar: false,
|
|
|
- curClassIndex: -1,
|
|
|
- tableData: [],
|
|
|
- classDatas: [],
|
|
|
- classList:[],
|
|
|
- currentPoint: 1,
|
|
|
- transArr: this.$GLOBAL.EXERCISE_LEVELS(),
|
|
|
- tipContent: '* RH:高分区段 / RL:低分区段 (模拟数据,仅供参考)',
|
|
|
- levelData: [],
|
|
|
- numData: [],
|
|
|
- tableColumns: [{
|
|
|
- title: this.$t('totalAnalysis.ka_table_text2'),
|
|
|
- key: 'name',
|
|
|
- minWidth: 150
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text4'),
|
|
|
- key: 'point',
|
|
|
- minWidth: 100,
|
|
|
- sortable: 'custom',
|
|
|
- renderType: function(h, params) {
|
|
|
- return h('span', Number(params.row.point).toFixed(2))
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text7'),
|
|
|
- key: 'itemNO',
|
|
|
- renderType: 'renderHard',
|
|
|
- width: 250
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text8'),
|
|
|
- key: 'persent',
|
|
|
- renderType: function(h, params) {
|
|
|
- return h('span', (Number(params.row.persent) * 100).toFixed(2) + '%')
|
|
|
- },
|
|
|
- sortable: 'custom',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text9'),
|
|
|
- key: 'wrong',
|
|
|
- sortable: 'custom',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text10'),
|
|
|
- key: 'rhw',
|
|
|
- sortable: 'custom',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text11'),
|
|
|
- key: 'rlw',
|
|
|
- sortable: 'custom',
|
|
|
- minWidth: 100
|
|
|
- }
|
|
|
- ],
|
|
|
- detailsColumns: [{
|
|
|
- title: this.$t('totalAnalysis.base_name'),
|
|
|
- key: 'id',
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.base_class'),
|
|
|
- key: 'className',
|
|
|
- width: 120
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.base_id'),
|
|
|
- key: 'seatNO',
|
|
|
- width: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text4'),
|
|
|
- key: 'point',
|
|
|
- sortable: 'custom',
|
|
|
- renderType: function(h, params) {
|
|
|
- return h('span', Number(params.row.point).toFixed(1))
|
|
|
- },
|
|
|
- minWidth: 100
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text5'),
|
|
|
- key: 'anwPoint',
|
|
|
- minWidth: 100,
|
|
|
- sortable: 'custom',
|
|
|
- renderType: function(h, params) {
|
|
|
- return h('span', Number(params.row.anwPoint).toFixed(1))
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: this.$t('totalAnalysis.ka_table_text6'),
|
|
|
- key: 'persent',
|
|
|
- minWidth: 100,
|
|
|
- sortable: 'custom',
|
|
|
- renderType: function(h, params) {
|
|
|
- return h('span', (Number(params.row.persent) * 100).toFixed(2) + '%')
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
+import BaseDetailBar from '@/components/student-analysis/total/BaseLevelDetail.vue'
|
|
|
+import BaseMyTable from '@/components/student-analysis/total/BaseMyTable.vue'
|
|
|
+import BaseRadar from '@/components/student-analysis/total/BaseRadar.vue'
|
|
|
+export default {
|
|
|
+ props: {
|
|
|
+ classIndex: {
|
|
|
+ type: Number,
|
|
|
+ default: -1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ BaseDetailBar,
|
|
|
+ BaseMyTable,
|
|
|
+ BaseRadar
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pointName: this.$GLOBAL.EXERCISE_LEVELS()[0],
|
|
|
+ isShowRadar: false,
|
|
|
+ curClassIndex: -1,
|
|
|
+ tableData: [],
|
|
|
+ classDatas: [],
|
|
|
+ classList: [],
|
|
|
+ currentPoint: 1,
|
|
|
+ transArr: this.$GLOBAL.EXERCISE_LEVELS(),
|
|
|
+ tipContent: '* RH:高分区段 / RL:低分区段 (模拟数据,仅供参考)',
|
|
|
+ levelData: [],
|
|
|
+ numData: [],
|
|
|
+ tableColumns: [{
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text2'),
|
|
|
+ key: 'name',
|
|
|
+ minWidth: 150
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text4'),
|
|
|
+ key: 'point',
|
|
|
+ minWidth: 100,
|
|
|
+ sortable: 'custom',
|
|
|
+ renderType: function (h, params) {
|
|
|
+ return h('span', Number(params.row.point).toFixed(2))
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text7'),
|
|
|
+ key: 'itemNO',
|
|
|
+ renderType: 'renderHard',
|
|
|
+ width: 250
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text8'),
|
|
|
+ key: 'persent',
|
|
|
+ renderType: function (h, params) {
|
|
|
+ return h('span', (Number(params.row.persent) * 100).toFixed(2) + '%')
|
|
|
+ },
|
|
|
+ sortable: 'custom',
|
|
|
+ minWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text9'),
|
|
|
+ key: 'wrong',
|
|
|
+ sortable: 'custom',
|
|
|
+ minWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text10'),
|
|
|
+ key: 'rhw',
|
|
|
+ sortable: 'custom',
|
|
|
+ minWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text11'),
|
|
|
+ key: 'rlw',
|
|
|
+ sortable: 'custom',
|
|
|
+ minWidth: 100
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ detailsColumns: [{
|
|
|
+ title: this.$t('totalAnalysis.base_name'),
|
|
|
+ key: 'id',
|
|
|
+ minWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.base_class'),
|
|
|
+ key: 'className',
|
|
|
+ width: 120
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.base_id'),
|
|
|
+ key: 'seatNO',
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text4'),
|
|
|
+ key: 'point',
|
|
|
+ sortable: 'custom',
|
|
|
+ renderType: function (h, params) {
|
|
|
+ return h('span', Number(params.row.point).toFixed(1))
|
|
|
+ },
|
|
|
+ minWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text5'),
|
|
|
+ key: 'anwPoint',
|
|
|
+ minWidth: 100,
|
|
|
+ sortable: 'custom',
|
|
|
+ renderType: function (h, params) {
|
|
|
+ return h('span', Number(params.row.anwPoint).toFixed(1))
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: this.$t('totalAnalysis.ka_table_text6'),
|
|
|
+ key: 'persent',
|
|
|
+ minWidth: 100,
|
|
|
+ sortable: 'custom',
|
|
|
+ renderType: function (h, params) {
|
|
|
+ return h('span', (Number(params.row.persent) * 100).toFixed(2) + '%')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
|
|
|
- changeRadarOrBar() {
|
|
|
- this.isShowRadar = !this.isShowRadar
|
|
|
- },
|
|
|
+ changeRadarOrBar() {
|
|
|
+ this.isShowRadar = !this.isShowRadar
|
|
|
+ },
|
|
|
|
|
|
- // 点击柱状图某个点事件
|
|
|
- handleItemClick(item) {
|
|
|
- this.currentPoint = this.transArr.indexOf(item.name) + 1
|
|
|
- this.doRender(this.getLevelData, this.currentPoint,this.curClassIndex)
|
|
|
- },
|
|
|
+ // 点击柱状图某个点事件
|
|
|
+ handleItemClick(item) {
|
|
|
+ this.pointName = item.name
|
|
|
+ this.currentPoint = this.transArr.indexOf(item.name) + 1
|
|
|
+ this.doRender(this.getLevelData, this.currentPoint, this.curClassIndex)
|
|
|
+ },
|
|
|
|
|
|
- doRender(data, point) {
|
|
|
- let classIndex = this.$store.state.totalAnalysis.curClassIndex
|
|
|
- let origin = data.stupercent
|
|
|
- let keys = origin.keys
|
|
|
- let datas = classIndex === -1 ? (origin[point] || []) : origin[point].filter(i => i[1] === this.classList[classIndex + 1])
|
|
|
- this.tableData = this.$tools.jsonTransform({
|
|
|
- datas: datas,
|
|
|
- keys: keys
|
|
|
- })
|
|
|
- },
|
|
|
+ doRender(data, point) {
|
|
|
+ let classIndex = this.$store.state.totalAnalysis.curClassIndex
|
|
|
+ let origin = data.stupercent
|
|
|
+ let keys = origin.keys
|
|
|
+ let datas = classIndex === -1 ? (origin[point] || []) : origin[point].filter(i => i[1] === this.classList[classIndex + 1])
|
|
|
+ this.tableData = this.$tools.jsonTransform({
|
|
|
+ datas: datas,
|
|
|
+ keys: keys
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- doRenderWrong(data) {
|
|
|
- let classIndex = this.$store.state.totalAnalysis.curClassIndex
|
|
|
- let origin = data.wrong
|
|
|
- let keys = origin.keys
|
|
|
- let datas = origin.datas
|
|
|
- console.log(datas)
|
|
|
- datas.forEach((i, index) => {
|
|
|
- i[0] = this.transArr[index]
|
|
|
- })
|
|
|
- let allWrongData = this.$tools.jsonTransform({ datas: datas, keys: keys })
|
|
|
- this.numData = classIndex === -1 ? allWrongData : this.getClassWrongData(allWrongData,classIndex)
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
- getClassWrongData(allWrongData){
|
|
|
- let classIndex = this.$store.state.totalAnalysis.curClassIndex
|
|
|
- let curSubjectIndex = this.$store.state.totalAnalysis.analysisJson.subjects.map(i => i.name).indexOf(this.$store.state.totalAnalysis.currentSubject)
|
|
|
- let curItem = this.getAnalysisJson.classes[classIndex].subjects[curSubjectIndex]
|
|
|
- allWrongData.forEach((item,index) => {
|
|
|
- item.persent = curItem.frate[index]
|
|
|
- item.rhw = curItem.fphc[index]
|
|
|
- item.rlw = curItem.fplc[index]
|
|
|
- item.wrong = curItem.fpc[index]
|
|
|
- })
|
|
|
- return allWrongData
|
|
|
- }
|
|
|
+ doRenderWrong(data) {
|
|
|
+ let classIndex = this.$store.state.totalAnalysis.curClassIndex
|
|
|
+ let origin = data.wrong
|
|
|
+ let keys = origin.keys
|
|
|
+ let datas = origin.datas
|
|
|
+ console.log(datas)
|
|
|
+ datas.forEach((i, index) => {
|
|
|
+ i[0] = this.transArr[index]
|
|
|
+ })
|
|
|
+ let allWrongData = this.$tools.jsonTransform({ datas: datas, keys: keys })
|
|
|
+ this.numData = classIndex === -1 ? allWrongData : this.getClassWrongData(allWrongData, classIndex)
|
|
|
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- this.$refs.detailsTable.$el.childNodes[1].style.borderRight = '0'
|
|
|
- this.$refs.numTable.$el.childNodes[1].style.borderRight = '0'
|
|
|
- if (this.getLevelData) {
|
|
|
- this.doRender(this.getLevelData, this.currentPoint,this.curClassIndex)
|
|
|
- this.doRenderWrong(this.getLevelData,this.curClassIndex)
|
|
|
- this.classList = [this.$t('totalAnalysis.allClasses')].concat([...new Set(this.getAnalysisJson.classes.map(item => item.className))]) // 获取班级列表
|
|
|
- }
|
|
|
- },
|
|
|
- computed: {
|
|
|
- // 获取最新散点图数据
|
|
|
- getLevelData() {
|
|
|
- let curSubjectIndex = this.$store.state.totalAnalysis.analysisJson.subjects.map(i => i.name).indexOf(this
|
|
|
- .$store.state
|
|
|
- .totalAnalysis.currentSubject)
|
|
|
- let levelJson = this.$store.state.totalAnalysis.analysisJson.pointLevelKey[curSubjectIndex].levelKey
|
|
|
- let transArr = this.$GLOBAL.EXERCISE_LEVELS()
|
|
|
- levelJson.pointList = levelJson.pointList.map((i, index) => transArr[index])
|
|
|
- for (let key in levelJson.classpercent) {
|
|
|
- if (!isNaN(key)) {
|
|
|
- let newKey = transArr[+key - 1]
|
|
|
- levelJson.classpercent[newKey] = levelJson.classpercent[key]
|
|
|
- levelJson.stupercent[newKey] = levelJson.stupercent[key]
|
|
|
- }
|
|
|
- }
|
|
|
- return levelJson
|
|
|
- },
|
|
|
- // 获取最新散点图数据
|
|
|
- getKnowledgeData() {
|
|
|
- let curSubjectIndex = this.$store.state.totalAnalysis.analysisJson.subjects.map(i => i.name).indexOf(this
|
|
|
- .$store.state
|
|
|
- .totalAnalysis.currentSubject)
|
|
|
- return this.$store.state.totalAnalysis.analysisJson.pointLevelKey[curSubjectIndex].pointKey
|
|
|
- },
|
|
|
- getAnalysisJson() {
|
|
|
- return this.$store.state.totalAnalysis.analysisJson
|
|
|
- },
|
|
|
- },
|
|
|
- watch: {
|
|
|
- // getLevelData: {
|
|
|
- // handler(val) {
|
|
|
- // if (val) {
|
|
|
- // this.doRender(this.getLevelData, this.getLevelData.pointList[0],this.curClassIndex)
|
|
|
- // this.doRenderWrong(this.getLevelData,this.curClassIndex)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },
|
|
|
- classIndex(n,o){
|
|
|
- this.curClassIndex = n - 1
|
|
|
- this.doRender(this.getLevelData,this.getLevelData.pointList[0],n - 1)
|
|
|
- this.doRenderWrong(this.getLevelData,n - 1)
|
|
|
- },
|
|
|
- immediate:true
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ getClassWrongData(allWrongData) {
|
|
|
+ let classIndex = this.$store.state.totalAnalysis.curClassIndex
|
|
|
+ let curSubjectIndex = this.$store.state.totalAnalysis.analysisJson.subjects.map(i => i.name).indexOf(this.$store.state.totalAnalysis.currentSubject)
|
|
|
+ let curItem = this.getAnalysisJson.classes[classIndex].subjects[curSubjectIndex]
|
|
|
+ allWrongData.forEach((item, index) => {
|
|
|
+ item.persent = curItem.frate[index]
|
|
|
+ item.rhw = curItem.fphc[index]
|
|
|
+ item.rlw = curItem.fplc[index]
|
|
|
+ item.wrong = curItem.fpc[index]
|
|
|
+ })
|
|
|
+ return allWrongData
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.$refs.detailsTable.$el.childNodes[1].style.borderRight = '0'
|
|
|
+ this.$refs.numTable.$el.childNodes[1].style.borderRight = '0'
|
|
|
+ if (this.getLevelData) {
|
|
|
+ this.doRender(this.getLevelData, this.currentPoint, this.curClassIndex)
|
|
|
+ this.doRenderWrong(this.getLevelData, this.curClassIndex)
|
|
|
+ this.classList = [this.$t('totalAnalysis.allClasses')].concat([...new Set(this.getAnalysisJson.classes.map(item => item.className))]) // 获取班级列表
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ // 获取最新散点图数据
|
|
|
+ getLevelData() {
|
|
|
+ let curSubjectIndex = this.$store.state.totalAnalysis.analysisJson.subjects.map(i => i.name).indexOf(this
|
|
|
+ .$store.state
|
|
|
+ .totalAnalysis.currentSubject)
|
|
|
+ let levelJson = this.$store.state.totalAnalysis.analysisJson.pointLevelKey[curSubjectIndex].levelKey
|
|
|
+ let transArr = this.$GLOBAL.EXERCISE_LEVELS()
|
|
|
+ levelJson.pointList = levelJson.pointList.map((i, index) => transArr[index])
|
|
|
+ for (let key in levelJson.classpercent) {
|
|
|
+ if (!isNaN(key)) {
|
|
|
+ let newKey = transArr[+key - 1]
|
|
|
+ levelJson.classpercent[newKey] = levelJson.classpercent[key]
|
|
|
+ levelJson.stupercent[newKey] = levelJson.stupercent[key]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return levelJson
|
|
|
+ },
|
|
|
+ // 获取最新散点图数据
|
|
|
+ getKnowledgeData() {
|
|
|
+ let curSubjectIndex = this.$store.state.totalAnalysis.analysisJson.subjects.map(i => i.name).indexOf(this
|
|
|
+ .$store.state
|
|
|
+ .totalAnalysis.currentSubject)
|
|
|
+ return this.$store.state.totalAnalysis.analysisJson.pointLevelKey[curSubjectIndex].pointKey
|
|
|
+ },
|
|
|
+ getAnalysisJson() {
|
|
|
+ return this.$store.state.totalAnalysis.analysisJson
|
|
|
+ },
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ // getLevelData: {
|
|
|
+ // handler(val) {
|
|
|
+ // if (val) {
|
|
|
+ // this.doRender(this.getLevelData, this.getLevelData.pointList[0],this.curClassIndex)
|
|
|
+ // this.doRenderWrong(this.getLevelData,this.curClassIndex)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ classIndex(n, o) {
|
|
|
+ this.curClassIndex = n - 1
|
|
|
+ this.doRender(this.getLevelData, this.getLevelData.pointList[0], n - 1)
|
|
|
+ this.doRenderWrong(this.getLevelData, n - 1)
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style src="./LevelAnalysis.css" scoped></style>
|
|
|
<style>
|
|
|
- .component-title-point{
|
|
|
- position: absolute;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- right: 220px;
|
|
|
- top: 60px;
|
|
|
- color: #70B1E7;
|
|
|
- }
|
|
|
+.component-title-point {
|
|
|
+ position: absolute;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ right: 220px;
|
|
|
+ top: 60px;
|
|
|
+ color: #70b1e7;
|
|
|
+}
|
|
|
</style>
|