mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal
This commit is contained in:
@@ -32,9 +32,9 @@ const refreshToken = function(token){
|
|||||||
|
|
||||||
// boe登录
|
// boe登录
|
||||||
const boeLogin = function(token){
|
const boeLogin = function(token){
|
||||||
return ajax.post('/xboe/account/boelogin',{token:token});
|
//return ajax.post('/xboe/account/boelogin',{token:token});
|
||||||
//登录时,新的用户接口调用查询用户信息
|
//登录时,新的用户接口调用查询用户信息
|
||||||
//return ajax.post('/xboe/account/boenewlogin',{token:token});
|
return ajax.post('/xboe/account/boenewlogin',{token:token});
|
||||||
}
|
}
|
||||||
|
|
||||||
export default{
|
export default{
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import apiCourseStudy from '@/api/modules/courseStudy.js';
|
import apiCourseStudy from '@/api/modules/courseStudy.js';
|
||||||
export default{
|
export default{
|
||||||
|
name:'comAssess',
|
||||||
props:{
|
props:{
|
||||||
studyId: {
|
studyId: {
|
||||||
type: String,
|
type: String,
|
||||||
@@ -58,7 +59,7 @@
|
|||||||
},
|
},
|
||||||
content:{
|
content:{
|
||||||
type: Object,
|
type: Object,
|
||||||
default:()=>{}
|
default: ()=>{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
@@ -158,7 +159,7 @@
|
|||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -13,35 +13,30 @@
|
|||||||
<iframe :src="content.content" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
<iframe :src="content.content" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="hyper-link" v-if="conLink.openType==2">
|
<div class="hyper-link" v-if="conLink.openType==2">
|
||||||
<div class="hyper-link-row">{{content.contentName}}</div>
|
<div class="hyper-link-row">{{content.contentName}}</div>
|
||||||
<div class="hyper-link-row">{{conLink.url}}</div>
|
<div class="hyper-link-row">{{conLink.url}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="conLink.openType==1">
|
<div v-if="conLink.openType==1">
|
||||||
<iframe :src="conLink.url" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
<iframe :src="conLink.url" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<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 {
|
export default {
|
||||||
props:{
|
props:{
|
||||||
content: {
|
content: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default:()=>{}
|
default:()=>{}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showiframe:false,
|
showiframe:false,
|
||||||
conLink:{openType:1,url:''},//对于超连接的内容
|
conLink:{openType:1,url:''}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.content,'content');
|
|
||||||
if(this.content.content.startsWith('\{')){
|
if(this.content.content.startsWith('\{')){
|
||||||
this.conLink=JSON.parse(this.content.content);
|
this.conLink=JSON.parse(this.content.content);
|
||||||
}else{
|
}else{
|
||||||
@@ -56,18 +51,21 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
widthOpen(url) {
|
widthOpen(url) {
|
||||||
window.open(this.webBaseUrl+url,'_blank');
|
window.open(this.webBaseUrl+url,'_blank');
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.hyper-link{
|
.hyper-index{
|
||||||
padding-left:20px;
|
.hyper-link{
|
||||||
text-align: center;
|
padding-left:20px;
|
||||||
padding-top: 100px;
|
text-align: center;
|
||||||
.hyper-link-row{
|
padding-top: 100px;
|
||||||
padding: 20px;
|
.hyper-link-row{
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ module.exports = {
|
|||||||
lintOnSave: process.env.NODE_ENV === 'development',
|
lintOnSave: process.env.NODE_ENV === 'development',
|
||||||
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
css: {
|
||||||
|
extract: {
|
||||||
|
ignoreOrder: true
|
||||||
|
}
|
||||||
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
name: name,
|
name: name,
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -114,7 +119,7 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/systemapi': {
|
'/systemapi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'http://192.168.0.11:9090',
|
target: 'http://127.0.0.1:9090',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel:'debug',
|
logLevel:'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
@@ -131,9 +136,18 @@ module.exports = {
|
|||||||
'^/uboeApi': '/api'
|
'^/uboeApi': '/api'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'/userbasic': {
|
||||||
|
// 目标代理服务器地址
|
||||||
|
target: 'https://u-pre.boe.com',
|
||||||
|
changeOrigin: true,
|
||||||
|
secure: false,
|
||||||
|
pathRewrite: {
|
||||||
|
'^/userbasic': '/userbasic'
|
||||||
|
}
|
||||||
|
},
|
||||||
'/statApi': {
|
'/statApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'http://192.168.0.11:9080',
|
target: 'http://127.0.0.1:9080',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel:'debug',
|
logLevel:'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
@@ -143,7 +157,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'/socialApi': {
|
'/socialApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'http://192.168.0.11:9081',
|
target: 'http://127.0.0.1:9081',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel:'debug',
|
logLevel:'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user