[update 拆分] 查看-译文
This commit is contained in:
@@ -129,15 +129,12 @@
|
|||||||
<div class="translation-text part-ml part-common" ref="translationRef" :style="`width: ${translationRefX}px`" :class="{'hide-clause-label': isContainerExpand}">
|
<div class="translation-text part-ml part-common" ref="translationRef" :style="`width: ${translationRefX}px`" :class="{'hide-clause-label': isContainerExpand}">
|
||||||
<div class="part-title">{{ $t('standardRegulationLibrary.translation') }}</div>
|
<div class="part-title">{{ $t('standardRegulationLibrary.translation') }}</div>
|
||||||
<div class="standard-content translation-content">
|
<div class="standard-content translation-content">
|
||||||
<div class="clause-content-item"
|
<div class="clause-content-item" v-if="Object.keys(clauseLabelInfo).length">
|
||||||
v-for="clause in clauseContentList"
|
<div class="clause-content-item-title">{{ clauseLabelInfo.item_num }} {{ clauseLabelInfo.item_title }}</div>
|
||||||
:key="clause.id"
|
|
||||||
@click="handleClickClauseContentItem(clause)">
|
|
||||||
<div class="clause-content-item-title">{{ clause.item_num }} {{ clause.item_title }}</div>
|
|
||||||
<div class="clause-content-item-content"
|
<div class="clause-content-item-content"
|
||||||
:class="{'clause-content-item-content-hight': clause.menu_id === hightMenuId}"
|
v-html="clauseLabelInfo.translation"></div>
|
||||||
v-html="clause.translation"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<a-list v-else :data-source="[]"></a-list>
|
||||||
</div>
|
</div>
|
||||||
<vue-draggable-resizable :draggable="true" :resizable="false" :w="6" axis="x" :x="translationRefX" :z="2" class="draggable-border"
|
<vue-draggable-resizable :draggable="true" :resizable="false" :w="6" axis="x" :x="translationRefX" :z="2" class="draggable-border"
|
||||||
:onDrag="(...args) => onDragCallback(100, 500, ...args)" class-name-dragging="dragging"
|
:onDrag="(...args) => onDragCallback(100, 500, ...args)" class-name-dragging="dragging"
|
||||||
@@ -149,7 +146,12 @@
|
|||||||
<div class="part-title">{{ $t('standardRegulationLibrary.clauseLabel') }}</div>
|
<div class="part-title">{{ $t('standardRegulationLibrary.clauseLabel') }}</div>
|
||||||
<div class="has-title-part-content">
|
<div class="has-title-part-content">
|
||||||
<template v-for="clause in clauseField">
|
<template v-for="clause in clauseField">
|
||||||
<div class="clause-item" v-if="!clauseLabelHideField.includes(clause.dbFieldName)" :key="clause.id">
|
<!--技术规范/设计指南 查看-->
|
||||||
|
<div class="clause-item" v-if="clause.dbFieldName === 'technical_specification_design_guide'" :key="clause.id">
|
||||||
|
<label>{{ clause.dbFieldTxt }}</label>
|
||||||
|
<div class="clause-item-content"><a @click="handleViewFile(clauseLabelInfo[clause.dbFieldName])">{{ $t('view') }}</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="clause-item" v-else-if="!clauseLabelHideField.includes(clause.dbFieldName)" :key="clause.id">
|
||||||
<label>{{ clause.dbFieldTxt }}</label>
|
<label>{{ clause.dbFieldTxt }}</label>
|
||||||
<div class="clause-item-content"
|
<div class="clause-item-content"
|
||||||
v-html="clauseLabelInfo[needDictField.includes(clause.fieldShowType) ? clause.dbFieldName + '_dictText' : clause.dbFieldName]"></div>
|
v-html="clauseLabelInfo[needDictField.includes(clause.fieldShowType) ? clause.dbFieldName + '_dictText' : clause.dbFieldName]"></div>
|
||||||
@@ -187,6 +189,8 @@
|
|||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </a-tooltip>-->
|
<!-- </a-tooltip>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
|
<!--查看上传文件-->
|
||||||
|
<upload-file ref="uploadFile" :return-url="false" disabled />
|
||||||
</div>
|
</div>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</template>
|
</template>
|
||||||
@@ -196,10 +200,12 @@ import { getDocSplitEditForm, previewDocSplit } from '@api/documentToolApi'
|
|||||||
import { FieldType } from '@/enums/commonEnums'
|
import { FieldType } from '@/enums/commonEnums'
|
||||||
import VueDraggableResizable from 'vue-draggable-resizable'
|
import VueDraggableResizable from 'vue-draggable-resizable'
|
||||||
import { queryDepartTreeList } from '@api/api'
|
import { queryDepartTreeList } from '@api/api'
|
||||||
|
import UploadFile from '@comp/UploadFile'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandardResolutionSheet',
|
name: 'StandardResolutionSheet',
|
||||||
components: {
|
components: {
|
||||||
|
UploadFile,
|
||||||
VueDraggableResizable
|
VueDraggableResizable
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -229,7 +235,7 @@ export default {
|
|||||||
clauseContentList: [], // 条文内容的数据
|
clauseContentList: [], // 条文内容的数据
|
||||||
translationContentList: [], // 译文内容的数据
|
translationContentList: [], // 译文内容的数据
|
||||||
clauseLabelInfo: {}, // 条文标签数据
|
clauseLabelInfo: {}, // 条文标签数据
|
||||||
clauseLabelHideField: ['item_content'],
|
clauseLabelHideField: ['item_content', 'item_title', 'translation'],
|
||||||
needDictField: [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value],
|
needDictField: [FieldType.USER_SINGLE.value, FieldType.ORGAN_SINGLE.value, FieldType.STANDARD_MORE.value, FieldType.ORGAN_MORE.value, FieldType.OPTION_SINGLE.value, FieldType.OPTION_MORE.value, FieldType.TREE.value],
|
||||||
queryParams: {},
|
queryParams: {},
|
||||||
isDragging: false, // 是否拖拽中
|
isDragging: false, // 是否拖拽中
|
||||||
@@ -246,6 +252,10 @@ export default {
|
|||||||
this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX
|
this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 查看文件
|
||||||
|
handleViewFile (ids) {
|
||||||
|
this.$refs.uploadFile.open(ids)
|
||||||
|
},
|
||||||
// 获取组织机构树
|
// 获取组织机构树
|
||||||
getSysCategoryTree () {
|
getSysCategoryTree () {
|
||||||
queryDepartTreeList().then((res) => {
|
queryDepartTreeList().then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user