768 lines
25 KiB
Vue
768 lines
25 KiB
Vue
<template>
|
|
<a-spin :spinning="loading">
|
|
<!-- 搜索条件 -->
|
|
<div class="table-page-search-wrapper">
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
<a-row :gutter="24" style="margin: 0;">
|
|
<!--适用零部件-->
|
|
<a-col :md="4" :sm="12">
|
|
<a-form-item :label="$t('standardRegulationLibrary.applicableComponents')">
|
|
<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.applicableComponents')"
|
|
v-model="queryParam.applicable_components"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<!--涉及系统/部件-->
|
|
<a-col :md="4" :sm="12">
|
|
<a-form-item :label="$t('standardRegulationLibrary.involvingSystemsComponents')">
|
|
<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.involvingSystemsComponents')"
|
|
v-model="queryParam.keywords"></a-input>
|
|
</a-form-item>
|
|
</a-col>
|
|
<!--适用车型-->
|
|
<a-col :md="4" :sm="12">
|
|
<a-form-item :label="$t('standardRegulationLibrary.applications')">
|
|
<j-dict-select-tag
|
|
class="box-input"
|
|
v-model="queryParam.applications"
|
|
:placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.applications')"
|
|
:type="'select'"
|
|
:triggerChange="false"
|
|
dictCode="applicable_vehicle_type" />
|
|
</a-form-item>
|
|
</a-col>
|
|
<!--动力类型-->
|
|
<a-col :md="4" :sm="12">
|
|
<a-form-item :label="$t('standardRegulationLibrary.powerType')">
|
|
<j-dict-select-tag
|
|
class="box-input"
|
|
v-model="queryParam.power_type"
|
|
:placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.powerType')"
|
|
:type="'select'"
|
|
:triggerChange="false"
|
|
dictCode="dynamic_type" />
|
|
</a-form-item>
|
|
</a-col>
|
|
<!--责任部门-->
|
|
<a-col :md="4" :sm="12">
|
|
<a-form-item :label="$t('standardRegulationLibrary.responsibleDepartment')">
|
|
<a-tree-select
|
|
tree-node-filter-prop="title"
|
|
v-model="queryParam.responsible_department"
|
|
:maxTagCount="1"
|
|
allowClear
|
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
|
class="box-input"
|
|
style="width: 100%"
|
|
:tree-data="categoryTreeList"
|
|
:placeholder="$t('pleaseSelect') + $t('standardRegulationLibrary.responsibleDepartment')"
|
|
show-search
|
|
:filterTreeNode="filterTreeOption"
|
|
/>
|
|
</a-form-item>
|
|
</a-col>
|
|
<div style="float: right;overflow: hidden;margin-right: 16px" class="table-page-search-submitButtons">
|
|
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px" v-has="'split:sarFileSplitInfo:search'">
|
|
{{ $t('query') }}
|
|
</a-button>
|
|
<a-button type="primary" @click="searchReset" icon="reload" ghost>{{ $t('reset') }}</a-button>
|
|
</div>
|
|
</a-row>
|
|
</a-form>
|
|
</div>
|
|
<!-- 拖拽中不能选中内容 -->
|
|
<div class="sheet-box" :class="{ disabledSelect: isDragging }" ref="sheetBoxRef">
|
|
<!--标准目录-->
|
|
<div class="standard-catalogue part-common" ref="standardCatalogueRef"
|
|
:class="isCatalogueExpand ? 'expand-catalogue' : 'no-expand-catalogue'">
|
|
<div class="control-standard-catalogue-expand" @click="expandCatalogue">
|
|
<a-icon :type="isCatalogueExpand ? 'left' : 'right'" />
|
|
</div>
|
|
<div class="part-title" v-show="isCatalogueExpand">{{ $t('standardRegulationLibrary.standardCatalogue') }}</div>
|
|
<div class="has-title-part-content" v-show="isCatalogueExpand">
|
|
<a-tree :tree-data="treeData"
|
|
:selected-keys="selectedTreeKeys"
|
|
@select="handleTreeSelected"
|
|
:replaceFields="{children: 'children', key: 'id'}">
|
|
<a-icon slot="switcherIcon" type="down" :style="{ fontSize: '12px', color: '#103770' }" />
|
|
<template slot="title" slot-scope="{name, itemName}">
|
|
<span :style="name && name.indexOf('.')===-1?'font-weight: 600;':''">{{ `${name} ${itemName || ''}` }}</span>
|
|
</template>
|
|
</a-tree>
|
|
</div>
|
|
<!--<vue-draggable-resizable v-show="isCatalogueExpand" :draggable="true" :resizable="false" :w="6" axis="x" :x="standardCatalogueRefX" :z="2" class="draggable-border"-->
|
|
<!-- :onDrag="(...args) => onDragCallback(100, 500, ...args)" class-name-dragging="dragging"-->
|
|
<!-- @dragging="onDragging"-->
|
|
<!-- @dragstop="(...args) => onDragstop('standardCatalogueRef', ...args)"></vue-draggable-resizable>-->
|
|
</div>
|
|
<!--内容和译文-->
|
|
<div class="content-and-translation" :class="{'hide-translation': isContainerExpand}">
|
|
<!--标准内容-->
|
|
<div class="sheet-container part-ml" ref="sheetContainerRef">
|
|
<!--标准名称-->
|
|
<div class="standard-name">
|
|
<a-tooltip placement="topLeft">
|
|
<template #title>
|
|
{{ spiltInfo.serialNumber }}
|
|
</template>
|
|
<span> {{ spiltInfo.serialNumber }}《{{ spiltInfo.fileName }}》</span>
|
|
</a-tooltip>
|
|
<a-button type="link" :icon="isContainerExpand ? 'fullscreen-exit' : 'fullscreen'" @click="handleContainerExpand">
|
|
{{ isContainerExpand ? $t('putAway') : $t('open') }}
|
|
</a-button>
|
|
</div>
|
|
<!--条文内容-->
|
|
<div class="standard-content">
|
|
<div class="clause-content-item"
|
|
v-for="clause in clauseContentList"
|
|
: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"
|
|
:class="{'clause-content-item-content-hight': clause.menu_id === hightMenuId}"
|
|
v-html="clause.item_content"></div>
|
|
</div>
|
|
</div>
|
|
<!--<vue-draggable-resizable :draggable="true" :resizable="false" :w="6" axis="x" :x="sheetContainerRefX" :z="2" class="draggable-border"-->
|
|
<!-- :onDrag="(...args) => onDragCallback(100, null, ...args)" class-name-dragging="dragging"-->
|
|
<!-- @dragging="onDragging"-->
|
|
<!-- @dragstop="(...args) => onDragstop('sheetContainerRef', ...args)"></vue-draggable-resizable>-->
|
|
</div>
|
|
<!--译文-->
|
|
<div class="translation-text part-ml part-common" ref="translationRef" :class="{'hide-translation-text': isContainerExpand}">
|
|
<div class="part-title">{{ $t('standardRegulationLibrary.translation') }}</div>
|
|
<div class="standard-content translation-content">
|
|
<div class="clause-content-item" v-if="Object.keys(clauseLabelInfo).length">
|
|
<div class="clause-content-item-title">{{ clauseLabelInfo.item_num }} {{ clauseLabelInfo.item_title }}</div>
|
|
<div class="clause-content-item-content"
|
|
v-html="clauseLabelInfo.translation"></div>
|
|
</div>
|
|
<a-list v-else :data-source="[]"></a-list>
|
|
</div>
|
|
<!--<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"-->
|
|
<!-- @dragging="onDragging"-->
|
|
<!-- @dragstop="(...args) => onDragstop('translationRef', ...args)"></vue-draggable-resizable>-->
|
|
</div>
|
|
</div>
|
|
<!--条文标签-->
|
|
<div class="clause-label part-ml part-common" ref="clauseLabelRef" :class="{'hide-clause-label': !showClauseLabel || isContainerExpand}">
|
|
<div class="part-title">{{ $t('standardRegulationLibrary.clauseLabel') }}</div>
|
|
<div class="has-title-part-content">
|
|
<template v-for="clause in clauseField">
|
|
<!--技术规范/设计指南 查看-->
|
|
<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>
|
|
<div class="clause-item-content"
|
|
v-html="clauseLabelInfo[needDictField.includes(clause.fieldShowType) ? clause.dbFieldName + '_dictText' : clause.dbFieldName]"></div>
|
|
</div>
|
|
</template>
|
|
</div>
|
|
<!--<vue-draggable-resizable :draggable="true" :resizable="false" :w="6" axis="x" :x="clauseLabelRefX" :z="2" class="draggable-border"-->
|
|
<!-- :onDrag="(...args) => onDragCallback(100, 500, ...args)" class-name-dragging="dragging"-->
|
|
<!-- @dragging="onDragging"-->
|
|
<!-- @dragstop="(...args) => onDragstop('clauseLabelRef', ...args)"></vue-draggable-resizable>-->
|
|
</div>
|
|
<!--条文、条文标签切换-->
|
|
<div class="clause-label-change part-ml part-common" ref="clauseLabelChangeRef" :class="{'no-expand-clause-label': !isClauseLabelExpand}">
|
|
<div class="control-clause-label-expand" @click="expandClauseLabel">
|
|
<a-icon :type="isClauseLabelExpand ? 'right' : 'left'" />
|
|
</div>
|
|
<!--条文-->
|
|
<a-tooltip placement="left">
|
|
<template #title>{{ $t('docTool.split.article') }}</template>
|
|
<div class="clause-label-change-item"
|
|
:class="{'clause-label-change-item-selected': !showClauseLabel}"
|
|
@click="handleClauseChange(false)">
|
|
<i class="iconfont icon-ios-list-box" />
|
|
<span v-show="isClauseLabelExpand">{{ $t('docTool.split.article') }}</span>
|
|
</div>
|
|
</a-tooltip>
|
|
<!--条文标签-->
|
|
<a-tooltip placement="left">
|
|
<template #title>{{ $t('docTool.split.clauseLabel') }}</template>
|
|
<div class="clause-label-change-item"
|
|
:class="{'clause-label-change-item-selected': showClauseLabel}"
|
|
@click="handleClauseChange(true)">
|
|
<i class="iconfont icon-biaoqian-mianxing" />
|
|
<span v-show="isClauseLabelExpand">{{ $t('docTool.split.clauseLabel') }}</span>
|
|
</div>
|
|
</a-tooltip>
|
|
</div>
|
|
<!--查看上传文件-->
|
|
<upload-file ref="uploadFile" :return-url="false" disabled />
|
|
</div>
|
|
</a-spin>
|
|
</template>
|
|
|
|
<script>
|
|
import { getDocSplitEditForm, previewDocSplit } from '@api/documentToolApi'
|
|
import { FieldType } from '@/enums/commonEnums'
|
|
import VueDraggableResizable from 'vue-draggable-resizable'
|
|
import { queryDepartTreeList } from '@api/api'
|
|
import UploadFile from '@comp/UploadFile'
|
|
|
|
export default {
|
|
name: 'StandardResolutionSheet',
|
|
components: {
|
|
UploadFile,
|
|
VueDraggableResizable
|
|
},
|
|
props: {
|
|
// 是否文档拆分处查看
|
|
horizontalOverstep: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: false
|
|
}
|
|
},
|
|
data () {
|
|
return {
|
|
queryParam: {},
|
|
categoryTreeList: [], // 组织机构下拉框数据
|
|
showClauseLabel: true, // 是否展示条文标签
|
|
// 条文标签字段
|
|
clauseField: [],
|
|
// 目录数据
|
|
treeData: [],
|
|
selectedTreeKeys: [],
|
|
hightMenuId: null, // 高亮的menuId
|
|
isClauseLabelExpand: true, // 条文/条文标签切换部分是否展开,控制是否只显示图标
|
|
isCatalogueExpand: true, // 标准目录收起
|
|
isContainerExpand: false, // 条文是否展开
|
|
loading: false,
|
|
spiltInfo: {}, // 拆分的整体信息
|
|
clauseContentList: [], // 条文内容的数据
|
|
translationContentList: [], // 译文内容的数据
|
|
clauseLabelInfo: {}, // 条文标签数据
|
|
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],
|
|
queryParams: {},
|
|
isDragging: false, // 是否拖拽中
|
|
standardCatalogueRefX: 280, // 标准目录默认宽度
|
|
sheetContainerRefX: 0, // 标准内容默认宽度
|
|
clauseLabelRefX: 360, // 条文标签默认宽度
|
|
translationRefX: 0 // 译文部分默认宽度
|
|
}
|
|
},
|
|
mounted () {
|
|
this.getSysCategoryTree()
|
|
// 容器实际剩余宽度 = 右侧内容宽度 - 内容中的间距
|
|
// const boxWidth = this.$refs.sheetBoxRef.getBoundingClientRect().width - this.$refs.clauseLabelChangeRef.getBoundingClientRect().width - (16 * 4)
|
|
// this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX
|
|
},
|
|
methods: {
|
|
// 查看文件
|
|
handleViewFile (ids) {
|
|
this.$refs.uploadFile.open(ids)
|
|
},
|
|
// 获取组织机构树
|
|
getSysCategoryTree () {
|
|
queryDepartTreeList().then((res) => {
|
|
if (res.success) {
|
|
this.categoryTreeList = res.result
|
|
} else {
|
|
this.categoryTreeList = []
|
|
}
|
|
})
|
|
},
|
|
filterTreeOption (input, option) {
|
|
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
|
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
},
|
|
// 查询
|
|
searchQuery () {
|
|
this.initDetailInfo(this.queryParam)
|
|
},
|
|
// 重置
|
|
searchReset () {
|
|
this.queryParam = {}
|
|
this.initDetailInfo()
|
|
},
|
|
/**
|
|
* 拖拽回调
|
|
* @param min - 拖拽最小宽度
|
|
* @param max - 拖拽最大宽度
|
|
* @param x - 当前宽度
|
|
* @return {boolean}
|
|
*/
|
|
onDragCallback (min, max, x) {
|
|
if ((min !== null) && (x < min)) {
|
|
return false
|
|
}
|
|
if ((max !== null) && (x > max)) {
|
|
return false
|
|
}
|
|
return true
|
|
},
|
|
/**
|
|
* 拖拽中
|
|
*/
|
|
onDragging () {
|
|
this.isDragging = true
|
|
},
|
|
/**
|
|
* 拖拽结束
|
|
* @param refName - ref名字用于获取dom改变宽度
|
|
* @param x - 当前宽度
|
|
*/
|
|
onDragstop (refName, x) {
|
|
this.isDragging = false
|
|
// console.log(this.$refs[refName])
|
|
this[refName + 'X'] = x
|
|
// this.$refs[refName].style.width = x + 'px'
|
|
},
|
|
/**
|
|
* 获取条文标签字段
|
|
*/
|
|
initClauseFieldList () {
|
|
getDocSplitEditForm({ type: 1 }).then(res => {
|
|
if (res.success) {
|
|
this.clauseField = res.result || []
|
|
}
|
|
})
|
|
},
|
|
initDetailInfo (queryParams) {
|
|
// this.loading = true
|
|
const params = Object.assign({}, this.queryParams, queryParams)
|
|
if (this.horizontalOverstep) {
|
|
params.horizontalOverstep = true
|
|
}
|
|
previewDocSplit(params).then(res => {
|
|
if (res.success) {
|
|
const data = res.result || {}
|
|
this.treeData = data.sarFileSplitMenuEO || []
|
|
this.spiltInfo = data.documentSplitInfo || {}
|
|
this.clauseContentList = data.documentSplitDetail || []
|
|
}
|
|
}).finally(() => {
|
|
this.loading = false
|
|
})
|
|
},
|
|
/**
|
|
* 树节点选中
|
|
* @param selectedKeys
|
|
*/
|
|
handleTreeSelected (selectedKeys) {
|
|
this.selectedTreeKeys = selectedKeys
|
|
this.hightMenuId = this.selectedTreeKeys[0]
|
|
if (this.hightMenuId) {
|
|
this.handleJump()
|
|
} else {
|
|
this.clauseLabelInfo = {}
|
|
}
|
|
},
|
|
/**
|
|
* 内容跳转,处理条文标签数据
|
|
*/
|
|
handleJump () {
|
|
const contentItemDomList = document.getElementsByClassName('clause-content-item')
|
|
const contentDom = document.getElementsByClassName('standard-content')[0]
|
|
const contentItemIndex = this.clauseContentList.findIndex(tt => tt.menu_id === this.hightMenuId)
|
|
this.handleProcessClauseLabelInfo(contentItemIndex)
|
|
contentDom.scrollTop = contentItemDomList[contentItemIndex].offsetTop - 150
|
|
},
|
|
/**
|
|
* 处理条文标签的数据
|
|
* @param contentItemIndex
|
|
*/
|
|
handleProcessClauseLabelInfo (contentItemIndex) {
|
|
this.clauseLabelInfo = Object.assign({}, this.clauseContentList[contentItemIndex])
|
|
},
|
|
/**
|
|
* 点击条文内容
|
|
*/
|
|
handleClickClauseContentItem ({ menu_id: menuId }) {
|
|
this.selectedTreeKeys = [menuId]
|
|
this.hightMenuId = menuId
|
|
const contentItemIndex = this.clauseContentList.findIndex(tt => tt.menu_id === this.hightMenuId)
|
|
this.handleProcessClauseLabelInfo(contentItemIndex)
|
|
},
|
|
/**
|
|
* 标准内容展开
|
|
*/
|
|
handleContainerExpand () {
|
|
this.isContainerExpand = !this.isContainerExpand
|
|
this.isCatalogueExpand = !this.isContainerExpand
|
|
// if (this.isContainerExpand) {
|
|
// // 展开主要内容前:主要内容宽 = 当前宽度 + 条文标签宽度(未隐藏时) + 标准目录宽度(未隐藏时)
|
|
// this.sheetContainerRefX = this.sheetContainerRefX + (this.showClauseLabel ? this.clauseLabelRefX : 0) + (this.isCatalogueExpand ? this.standardCatalogueRefX : 0) + this.translationRefX
|
|
// this.isCatalogueExpand = false
|
|
// } else {
|
|
// // 收起主要内容前:主要内容宽 = 当前宽度 - 条文标签宽度(隐藏时) - 标准目录宽度(隐藏时)
|
|
// this.sheetContainerRefX = this.sheetContainerRefX - (this.showClauseLabel ? this.clauseLabelRefX : 0) - (!this.isCatalogueExpand ? this.standardCatalogueRefX : 0) - this.translationRefX
|
|
// this.isCatalogueExpand = true
|
|
// }
|
|
},
|
|
/**
|
|
* 条文标签切换
|
|
* @param flag
|
|
*/
|
|
handleClauseChange (flag) {
|
|
// const beforeFlag = this.showClauseLabel
|
|
this.showClauseLabel = flag
|
|
// 如果值改变了,就进行宽度调整
|
|
// if (beforeFlag !== flag) {
|
|
// // 主要内容宽 = 当前宽度 +(收起)|-(展开) 条文标签宽度
|
|
// this.sheetContainerRefX = this.sheetContainerRefX + (this.clauseLabelRefX * (this.showClauseLabel ? -1 : 1))
|
|
// }
|
|
},
|
|
/**
|
|
* 展开或收起条文/条文标签面板
|
|
*/
|
|
expandClauseLabel () {
|
|
this.isClauseLabelExpand = !this.isClauseLabelExpand
|
|
// TODO 右侧切换条文和条文标签折叠宽度有改的话,需要修改这里的差值
|
|
// 根据展开或收起,给主要内容减少或增加宽度
|
|
// const diff = Math.abs(130 - 45)
|
|
// this.sheetContainerRefX = this.sheetContainerRefX + (diff * (this.isClauseLabelExpand ? -1 : 1))
|
|
},
|
|
/**
|
|
* 展开或收起标准目录
|
|
*/
|
|
expandCatalogue () {
|
|
this.isCatalogueExpand = !this.isCatalogueExpand
|
|
// 主要内容宽 = 当前宽度 +(收起)|-(展开) 标准目录宽度
|
|
// this.sheetContainerRefX = this.sheetContainerRefX + (this.standardCatalogueRefX * (this.isCatalogueExpand ? -1 : 1))
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
@import '~@assets/less/common.less';
|
|
|
|
.sheet-box {
|
|
overflow-x: auto;
|
|
width: 100%;
|
|
height: calc(100% - 56px);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
// 禁止flex自动扩充或收缩,拖拽必须要绝对单位
|
|
& > div {
|
|
//flex-grow: 0;
|
|
//flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.part-ml {
|
|
margin-left: 16px;
|
|
}
|
|
|
|
.part-common {
|
|
border-radius: 8px;
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
.standard-catalogue {
|
|
height: 100%;
|
|
position: relative;
|
|
transition: width .2s linear;
|
|
|
|
/deep/ .ant-tree li .ant-tree-node-content-wrapper {
|
|
max-width: calc(100% - 24px);
|
|
|
|
&:hover {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
/deep/ .ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
background-color: transparent !important;
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
.control-standard-catalogue-expand {
|
|
width: 12px;
|
|
height: 24px;
|
|
border-radius: 0 12px 12px 0;
|
|
background-color: @primary-color;
|
|
color: white;
|
|
position: absolute;
|
|
z-index: 3;
|
|
left: 100%;
|
|
top: calc(50% - 52px);
|
|
|
|
.anticon {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: -2px;
|
|
transform: translateY(-50%);
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.expand-catalogue {
|
|
width: 280px;
|
|
}
|
|
// 拖拽会设置行内样式,这里要覆盖行内样式
|
|
.no-expand-catalogue {
|
|
width: 0 !important;
|
|
}
|
|
|
|
// 内容和译文为了平分宽度
|
|
.content-and-translation {
|
|
display: flex;
|
|
flex: auto;
|
|
|
|
&.hide-translation .sheet-container {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.sheet-container {
|
|
position: relative;
|
|
height: 100%;
|
|
width: 50%;
|
|
//width: 0;
|
|
transition: width .2s linear;
|
|
}
|
|
|
|
.translation-text {
|
|
width: 50%;
|
|
transition: width .2s linear;
|
|
position: relative;
|
|
//width: 280px;
|
|
height: 100%;
|
|
}
|
|
.translation-content {
|
|
height: calc(100% - 40px);
|
|
}
|
|
|
|
.hide-translation-text {
|
|
width: 0 !important;
|
|
overflow: hidden;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.clause-label {
|
|
position: relative;
|
|
width: 400px;
|
|
height: 100%;
|
|
margin-right: 3px;
|
|
//overflow: hidden;
|
|
transition: width .2s linear;
|
|
|
|
.clause-item {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
|
|
label {
|
|
width: 7.5em;
|
|
font-size: 14px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
color: #86909C;
|
|
margin-right: 20px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
&-content {
|
|
flex: 1;
|
|
width: 0;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
font-size: 14px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
color: #1D2129;
|
|
}
|
|
}
|
|
}
|
|
|
|
.hide-clause-label {
|
|
width: 0 !important;
|
|
overflow: hidden;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.clause-label-change {
|
|
width: 130px;
|
|
height: 100%;
|
|
padding-top: 40px;
|
|
position: relative;
|
|
transition: width .2s linear;
|
|
|
|
&-item {
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 16px;
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Semibold, PingFang SC, sans-serif;
|
|
font-weight: 600;
|
|
color: #1D2129;
|
|
cursor: pointer;
|
|
|
|
.iconfont {
|
|
color: @primary-color;
|
|
}
|
|
|
|
span {
|
|
margin-left: 8px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
&-item-selected {
|
|
background: rgba(0, 100, 250, 0.12);
|
|
}
|
|
}
|
|
|
|
.no-expand-clause-label {
|
|
width: 45px;
|
|
min-width: 45px;
|
|
}
|
|
|
|
.part-title {
|
|
height: 40px;
|
|
background: rgba(0, 100, 250, 0.12);
|
|
border-radius: 8px 8px 0 0;
|
|
line-height: 40px;
|
|
padding: 0 24px;
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Semibold, PingFang SC, sans-serif;
|
|
font-weight: 600;
|
|
color: #1D2129;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.has-title-part-content {
|
|
height: calc(100% - 40px);
|
|
overflow: auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.standard-name {
|
|
height: 40px;
|
|
background: #FFFFFF;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.standard-name > span {
|
|
font-size: 16px;
|
|
font-family: PingFang SC-Semibold, PingFang SC, sans-serif;
|
|
font-weight: 600;
|
|
color: #1D2129;
|
|
flex: 1;
|
|
width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.standard-content {
|
|
height: calc(100% - 45px);
|
|
background: #FFFFFF;
|
|
border-radius: 8px;
|
|
overflow: auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.clause-content-item {
|
|
margin-bottom: 20px;
|
|
|
|
&-title {
|
|
font-size: 18px;
|
|
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
|
|
font-weight: 600;
|
|
color: #1D2129;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
&-content {
|
|
font-size: 14px;
|
|
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
|
font-weight: 500;
|
|
color: #1D2129;
|
|
line-height: 24px;
|
|
|
|
/deep/ table {
|
|
width: 100%;
|
|
border: 1px solid;
|
|
|
|
td {
|
|
border: 1px solid;
|
|
}
|
|
}
|
|
|
|
/deep/ img.wordImg {
|
|
width: auto !important;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
&-content-hight {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
.control-clause-label-expand {
|
|
position: absolute;
|
|
width: 12px;
|
|
height: 24px;
|
|
background-color: @primary-color;
|
|
border-radius: 12px 0 0 12px;
|
|
left: -12px;
|
|
top: calc(50% - 52px);
|
|
color: white;
|
|
cursor: pointer;
|
|
|
|
.anticon {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
|
|
/deep/ .ant-tree li span.ant-tree-switcher {
|
|
float: right;
|
|
}
|
|
|
|
.ant-spin-nested-loading {
|
|
height: 100%;
|
|
}
|
|
|
|
/deep/ .ant-spin-container {
|
|
height: 100%;
|
|
}
|
|
|
|
// 拖拽相关样式
|
|
.draggable-border {
|
|
position: absolute;
|
|
top: 0;
|
|
left: -3px;
|
|
height: 100% !important;
|
|
cursor: col-resize;
|
|
}
|
|
// 拖拽的线
|
|
.draggable-border.dragging::after {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
z-index: 9;
|
|
left: 0;
|
|
top: 0;
|
|
width: 1px;
|
|
height: 100%;
|
|
background-color: @primary-color;
|
|
}
|
|
// 拖拽过程中禁止选中内容,防止拖拽过程中选中内容
|
|
.disabledSelect {
|
|
user-select: none;
|
|
}
|
|
</style>
|