修改实训平台考试系统列表按钮显示

This commit is contained in:
joylink_cuiweidong 2019-11-15 11:40:49 +08:00
parent d2b296153a
commit 859fbe5e4e

View File

@ -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'),