提交 e8a45aae authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 8af3732f
......@@ -4,7 +4,7 @@
"courseAction": {
"all": "全部",
"mustLearn": "先导课程",
"changeLearn": "核心课程",
"changeLearn": "必修课程",
"repeatLearn": "选修课程",
"changeStatus": "选修状态",
"noChange": "未选修",
......
......@@ -8,7 +8,7 @@
<img :src="UserInfo.avatar" :alt="$t('components.learnSysLayout.sideBar.updateAvatar')">
</template>
<template v-else>
<img src="@/assets/images/avatar.png" :alt="$t('components.learnSysLayout.sideBar.updateAvatar')">
<img src="https://webapp-pub.ezijing.com/weapp/share/default.jpg" :alt="$t('components.learnSysLayout.sideBar.updateAvatar')">
</template>
</div>
<el-button type="text" class="com-txt set-pwd" @click="goSetPwd">{{ $t('components.learnSysLayout.sideBar.updatePwd') }}</el-button>
......
......@@ -118,7 +118,7 @@ export default {
selectIndex: 0,
key: 'course_type',
arrItem: [
{ val: '1', name: this.$t('action.courseAction.mustLearn'), show: UserInfo.is_open_textbook_learning },
// { val: '1', name: this.$t('action.courseAction.mustLearn'), show: UserInfo.is_open_textbook_learning },
{ val: '2', name: this.$t('action.courseAction.changeLearn'), show: UserInfo.is_open_required_course },
{ val: '3', name: this.$t('action.courseAction.repeatLearn'), show: UserInfo.is_open_extended_course }
]
......@@ -126,7 +126,7 @@ export default {
],
homeList: [], // 从后台请求
param: {
course_type: 1,
course_type: 2,
order_type: 'begin_date'
},
timeInterval: null,
......@@ -178,16 +178,16 @@ export default {
}
},
getAjaxList(bool, str) {
if (this.oneParamYype === 1) {
if (Number(UserInfo.is_open_textbook_learning) === 1) {
this.param.course_type = 1
} else if (Number(UserInfo.is_open_required_course) === 1) {
this.param.course_type = 2
} else {
this.param.course_type = 3
}
this.oneParamYype++
}
// if (this.oneParamYype === 1) {
// if (Number(UserInfo.is_open_textbook_learning) === 1) {
// this.param.course_type = 1
// } else if (Number(UserInfo.is_open_required_course) === 1) {
// this.param.course_type = 2
// } else {
// this.param.course_type = 3
// }
// this.oneParamYype++
// }
this.loading = true
cAction.Course.getCourseList(bool, this.param)
.then(json => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论