|
@@ -330,7 +330,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
tabClick(type) {
|
|
|
- if((this.$refs.sourceContRef&&this.$refs.sourceContRef.content)
|
|
|
+ let content = this.$refs.sourceContRef?this.$refs.sourceContRef.content.replace(/<p data-f-id=\"pbf\".*?<\/p>/g, ""):''
|
|
|
+
|
|
|
+ if(content
|
|
|
|| this.fileInfo.Id
|
|
|
|| this.docInfo.SaDocId) return this.$message.warning('请先清除内容重新选择')
|
|
|
this.sourceForm.type = type;
|
|
@@ -441,7 +443,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
let OriginContent = this.sourceForm.type===1
|
|
|
- ? this.$refs.sourceContRef.content
|
|
|
+ ? this.$refs.sourceContRef.content.replace(/<p data-f-id=\"pbf\".*?<\/p>/g, "")
|
|
|
: ''
|
|
|
|
|
|
let params = {
|
|
@@ -476,7 +478,7 @@ export default {
|
|
|
if(!this.resultForm.classifyId) return this.$message.warning(/* '请选择纪要分类' */this.$t('SemanticsManage.AiSummeryPage.ph_classify'))
|
|
|
|
|
|
let OriginContent = this.sourceForm.type===1
|
|
|
- ? this.$refs.sourceContRef.content
|
|
|
+ ? this.$refs.sourceContRef.content.replace(/<p data-f-id=\"pbf\".*?<\/p>/g, "")
|
|
|
: ''
|
|
|
|
|
|
let params = {
|