mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
提交
This commit is contained in:
@@ -134,14 +134,15 @@ export default {
|
|||||||
.readed{
|
.readed{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #3e7fff;
|
color: #3e7fff;
|
||||||
margin-bottom: 6px;
|
// margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
.noRead{
|
.noRead{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color:#FF3E3E;
|
color:#FF3E3E;
|
||||||
margin-bottom: 6px;
|
// margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
.title{
|
.title{
|
||||||
|
line-height: 25px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
flex-shrink: 10000;
|
flex-shrink: 10000;
|
||||||
|
|||||||
@@ -353,6 +353,7 @@
|
|||||||
// inject: [ "informationDetails" ],
|
// inject: [ "informationDetails" ],
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
|
converStatus:0,
|
||||||
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||||
curPdfPath:'',
|
curPdfPath:'',
|
||||||
comTypes:[
|
comTypes:[
|
||||||
@@ -496,6 +497,7 @@
|
|||||||
}else{
|
}else{
|
||||||
apiCourseFile.detail(this.content.contentRefId).then(rs=>{
|
apiCourseFile.detail(this.content.contentRefId).then(rs=>{
|
||||||
if(rs.status==200){
|
if(rs.status==200){
|
||||||
|
this.converStatus = rs.result.converStatus;
|
||||||
if(rs.result.previewFilePath){
|
if(rs.result.previewFilePath){
|
||||||
this.curPdfPath=rs.result.previewFilePath;
|
this.curPdfPath=rs.result.previewFilePath;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export default {
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
span:first-of-type{
|
span:first-of-type{
|
||||||
margin-top: -2px;
|
// margin-top: -2px;
|
||||||
}
|
}
|
||||||
.title{
|
.title{
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px;"><el-input clearable placeholder="搜索名称" v-model="pageData.keyword"></el-input></div>
|
<div style="padding: 0px 5px;"><el-input clearable placeholder="搜索名称" v-model="pageData.keyword"></el-input></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-search" type="primary" @click="getArticleList">搜索</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-search" type="primary" @click="search">搜索</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="padding: 10px 19px 0px 22px;">
|
<div style="padding: 10px 19px 0px 22px;">
|
||||||
<article-items @update="getArticleList" :items="pageData.list" v-if="pageData.list.length!=0"></article-items>
|
<article-items @update="getArticleList" :items="pageData.list" v-if="pageData.list.length!=0"></article-items>
|
||||||
<div v-if="pageData.list.length > 0 " style="text-align: center; margin-top:57px"><el-pagination
|
<div v-if="pageData.list.length > 0 " style="text-align: center; margin-top:57px"><el-pagination
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
background
|
background
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
@@ -45,6 +45,13 @@
|
|||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="total"
|
:total="total"
|
||||||
></el-pagination></div>
|
></el-pagination></div>
|
||||||
|
<div v-else>
|
||||||
|
<div v-if="pageData.list.length == 0">
|
||||||
|
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
||||||
|
<div v-else class="zan-wu">暂无数据</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<el-dialog title="创建文章" :visible.sync="diagSync" :close-on-click-modal="false" width="900px" custom-class="g-dialog">
|
<el-dialog title="创建文章" :visible.sync="diagSync" :close-on-click-modal="false" width="900px" custom-class="g-dialog">
|
||||||
<editItems v-if="diagSync" :jumpLimit="false" :editForm="{}" @success="saveSuccess"></editItems>
|
<editItems v-if="diagSync" :jumpLimit="false" :editForm="{}" @success="saveSuccess"></editItems>
|
||||||
@@ -67,6 +74,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isSearh:false,
|
||||||
pageData: {
|
pageData: {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -81,7 +89,10 @@ export default {
|
|||||||
this.getArticleList();
|
this.getArticleList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
search(){
|
||||||
|
this.isSearh = true;
|
||||||
|
this.getArticleList()
|
||||||
|
},
|
||||||
saveSuccess(data){
|
saveSuccess(data){
|
||||||
this.diagSync=false;
|
this.diagSync=false;
|
||||||
this.articleList.pageIndex = 1;
|
this.articleList.pageIndex = 1;
|
||||||
@@ -116,9 +127,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
reset(){
|
reset(){
|
||||||
|
|
||||||
this.pageData.keyword = '',
|
this.pageData.keyword = '',
|
||||||
this.pageData.status = ''
|
this.pageData.status = ''
|
||||||
this.getArticleList()
|
this.getArticleList();
|
||||||
|
this.isSearh = false;
|
||||||
},
|
},
|
||||||
getQaUserData(list){
|
getQaUserData(list){
|
||||||
let ids=list.map((item,index)=>{
|
let ids=list.map((item,index)=>{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<div style="min-height: 500px;">
|
<div style="min-height: 500px;">
|
||||||
<course-items :keyword="keyword" type="toMy" @confirm="confirm" :items="courseList.list"></course-items>
|
<course-items :keyword="keyword" type="toMy" @confirm="confirm" :items="courseList.list"></course-items>
|
||||||
<!-- v-if="courseList.count>courseList.pageSize" -->
|
<!-- v-if="courseList.count>courseList.pageSize" -->
|
||||||
<div v-if="caseList.list.length > 0" style="text-align: center; margin-top:57px">
|
<div v-if="courseList.list.length > 0" style="text-align: center; margin-top:57px">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
></el-pagination>
|
></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div v-if="caseList.list.length == 0">
|
<div v-if="courseList.list.length == 0">
|
||||||
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
<div v-if="isSearh" class="zan-wu">没有查询到相关内容</div>
|
||||||
<div v-else class="zan-wu">暂无数据</div>
|
<div v-else class="zan-wu">暂无数据</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user