提交 67df0ddb 编写于 作者: guangjun.yang's avatar guangjun.yang

样式优化及JS报错

上级 4f379949
...@@ -176,6 +176,7 @@ export default { ...@@ -176,6 +176,7 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
margin-right: 20px;
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
img { img {
...@@ -220,7 +221,7 @@ export default { ...@@ -220,7 +221,7 @@ export default {
} }
} }
.list-wrapper { .list-wrapper {
height: 500px; // height: 500px;
overflow: auto; overflow: auto;
.list { .list {
display: flex; display: flex;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<!-- 课程分类 --> <!-- 课程分类 -->
<div class="course-class"> <div class="course-class">
<div class="title">课程分类</div> <div class="title">课程分类</div>
<div class="item" @click="selectSubLabel(subLabelList[0], 1)"> <div v-if="subLabelList.length" class="item" @click="selectSubLabel(subLabelList[0], 1)">
<span class="name" :class="{'active': subLabelList[0].checked}">全部</span> <span class="name" :class="{'active': subLabelList[0].checked}">全部</span>
</div> </div>
<ul class="check-list"> <ul class="check-list">
...@@ -33,35 +33,6 @@ ...@@ -33,35 +33,6 @@
{{item.name}} {{item.name}}
</li> </li>
</ul> </ul>
<!-- <el-checkbox-group v-model="checkList">
<el-checkbox label="复选框 A"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
<el-checkbox label="禁用"></el-checkbox>
<el-checkbox label="选中且禁用"></el-checkbox>
<el-checkbox label="复选框 A"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
<el-checkbox label="禁用"></el-checkbox>
<el-checkbox label="选中且禁用"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
<el-checkbox label="禁用"></el-checkbox>
<el-checkbox label="选中且禁用"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
<el-checkbox label="禁用"></el-checkbox>
<el-checkbox label="选中且禁用"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
<el-checkbox label="禁用"></el-checkbox>
<el-checkbox label="选中且禁用"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
<el-checkbox label="禁用"></el-checkbox>
<el-checkbox label="选中且禁用"></el-checkbox>
</el-checkbox-group>-->
<div class="right"></div> <div class="right"></div>
</div> </div>
...@@ -165,7 +136,7 @@ export default { ...@@ -165,7 +136,7 @@ export default {
components: {}, components: {},
methods: { methods: {
...mapActions(['setSubLabelList', 'setSearchParam']), ...mapActions(['setSubLabelList', 'setSearchParam']),
// 选择一级 // 选择一级
selectLabel(index) { selectLabel(index) {
this.allLabelList.forEach(element => { this.allLabelList.forEach(element => {
...@@ -432,6 +403,6 @@ export default { ...@@ -432,6 +403,6 @@ export default {
flex-direction: row; flex-direction: row;
justify-content: flex-end; justify-content: flex-end;
margin-top: 20px; margin-top: 20px;
margin-right: 50px; margin-right: 140px;
} }
</style> </style>
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-col> </el-col>
<el-col :span="10" class="curt-position-wrapper"> <el-col :span="10" class="curt-position-wrapper">
<div class="curt-position"> <div class="curt-position">
<SortedCart :isPreview="isPreview" :projectStatus="projectStatus"></SortedCart> <SortedCart :isPreview="isPreview" :projectStatus="projectStatus" :projectId="projectId"></SortedCart>
</div> </div>
</el-col> </el-col>
</el-form-item> </el-form-item>
......
...@@ -23,6 +23,7 @@ export default { ...@@ -23,6 +23,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.select-course-wrapper { .select-course-wrapper {
width: 1300px;
.top-line { .top-line {
height: 10px; height: 10px;
background: rgb(240, 242, 245); background: rgb(240, 242, 245);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<span class="sub">可上下拖拽课程行,调整课程在列表页的展示顺序</span> <span class="sub">可上下拖拽课程行,调整课程在列表页的展示顺序</span>
</div> </div>
<div v-if="isPreview == 1 || projectStatus != 1" class="cart-list"> <div v-if="projectId && (isPreview == 1 || projectStatus != 1)" class="cart-list">
<div class="cart-course is-preview" v-for="(item, index) in cartList" :key="index"> <div class="cart-course is-preview" v-for="(item, index) in cartList" :key="index">
<div class="img"> <div class="img">
<img :src="item.courseImageUrl" alt /> <img :src="item.courseImageUrl" alt />
...@@ -53,6 +53,7 @@ export default { ...@@ -53,6 +53,7 @@ export default {
props: { props: {
isPreview: String | Number, isPreview: String | Number,
projectStatus: String | Number, projectStatus: String | Number,
projectId: String | Number,
}, },
computed: { computed: {
cartList: { cartList: {
...@@ -210,7 +211,7 @@ export default { ...@@ -210,7 +211,7 @@ export default {
.handler { .handler {
width: 35px; width: 35px;
img { img {
cursor: pointer; // cursor: pointer;
width: 20px; width: 20px;
height: 20px; height: 20px;
float: right; float: right;
......
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
this.courseLimitCount(); this.courseLimitCount();
this.getLabelList(); this.getLabelList();
this.getCourseList(searchParam); // this.getCourseList(searchParam);
}, },
// 自定义项目--选择课程个数限制(-1表示不限制) // 自定义项目--选择课程个数限制(-1表示不限制)
...@@ -539,6 +539,7 @@ export default { ...@@ -539,6 +539,7 @@ export default {
top: 125px; top: 125px;
} }
.step-content { .step-content {
min-width: 1300px;
background: #fff; background: #fff;
z-index: 1001; z-index: 1001;
background: #fff; background: #fff;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册