[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"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@change="handleTableChange">
<!--条文内容-->
<template slot="item_content" slot-scope="{text, record}">
<div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent('item_content', text,record)">
<!--条文内容译文-->
<template slot="htmlContent" slot-scope="{text, record}">
<div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent(text, record)">
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
</div>
<div class="table-text" v-else>{{ global.emptyLine }}</div>
@@ -58,7 +58,7 @@
<template v-slot:action="{text, record}">
<a v-if="showEditBtn" @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
<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>
</j-table>
<!--条文内容-->
@@ -161,7 +161,7 @@ export default {
align: 'center',
width: 180,
dataIndex: 'itemContent',
scopedSlots: { customRender: 'item_content' }
scopedSlots: { customRender: 'htmlContent' }
}
],
// 操作列
@@ -194,7 +194,7 @@ export default {
align: 'center',
width: 180,
dataIndex: 'translation',
scopedSlots: { customRender: 'text' }
scopedSlots: { customRender: 'htmlContent' }
},
{ // 是否与上一版相同
title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'),
@@ -854,10 +854,9 @@ export default {
},
/**
* 显示条款内容、条文解读弹框
* @param fieldName
* @param val
*/
showContent (fieldName, val) {
showContent (val) {
this.$refs.splitClauseDetail.open(val)
},
/**