\s*(.*?)\s*<\/p>$/, '$1').trim(); @@ -1622,10 +1659,19 @@ this.lineStyle1 = { ...formattedData }; // 使用浅拷贝确保两个变量指 // 确定保存图片 async savePic() { - this.picStyle.picUrl; + var str = this.picStyle1.note ? await this.$commonJS.decodeHtml(this.picStyle1.note) : ''; var titleStr = this.picStyle1.title ? await this.$commonJS.decodeHtml(this.picStyle1.title) : ''; + + if (!this.picStyle.picUrl) { + this.$message.error('Please upload a picture'); + return; + } + if (!titleStr) { + this.$message.error('Please enter a title'); + return; + } if (this.picStyle.visiTitle == 'Edit Figure') { this.$api .post(this.urlList.editImage, { @@ -1720,14 +1766,18 @@ this.lineStyle1 = { ...formattedData }; // 使用浅拷贝确保两个变量指 } if (strTitle != '') { strTitle = await this.$commonJS.decodeHtml(strTitle); + }else{ + this.$message.error('Please enter a title'); + return; } - const loading = this.$loading({ + + if (content && cleanedTableList && cleanedTableList.length > 0) { + const loading = this.$loading({ lock: true, text: 'Loading...', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }); - if (content && cleanedTableList && cleanedTableList.length > 0) { if (this.lineStyle.visiTitle == 'Edit Table') { this.$api .post(this.urlList.editTable, { @@ -2287,4 +2337,5 @@ this.lineStyle1 = { ...formattedData }; // 使用浅拷贝确保两个变量指 background-color: #0066990d; /* display: block !important; */ } + diff --git a/src/components/page/OnlineProofreading.vue b/src/components/page/OnlineProofreading.vue index b52706c..4c99c86 100644 --- a/src/components/page/OnlineProofreading.vue +++ b/src/components/page/OnlineProofreading.vue @@ -136,7 +136,7 @@
-
-
- {{ $t('commonTable.reply') }}
-
--
- {{ $t('commonTable.solve') }}
-
--
- {{ $t('commonTable.cancelsolve') }}
-
--
- {{ $t('commonTable.delete') }}
-
-+ + {{ $t('commonTable.execute') }} +
+ ++ + {{ $t('commonTable.revoke') }} +
++ + {{ $t('commonTable.edit') }} +
++ + {{ $t('commonTable.delete') }} +
++
+ {{ $t('commonTable.reply') }}
+
++
+ {{ $t('commonTable.solve') }}
+
++
+ {{ $t('commonTable.cancelsolve') }}
+
++
+ {{ $t('commonTable.delete') }}
+
+