diff --git a/src/views/calendar/index.vue b/src/views/calendar/index.vue new file mode 100644 index 0000000..39303f0 --- /dev/null +++ b/src/views/calendar/index.vue @@ -0,0 +1,424 @@ + + + + 课程日历管理 + + + + + 数据拉取区 + + + + + + + + + + + + + + {{ dataDateInfo }} + 拉取并关联 + + 新建日历事件 + + + + 日历预览区 + + + + {{ date.getDate() }} + + + + + + 当月事件列表 + + + + + {{ ev.title }} + {{ typeText(ev.className) }} + {{ ev.start | formatDateTime }} ~ {{ ev.end | formatDateTime }} + + {{ ev.location }} + 到期后:{{ expireText(ev.expire) }} + + + 编辑 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 保存 + + + + + + {{ eventDetail.title }} + {{ typeText(eventDetail.className) }} + + {{ eventDetail.start | formatDateTime }} ~ + {{ eventDetail.end | formatDateTime }} + + {{ eventDetail.location }} + {{ eventDetail.teacher }} + {{ eventDetail.description }} + + 到期后:{{ expireText(eventDetail.expire) }} + + + + 关闭 + + + + + + + + diff --git a/src/views/student/index.vue b/src/views/student/index.vue index e038c91..d15fae0 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -195,6 +195,19 @@ + + + + + + + + + @@ -345,7 +358,17 @@ label: '性别', align: 'center', width: 120 - }, { + }, { + prop: 'no', + label: '学号', + align: 'center', + width: 180 + },{ + prop: 'headimgurl', + label: '头像', + align: 'center', + width: 100 + },{ prop: 'idcard', label: '身份证号', align: 'center', diff --git a/src/views/student/search.vue b/src/views/student/search.vue index 946569f..d11fc54 100644 --- a/src/views/student/search.vue +++ b/src/views/student/search.vue @@ -201,6 +201,18 @@ + + + + + + + + @@ -337,6 +349,16 @@ label: '性别', align: 'center', width: 120 + }, { + prop: 'no', + label: '学号', + align: 'center', + width: 180 + },{ + prop: 'headimgurl', + label: '头像', + align: 'center', + width: 100 }, { prop: 'idcard', label: '身份证号', diff --git a/src/views/survey/components/SurveyCreateDialog.vue b/src/views/survey/components/SurveyCreateDialog.vue new file mode 100644 index 0000000..ec24817 --- /dev/null +++ b/src/views/survey/components/SurveyCreateDialog.vue @@ -0,0 +1,133 @@ + + + + + + + 保存 + 关闭 + + + + + + 题型库 + + {{ types.label }} + + + + + + + + + + + {{ idx+1 }} + + + + + + + + + + + + + + 添加选项 + + + + + + + 评分题,用户可打分 + + + + + + + + + + + + + + diff --git a/src/views/survey/components/SurveyFillDialog.vue b/src/views/survey/components/SurveyFillDialog.vue new file mode 100644 index 0000000..715d37e --- /dev/null +++ b/src/views/survey/components/SurveyFillDialog.vue @@ -0,0 +1,231 @@ + + + + + + {{ surveyData.title }} + {{ surveyData.description }} + + {{ surveyData.createTime }} + {{ surveyData.deadline }} + + + + + + {{ idx+1 }} + {{ q.title }} + * + + + + + {{ opt }} + + + + + {{ opt }} + + + + + + + + + + + + + + + + + + + {{ q.minLabel }} + + {{ q.maxLabel }} + + + + + + 提交 + 关闭 + + + + + + + + diff --git a/src/views/survey/components/SurveyResultsDialog.vue b/src/views/survey/components/SurveyResultsDialog.vue new file mode 100644 index 0000000..fa3dab5 --- /dev/null +++ b/src/views/survey/components/SurveyResultsDialog.vue @@ -0,0 +1,90 @@ + + + + + + {{ surveyData.title }} + + 创建时间:{{ surveyData.createTime }} + 截止时间:{{ surveyData.deadline }} + + + 关闭 + + + + + + + {{ surveyData.responses }} + 回复数 + + + + {{ surveyData.questions.length }} + 题目数 + + + + {{ surveyData.avgScore || '-' }} + 平均分 + + + + + + {{ idx+1 }}. {{ q.title }} + + 题型:{{ typeText(q.type) }} + + + + + + + + + + + + 评分题,用户可打分 + + + + + + + + + + diff --git a/src/views/survey/index.vue b/src/views/survey/index.vue new file mode 100644 index 0000000..32fea39 --- /dev/null +++ b/src/views/survey/index.vue @@ -0,0 +1,575 @@ + + + + + + + 调查问卷管理 + + + + + + + + + + + + + + + + + + + + + + 创建问卷 + + + + + + + + {{ survey.title }} + {{ statusText(survey.status) }} + + + + + 编辑 + 查看结果 + 复制 + 删除 + + + + + 创建时间:{{ survey.createTime }} + 截止时间:{{ survey.deadline }} + + + {{ survey.bindCourse }} + + + + + {{ survey.responses }} + 回复数 + + + {{ survey.questions.length }} + 题目数 + + + {{ survey.avgScore || '-' }} + 平均分 + + + + 发布 + 预览 + 分享 + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 创建问卷 + + + + + + + + + + + + + + diff --git a/vue.config.js b/vue.config.js index cf330df..c2089c8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,9 +23,11 @@ module.exports = { * then publicPath should be set to "/bar/". * In most cases please use '/' !!! * Detail: https://cli.vuejs.org/config/#publicpath + * /Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin + * */ - publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', - outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/suzhoukeji/public/admin', + publicPath: process.env.ENV === 'staging' ? '/admin' : '/admin', + outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项