修改文档对比全文对比

This commit is contained in:
范强强
2022-09-09 15:09:07 +08:00
parent df91bd7881
commit e2024da38d
@@ -137,6 +137,7 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-form-model> </a-form-model>
<JLoading :loading="textDataLoading">{{$t('dataLoading')}}</JLoading>
</a-modal> </a-modal>
<JLoading :loading="loading">{{dataLoadingText}}</JLoading> <JLoading :loading="loading">{{dataLoadingText}}</JLoading>
</div> </div>
@@ -172,6 +173,7 @@
] ]
}, },
loading: false, loading: false,
textDataLoading: false,
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
fullTextDisabled: false, fullTextDisabled: false,
@@ -255,6 +257,19 @@
}, },
addFullTextCommentClick() { addFullTextCommentClick() {
this.visible = true 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) { // if (this.formInlineText.comment) {
// this.fullTextDisabled = true // this.fullTextDisabled = true
// } else { // } else {