mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
我的任务提交
This commit is contained in:
@@ -122,17 +122,17 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
jumpRouter(item) {
|
jumpRouter(item) {
|
||||||
//window.open(`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`,'_self')
|
//location.href=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`;
|
||||||
location.href=`${this.webBaseUrl}/course/boeframe?id=${item.cmtask_id}`;
|
|
||||||
|
|
||||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
//let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
// if(item.cmtask_type==1){ //学习路径图
|
let studentPath=process.env.VUE_APP_STUDENT_PATH;
|
||||||
// //let params=encodeURIComponent('projectId='+courseId);
|
if(item.cmtask_type==1){ //学习路径图
|
||||||
// //this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params);
|
let params=encodeURIComponent('projectId='+item.cmtask_id);
|
||||||
// location.href=urlPre+'/fe-student/pathdetails?routerId='+item.cmtask_code
|
this.$router.push('/forward?to='+studentPath+'/pathdetails¶ms='+params);
|
||||||
// }else if(item.cmtask_type==2){ //学习项目
|
}else if(item.cmtask_type==2){ //学习项目
|
||||||
// location.href=urlPre+'/fe-student/projectdetails?projectId='+item.cmtask_code
|
let params=encodeURIComponent('routerId='+item.cmtask_id);
|
||||||
// }
|
this.$router.push('/forward?to='+studentPath+'/projectdetails¶ms='+params);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
loadBoeData() {
|
loadBoeData() {
|
||||||
@@ -146,29 +146,29 @@ export default {
|
|||||||
cmtask_name:this.params.cmtask_name,
|
cmtask_name:this.params.cmtask_name,
|
||||||
}
|
}
|
||||||
this.loading=true;
|
this.loading=true;
|
||||||
// apiManage.userTaskList(params).then(res=>{
|
apiManage.userTaskList(params).then(res=>{
|
||||||
// if(res.code==200){
|
if(res.code==200){
|
||||||
// this.total = 10;
|
this.total =parseInt(res.data.total);
|
||||||
// this.couresList = res.data.records;
|
this.couresList = res.data.records;
|
||||||
// }else{
|
|
||||||
// this.$message.error('查询数据失败:'+res.msg);
|
|
||||||
// }
|
|
||||||
// this.loading=false;
|
|
||||||
// }).catch(()=>{
|
|
||||||
// this.loading=false;
|
|
||||||
// })
|
|
||||||
apiBoeCourse.cmtaskList(params).then(res=>{
|
|
||||||
if(res.status==200){
|
|
||||||
this.total = res.result.count
|
|
||||||
this.couresList = res.result.list;
|
|
||||||
}else{
|
}else{
|
||||||
this.$message.error('查询数据失败:'+res.message);
|
this.$message.error('查询数据失败:'+res.msg);
|
||||||
}
|
}
|
||||||
this.loading=false;
|
this.loading=false;
|
||||||
|
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
this.loading=false;
|
this.loading=false;
|
||||||
})
|
})
|
||||||
|
// apiBoeCourse.cmtaskList(params).then(res=>{
|
||||||
|
// if(res.status==200){
|
||||||
|
// this.total = res.result.count
|
||||||
|
// this.couresList = res.result.list;
|
||||||
|
// }else{
|
||||||
|
// this.$message.error('查询数据失败:'+res.message);
|
||||||
|
// }
|
||||||
|
// this.loading=false;
|
||||||
|
|
||||||
|
// }).catch(()=>{
|
||||||
|
// this.loading=false;
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
search(){
|
search(){
|
||||||
this.loadBoeData()
|
this.loadBoeData()
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'/uboeApi': {
|
'/uboeApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'https://u-pre.boe.comww',
|
target: 'https://u-pre.boe.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user