[update 解读流程] 去掉译文的编辑

This commit is contained in:
danshihao
2024-08-05 10:27:48 +08:00
parent fdfa15b1d1
commit fbc73a2b9d
2 changed files with 14 additions and 15 deletions
@@ -37,9 +37,9 @@
:pagination="ipagination" :pagination="ipagination"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@change="handleTableChange"> @change="handleTableChange">
<!--条文内容--> <!--条文内容译文-->
<template slot="item_content" slot-scope="{text, record}"> <template slot="htmlContent" slot-scope="{text, record}">
<div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent('item_content', text,record)"> <div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent(text, record)">
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }} {{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
</div> </div>
<div class="table-text" v-else>{{ global.emptyLine }}</div> <div class="table-text" v-else>{{ global.emptyLine }}</div>
@@ -58,7 +58,7 @@
<template v-slot:action="{text, record}"> <template v-slot:action="{text, record}">
<a v-if="showEditBtn" @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a> <a v-if="showEditBtn" @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
<a-divider v-if="showEditBtn && showDeleteBtn" type="vertical" /> <a-divider v-if="showEditBtn && showDeleteBtn" type="vertical" />
<a v-if="showDeleteBtn" @click="handleDelete(record[rowKey])" class="table-ope-btn">{{ $t('delete') }}</a> <a v-if="showDeleteBtn" @click="handleDelete(record[rowKey])" class="operate-del-btn">{{ $t('delete') }}</a>
</template> </template>
</j-table> </j-table>
<!--条文内容--> <!--条文内容-->
@@ -161,7 +161,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'itemContent', dataIndex: 'itemContent',
scopedSlots: { customRender: 'item_content' } scopedSlots: { customRender: 'htmlContent' }
} }
], ],
// 操作列 // 操作列
@@ -194,7 +194,7 @@ export default {
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'translation', dataIndex: 'translation',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'htmlContent' }
}, },
{ // 是否与上一版相同 { // 是否与上一版相同
title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'), title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'),
@@ -854,10 +854,9 @@ export default {
}, },
/** /**
* 显示条款内容、条文解读弹框 * 显示条款内容、条文解读弹框
* @param fieldName
* @param val * @param val
*/ */
showContent (fieldName, val) { showContent (val) {
this.$refs.splitClauseDetail.open(val) this.$refs.splitClauseDetail.open(val)
}, },
/** /**
@@ -14,13 +14,13 @@
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form" :label-col="labelCol" :wrapper-col="wrapperCol"> <a-form :form="form" :label-col="labelCol" :wrapper-col="wrapperCol">
<!--译文--> <!--译文-->
<a-form-item :label="$t('workCenter.standardInterpretationProcess.translation')" :colon="false"> <!--<a-form-item :label="$t('workCenter.standardInterpretationProcess.translation')" :colon="false">-->
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.translation')" <!-- <a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.translation')"-->
:maxLength="500" <!-- :maxLength="500"-->
:rows="4" <!-- :rows="4"-->
:disabled="disabled" <!-- :disabled="disabled"-->
v-decorator="['translation']" /> <!-- v-decorator="['translation']" />-->
</a-form-item> <!--</a-form-item>-->
<!--是否与上一版相同--> <!--是否与上一版相同-->
<a-form-item :label="$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion')" :colon="false"> <a-form-item :label="$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion')" :colon="false">
<j-dict-select-tag dict-code="yn" <j-dict-select-tag dict-code="yn"