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

bug fixes

上级 7533f817
......@@ -52,8 +52,8 @@ export default class CourseAction extends BaseACTION {
arrTab: [(((_cur && _cur.curriculum_credit) || 0) + _vIn.$t('action.courseAction.credit')), str1, cur.semester_name],
status: _cur.is_enabled ? _vIn.$t('action.courseAction.publish') : _vIn.$t('action.courseAction.noPublish'),
time: cur.begin_date.split(' ')[0] + _vIn.$t('action.courseAction.to') + cur.end_date.split(' ')[0],
myStatus: cur.selected !== 0 ? (cur.score ? (_vIn.$t('action.courseAction.totalScore') + cur.score) : _vIn.$t('action.courseAction.noChange'))
: _vIn.$t('action.courseAction.alreadyChange'),
myStatus: cur.selected !== 0 ? (cur.score ? (_vIn.$t('action.courseAction.totalScore') + cur.score) : _vIn.$t('action.courseAction.alreadyChange'))
: _vIn.$t('action.courseAction.noChange'),
progress: cur.video_progress
})
}
......
......@@ -33,7 +33,7 @@ export default class DiscussAPI extends BaseAPI {
* 提出问题
* @param {[object]} param
*/
publishQues = (param) => this.post('/v2/qa/questions', param)
publishQues = (param) => this.post('/v2/qa/questions', param, { headers: { 'Content-Type': 'application/json' } })
/**
* 回答问题
* @param {[object]} param
......
......@@ -38,7 +38,7 @@
</el-popover>
</template>
<template v-if="(head.prop === 'file_url')">
<a :href="scope.row[head.prop] || 'javascript:void(0)'" style="text-decoration: none; color: #2b9dff;">下载</a>
<a :href="scope.row[head.prop] || 'javascript:void(0)'" download target="_blank" style="text-decoration: none; color: #2b9dff;">下载</a>
</template>
<template v-else-if="(head.prop === 'operate')">
<el-dropdown :hide-on-click="false" @command="dropdownItemClick(scope.row.index, arguments)">
......
......@@ -59,7 +59,7 @@ export default {
}
},
mounted () {
this.VueEvent.$on('command-tablelist-x', (_obj) => {
this.VueEvent.$off('command-tablelist-x').$on('command-tablelist-x', (_obj) => {
if (_obj.command.command === 'reportlist-edit') {
const reid = _obj.tableData[_obj.index - 1].id
this.$router.push({ path: `/app/learn/report-submit/${this.rid}/${reid}` })
......
......@@ -104,7 +104,7 @@ export default {
}
},
mounted () {
this.VueEvent.$on('command-tablelist-x', (data) => {
this.VueEvent.$off('command-tablelist-x').$on('command-tablelist-x', (data) => {
if (data.command.command === 're-start') {
const _data = data.tableData[data.index - 1]
window.localStorage.setItem('rebuild', JSON.stringify(_data))
......
......@@ -56,7 +56,7 @@ export default {
}
},
mounted () {
this.VueEvent.$on('command-tablelist-x', (_obj) => {
this.VueEvent.$off('command-tablelist-x').$on('command-tablelist-x', (_obj) => {
if (_obj.command.command === 'activelist-show') {
const rid = _obj.tableData[_obj.index - 1].id
this.$router.push({ path: `/app/learn/report-list-all/${rid}` })
......
......@@ -59,7 +59,7 @@ export default {
}
},
mounted () {
this.VueEvent.$on('command-tablelist-x', (_obj) => {
this.VueEvent.$off('command-tablelist-x').$on('command-tablelist-x', (_obj) => {
if (_obj.command.command === 'reportlist-edit') {
const reid = _obj.tableData[_obj.index - 1].id
this.$router.push({ path: `/app/learn/report-submit/${this.rid}/${reid}` })
......
......@@ -32,6 +32,7 @@
@handlePlayTime="handlePlayTime"
@updateProgress="updateProgress"
@changeSideBar="changeSideBar"
:key="id"
></router-view>
</div>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论