修改实训平台考试系统列表按钮显示
This commit is contained in:
parent
d2b296153a
commit
859fbe5e4e
@ -144,14 +144,6 @@ export default {
|
|||||||
return !this.$route.query.lessonId && row.status == 1;
|
return !this.$route.query.lessonId && row.status == 1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: this.$t('publish.lessonDeleteBtn'),
|
|
||||||
type: 'warning',
|
|
||||||
handleClick: this.handleDelete,
|
|
||||||
showControl: (row) => {
|
|
||||||
return this.$route.query.lessonId && row.status == 1 && row.creatorId == this.userId;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: this.$t('global.putaway'),
|
name: this.$t('global.putaway'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
@ -253,24 +245,6 @@ export default {
|
|||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
// 下架
|
// 下架
|
||||||
handleDelete(index, data) {
|
|
||||||
this.$confirm(this.$t('publish.wellDelPaper'), this.$t('global.tips'), {
|
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
setExamEfficacy(data).then(res => {
|
|
||||||
this.queryList.reload();
|
|
||||||
this.$message({
|
|
||||||
type: 'success',
|
|
||||||
message: this.$t('publish.setSuccess')
|
|
||||||
});
|
|
||||||
}).catch(res => {
|
|
||||||
this.$message({ type: 'warning', message: `${this.$t('error.setFailed')}${res.message}` });
|
|
||||||
});
|
|
||||||
}).catch(() => { });
|
|
||||||
},
|
|
||||||
// 下架
|
|
||||||
handleEfficacy(index, data) {
|
handleEfficacy(index, data) {
|
||||||
this.$confirm(this.$t('publish.wellSoldOutPaper'), this.$t('global.tips'), {
|
this.$confirm(this.$t('publish.wellSoldOutPaper'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
|
Loading…
Reference in New Issue
Block a user