|
@@ -10,32 +10,32 @@
|
|
|
<div class="info_box">
|
|
|
<div class="info blueBG">
|
|
|
<span>教师总数</span>
|
|
|
- <span>{{ 113 }}</span>
|
|
|
+ <span>{{ teacherCount }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
<span>考核项目总数</span>
|
|
|
- <span>{{ 9 }}</span>
|
|
|
+ <span>{{ 6 }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
<span>提交人数</span>
|
|
|
- <span>{{ 89 }}</span>
|
|
|
+ <span>{{ submitPCount }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
<span>数据总数</span>
|
|
|
- <span>{{ 1113 }}</span>
|
|
|
+ <span>{{ submitCount }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="depth_box" style="height: calc(100% - 140px)">
|
|
|
<div class="depth">
|
|
|
<span>考核项目完成率</span>
|
|
|
<div>
|
|
|
- <el-progress :width="100" type="circle" :percentage="70" :stroke-width="15" :format="format" color="#106BFF"></el-progress>
|
|
|
+ <el-progress :width="100" type="circle" :percentage="subPersent ? parseInt((subPersent / teacherCount * 100).toFixed(0)) : 0" :stroke-width="15" :format="format" color="#106BFF"></el-progress>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="depth">
|
|
|
<span>教师项目提交率</span>
|
|
|
<div>
|
|
|
- <el-progress :width="100" type="circle" :percentage="80" :stroke-width="15" :format="format" color="#106BFF"></el-progress>
|
|
|
+ <el-progress :width="100" type="circle" :percentage="subPersent2 ? parseInt((subPersent2 / teacherCount * 100).toFixed(0)) : 0" :stroke-width="15" :format="format" color="#106BFF"></el-progress>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -55,11 +55,11 @@
|
|
|
<div class="info_box" style="width: 96%" >
|
|
|
<div class="info blueBG">
|
|
|
<span>提交总数</span>
|
|
|
- <span>{{ 257 }}</span>
|
|
|
+ <span>{{ xindeCount }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
<span>人均提交次数</span>
|
|
|
- <span>{{ 4 }}</span>
|
|
|
+ <span>{{ xindeCount ? (xindeCount / teacherCount ).toFixed(0) : 0 }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<Bar style="height: calc(100% - 70px)" :workList="tedurArray"></Bar>
|
|
@@ -72,19 +72,20 @@
|
|
|
<div class="title">
|
|
|
教学设计
|
|
|
</div>
|
|
|
- <!-- <el-select v-model="cType" @change="typeChange" class="selectBox" v-if="toolType == 0">
|
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
- </el-select> -->
|
|
|
+ <el-select v-model="cType" @change="typeChange1" class="selectBox" style="width:205px">
|
|
|
+ <!-- <el-option label="全部" value=""></el-option> -->
|
|
|
+ <el-option v-for="item in shejiTime" :key="item" :label="item" :value="item"></el-option>
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
<div class="dataBox">
|
|
|
<div class="info_box" style="width: 96%" >
|
|
|
<div class="info blueBG">
|
|
|
<span>提交总数</span>
|
|
|
- <span>{{ 60 }}</span>
|
|
|
+ <span>{{ shejiCount }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
- <span>人均人数</span>
|
|
|
- <span>{{ 39 }}</span>
|
|
|
+ <span>提交人数</span>
|
|
|
+ <span>{{ shejiPCount }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<CateRank style="height:calc(100% - 70px);" :courseArray="courseArray"></CateRank>
|
|
@@ -98,15 +99,15 @@
|
|
|
<div class="info_box">
|
|
|
<div class="info blueBG" style="width: calc(100% / 3 - 10px)">
|
|
|
<span>提交总数</span>
|
|
|
- <span>{{ 62 }}</span>
|
|
|
+ <span>{{ guihuaArray.length + guanshuArray.length }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG" style="width: calc(100% / 3 - 10px)">
|
|
|
<span>发展规划提交总数</span>
|
|
|
- <span>{{ 30 }}</span>
|
|
|
+ <span>{{ guihuaArray.length }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG" style="width: calc(100% / 3 - 10px)">
|
|
|
- <span>教育观念提交总数</span>
|
|
|
- <span>{{ 32 }}</span>
|
|
|
+ <span>教育观树提交总数</span>
|
|
|
+ <span>{{ guanshuArray.length }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<WorkNum style="height: calc(100% - 70px)" :workNumList="workNumList" >
|
|
@@ -132,19 +133,24 @@
|
|
|
获奖名次
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <el-select v-model="cType4" @change="typeChange" class="selectBox" v-if="toolType == 0">
|
|
|
- <el-option label="全部" value=""></el-option>
|
|
|
- </el-select> -->
|
|
|
+ <el-select v-model="cType2" @change="typeChange2" class="selectBox" v-if="toolType == 0" style="width:205px">
|
|
|
+ <!-- <el-option label="全部" value=""></el-option> -->
|
|
|
+ <el-option v-for="item in timeXuan" :key="item" :label="item" :value="item"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select v-model="cType3" @change="typeChange3" class="selectBox" v-if="toolType == 1" style="width:205px">
|
|
|
+ <!-- <el-option label="全部" value=""></el-option> -->
|
|
|
+ <el-option v-for="item in timeXuan" :key="item" :label="item" :value="item"></el-option>
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
<div class="dataBox">
|
|
|
<div class="info_box" v-if="toolType == 0">
|
|
|
<div class="info blueBG">
|
|
|
<span>获奖总数</span>
|
|
|
- <span>{{ 49 }}</span>
|
|
|
+ <span>{{ huojiangCont }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
<span>获奖人数</span>
|
|
|
- <span>{{ 39 }}</span>
|
|
|
+ <span>{{ huojiangPCont }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<CourseAna style="height: calc(100% - 70px)" :courseNumberArray="courseNumberArray" v-if="toolType == 0"></CourseAna>
|
|
@@ -152,21 +158,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bottom">
|
|
|
- <div class="titleBox">
|
|
|
+ <div class="titleBox" style="justify-content: space-between">
|
|
|
<div class="title">德育获奖</div>
|
|
|
+ <el-select v-model="cType4" @change="typeChange4" class="selectBox" style="width:205px">
|
|
|
+ <!-- <el-option label="全部" value=""></el-option> -->
|
|
|
+ <el-option v-for="item in deyuTimeXuan" :key="item" :label="item" :value="item"></el-option>
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
<div class="dataBox">
|
|
|
- <div class="info_box" v-if="toolType == 0">
|
|
|
+ <div class="info_box">
|
|
|
<div class="info blueBG">
|
|
|
<span>获奖总数</span>
|
|
|
- <span>{{ 9 }}</span>
|
|
|
+ <span>{{ deyuCont }}</span>
|
|
|
</div>
|
|
|
<div class="info blueBG">
|
|
|
<span>获奖人数</span>
|
|
|
- <span>{{ 9 }}</span>
|
|
|
+ <span>{{ deyuPCont }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <WorkTime style="height: calc(100% - 70px)" :personArray="personList"></WorkTime>
|
|
|
+ <!-- personList -->
|
|
|
+ <WorkTime style="height: calc(100% - 70px)" :toolArray="personList"></WorkTime>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -215,6 +226,8 @@ export default {
|
|
|
return {
|
|
|
isLoading: false,
|
|
|
cType: "",
|
|
|
+ cType2: "",
|
|
|
+ cType3: "",
|
|
|
cType4: "",
|
|
|
cType7: "全部课程",
|
|
|
toolType: 0,
|
|
@@ -237,45 +250,38 @@ export default {
|
|
|
classList: [],
|
|
|
subjectList: [],
|
|
|
themeList: [],
|
|
|
- allTime: 0,
|
|
|
- allTimeLength: 0,
|
|
|
- gradeLength: 0,
|
|
|
- subjectLength: 0,
|
|
|
- themeLength: 0,
|
|
|
- courseTList: [],
|
|
|
- courseLength: 0,
|
|
|
+ teacherCount: 0,
|
|
|
+ testCount: 0,
|
|
|
+ submitPCount: 0,
|
|
|
+ submitCount: 0,
|
|
|
courseWorksCountYearArray: [],
|
|
|
- courseWorksCountYearArray2: [],
|
|
|
- allCourseWorks: [],
|
|
|
- gradeList: [],
|
|
|
- subjectList2: [],
|
|
|
- thList: [],
|
|
|
- worksCount: 0,
|
|
|
- haveWorksCourse: 0,
|
|
|
- courseNumberArray: [],
|
|
|
- gradeArray: [],
|
|
|
- subjectArray: [],
|
|
|
- themeArray: [],
|
|
|
- allArray: [],
|
|
|
- toolList: [],
|
|
|
- personList: [],
|
|
|
- workNumList: [],
|
|
|
- taskCount: 0,
|
|
|
- workCount: 0,
|
|
|
- isCourseCount: 0,
|
|
|
- allCourseCount: 0,
|
|
|
- courseArray: [],
|
|
|
- evaCount: 0,
|
|
|
- evaWorksCount: 0,
|
|
|
- pusaDep: [
|
|
|
- { value: 0, name: "课程总数" },
|
|
|
- { value: 0, name: "设置评价课程" },
|
|
|
- { value: 0, name: "已提交作业课程" },
|
|
|
- { value: 0, name: "已评价课程" },
|
|
|
- { value: 0, name: "教学评一体化课程" },
|
|
|
- ],
|
|
|
- weekCourse2: [],
|
|
|
- resultSubject: []
|
|
|
+ courseNumberArray: {},
|
|
|
+ toolList: {},
|
|
|
+ personList: {},
|
|
|
+ workNumList: {},
|
|
|
+ courseArray: {},
|
|
|
+ subPersent:0,
|
|
|
+ subPersent2:0,
|
|
|
+ xindeCount: 0,
|
|
|
+ shejiCount:0,
|
|
|
+ shejiPCount:0,
|
|
|
+ shejiArray: [],
|
|
|
+ shejiTime:[],
|
|
|
+ shejiXuan:[],
|
|
|
+ shejiTong:{},
|
|
|
+ guihuaArray:[],
|
|
|
+ guanshuArray:[],
|
|
|
+ huojiangArray:[],
|
|
|
+ timeXuan:[],
|
|
|
+ jibieXuan:[],
|
|
|
+ mingciXuan:[],
|
|
|
+ deyuArray:[],
|
|
|
+ deyuTimeXuan:[],
|
|
|
+ deyuJibieXuan:[],
|
|
|
+ huojiangCont:0,
|
|
|
+ huojiangPCont:0,
|
|
|
+ deyuCont:0,
|
|
|
+ deyuPCont:0,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -345,11 +351,128 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
typeChange1() {
|
|
|
- var a = [];
|
|
|
+ let shejiArray = this.shejiArray;
|
|
|
+ var shejiTong = {};
|
|
|
+ for(var i = 0; i < this.shejiTime.length; i++){
|
|
|
+ shejiTong[this.shejiTime[i]] = {}
|
|
|
+ for(var j = 0; j < this.shejiXuan.length; j++){
|
|
|
+ shejiTong[this.shejiTime[i]][this.shejiXuan[j]] = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for(var i = 0; i < shejiArray.length; i++){
|
|
|
+ let shejiJson = JSON.parse(shejiArray[i].courseJson)
|
|
|
+ let xuanTime = shejiJson[1].json.answer2
|
|
|
+ let xuanXuan = shejiJson[2].json.answer2
|
|
|
+ for(var j = 0; j < xuanTime.length; j++){
|
|
|
+
|
|
|
+ for(var z = 0; z < xuanXuan.length; z++){
|
|
|
+ shejiTong[this.shejiTime[xuanTime[j]]][this.shejiXuan[xuanXuan[z]]]++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.courseArray = shejiTong[this.cType]
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
typeChange2() {
|
|
|
- const date = new Date()
|
|
|
+ let huojiangArray = this.huojiangArray;
|
|
|
+ var jibieTong = {};
|
|
|
+ var personTong = {};
|
|
|
+ for(var i = 0; i < this.timeXuan.length; i++){
|
|
|
+ jibieTong[this.timeXuan[i]] = {}
|
|
|
+ personTong[this.timeXuan[i]] = []
|
|
|
+ for(var j = 0; j < this.jibieXuan.length; j++){
|
|
|
+ jibieTong[this.timeXuan[i]][this.jibieXuan[j]] = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for(var i = 0; i < huojiangArray.length; i++){
|
|
|
+ let Json = JSON.parse(huojiangArray[i].courseJson)
|
|
|
+ let xuanTime = Json[0].json.answer2
|
|
|
+ let xuanXuan = Json[2].json.answer2
|
|
|
+ console.log(xuanXuan);
|
|
|
+ for(var j = 0; j < xuanTime.length; j++){
|
|
|
+ if(personTong[this.timeXuan[xuanTime[j]]].indexOf(huojiangArray[i].userid) == -1){
|
|
|
+ personTong[this.timeXuan[xuanTime[j]]].push(huojiangArray[i].userid)
|
|
|
+ }
|
|
|
+ for(var z = 0; z < xuanXuan.length; z++){
|
|
|
+ jibieTong[this.timeXuan[xuanTime[j]]][this.jibieXuan[xuanXuan[z]]]++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var a = Object.keys(jibieTong[this.cType2])
|
|
|
+ let huojiangCont = 0
|
|
|
+ let huojiangPCont = personTong[this.cType2].length
|
|
|
+ for(var i = 0; i < a.length; i++){
|
|
|
+ huojiangCont+= jibieTong[this.cType2][a[i]]
|
|
|
+ }
|
|
|
+ this.huojiangCont = huojiangCont
|
|
|
+ this.huojiangPCont = huojiangPCont
|
|
|
+ this.courseNumberArray = jibieTong[this.cType2]
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
+ typeChange3() {
|
|
|
+ let huojiangArray = this.huojiangArray;
|
|
|
+ var jibieTong = {};
|
|
|
+ for(var i = 0; i < this.timeXuan.length; i++){
|
|
|
+ jibieTong[this.timeXuan[i]] = {}
|
|
|
+ for(var j = 0; j < this.mingciXuan.length; j++){
|
|
|
+ jibieTong[this.timeXuan[i]][this.mingciXuan[j]] = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for(var i = 0; i < huojiangArray.length; i++){
|
|
|
+ let Json = JSON.parse(huojiangArray[i].courseJson)
|
|
|
+ let xuanTime = Json[0].json.answer2
|
|
|
+ let xuanXuan = Json[3].json.answer2
|
|
|
+ console.log(xuanXuan);
|
|
|
+
|
|
|
+ for(var j = 0; j < xuanTime.length; j++){
|
|
|
+ for(var z = 0; z < xuanXuan.length; z++){
|
|
|
+ jibieTong[this.timeXuan[xuanTime[j]]][this.mingciXuan[xuanXuan[z]]]++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.toolList = jibieTong[this.cType3]
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
+ typeChange4() {
|
|
|
+ let deyuArray = this.deyuArray;
|
|
|
+ var jibieTong = {};
|
|
|
+ var personTong = {};
|
|
|
+ for(var i = 0; i < this.deyuTimeXuan.length; i++){
|
|
|
+ jibieTong[this.deyuTimeXuan[i]] = {}
|
|
|
+ personTong[this.deyuTimeXuan[i]] = []
|
|
|
+ for(var j = 0; j < this.deyuJibieXuan.length; j++){
|
|
|
+ jibieTong[this.deyuTimeXuan[i]][this.deyuJibieXuan[j]] = 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ for(var i = 0; i < deyuArray.length; i++){
|
|
|
+ let Json = JSON.parse(deyuArray[i].courseJson)
|
|
|
+ let xuanTime = Json[0].json.answer2
|
|
|
+ let xuanXuan = Json[3].json.answer2
|
|
|
+ console.log(xuanXuan);
|
|
|
+
|
|
|
+ for(var j = 0; j < xuanTime.length; j++){
|
|
|
+ if(personTong[this.deyuTimeXuan[xuanTime[j]]].indexOf(deyuArray[i].userid) == -1){
|
|
|
+ personTong[this.deyuTimeXuan[xuanTime[j]]].push(deyuArray[i].userid)
|
|
|
+ }
|
|
|
+ for(var z = 0; z < xuanXuan.length; z++){
|
|
|
+ jibieTong[this.deyuTimeXuan[xuanTime[j]]][this.deyuJibieXuan[xuanXuan[z]]]++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ var a = Object.keys(jibieTong[this.cType4])
|
|
|
+ let huojiangCont = 0
|
|
|
+ let huojiangPCont = personTong[this.cType4].length
|
|
|
+ for(var i = 0; i < a.length; i++){
|
|
|
+ huojiangCont+= jibieTong[this.cType4][a[i]]
|
|
|
+ }
|
|
|
+ this.deyuCont = huojiangCont
|
|
|
+ this.deyuPCont = huojiangPCont
|
|
|
+
|
|
|
+ this.personList = jibieTong[this.cType4]
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
typeChange() {
|
|
@@ -367,8 +490,134 @@ export default {
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "selectDataBoardTest", params)
|
|
|
.then((res) => {
|
|
|
+
|
|
|
this.isLoading = false;
|
|
|
+ let _cid1 = 'bf08fbbb-8a84-11ee-b98c-005056b86db5'; //个人发展规划
|
|
|
+ let _cid2 = '90017320-8a9a-11ee-b98c-005056b86db5'; //教育观树
|
|
|
+ let _cid3 = 'b578f126-89cd-11ee-b98c-005056b86db5'; //德育获奖
|
|
|
+ let _cid4 = 'd47a6ab6-8a75-11ee-b98c-005056b86db5'; //教学获奖
|
|
|
+ let _cid5 = '24c5e3b2-8a85-11ee-b98c-005056b86db5'; //校本培训心得
|
|
|
+ let _cid6 = 'e9e6dc5a-89d1-11ee-b98c-005056b86db5'; //我的教学设计
|
|
|
+ let classList = res.data[0] // 年级
|
|
|
+ let subjectList = res.data[1] //学科
|
|
|
+ this.classList = classList
|
|
|
+ this.subjectList = subjectList
|
|
|
+
|
|
|
+ this.teacherCount = res.data[2][0].count //教师总数
|
|
|
+ this.testCount = res.data[3][0].count //评测总数
|
|
|
+ this.submitPCount = res.data[4][0].count //提交人数
|
|
|
+ this.submitCount = res.data[5][0].count //提交总数
|
|
|
+ let submitArray = res.data[6].filter(item => item.worksCount >= 6)
|
|
|
+ let submitArray2 = res.data[6].filter(item => item.worksCount > 0)
|
|
|
+ this.subPersent = submitArray.length
|
|
|
+ this.subPersent2 = submitArray2.length
|
|
|
+
|
|
|
+ this.tedurArray = res.data[7]
|
|
|
+ let xindeCount = 0
|
|
|
+ res.data[7].forEach(element => {
|
|
|
+ xindeCount += element.worksCount
|
|
|
+ });
|
|
|
+
|
|
|
+ this.xindeCount = xindeCount;
|
|
|
+
|
|
|
+ let allTests = res.data[8]
|
|
|
+
|
|
|
+ let shejiArray = allTests.filter(item => item.courseid == _cid6) // 我的教学设计
|
|
|
+ let shejiCount = 0
|
|
|
+ let shejiPCount = []
|
|
|
+ shejiArray.forEach(element => {
|
|
|
+ shejiCount++
|
|
|
+ shejiPCount.indexOf(element.userid) == -1 ? shejiPCount.push(element.userid) : ''
|
|
|
+ });
|
|
|
+ this.shejiCount = shejiCount;
|
|
|
+ this.shejiPCount = shejiPCount.length;
|
|
|
+
|
|
|
+ let shejiJson = JSON.parse(shejiArray[0].chapters)
|
|
|
+ let shejiTimeArray = shejiJson[1].json.array
|
|
|
+ let shejiXuanArray = shejiJson[2].json.array
|
|
|
+ let shejiTime = []
|
|
|
+ let shejiXuan = []
|
|
|
+ shejiTimeArray.forEach(el => {
|
|
|
+ shejiTime.push(el.option)
|
|
|
+ })
|
|
|
+ shejiXuanArray.forEach(el => {
|
|
|
+ shejiXuan.push(el.option)
|
|
|
+ })
|
|
|
|
|
|
+ this.shejiArray = shejiArray
|
|
|
+ this.shejiTime = shejiTime
|
|
|
+ this.shejiXuan = shejiXuan
|
|
|
+ this.cType = shejiTime[0]
|
|
|
+ this.typeChange1()
|
|
|
+
|
|
|
+ let guihuaArray = allTests.filter(item => item.courseid == _cid1) // 发展规划
|
|
|
+ let guanshuArray = allTests.filter(item => item.courseid == _cid2) // 教育观树
|
|
|
+ this.guihuaArray = guihuaArray
|
|
|
+ this.guanshuArray = guanshuArray
|
|
|
+ let huodongArray = [...guihuaArray,...guanshuArray]
|
|
|
+ let huodongJson = {}
|
|
|
+ for(var i = 0;i<huodongArray.length;i++){
|
|
|
+ if(!huodongJson[huodongArray[i].userid]){
|
|
|
+ huodongJson[huodongArray[i].userid] = {
|
|
|
+ name:huodongArray[i].username,
|
|
|
+ guihua:0,
|
|
|
+ guanshu:0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(huodongArray[i].courseid == _cid1){
|
|
|
+ huodongJson[huodongArray[i].userid].guihua++
|
|
|
+ }
|
|
|
+ if(huodongArray[i].courseid == _cid2){
|
|
|
+ huodongJson[huodongArray[i].userid].guanshu++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.workNumList = huodongJson
|
|
|
+
|
|
|
+ let huojiangArray = allTests.filter(item => item.courseid == _cid4) // 教学获奖
|
|
|
+ let huojiangJson = JSON.parse(huojiangArray[0].chapters)
|
|
|
+ let huojiangTimeArray = huojiangJson[0].json.array
|
|
|
+ let huojiangJibieArray = huojiangJson[2].json.array
|
|
|
+ let huojiangMingciArray = huojiangJson[3].json.array
|
|
|
+ let timeXuan = []
|
|
|
+ let jibieXuan = []
|
|
|
+ let mingciXuan = []
|
|
|
+ huojiangTimeArray.forEach(el => {
|
|
|
+ timeXuan.push(el.option)
|
|
|
+ })
|
|
|
+ huojiangJibieArray.forEach(el => {
|
|
|
+ jibieXuan.push(el.option)
|
|
|
+ })
|
|
|
+ huojiangMingciArray.forEach(el => {
|
|
|
+ mingciXuan.push(el.option)
|
|
|
+ })
|
|
|
+
|
|
|
+ this.huojiangArray = huojiangArray
|
|
|
+ this.timeXuan = timeXuan
|
|
|
+ this.jibieXuan = jibieXuan
|
|
|
+ this.mingciXuan = mingciXuan
|
|
|
+ this.cType2 = timeXuan[0]
|
|
|
+ this.cType3 = timeXuan[0]
|
|
|
+ this.typeChange2()
|
|
|
+ this.typeChange3()
|
|
|
+
|
|
|
+
|
|
|
+ let deyuArray = allTests.filter(item => item.courseid == _cid3) // 德育
|
|
|
+ let deyuJson = JSON.parse(deyuArray[0].chapters)
|
|
|
+ let deyuTimeArray = deyuJson[0].json.array
|
|
|
+ let deyuJibieArray = deyuJson[3].json.array
|
|
|
+ let deyuTimeXuan = []
|
|
|
+ let deyuJibieXuan = []
|
|
|
+ deyuTimeArray.forEach(el => {
|
|
|
+ deyuTimeXuan.push(el.option)
|
|
|
+ })
|
|
|
+ deyuJibieArray.forEach(el => {
|
|
|
+ deyuJibieXuan.push(el.option)
|
|
|
+ })
|
|
|
+ this.deyuArray = deyuArray
|
|
|
+ this.deyuTimeXuan = deyuTimeXuan
|
|
|
+ this.deyuJibieXuan = deyuJibieXuan
|
|
|
+ this.cType4 = deyuTimeXuan[0]
|
|
|
+ this.typeChange4()
|
|
|
this.$forceUpdate();
|
|
|
})
|
|
|
.catch((err) => {
|