|
@@ -59,6 +59,7 @@
|
|
<p class="semester-name-label" @click.stop>
|
|
<p class="semester-name-label" @click.stop>
|
|
<Input v-model="item.name" :disabled="editSemIndex !== index" placeholder="设置学期..." style="width: 180px" />
|
|
<Input v-model="item.name" :disabled="editSemIndex !== index" placeholder="设置学期..." style="width: 180px" />
|
|
</p>
|
|
</p>
|
|
|
|
+ <p>{{item.month}}</p>
|
|
<div class="term-item-start" @click.stop>
|
|
<div class="term-item-start" @click.stop>
|
|
<span>{{$t('schoolBaseInfo.startDate')}}</span>
|
|
<span>{{$t('schoolBaseInfo.startDate')}}</span>
|
|
<Select v-model="item.month" style="width:50px" placeholder="月" :disabled="editSemIndex !== index">
|
|
<Select v-model="item.month" style="width:50px" placeholder="月" :disabled="editSemIndex !== index">
|
|
@@ -216,7 +217,6 @@
|
|
<Icon type="md-add-circle" size="40" style="margin:auto;cursor:pointer;margin-top:30px;" @click="addCampus" />
|
|
<Icon type="md-add-circle" size="40" style="margin:auto;cursor:pointer;margin-top:30px;" @click="addCampus" />
|
|
</Modal>
|
|
</Modal>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -234,7 +234,6 @@
|
|
name: '',
|
|
name: '',
|
|
id: ''
|
|
id: ''
|
|
},
|
|
},
|
|
-
|
|
|
|
delSubStatus: false,
|
|
delSubStatus: false,
|
|
delAnaStatus: false,
|
|
delAnaStatus: false,
|
|
delGraStatus: false,
|
|
delGraStatus: false,
|
|
@@ -540,7 +539,6 @@
|
|
}
|
|
}
|
|
//this.$set(this.schoolSetting.period[this.curPriodIndex].semesters[index], 'days', count ? count : 365)
|
|
//this.$set(this.schoolSetting.period[this.curPriodIndex].semesters[index], 'days', count ? count : 365)
|
|
this.semDays.push(count ? count : 365)
|
|
this.semDays.push(count ? count : 365)
|
|
- this.updated = false
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
@@ -609,7 +607,7 @@
|
|
this.curSemIndex = 0
|
|
this.curSemIndex = 0
|
|
this.curPriodIndex = index
|
|
this.curPriodIndex = index
|
|
for (let item in this.schoolSetting.campuses) {
|
|
for (let item in this.schoolSetting.campuses) {
|
|
- if (this.schoolSetting.campuses[item].campusId === this.schoolSetting.period[this.curPriodIndex].campusId) {
|
|
|
|
|
|
+ if (this.schoolSetting.campuses[item].campusId == this.schoolSetting.period[this.curPriodIndex].campusId) {
|
|
this.selectedCampusIndex = item
|
|
this.selectedCampusIndex = item
|
|
break
|
|
break
|
|
}
|
|
}
|
|
@@ -695,14 +693,11 @@
|
|
let eDate = year + '-' + this.schoolSetting.period[this.curPriodIndex].semesters[i + 1].month + '-' + this.schoolSetting.period[this.curPriodIndex].semesters[i + 1].day
|
|
let eDate = year + '-' + this.schoolSetting.period[this.curPriodIndex].semesters[i + 1].month + '-' + this.schoolSetting.period[this.curPriodIndex].semesters[i + 1].day
|
|
let d = this.getDays(sDate, eDate)
|
|
let d = this.getDays(sDate, eDate)
|
|
count -= d
|
|
count -= d
|
|
- //this.$set(this.schoolSetting.period[this.curPriodIndex].semesters[i], 'days', d)
|
|
|
|
this.semDays.push(d)
|
|
this.semDays.push(d)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //this.$set(this.schoolSetting.period[this.curPriodIndex].semesters[index], 'days', count)
|
|
|
|
this.semDays.push(count)
|
|
this.semDays.push(count)
|
|
}
|
|
}
|
|
- this.updated = false
|
|
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.getLocalDefaultData()
|
|
this.getLocalDefaultData()
|
|
@@ -834,10 +829,14 @@
|
|
watch: {
|
|
watch: {
|
|
schoolSetting: {
|
|
schoolSetting: {
|
|
handler(newValue, oldValue) {
|
|
handler(newValue, oldValue) {
|
|
|
|
+ console.log('n', newValue)
|
|
|
|
+ console.log('o', oldValue)
|
|
|
|
+ console.log(this.isInit)
|
|
if (this.isInit) {
|
|
if (this.isInit) {
|
|
this.isInit = false
|
|
this.isInit = false
|
|
} else {
|
|
} else {
|
|
this.updated = true
|
|
this.updated = true
|
|
|
|
+ console.log('变了')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
deep: true
|
|
deep: true
|
|
@@ -851,18 +850,11 @@
|
|
this.getMonthList()
|
|
this.getMonthList()
|
|
},
|
|
},
|
|
beforeRouteLeave(to, from, next) {
|
|
beforeRouteLeave(to, from, next) {
|
|
- if (this.updated == true) {
|
|
|
|
|
|
+ if (this.updated) {
|
|
let config = {
|
|
let config = {
|
|
- render: (h) => {
|
|
|
|
- return h('h3', {
|
|
|
|
- style: {
|
|
|
|
- textAlign: 'center'
|
|
|
|
- },
|
|
|
|
- domProps: {
|
|
|
|
- innerText: this.$t('schoolBaseInfo.ssTips8')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ title: '保存提醒',
|
|
|
|
+ content: this.$t('schoolBaseInfo.ssTips8'),
|
|
|
|
+ okText:'离开',
|
|
onOk: () => {
|
|
onOk: () => {
|
|
next()
|
|
next()
|
|
},
|
|
},
|
|
@@ -879,7 +871,6 @@
|
|
this.colorList = ['#F16C6A', '#68CDF1', '#7C4DFF', '#00796B', '#D32F2F', '#0288D1', '#D32F2F', '#00796B', '#7C4DFF', '#0288D1']
|
|
this.colorList = ['#F16C6A', '#68CDF1', '#7C4DFF', '#00796B', '#D32F2F', '#0288D1', '#D32F2F', '#00796B', '#7C4DFF', '#0288D1']
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
-
|
|
|
|
//计算时区设置宽度
|
|
//计算时区设置宽度
|
|
tzWidth() {
|
|
tzWidth() {
|
|
if (this.schoolSetting.timeZone && this.schoolSetting.timeZone.label) {
|
|
if (this.schoolSetting.timeZone && this.schoolSetting.timeZone.label) {
|