Commit 67896c6c authored by zhengke's avatar zhengke

修改

parent 115c65e3
<template> <template>
<!-- <div class="flex flex-start window-height" style="min-width:1300px;overflow-x:auto;"> --> <!-- <div class="flex flex-start window-height" style="min-width:1300px;overflow-x:auto;overlfow-y:hidden;"> -->
<div class="flex flex-start window-height"> <div class="flex flex-start window-height">
<q-splitter v-model="splitterModel" :limits="[30, 100]" style="height: 100%;width:100%"> <q-splitter v-model="splitterModel" :limits="[30, 100]" style="height: 100%;width:100%">
<template v-slot:before> <template v-slot:before>
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
this.chapter.CourseRateName = this.defauRateObj.Name this.chapter.CourseRateName = this.defauRateObj.Name
} }
if (!compareObject(this.bakObj, this.chapter, false)) { if (!compareObject(this.bakObj, this.chapter, false)) {
this.saveChapterUpdate() this.saveChapterUpdate(1)
if (this.bakObj.CourseRate != this.chapter.CourseRate) { if (this.bakObj.CourseRate != this.chapter.CourseRate) {
if (this.chapter.ChildList && this.chapter.ChildList.length > 0) { if (this.chapter.ChildList && this.chapter.ChildList.length > 0) {
this.updateRate() this.updateRate()
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
}) })
}, },
saveChapterUpdate() { saveChapterUpdate(type) {
if (!this.submiting) { if (!this.submiting) {
this.submiting = true this.submiting = true
if (this.defauRateObj.Id != 0) { if (this.defauRateObj.Id != 0) {
...@@ -327,11 +327,17 @@ ...@@ -327,11 +327,17 @@
msg.Requirement = encodeURIComponent(msg.Requirement) msg.Requirement = encodeURIComponent(msg.Requirement)
saveChapter(msg).then(r => { saveChapter(msg).then(r => {
this.submiting = false this.submiting = false
let msg = '';
if(type==1){
msg='自动保存成功!'
}else{
msg='数据保存成功!'
}
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
timeout: 2000, timeout: 2000,
message: '数据保存成功!', message: msg,
position: 'top' position: 'top'
}) })
if (this.bakObj.CourseRate != this.defauRateObj.Id) { if (this.bakObj.CourseRate != this.defauRateObj.Id) {
...@@ -593,7 +599,6 @@ ...@@ -593,7 +599,6 @@
.chapter-tree .chapter-node .rate-box { .chapter-tree .chapter-node .rate-box {
display: block; display: block;
} }
.chapter-tree .el-tree-node__content { .chapter-tree .el-tree-node__content {
height: 32px !important; height: 32px !important;
padding-right:20px; padding-right:20px;
......
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