|
@@ -105,21 +105,19 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<Draggable ghost-class="ghost" class="period-list list-group" :list="schoolSetting.period" :animation="200">
|
|
<Draggable ghost-class="ghost" class="period-list list-group" :list="schoolSetting.period" :animation="200">
|
|
- <div v-for="(item, index) in schoolSetting.period" :key="index">
|
|
|
|
- <div v-if="!item.status" class="period-item list-group-item" @click.capture="choosePeriod(index)" :class="index == curPriodIndex ? 'block-bg-active block-bg' : 'block-bg'">
|
|
|
|
- <p class="period-item-name semester-name-label" @click.stop>
|
|
|
|
- <Input v-model="item.name" :disabled="editPrdIndex !== index" :placeholder="$t('schoolBaseInfo.pdHolder')" style="width: 160px" />
|
|
|
|
- <span class="campus-label" @click="setCampus(item.campusId)">
|
|
|
|
- {{ getCampusName(item.campusId) }}
|
|
|
|
- </span>
|
|
|
|
- <span class="type-label" @click="setPdType(item.periodType)">
|
|
|
|
- {{ getPdType(item.periodType) }}
|
|
|
|
- </span>
|
|
|
|
- </p>
|
|
|
|
- <p class="period-item-num"><span></span>{{ $t("schoolBaseInfo.semesterNum") + item.semesters.length }}</p>
|
|
|
|
- <p class="period-item-num"><span></span>{{ $t("schoolBaseInfo.gradeNum") + item.grades.length }}</p>
|
|
|
|
- <p class="period-item-num"><span></span>{{ $t("schoolBaseInfo.periodNum") + item.subjects.length }}</p>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="period-item list-group-item" v-for="(item, index) in schoolSetting.period" :key="index" @click.capture="choosePeriod(index)" :class="index == curPriodIndex ? 'block-bg-active block-bg' : 'block-bg'">
|
|
|
|
+ <p class="period-item-name semester-name-label" @click.stop>
|
|
|
|
+ <Input v-model="item.name" :disabled="editPrdIndex !== index" :placeholder="$t('schoolBaseInfo.pdHolder')" style="width: 160px" />
|
|
|
|
+ <span class="campus-label" @click="setCampus(item.campusId)">
|
|
|
|
+ {{ getCampusName(item.campusId) }}
|
|
|
|
+ </span>
|
|
|
|
+ <span class="type-label" @click="setPdType(item.periodType)">
|
|
|
|
+ {{ getPdType(item.periodType) }}
|
|
|
|
+ </span>
|
|
|
|
+ </p>
|
|
|
|
+ <p class="period-item-num"><span></span>{{ $t("schoolBaseInfo.semesterNum") + item.semesters.length }}</p>
|
|
|
|
+ <p class="period-item-num"><span></span>{{ $t("schoolBaseInfo.gradeNum") + item.grades.length }}</p>
|
|
|
|
+ <p class="period-item-num"><span></span>{{ $t("schoolBaseInfo.periodNum") + item.subjects.length }}</p>
|
|
</div>
|
|
</div>
|
|
</Draggable>
|
|
</Draggable>
|
|
<EmptyData v-show="!schoolSetting || !schoolSetting.period.length"></EmptyData>
|
|
<EmptyData v-show="!schoolSetting || !schoolSetting.period.length"></EmptyData>
|