update 文档对比
This commit is contained in:
@@ -137,7 +137,7 @@ import { previewPdf } from '../../../utils/previewPdf.js'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
import CommentList from '../modules/CommentList.vue'
|
||||
import ComparisonResultEditModal from '../modules/ComparisonResultEditModal.vue'
|
||||
import ComparisonResultEditModal from './modules/ComparisonResultEditModal.vue'
|
||||
import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
|
||||
export default {
|
||||
@@ -167,7 +167,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.$route.query.isDisplay === 2) {
|
||||
if (this.$route.query.isDisplay === '2') {
|
||||
this.isDisplay = false
|
||||
} else {
|
||||
this.isDisplay = true
|
||||
|
||||
@@ -99,12 +99,15 @@
|
||||
</div>
|
||||
|
||||
<div class="submit-button">
|
||||
<!--一致-->
|
||||
<a-button style="margin-right: 10px" type="primary" @click="consistentAssessmentClick">{{ $t('docTool.comparison.consistentAssessment') }}
|
||||
</a-button>
|
||||
<!--保存-->
|
||||
<a-button type="primary" @click="submit">{{ $t('preservation') }}</a-button>
|
||||
</div>
|
||||
|
||||
<comparison-add-full-comment ref="comparisonAddFullComment"></comparison-add-full-comment>
|
||||
<!--全文评论-->
|
||||
<comparison-add-full-comment ref="comparisonAddFullComment" />
|
||||
</internal-detail-page>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="remark">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('docTool.comparison.remarkInfo')"
|
||||
:maxLength="300"
|
||||
:maxLength="500"
|
||||
v-model="formInline.remark"
|
||||
:rows="4" />
|
||||
</a-form-model-item>
|
||||
@@ -200,77 +200,67 @@ export default {
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('number'),
|
||||
align: 'left',
|
||||
width: 70,
|
||||
width: 30,
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('number'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'serialNumber',
|
||||
width: 79
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('title'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'title',
|
||||
width: 79
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('docTool.comparison.textStatus'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'fileType',
|
||||
width: 79
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('fileName'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'fileName',
|
||||
width: 79
|
||||
width: 100
|
||||
}
|
||||
],
|
||||
tableColumns: [
|
||||
{
|
||||
title: this.$t('number'),
|
||||
align: 'left',
|
||||
width: 70,
|
||||
width: 30,
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('number'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'serialNumber',
|
||||
width: 79
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('title'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'title',
|
||||
width: 79
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('docTool.comparison.textStatus'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'fileType',
|
||||
width: 79
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: this.$t('fileName'),
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
dataIndex: 'fileName',
|
||||
width: 79
|
||||
width: 100
|
||||
}
|
||||
],
|
||||
image: false,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { putAction } from '../../../../api/manage.js'
|
||||
import { addFullTextComment } from '../../../../api/documentToolApi.js'
|
||||
|
||||
export default {
|
||||
name: 'ComparisonAddFullComment',
|
||||
@@ -59,7 +59,7 @@ export default {
|
||||
id: this.$route.query.id,
|
||||
comments: formInlineText.comment
|
||||
}
|
||||
putAction('/compare/sarFileCompareInfo/editComments', query).then((res) => {
|
||||
addFullTextComment(query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
this.visible = false
|
||||
|
||||
+35
-28
@@ -9,41 +9,42 @@
|
||||
>
|
||||
<template slot="footer">
|
||||
<a-button key="back" @click="visible = false">
|
||||
{{$t('cancel')}}
|
||||
{{ $t('cancel') }}
|
||||
</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="fullTextCommentsSubmit">
|
||||
{{$t('submit')}}
|
||||
{{ $t('submit') }}
|
||||
</a-button>
|
||||
</template>
|
||||
<a-form-model :model="formInlineText" class="formAdd" :rules="rulesText" ref="ruleFormText">
|
||||
<div class="box-title-text" v-if="title === $t('docTool.comparison.fullTextComments')">
|
||||
<div class="title-text" :title="$t('docTool.comparison.fullTextComments')">
|
||||
<span class="title-text-text">{{$t('docTool.comparison.fullTextComments')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" style="width: calc(100% - 113px)" prop="comment">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('docTool.comparison.fullTextComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<div class="box-title-text" v-if="title === $t('docTool.comparison.comparativeComments')">
|
||||
<div class="title-text" :title="$t('docTool.comparison.comparativeComments')">
|
||||
<span class="title-text-text">{{$t('docTool.comparison.comparativeComments')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" style="width: calc(100% - 113px)" prop="comment">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('docTool.comparison.comparativeComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<a-form-model-item class="item-model"
|
||||
prop="comment"
|
||||
v-if="title === $t('docTool.comparison.fullTextComments')"
|
||||
:labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('docTool.comparison.fullTextComments')">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('docTool.comparison.fullTextComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4" />
|
||||
</a-form-model-item>
|
||||
<a-form-model-item class="item-model"
|
||||
prop="comment"
|
||||
v-if="title === $t('docTool.comparison.comparativeComments')"
|
||||
:labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('docTool.comparison.comparativeComments')">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('docTool.comparison.comparativeComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4" />
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { putAction } from '@/api/manage'
|
||||
import { putAction } from '../../../../api/manage.js'
|
||||
import { addFullTextComment } from '../../../../api/documentToolApi.js'
|
||||
|
||||
export default {
|
||||
name: 'ComparisonResultEditModal',
|
||||
@@ -53,7 +54,13 @@ export default {
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
formInlineText: {},
|
||||
rulesText: {}
|
||||
rulesText: {},
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
wrapperCol: {
|
||||
span: 18
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -86,7 +93,7 @@ export default {
|
||||
id: this.$route.query.id,
|
||||
comments: this.formInlineText.comment
|
||||
}
|
||||
putAction('/compare/sarFileCompareInfo/editComments', query).then((res) => {
|
||||
addFullTextComment(query).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
this.visible = false
|
||||
@@ -123,5 +130,5 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@import'~@assets/less/common.less';
|
||||
@import '~../../../../assets/less/common.less';
|
||||
</style>
|
||||
Reference in New Issue
Block a user