提交修改

This commit is contained in:
daihh
2023-02-20 12:05:05 +08:00
parent 41ffe7ab0b
commit ce85effd97
2 changed files with 211 additions and 1 deletions

View File

@@ -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) {