diff --git a/src/project/saas/AppCountryAlbum/components/report/Daily.vue b/src/project/saas/AppCountryAlbum/components/report/Daily.vue index c6ed671b..8dd3834e 100644 --- a/src/project/saas/AppCountryAlbum/components/report/Daily.vue +++ b/src/project/saas/AppCountryAlbum/components/report/Daily.vue @@ -164,17 +164,19 @@ }, confirm () { - if (!this.content) { - return false - } - if (this.currIndex >= 0) { - this.richList[this.currIndex].value = this.content + if (!this.content) { + this.richList.splice(this.currIndex, 1) + } else { + this.richList[this.currIndex].value = this.content + } } else { - this.richList.push({ - type: 'text', - value: this.content - }) + if (this.content) { + this.richList.push({ + type: 'text', + value: this.content + }) + } } this.isShowText = false diff --git a/src/project/saas/AppCountryAlbum/components/report/InspectLog.vue b/src/project/saas/AppCountryAlbum/components/report/InspectLog.vue index 4d9d4706..db824e58 100644 --- a/src/project/saas/AppCountryAlbum/components/report/InspectLog.vue +++ b/src/project/saas/AppCountryAlbum/components/report/InspectLog.vue @@ -174,17 +174,19 @@ }, confirm () { - if (!this.content) { - return false - } - if (this.currIndex >= 0) { - this.richList[this.currIndex].value = this.content + if (!this.content) { + this.richList.splice(this.currIndex, 1) + } else { + this.richList[this.currIndex].value = this.content + } } else { - this.richList.push({ - type: 'text', - value: this.content - }) + if (this.content) { + this.richList.push({ + type: 'text', + value: this.content + }) + } } this.isShowText = false diff --git a/src/project/saas/AppCountryAlbum/components/report/MeetingMminutes.vue b/src/project/saas/AppCountryAlbum/components/report/MeetingMminutes.vue index 5d75f735..3c2e04bd 100644 --- a/src/project/saas/AppCountryAlbum/components/report/MeetingMminutes.vue +++ b/src/project/saas/AppCountryAlbum/components/report/MeetingMminutes.vue @@ -195,17 +195,19 @@ }, confirm () { - if (!this.content) { - return false - } - if (this.currIndex >= 0) { - this.richList[this.currIndex].value = this.content + if (!this.content) { + this.richList.splice(this.currIndex, 1) + } else { + this.richList[this.currIndex].value = this.content + } } else { - this.richList.push({ - type: 'text', - value: this.content - }) + if (this.content) { + this.richList.push({ + type: 'text', + value: this.content + }) + } } this.isShowText = false diff --git a/src/project/saas/AppCountryAlbum/components/report/WorkReport.vue b/src/project/saas/AppCountryAlbum/components/report/WorkReport.vue index f007ddc1..da3930b0 100644 --- a/src/project/saas/AppCountryAlbum/components/report/WorkReport.vue +++ b/src/project/saas/AppCountryAlbum/components/report/WorkReport.vue @@ -165,17 +165,19 @@ }, confirm () { - if (!this.content) { - return false - } - if (this.currIndex >= 0) { - this.richList[this.currIndex].value = this.content + if (!this.content) { + this.richList.splice(this.currIndex, 1) + } else { + this.richList[this.currIndex].value = this.content + } } else { - this.richList.push({ - type: 'text', - value: this.content - }) + if (this.content) { + this.richList.push({ + type: 'text', + value: this.content + }) + } } this.isShowText = false