Commit 72407198 authored by 罗超's avatar 罗超

修改样式

parent 8752ffdb
...@@ -46,20 +46,23 @@ ...@@ -46,20 +46,23 @@
</span> </span>
</div> </div>
<div <div
style="margin-left: 15px;" style="margin-left: 15px;width:360px;"
class="ellipsis"
v-if="scope.row.ChapterNo.indexOf('.') == -1" v-if="scope.row.ChapterNo.indexOf('.') == -1"
> >
{{ scope.row.ChapterName }} {{ scope.row.ChapterName }}
</div> </div>
<div <div
v-if="scope.row.ChapterNo.indexOf('.') != -1" v-if="scope.row.ChapterNo.indexOf('.') != -1"
:style="{ marginLeft: 20 * (scope.row.level - 2) + 'px' }" :style="{ marginLeft: 20 * (scope.row.ChapterNo.split('.').length+1 - 2) + 'px' }"
> >
{{ scope.row.ChapterNo }} {{ scope.row.ChapterNo }}
</div> </div>
<div <div
v-if="scope.row.ChapterNo.indexOf('.') != -1" v-if="scope.row.ChapterNo.indexOf('.') != -1"
style="margin-left: 12px;" style="margin-left: 12px;"
class="ellipsis"
:style="{width:(350-(20 * (scope.row.ChapterNo.split('.').length+1 - 2)))+'px'}"
> >
{{ scope.row.ChapterName }} {{ scope.row.ChapterName }}
</div> </div>
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
this.getCourseInfo(); this.getCourseInfo();
}, },
mounted() { mounted() {
this.gotoPage('teachplan', 2); this.gotoPage('chapter', 3);
}, },
methods: { methods: {
//获取课程信息 //获取课程信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment