提交 b5b9b8d6 authored 作者: 高一's avatar 高一

sofia国际化

上级 1e93d3ba
...@@ -220,6 +220,40 @@ ...@@ -220,6 +220,40 @@
"showCourse": "View", "showCourse": "View",
"progress": "Video viewing progress" "progress": "Video viewing progress"
}, },
"courseDetail": {
"title": "Course details",
"Keeplearning": "Continue learning",
"Startlearning": "Start to learn",
"Courseselection": "Course selection",
"Videoviewingprogress": "Video viewing progress",
"Coursecontent": "Course content",
"Coursediscussion": "Discussions",
"Publishingissues": "Publishing issues ...",
"Sortbytime": "Sort by time",
"Sortbyvote": "Sort by vote",
"Releaseissues": "Post a question",
"Returntoquestionlist": "Return to report list",
"title1": "Title",
"inputtitle1": "Please enter a title",
"Textcontent": "Text content",
"Courseassessment": "Course assessment",
"Finalresult": "Final grade:",
"Courseassessmentstandard": "Assessment standards",
"Learningprogressachievements": "Learning progress and results",
"title2": "Statistics of watching 'audio and video' of the course (cumulative learning time:",
"Completionrate": ",completion rate:",
"chapter": "Chapter",
"Lengthofstudy": "Study duration",
"percent": "Percentage",
"Nodataavailable": "No data",
"subjectivequestions": "Test questions and subjective questions",
"Submissiontime": "Submit time",
"score": "score",
"Bighomework": "Final assessment",
"Status": "Status:",
"score2": "score:",
"Courselecturer": "Course Lecturer"
},
"discussion": { "discussion": {
"title": "Course discussion", "title": "Course discussion",
"tap1": "My Question", "tap1": "My Question",
...@@ -313,6 +347,10 @@ ...@@ -313,6 +347,10 @@
"abstractHint": "Please enter a summary of the report", "abstractHint": "Please enter a summary of the report",
"themeTips": "Report subject cannot be empty", "themeTips": "Report subject cannot be empty",
"submitSuccess": "Submitted successfully" "submitSuccess": "Submitted successfully"
},
"reportList": {
"title": "Academic Report",
"Appliedactivities": "Applied"
} }
}, },
"feedback": { "feedback": {
...@@ -369,6 +407,76 @@ ...@@ -369,6 +407,76 @@
"passed": "Pass", "passed": "Pass",
"failed": "Fail" "failed": "Fail"
} }
},
"test": {
"title": "This is a test page",
"yuyan": "Switch between Chinese and English:"
},
"survey": {
"surveyy": {
"title": "Sofia MBA Teaching Service Evaluation Form",
"title2": "Hello! In order to ensure that we can provide you with better courses, improve the quality of teaching and services, please give us valuable opinions and suggestions for this course. Thank you for your support! (Please select a star rating, select 1 star for 1 point, up to 5 stars). Please rate each item from 1 (low) to 5 (high) and add any comments you want to write.",
"kecheng": "Course Title:",
"Pleaseexplain": "Please explain",
"tip": "What else needs to be improved",
"btmtip": "If you have gained a lot from the ZIJING MBA degree course, we would like to thank you very much for helping us recommend students as good as you to join the MBA family. Please contact your head teacher for details.",
"previouspage": "previous page",
"submit": "Submit",
"nextpage": "next page"
},
"surveyPhone": {
"title": "(course assessment)",
"Pleaseexplain": "Please explain",
"tip": "What else needs to be improved",
"previouspage": "previous page",
"submit": "Submit",
"nextpage": "next page"
}
},
"other": {
"message": {
"title": "Notifications",
"tip": "You have not received any notice"
},
"setPwd": {
"title": "Change password",
"Oldpassword": "Old password",
"inputOldpassword": "Please enter the password",
"newpassword": "new password",
"inputnewpassword": "Enter a new password",
"Repeatnewpassword": "Re-enter the new password",
"inputRepeatnewpassword": "Please enter the new password again",
"save": "Save"
},
"updatePic": {
"title": "Change profile photo",
"student": "Student name:",
"studentnum": "College ID:",
"studentid": "Student Sid:",
"studentsoid": "Student SSO_ id:",
"msg": "Supports jpg, gif, png or bmp format pictures, the recommended file size is less than 5M",
"clickup": "Click upload",
"Oldpassword": "Old password",
"inputOldpassword": "Enter the password",
"newpassword": "new password",
"inputnewpassword": "Enter a new password",
"Repeatnewpassword": "Re-enter the new password",
"inputRepeatnewpassword": "Please enter the new password again",
"save": "Save"
}
},
"mobile": {
"studentHelp": {
"title": "User Guide - student end"
},
"teacherHelp": {
"title": "User Guide - teacher side"
}
} }
}, },
"live": { "live": {
......
...@@ -203,6 +203,11 @@ ...@@ -203,6 +203,11 @@
"learn": { "learn": {
"course": { "course": {
"title": "我的课程", "title": "我的课程",
"title2": "直播提醒:",
"msg": "您的直播课程",
"msg1": "将于",
"msg2": "开始",
"Enterlive": "进入直播",
"goCourseAllStr": "请去选课广场选课", "goCourseAllStr": "请去选课广场选课",
"noFitCourseStr": "暂无符合条件的课程", "noFitCourseStr": "暂无符合条件的课程",
"noCourseStr": "暂无相关课程", "noCourseStr": "暂无相关课程",
...@@ -221,6 +226,40 @@ ...@@ -221,6 +226,40 @@
"showCourse": "查看课程", "showCourse": "查看课程",
"progress": "视频观看进度" "progress": "视频观看进度"
}, },
"courseDetail": {
"title": "课程详情",
"Keeplearning": "继续学习",
"Startlearning": "开始学习",
"Courseselection": "选课",
"Videoviewingprogress": "视频观看进度",
"Coursecontent": "课程内容",
"Coursediscussion": "课程讨论",
"Publishingissues": "发布问题 ...",
"Sortbytime": "按时间排序",
"Sortbyvote": "按投票排序",
"Releaseissues": "发布问题",
"Returntoquestionlist": "返回问题列表",
"title1": "标题",
"inputtitle1": "请输入标题",
"Textcontent": "正文内容",
"Courseassessment": "课程考核",
"Finalresult": "最终成绩:",
"Courseassessmentstandard": "课程考核标准",
"Learningprogressachievements": "学习进度及成绩",
"title2": "课程“音视频”观看统计( 累计学习时长:",
"Completionrate": ",完成率:",
"chapter": "章节",
"Lengthofstudy": "学习时长",
"percent": "百分比",
"Nodataavailable": "暂无数据",
"subjectivequestions": "试题及主观题",
"Submissiontime": "提交时间",
"score": "得分",
"Bighomework": "大作业",
"Status": "状 态:",
"score2": "得 分:",
"Courselecturer": "课程讲师"
},
"discussion": { "discussion": {
"title": "课程讨论", "title": "课程讨论",
"tap1": "我提出的问题", "tap1": "我提出的问题",
...@@ -314,6 +353,10 @@ ...@@ -314,6 +353,10 @@
"abstractHint": "请输入报告摘要", "abstractHint": "请输入报告摘要",
"themeTips": "报告主题不能为空", "themeTips": "报告主题不能为空",
"submitSuccess": "提交成功" "submitSuccess": "提交成功"
},
"reportList": {
"title": "学术报告列表",
"Appliedactivities": "已申请的活动"
} }
}, },
"feedback": { "feedback": {
...@@ -370,6 +413,76 @@ ...@@ -370,6 +413,76 @@
"passed": "通过", "passed": "通过",
"failed": "未通过" "failed": "未通过"
} }
},
"test": {
"title": "这是一个测试页面",
"yuyan": "切换中英文:"
},
"survey": {
"surveyy": {
"title": "索菲亚MBA课程教学服务评估表",
"title2": "您好!为保证我们能够为您提供更优质的课程,提高教学质量及服务,请您对此次课程提出宝贵的意见和建议。感谢您对我们工作的支持!(请您选择星级,选中1颗星为1分,最高5颗星)。请用1(低)到5(高)为每一项打分,并加上任何您想写的评论。",
"kecheng": "课程名称:",
"Pleaseexplain": "请说明",
"tip": "还有哪些需要改进的方面",
"btmtip": "如果您在紫荆MBA学位课程的收获比较大,我们会非常感谢您帮助我们推荐和您一样优秀的学员加入到MBA的大家庭,具体请联系您所在班的班主任。",
"previouspage": "上一页",
"submit": "提交",
"nextpage": "下一页"
},
"surveyPhone": {
"title": "(课程评估)",
"Pleaseexplain": "请说明",
"tip": "还有哪些需要改进的方面",
"previouspage": "上一页",
"submit": "提交",
"nextpage": "下一页"
}
},
"other": {
"message": {
"title": "通知",
"tip": "您没有收到任何通知"
},
"setPwd": {
"title": "修改密码",
"Oldpassword": "旧密码",
"inputOldpassword": "请输入密码",
"newpassword": "新密码",
"inputnewpassword": "请输入新密码",
"Repeatnewpassword": "重复新密码",
"inputRepeatnewpassword": "请重复输入新密码",
"save": "保存"
},
"updatePic": {
"title": "修改头像",
"student": "学员姓名:",
"studentnum": "学员学号:",
"studentid": "学员sid:",
"studentsoid": "学员sso_id:",
"msg": "支持jpg、gif、png或bmp格式的图片,建议文件小于5M",
"clickup": "点击上传",
"Oldpassword": "旧密码",
"inputOldpassword": "请输入密码",
"newpassword": "新密码",
"inputnewpassword": "请输入新密码",
"Repeatnewpassword": "重复新密码",
"inputRepeatnewpassword": "请重复输入新密码",
"save": "保存"
}
},
"mobile": {
"studentHelp": {
"title": "使用指南 - 学生端"
},
"teacherHelp": {
"title": "使用指南 - 教师端"
}
} }
}, },
"live": { "live": {
......
差异被折叠。
<template> <template>
<div> <div>
<div class="con-title">学术报告列表</div> <div class="con-title">{{ $t('pages.learn.reportList.title') }}</div>
<div class="con-box"> <div class="con-box">
<el-button type="primary" @click="goActiveList">已申请的活动</el-button> <el-button type="primary" @click="goActiveList">{{ $t('pages.learn.reportList.已申请的活动') }}</el-button>
<div style="width: 100%; height: 0.2rem;"></div> <div style="width: 100%; height: 0.2rem;"></div>
<m-page <m-page
:tableHead="tableHead" :tableHead="tableHead"
......
<template> <template>
<div> <div>
<div class="con-title">通知</div> <div class="con-title">{{ $t('pages.other.message.title') }}</div>
<div class="con-box"> <div class="con-box">
<el-collapse accordion v-model="activeName" @change="handleChange" v-if="msgList.length"> <el-collapse accordion v-model="activeName" @change="handleChange" v-if="msgList.length">
<template v-for="(item, index) in msgList"> <template v-for="(item, index) in msgList">
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</el-collapse-item> </el-collapse-item>
</template> </template>
</el-collapse> </el-collapse>
<div class="empty" v-else>您没有收到任何通知</div> <div class="empty" v-else>{{ $t('pages.other.message.tip') }}</div>
<el-pagination <el-pagination
background background
layout="prev, pager, next" layout="prev, pager, next"
...@@ -58,7 +58,10 @@ export default { ...@@ -58,7 +58,10 @@ export default {
} }
}, },
getData() { getData() {
const params = { offset: this.page.offset, limit: this.page.limit } const params = {
offset: this.page.offset,
limit: this.page.limit
}
cAction.Other.getMyMsg(params).then(response => { cAction.Other.getMyMsg(params).then(response => {
this.msgList = response.list this.msgList = response.list
this.page.total = parseInt(response.count) this.page.total = parseInt(response.count)
...@@ -76,6 +79,7 @@ export default { ...@@ -76,6 +79,7 @@ export default {
.el-collapse-item__header { .el-collapse-item__header {
line-height: 15px; line-height: 15px;
} }
.empty { .empty {
padding: 100px; padding: 100px;
font-size: 18px; font-size: 18px;
......
<template> <template>
<div> <div>
<div class="con-title">修改密码</div> <div class="con-title">{{ $t('pages.other.setPwd.tip') }}</div>
<div class="con-box"> <div class="con-box">
<el-row> <el-row>
<!-- <el-col class="hidden-sm-and-down" :md="6" :lg="7" :xl="8" style="height: 1px;"></el-col> --> <!-- <el-col class="hidden-sm-and-down" :md="6" :lg="7" :xl="8" style="height: 1px;"></el-col> -->
<el-col :xs="24" :sm="16" :md="12" :lg="10" :xl="8"> <el-col :xs="24" :sm="16" :md="12" :lg="10" :xl="8">
<el-form ref="setpwdform" label-width="100px" :model="accountSetPwd" :rules="rules"> <el-form ref="setpwdform" label-width="100px" :model="accountSetPwd" :rules="rules">
<el-form-item label="旧密码" prop="oldPwd"> <el-form-item :label="$t('pages.other.setPwd.Oldpassword')" prop="oldPwd">
<el-input v-model="accountSetPwd.oldPwd" type="password" placeholder="请输入密码" @keyup.enter.native="onSubmitSetPwd"></el-input> <el-input
v-model="accountSetPwd.oldPwd"
type="password"
:placeholder="$t('pages.other.setPwd.inputOldpassword')"
@keyup.enter.native="onSubmitSetPwd"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="新密码" prop="newPwd"> <el-form-item :label="$t('pages.other.setPwd.newpassword')" prop="newPwd">
<el-input v-model="accountSetPwd.newPwd" type="password" placeholder="请输入新密码" @keyup.enter.native="onSubmitSetPwd"></el-input> <el-input
v-model="accountSetPwd.newPwd"
type="password"
placeholder="$t('pages.other.setPwd.inputnewpassword')"
@keyup.enter.native="onSubmitSetPwd"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="重复新密码" prop="newPwdAgain"> <el-form-item :label="$t('pages.other.setPwd.Repeatnewpassword')" prop="newPwdAgain">
<el-input v-model="accountSetPwd.newPwdAgain" type="password" placeholder="请重复输入新密码" @keyup.enter.native="onSubmitSetPwd"></el-input> <el-input
v-model="accountSetPwd.newPwdAgain"
type="password"
placeholder="$t('pages.other.setPwd.inputRepeatnewpassword')"
@keyup.enter.native="onSubmitSetPwd"
></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmitSetPwd">保存</el-button> <el-button type="primary" @click="onSubmitSetPwd">{{ $t('pages.other.setPwd.save') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-col> </el-col>
...@@ -29,8 +44,8 @@ ...@@ -29,8 +44,8 @@
import { request } from '@action' import { request } from '@action'
export default { export default {
components: { }, components: {},
data () { data() {
/* 校验两次输入密码是否一致 */ /* 校验两次输入密码是否一致 */
const checkNewPwd = (rule, value, callback) => { const checkNewPwd = (rule, value, callback) => {
if (value !== this.accountSetPwd.newPwd) { if (value !== this.accountSetPwd.newPwd) {
...@@ -44,24 +59,49 @@ export default { ...@@ -44,24 +59,49 @@ export default {
accountSetPwd: {}, accountSetPwd: {},
rules: { rules: {
oldPwd: [ oldPwd: [
{ required: true, message: '请输入密码', trigger: 'blur' }, {
{ pattern: /^[a-zA-Z0-9_+-]{6,12}$/, message: '请输入6-20个字母、数字及标点符号', trigger: 'change' } required: true,
message: '请输入密码',
trigger: 'blur'
},
{
pattern: /^[a-zA-Z0-9_+-]{6,12}$/,
message: '请输入6-20个字母、数字及标点符号',
trigger: 'change'
}
], ],
newPwd: [ newPwd: [
{ required: true, message: '请输入新密码', trigger: 'blur' }, {
{ pattern: /^[a-zA-Z0-9_+-]{6,12}$/, message: '请输入6-20个字母、数字及标点符号', trigger: 'change' } required: true,
message: '请输入新密码',
trigger: 'blur'
},
{
pattern: /^[a-zA-Z0-9_+-]{6,12}$/,
message: '请输入6-20个字母、数字及标点符号',
trigger: 'change'
}
], ],
newPwdAgain: [ newPwdAgain: [
{ required: true, message: '请重复输入新密码', trigger: 'blur' }, {
{ validator: checkNewPwd, trigger: 'change' } required: true,
message: '请重复输入新密码',
trigger: 'blur'
},
{
validator: checkNewPwd,
trigger: 'change'
}
] ]
} }
} }
}, },
methods: { methods: {
handleClick (tab, event) { /* console.log(tab, event) */ }, handleClick(tab, event) {
onSubmitSetPwd () { /* console.log(tab, event) */
this.$refs.setpwdform.validate((valid) => { },
onSubmitSetPwd() {
this.$refs.setpwdform.validate(valid => {
if (valid) { if (valid) {
request({ request({
component: this, component: this,
......
<template> <template>
<div> <div>
<div class="con-title">修改头像</div> <div class="con-title">{{ $t('pages.other.setPwd.title') }}</div>
<div class="con-box"> <div class="con-box">
<el-row justify="center"> <el-row justify="center">
<el-col :xs="24" :sm="9" :md="8" :lg="7" :xl="6"> <el-col :xs="24" :sm="9" :md="8" :lg="7" :xl="6">
<div class="pic-show"> <div class="pic-show">
<img :src="imgUrl" alt /> <img :src="imgUrl" alt />
</div> </div>
</el-col> </el-col>
<el-col :xs="24" :sm="15" :md="16" :lg="17" :xl="18"> <el-col :xs="24" :sm="15" :md="16" :lg="17" :xl="18">
<div class="info"> <div class="info">
学员姓名: {{ $t('pages.other.setPwd.student') }}
<b>{{user.student_name}}</b> <b>{{user.student_name}}</b>
</div> </div>
<div class="info">学员学号:{{user.student_no}}</div> <div class="info">{{ $t('pages.other.setPwd.studentnum') }}{{user.student_no}}</div>
<div class="info" style="display: none;">学员sid:{{user.student_id}}</div> <div class="info" style="display: none;">{{ $t('pages.other.setPwd.studentid') }}{{user.student_id}}</div>
<div class="info" style="display: none;">学员sso_id:{{user.sso_id}}</div> <div class="info" style="display: none;">{{ $t('pages.other.setPwd.studentsoid') }}{{user.sso_id}}</div>
<div class="info">支持jpg、gif、png或bmp格式的图片,建议文件小于5M</div> <div class="info">{{ $t('pages.other.setPwd.msg') }}</div>
<el-upload <el-upload ref="upFile" class="upload-demo" action :multiple="false" :limit="1" :show-file-list="false" :on-change="handleChange" :http-request="uploadFile" :file-list="filesArr">
ref="upFile" <el-button type="primary">{{ $t('pages.other.setPwd.clickup') }}</el-button>
class="upload-demo" </el-upload>
action </el-col>
:multiple="false" </el-row>
:limit="1"
:show-file-list="false"
:on-change="handleChange"
:http-request="uploadFile"
:file-list="filesArr"
>
<el-button type="primary">点击上传</el-button>
</el-upload>
</el-col>
</el-row>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -96,7 +86,11 @@ export default { ...@@ -96,7 +86,11 @@ export default {
}, },
updateUser() { updateUser() {
action.Other.updateUser({ action.Other.updateUser({
SsoBasicUser: { info: { avatar: this.imgUrl } } SsoBasicUser: {
info: {
avatar: this.imgUrl
}
}
}).then(data => { }).then(data => {
window.G.UserInfo.avatar = this.imgUrl window.G.UserInfo.avatar = this.imgUrl
}) })
...@@ -112,21 +106,23 @@ export default { ...@@ -112,21 +106,23 @@ export default {
margin: 0 auto; margin: 0 auto;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
background: #ffffff url('../../assets/images/person-default.jpg') center background: #ffffff url('../../assets/images/person-default.jpg') center center no-repeat;
center no-repeat;
background-size: cover; background-size: cover;
border: 1px solid #e6e3e3; border: 1px solid #e6e3e3;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
} }
} }
.info { .info {
margin-top: 0.2rem; margin-top: 0.2rem;
} }
.upload-demo { .upload-demo {
display: block; display: block;
margin: 0.2rem 0 0 0; margin: 0.2rem 0 0 0;
...@@ -137,6 +133,7 @@ export default { ...@@ -137,6 +133,7 @@ export default {
margin-top: 0.2rem; margin-top: 0.2rem;
text-align: center; text-align: center;
} }
.upload-demo { .upload-demo {
text-align: center; text-align: center;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论