提交 d99682a6 authored 作者: lihuihui's avatar lihuihui

国际化更新

上级 ada18990
...@@ -203,6 +203,26 @@ ...@@ -203,6 +203,26 @@
"downloadButtonText": "Download uploaded attachments", "downloadButtonText": "Download uploaded attachments",
"subBtn": "Submit" "subBtn": "Submit"
} }
},
"grade": {
"credit": {
"title": "Credits",
"unpublished": "Unpublished",
"myCredits": "Credits",
"totalCredits": "Total",
"compCredits": "Required",
"eleCredits": "Elective",
"allCredits": "Total",
"serialNumber": "NO",
"semester": "Term",
"class": "Class",
"course": "Course",
"courseCredits": "Course credits",
"status": "Status",
"credit": "Credit",
"grade": "Grade",
"operate": "Operate"
}
} }
} }
} }
...@@ -203,6 +203,26 @@ ...@@ -203,6 +203,26 @@
"downloadButtonText": "下载已上传附件", "downloadButtonText": "下载已上传附件",
"subBtn": "提交" "subBtn": "提交"
} }
},
"grade": {
"credit": {
"title": "我的学分",
"unpublished": "未发布",
"myCredits": "我的学分",
"totalCredits": "总计学分",
"compCredits": "必修学分",
"eleCredits": "选修学分",
"allCredits": "总学分",
"serialNumber": "序号",
"semester": "学期",
"class": "班级",
"course": "课程",
"courseCredits": "课程学分",
"status": "状态",
"credit": "学分",
"grade": "成绩",
"operate": "操作"
}
} }
} }
} }
<template> <template>
<div> <div>
<div class="con-title">我的学分</div> <div class="con-title">{{ $t('pages.grade.credit.title') }}</div>
<div class="con-box"> <div class="con-box">
<div class="total-core"> <div class="total-core">
<div class="title">总计学分</div> <div class="title">{{ $t('pages.grade.credit.totalCredits') }}</div>
<div class="core">{{score.total}}</div> <div class="core">{{score.total}}</div>
<el-progress ref="credit_total" :text-inside="true" :stroke-width="30" :percentage="percent1" color="#df9d75"></el-progress> <el-progress ref="credit_total" :text-inside="true" :stroke-width="30" :percentage="percent1" color="#df9d75"></el-progress>
</div> </div>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12"> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
<div class="compulsory-core"> <div class="compulsory-core">
<div class="title">必修学分</div> <div class="title">{{ $t('pages.grade.credit.compCredits') }}</div>
<div class="core">{{score.must}}</div> <div class="core">{{score.must}}</div>
<el-progress ref="credit_must" :text-inside="true" :stroke-width="30" :percentage="percent2" color="#8ca4cf"></el-progress> <el-progress ref="credit_must" :text-inside="true" :stroke-width="30" :percentage="percent2" color="#8ca4cf"></el-progress>
</div> </div>
</el-col> </el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12"> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
<div class="elective-core"> <div class="elective-core">
<div class="title">选修学分</div> <div class="title">{{ $t('pages.grade.credit.eleCredits') }}</div>
<div class="core">{{score.unmust}}</div> <div class="core">{{score.unmust}}</div>
<el-progress ref="credit_unmust" :text-inside="true" :stroke-width="30" :percentage="percent3" color="#66c6bd"></el-progress> <el-progress ref="credit_unmust" :text-inside="true" :stroke-width="30" :percentage="percent3" color="#66c6bd"></el-progress>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<div class="color-box"> <div class="color-box">
<div class="color" style="background: #8ca4cf;"></div><div class="txt">必修学分</div> <div class="color" style="background: #8ca4cf;"></div><div class="txt">{{ $t('pages.grade.credit.compCredits') }}</div>
<div class="color" style="background: #66c6bd;"></div><div class="txt">选修学分</div> <div class="color" style="background: #66c6bd;"></div><div class="txt">{{ $t('pages.grade.credit.eleCredits') }}</div>
<div class="color" style="background: #df9d75;"></div><div class="txt">总学分</div> <div class="color" style="background: #df9d75;"></div><div class="txt">{{ $t('pages.grade.credit.allCredits') }}</div>
</div> </div>
<m-page <m-page
:tableHead="tableHead" :tableHead="tableHead"
...@@ -63,16 +63,16 @@ export default { ...@@ -63,16 +63,16 @@ export default {
}, },
tableConfig: { border: '', size: '', selection: { has: false, sels: [], width: '50px', fix: 'left', align: '' } }, // 增加选择框,has设置为true tableConfig: { border: '', size: '', selection: { has: false, sels: [], width: '50px', fix: 'left', align: '' } }, // 增加选择框,has设置为true
tableHead: [ tableHead: [
{ prop: 'index', label: '序号', minWidth: '40', fix: false }, { prop: 'index', label: this.$t('pages.grade.credit.serialNumber'), minWidth: '40', fix: false },
{ prop: 'semester_name', label: '学期', minWidth: '60', fix: false }, { prop: 'semester_name', label: this.$t('pages.grade.credit.semester'), minWidth: '60', fix: false },
{ prop: 'class_name', label: '班级', minWidth: '120', fix: false }, { prop: 'class_name', label: this.$t('pages.grade.credit.class'), minWidth: '120', fix: false },
{ prop: 'course_name', label: '课程', minWidth: '260', fix: false }, { prop: 'course_name', label: this.$t('pages.grade.credit.course'), minWidth: '260', fix: false },
{ prop: 'course_credit', label: '课程学分', minWidth: '60', fix: false }, { prop: 'course_credit', label: this.$t('pages.grade.credit.courseCredits'), minWidth: '60', fix: false },
{ prop: 'passed', label: '状态', minWidth: '60', fix: false }, { prop: 'passed', label: this.$t('pages.grade.credit.status'), minWidth: '60', fix: false },
{ prop: 'credit', label: '学分', minWidth: '40', fix: false }, { prop: 'credit', label: this.$t('pages.grade.credit.credit'), minWidth: '40', fix: false },
{ prop: 'score', label: '成绩', minWidth: '40', fix: false }, { prop: 'score', label: this.$t('pages.grade.credit.grade'), minWidth: '40', fix: false },
// { prop: '', label: '', minWidth: '', fix: false, goObj: { routerName: '', params: {} } }, // 点击跳转页面并传参数 // { prop: '', label: this.$t('pages.grade.credit')'', minWidth: '', fix: false, goObj: { routerName: '', params: {} } }, // 点击跳转页面并传参数
{ prop: 'operate-x', label: '操作', width: '80px', fix: false, commandArr: [{ command: 're-start', name: '重修' }, { command: 're-start', name: '已申请' }] } { prop: 'operate-x', label: this.$t('pages.grade.credit.operate'), width: '80px', fix: false, commandArr: [{ command: 're-start', name: '重修' }, { command: 're-start', name: '已申请' }] }
], ],
tableData: [], tableData: [],
params: { keywords: '', curPage: 1, pageSize: 100, total: '' }, params: { keywords: '', curPage: 1, pageSize: 100, total: '' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论