mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交修改
This commit is contained in:
@@ -73,6 +73,11 @@
|
||||
<div style="margin-right:30px;">
|
||||
<el-table style="margin:10px 32px 10px 22px;" :data="pageData" border stripe>
|
||||
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||
<el-table-column v-if="forChoose" label="选择" width="60">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="default" size="mini" @click="handleChoose(scope.row)">选择</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="名称" prop="name" width="200" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span class="previewStyle" @click="viewTopic(scope.row)">{{ scope.row.name }}</span>
|
||||
@@ -292,6 +297,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
forChoose:false,
|
||||
showDetails: false,
|
||||
examin:{
|
||||
detailType: '',
|
||||
@@ -370,6 +376,10 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
let chooseFlag=this.$route.query.f;
|
||||
if(chooseFlag && chooseFlag=='choose'){
|
||||
this.forChoose=true;
|
||||
}
|
||||
if (this.$route.query && this.$route.query.open && this.$route.query.open == 'new') {
|
||||
this.addNewCourse();
|
||||
}
|
||||
@@ -388,6 +398,9 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleChoose(row){ //选择课程
|
||||
window.parent.selectCourse(row);
|
||||
},
|
||||
myCopy(){
|
||||
var ele = document.getElementById("text");
|
||||
ele.select();
|
||||
@@ -607,7 +620,7 @@ export default {
|
||||
return this.$message.error(rs.message);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
viewTopic(row) {
|
||||
if(row.status == 1) {
|
||||
|
||||
Reference in New Issue
Block a user