master
lion 2 weeks ago
parent b44c51cb91
commit 8552de4bec

@ -150,6 +150,32 @@
</div>
</template>
<template v-if="form.type === 3" v-slot:course_type_id>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red; font-weight: bold; padding-right: 4px"
>*</span
>课程体系
</div>
<div class="xy-table-item-content">
<el-select
v-model="form.course_type_id"
placeholder="请选择课程体系"
clearable
style="width: 100%"
>
<el-option
v-for="item in courseTypeOptions"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
</div>
</div>
</template>
<template v-slot:title>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
@ -537,6 +563,7 @@ export default {
form: {
is_publish:1,
type: "",
course_type_id: "",
course_id: "",
introduce: "",
course_content_id: "",
@ -571,6 +598,13 @@ export default {
trigger: 'change'
},
],
course_type_id: [
{
required: true,
message: "请选择课程体系",
trigger: 'change'
},
],
title: [
{
required: true,
@ -820,6 +854,7 @@ export default {
//
const mainErrors = [];
if (!this.form.type) mainErrors.push('请选择日程类型');
if (this.form.type === 3 && !this.form.course_type_id) mainErrors.push('请选择课程体系');
if (!this.form.title) mainErrors.push('请输入标题');
if (!this.form.start_time) mainErrors.push('请选择开始时间');
@ -1028,6 +1063,7 @@ export default {
this.form = {
is_publish: 1,
type: "",
course_type_id: "",
course_id: "",
introduce: "",
course_content_id: "",

@ -5,7 +5,7 @@
<el-button type="success" icon="el-icon-plus" @click="openCreateModal('add')"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="exportCalendar"></el-button>
<div style="color: #333; font-size: 16px; font-weight: 500;">
本月开课天数{{ monthDayCalendar }} {{ calendarDate.getFullYear() }}年累计开课天数{{ yearDayCalendar }}
本月开课天数{{ monthDayCalendar }} {{ calendarDate.getFullYear() }}年累计开课天数{{ yearDayCalendar }} 本月开课场次{{ monthCourseCount }} {{ calendarDate.getFullYear() }}年开课场次{{ yearCourseCount }}
</div>
</div>
<!-- 日历预览区 -->
@ -67,7 +67,9 @@ import { getToken } from '@/utils/auth';
// top
weekRowTops: [],
monthDayCalendar: 0,
yearDayCalendar: 0
yearDayCalendar: 0,
monthCourseCount: 0,
yearCourseCount: 0
}
},
computed: {
@ -153,6 +155,8 @@ import { getToken } from '@/utils/auth';
this.list = (res.list || res || []).map(e => ({ ...e, id: e.id || e._id }))
this.monthDayCalendar = res.monthDayCalendar || 0
this.yearDayCalendar = res.yearDayCalendar || 0
this.monthCourseCount = res.monthCourseCount || 0
this.yearCourseCount = res.yearCourseCount || 0
//
this.generateDynamicStyles()
//

@ -28,9 +28,9 @@ module.exports = {
*/
publicPath: process.env.ENV === 'staging' ? '/admin' : '/admin',
// 测试
// outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin',
outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin',
// 正式
outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin',
// outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save