|
@@ -77,11 +77,11 @@
|
|
|
<div class="term-item-start">
|
|
|
<span>开始于</span>
|
|
|
<Select v-model="item.month" placeholder="月">
|
|
|
- <Option v-for="(item,index) in monthList" :value="index + 1" :key="index">{{ index + 1 }}</Option>
|
|
|
+ <Option v-for="(item,index) in monthList" :value="item" :key="index">{{ item }}</Option>
|
|
|
</Select>
|
|
|
<span> / </span>
|
|
|
<Select v-model="item.day" placeholder="日" @on-change="test()">
|
|
|
- <Option v-for="(item,index) in dayList" :value="index + 1" :key="index">{{ index + 1 }}</Option>
|
|
|
+ <Option v-for="(item,index) in dayList" :value="(item+1).toString()" :key="index">{{ (item+1).toString() }}</Option>
|
|
|
</Select>
|
|
|
</div>
|
|
|
<p class="term-item-students-num">学期时长:156 天</p>
|
|
@@ -307,6 +307,18 @@
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ getData() {
|
|
|
+ this.$api.schoolSetting.findSchoolSystem({
|
|
|
+ Code: this.demoLoginInfo.schoolCode
|
|
|
+ }).then(res => {
|
|
|
+ if (res.error == null) {
|
|
|
+ if (res.result.data.length > 0) {
|
|
|
+ this.schoolSetting = res.result.data[0];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
handleData() {
|
|
|
for (let i = 0; i < this.schoolSetting.systems.length; i++) {
|
|
|
this.schoolSetting.systems[i].gradeCount = this.schoolSetting.systems[i].grade.length;
|
|
@@ -523,12 +535,14 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.monthList = [...Array(12).keys()];
|
|
|
+ this.monthList = ['1','2','3','4','5','6','7','8','9','10','11','12',];
|
|
|
+ //this.monthList = [...Array(12).keys()];
|
|
|
this.gradeList = ['一年级','二年级','三年级','四年级','五年级'];
|
|
|
this.subjectList = ['语文','数学','外语','化学','物理','语文','数学','外语','化学','物理'];
|
|
|
this.dayList = [...Array(30).keys()];
|
|
|
this.monthEnList = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'];
|
|
|
- this.colorList = ['#F16C6A', '#68CDF1', '#00796B', '#7C4DFF', '#0288D1', '#D32F2F', '#00796B', '#7C4DFF','#0288D1', '#D32F2F', '#00796B', '#7C4DFF'];
|
|
|
+ this.colorList = ['#F16C6A', '#68CDF1', '#00796B', '#7C4DFF', '#0288D1', '#D32F2F', '#00796B', '#7C4DFF', '#0288D1', '#D32F2F', '#00796B', '#7C4DFF'];
|
|
|
+ this.getData();
|
|
|
},
|
|
|
computed: {
|
|
|
endMonth() {
|