Commit d7936166 authored by zhengke's avatar zhengke

修改显示

parent 941c9ecc
......@@ -119,8 +119,8 @@
</el-table>
</q-scroll-area>
</div>
<q-dialog v-model="isViewer" v-if="viewObj" style="width:70%;max-height:80%;">
<q-card>
<q-dialog v-model="isViewer" v-if="viewObj">
<q-card style="width: 540px;max-height:80%;">
<q-card-section class="row items-center q-pb-none">
<div class="text-h6">{{ viewObj.ChapterName }}</div>
<q-space />
......
<template>
<div class="flex flex-start window-height">
<div class="q-pa-lg full-height" style="border-right:1px solid #f5f5f5;width:390px;">
<div class="q-pa-lg full-height" style="border-right:1px solid #f5f5f5;width:450px;">
<q-card class="q-pa-md bg-dark text-white q-mb-lg">
<span>{{courseInfo.CourseName}}</span>
</q-card>
......@@ -33,7 +33,7 @@
<q-badge class="bg-white text-grey-8">
{{data.CourseRateName.replace('课程','')}}
</q-badge>
<q-badge class="q-ml-xs bg-grey-3 text-dark">{{data.StudyHours}}课时</q-badge>
<q-badge class="q-ml-xs bg-grey-3 text-dark">{{data.StudyHours}}分钟</q-badge>
</div>
</div>
</el-tree>
......@@ -45,7 +45,7 @@
<div class="text-h6 q-mb-md">章节学习内容</div>
<div class="row q-mb-md">
<div class="col q-mr-md">
<q-input square filled label="消耗课时" v-model="chapter.StudyHours" suffix="课时" mask="#" fill-mask="0" reverse-fill-mask></q-input>
<q-input square filled label="消耗分钟" v-model="chapter.StudyHours" suffix="分钟" mask="#" fill-mask="0" reverse-fill-mask></q-input>
</div>
<div class="col">
<q-select :options="rateList" option-label="Name" option-value="Id" square filled label="关联等级" v-model="defauRateObj"></q-select>
......@@ -155,10 +155,8 @@ export default {
},
created() {
if(this.$route.query.chapter){
this.defaultChapterId=this.$route.query.chapter
this.defaultChapterId=this.$route.query.chapter
}
console.log(this.$route.query);
if (this.$route.query.courseId) {
this.courseId = this.$route.query.courseId;
this.initTree();
......@@ -303,6 +301,13 @@ export default {
msg.Requirement=encodeURIComponent(msg.Requirement)
saveChapter(msg).then(r => {
this.submiting=false
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '数据保存成功!',
position: 'top'
})
if(this.bakObj.CourseRate!=this.defauRateObj.Id){
if(this.chapter.ChildList && this.chapter.ChildList.length>0){
this.updateRate()
......
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