提交 931bc6e5 编写于 作者: guangjun.yang's avatar guangjun.yang

空的列表、查询时是第一页

上级 67df0ddb
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</div> </div>
</li> </li>
</ul> </ul>
<div class="list-wrapper"> <div v-if="courseList.list.length" class="list-wrapper">
<ul class="list"> <ul class="list">
<li <li
class="course" class="course"
...@@ -57,6 +57,10 @@ ...@@ -57,6 +57,10 @@
</li> </li>
</ul> </ul>
</div> </div>
<div v-else class="no-list">
<img src="../../../assets/custom/icon/img-no-content.png" alt />
<span class="tips">未查询到课程,请重新选择课程分类或课程等级吧!</span>
</div>
<div class="page-wrapper"> <div class="page-wrapper">
<el-pagination <el-pagination
...@@ -336,5 +340,29 @@ export default { ...@@ -336,5 +340,29 @@ export default {
margin: 10px 0; margin: 10px 0;
margin-right: 230px; margin-right: 230px;
} }
.no-list {
position: relative;
top: 0;
left: 0;
z-index: 1;
display: flex;
flex-direction: column;
// padding: 30px 200px;
width: 1000px;
text-align: center;
margin-bottom: 100px;
align-items: center;
img {
width: 300px;
height: 300px;
}
.tips {
position: relative;
top: -30px;
left: 10px;
z-index: 2;
color: #999999;
}
}
} }
</style> </style>
\ No newline at end of file
...@@ -248,6 +248,7 @@ export default { ...@@ -248,6 +248,7 @@ export default {
this.searchParam.grade = item.value; this.searchParam.grade = item.value;
} }
}) })
this.searchParam.pageNo = 1;
this.setSearchParam(this.searchParam); this.setSearchParam(this.searchParam);
console.log(allSelectedLabel); console.log(allSelectedLabel);
} }
......
...@@ -25,6 +25,7 @@ export default { ...@@ -25,6 +25,7 @@ export default {
.select-course-wrapper { .select-course-wrapper {
width: 1300px; width: 1300px;
.top-line { .top-line {
// width: 120%;
height: 10px; height: 10px;
background: rgb(240, 242, 245); background: rgb(240, 242, 245);
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<span class="title">已选项目课程(共{{this.cartList.length}}节)</span> <span class="title">已选项目课程(共{{this.cartList.length}}节)</span>
<img @click="close" src="../../../assets/custom/icon/close.png" alt /> <img @click="close" src="../../../assets/custom/icon/close.png" alt />
</div> </div>
<ul class="cart-list"> <ul v-if="cartList.length" class="cart-list">
<li class="cart-course" v-for="item in cartList" :key="item.courseId"> <li class="cart-course" v-for="item in cartList" :key="item.courseId">
<div class="img"> <div class="img">
<img :src="item.courseImageUrl" alt /> <img :src="item.courseImageUrl" alt />
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
</div> </div>
</li> </li>
</ul> </ul>
<div v-else class="no-list">
<img src="../../../assets/custom/icon/img-no-content.png" alt />
<span class="tips">您还未选择课程,快去选择课程组建项目吧!</span>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -163,5 +167,28 @@ export default { ...@@ -163,5 +167,28 @@ export default {
} }
} }
} }
.no-list {
position: relative;
top: 0;
left: 0;
z-index: 1;
display: flex;
flex-direction: column;
margin-top: 30px;
text-align: center;
margin-bottom: 100px;
align-items: center;
img {
width: 200px;
height: 200px;
}
.tips {
position: relative;
top: -10px;
left: 10px;
z-index: 2;
color: #999999;
}
}
} }
</style> </style>
\ No newline at end of file
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
</el-col> </el-col>
<el-col :span="5" :offset="5"> <el-col :span="5" :offset="5">
<div v-if="!canNext" class="dis-btn">下一步</div> <div v-if="!canNext" class="dis-btn">下一步</div>
<el-button v-if="active != 0 && projectStatus == 1 && isPreview != 1" size="small" @click="save">暂存</el-button> <el-button class="dis-btn-b" v-if="active != 0 && projectStatus == 1 && isPreview != 1" size="small" @click="save">暂存</el-button>
<el-button v-if="active !== 2 && canNext" size="small" type="primary" @click="nextStep">下一步</el-button> <el-button class="dis-btn-b" v-if="active !== 2 && canNext" size="small" type="primary" @click="nextStep">下一步</el-button>
<el-button v-if="active == 2" size="small" type="primary" @click="complete">完成</el-button> <el-button class="dis-btn-b" v-if="active == 2" size="small" type="primary" @click="complete">完成</el-button>
</el-col> </el-col>
</el-row> </el-row>
...@@ -611,6 +611,11 @@ export default { ...@@ -611,6 +611,11 @@ export default {
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
.dis-btn-b {
position: relative;
left: 5px;
bottom: 10px;
}
} }
.add-content { .add-content {
background: #fff; background: #fff;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册