mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
同步一下
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
<script>
|
||||
import apiCourseStudy from '@/api/modules/courseStudy.js';
|
||||
export default{
|
||||
name:'comAssess',
|
||||
props:{
|
||||
studyId: {
|
||||
type: String,
|
||||
@@ -58,7 +59,7 @@
|
||||
},
|
||||
content:{
|
||||
type: Object,
|
||||
default:()=>{}
|
||||
default: ()=>{}
|
||||
}
|
||||
},
|
||||
data(){
|
||||
@@ -158,7 +159,7 @@
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -13,35 +13,30 @@
|
||||
<iframe :src="content.content" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
||||
</div> -->
|
||||
<div class="hyper-link" v-if="conLink.openType==2">
|
||||
<div class="hyper-link-row">{{content.contentName}}</div>
|
||||
<div class="hyper-link-row">{{conLink.url}}</div>
|
||||
</div>
|
||||
<div v-if="conLink.openType==1">
|
||||
<iframe :src="conLink.url" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
||||
</div>
|
||||
<div class="hyper-link-row">{{content.contentName}}</div>
|
||||
<div class="hyper-link-row">{{conLink.url}}</div>
|
||||
</div>
|
||||
<div v-if="conLink.openType==1">
|
||||
<iframe :src="conLink.url" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import apiStudy from '@/api/modules/courseStudy.js';
|
||||
import apiCourse from '@/api/modules/course.js';
|
||||
import {formatDate,formatSeconds} from '@/utils/datetime.js';
|
||||
import {testType,correctJudgment,numberToLetter} from '@/utils/tools.js';
|
||||
export default {
|
||||
props:{
|
||||
content: {
|
||||
type: Object,
|
||||
default:()=>{}
|
||||
},
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showiframe:false,
|
||||
conLink:{openType:1,url:''},//对于超连接的内容
|
||||
conLink:{openType:1,url:''}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.content,'content');
|
||||
if(this.content.content.startsWith('\{')){
|
||||
this.conLink=JSON.parse(this.content.content);
|
||||
}else{
|
||||
@@ -56,18 +51,21 @@ export default {
|
||||
methods: {
|
||||
widthOpen(url) {
|
||||
window.open(this.webBaseUrl+url,'_blank');
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.hyper-link{
|
||||
padding-left:20px;
|
||||
text-align: center;
|
||||
padding-top: 100px;
|
||||
.hyper-link-row{
|
||||
padding: 20px;
|
||||
.hyper-index{
|
||||
.hyper-link{
|
||||
padding-left:20px;
|
||||
text-align: center;
|
||||
padding-top: 100px;
|
||||
.hyper-link-row{
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user