修改文档对比全文对比

This commit is contained in:
范强强
2022-09-09 15:09:07 +08:00
parent df91bd7881
commit e2024da38d
@@ -118,9 +118,9 @@
@cancel="visible = false"
>
<template slot="footer">
<!-- <a-button type="primary" @click="fullTextCommentsEdit">-->
<!-- {{$t('edit')}}-->
<!-- </a-button>-->
<!-- <a-button type="primary" @click="fullTextCommentsEdit">-->
<!-- {{$t('edit')}}-->
<!-- </a-button>-->
<a-button type="primary" :loading="confirmLoading" @click="fullTextCommentsSubmit">
{{$t('submit')}}
</a-button>
@@ -137,6 +137,7 @@
</a-form-model-item>
</div>
</a-form-model>
<JLoading :loading="textDataLoading">{{$t('dataLoading')}}</JLoading>
</a-modal>
<JLoading :loading="loading">{{dataLoadingText}}</JLoading>
</div>
@@ -152,7 +153,7 @@
formInline: {},
formInlineText: {},
dataLoadingText: '',
loadingText:false,
loadingText: false,
rules: {
comment: [
{
@@ -172,6 +173,7 @@
]
},
loading: false,
textDataLoading: false,
visible: false,
confirmLoading: false,
fullTextDisabled: false,
@@ -255,6 +257,19 @@
},
addFullTextCommentClick() {
this.visible = true
let query = {
id: this.$route.query.id
}
this.textDataLoading = true
postAction('/compare/sarFileCompareInfo/getComparisonDetail', query).then((res) => {
if (res.success) {
this.formInlineText.comment = res.result.comments || ''
this.formInlineText = { ...this.formInlineText }
this.textDataLoading = false
} else {
this.textDataLoading = false
}
})
// if (this.formInlineText.comment) {
// this.fullTextDisabled = true
// } else {
@@ -387,7 +402,7 @@
this.loadingText = false
this.resultData.textLeft[this.dataLeft.numIndex].itemsText = res.result[0]
this.resultData.textRight[this.dataRight.numIndex].itemsText = res.result[1]
}else{
} else {
this.loadingText = false
}
})