Commit 67896c6c authored by zhengke's avatar zhengke

修改

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