Compare commits

...

2 Commits

Author SHA1 Message Date
yaoyin-zhisu
618f39d270 默认记载分页数据 2025-01-18 01:01:36 +08:00
joshen
5e7580a936 判空 2025-01-18 00:23:45 +08:00
6 changed files with 9419 additions and 6011 deletions

15420
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,6 +16,7 @@
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.4", "axios": "^0.21.4",
"BOE-Online": "file:",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"driver.js": "^0.9.8", "driver.js": "^0.9.8",
"echarts": "^5.3.0", "echarts": "^5.3.0",

View File

@@ -327,7 +327,7 @@ export default {
}, },
startTest(){ startTest(){
apiExamPaper.newPaperContent(this.info.id).then(res=>{ apiExamPaper.newPaperContent(this.info.id).then(res=>{
if(res.error == ''&&res.result != ''){ if(!res.error&&res.result != ''){
if(this.info.paperType==2){ if(this.info.paperType==2){
this.examPaper.json=res.result; this.examPaper.json=res.result;
let qitems=this.convertToItems(this.examPaper.json); let qitems=this.convertToItems(this.examPaper.json);

View File

@@ -52,7 +52,7 @@
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button-group> <el-button-group>
<el-button style="margin:0 5px" type="text" v-if="scope.row.recommendRank === ''" @click="suggest(scope.row)" icon="el-icon-medal">榜单推荐</el-button> <el-button style="margin:0 5px" type="text" v-if="scope.row.recommendRank === ''||scope.row.recommendRank === null" @click="suggest(scope.row)" icon="el-icon-medal">榜单推荐</el-button>
<!-- <el-button type="text" @click="shareItem(scope.row)" icon="el-icon-share" style="margin:0 5px">推荐</el-button> --> <!-- <el-button type="text" @click="shareItem(scope.row)" icon="el-icon-share" style="margin:0 5px">推荐</el-button> -->
<el-button style="margin:0 5px" v-if="!scope.row.isTop && scope.row.confidentialityLevel == '内部'" type="text" <el-button style="margin:0 5px" v-if="!scope.row.isTop && scope.row.confidentialityLevel == '内部'" type="text"
@click="setTop(scope.row)" icon="el-icon-top">置顶</el-button> @click="setTop(scope.row)" icon="el-icon-top">置顶</el-button>

View File

@@ -826,6 +826,7 @@ export default {
if (this.refId) { if (this.refId) {
this.queryCondition.type = 'recommend' this.queryCondition.type = 'recommend'
} }
this.searchPageView();
this.loadTypeData();//加载分类 this.loadTypeData();//加载分类
this.getAnkingData(); this.getAnkingData();
this.searchterm(); this.searchterm();
@@ -1507,7 +1508,7 @@ export default {
}; };
}); });
res.result.list.forEach(item=>{ res.result.list.forEach(item=>{
item.viewRankTags = item.viewRankTags.slice(0,2) item.viewRankTags = item.viewRankTags.slice(0,2)||[]
}) })
this.caseList.list = res.result.list this.caseList.list = res.result.list
this.getCaseUserData(res.result.list); this.getCaseUserData(res.result.list);

View File

@@ -253,7 +253,7 @@ export default {
if(res.status==200){ if(res.status==200){
let localCourseIds=[];//本地在线课程的id集合 let localCourseIds=[];//本地在线课程的id集合
res.result.list.forEach(item=>{ res.result.list.forEach(item=>{
if(item.courseImage.startsWith('/upload')){ if(item.courseImage?.startsWith('/upload')){
item.courseImage=$this.fileUrl+item.courseImage.substring(7) item.courseImage=$this.fileUrl+item.courseImage.substring(7)
} }
if(item.source==2){ if(item.source==2){