修改文档对比全文对比
This commit is contained in:
+20
-5
@@ -118,9 +118,9 @@
|
|||||||
@cancel="visible = false"
|
@cancel="visible = false"
|
||||||
>
|
>
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<!-- <a-button type="primary" @click="fullTextCommentsEdit">-->
|
<!-- <a-button type="primary" @click="fullTextCommentsEdit">-->
|
||||||
<!-- {{$t('edit')}}-->
|
<!-- {{$t('edit')}}-->
|
||||||
<!-- </a-button>-->
|
<!-- </a-button>-->
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="fullTextCommentsSubmit">
|
<a-button type="primary" :loading="confirmLoading" @click="fullTextCommentsSubmit">
|
||||||
{{$t('submit')}}
|
{{$t('submit')}}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -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>
|
||||||
@@ -152,7 +153,7 @@
|
|||||||
formInline: {},
|
formInline: {},
|
||||||
formInlineText: {},
|
formInlineText: {},
|
||||||
dataLoadingText: '',
|
dataLoadingText: '',
|
||||||
loadingText:false,
|
loadingText: false,
|
||||||
rules: {
|
rules: {
|
||||||
comment: [
|
comment: [
|
||||||
{
|
{
|
||||||
@@ -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 {
|
||||||
@@ -387,7 +402,7 @@
|
|||||||
this.loadingText = false
|
this.loadingText = false
|
||||||
this.resultData.textLeft[this.dataLeft.numIndex].itemsText = res.result[0]
|
this.resultData.textLeft[this.dataLeft.numIndex].itemsText = res.result[0]
|
||||||
this.resultData.textRight[this.dataRight.numIndex].itemsText = res.result[1]
|
this.resultData.textRight[this.dataRight.numIndex].itemsText = res.result[1]
|
||||||
}else{
|
} else {
|
||||||
this.loadingText = false
|
this.loadingText = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user