[update 88199] 标准解读搜索
This commit is contained in:
@@ -103,6 +103,9 @@ const editMaintainList = (params) => postAction('/customCompare/lawsCustomCompar
|
|||||||
// 自定义比对-对比分析结果保存
|
// 自定义比对-对比分析结果保存
|
||||||
const editComparsionResult = (params) => postAction('/customCompare/lawsCustomCompareInfo/saveCellCompareResult', params)
|
const editComparsionResult = (params) => postAction('/customCompare/lawsCustomCompareInfo/saveCellCompareResult', params)
|
||||||
|
|
||||||
|
// 涉及系统部件下拉
|
||||||
|
const getInvolvedSystem = (params) => getAction('/laws/standard/partName/', params)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
// 文档拆分
|
// 文档拆分
|
||||||
releaseSplitStandard,
|
releaseSplitStandard,
|
||||||
@@ -159,5 +162,7 @@ export {
|
|||||||
getTableData,
|
getTableData,
|
||||||
getMaintainList,
|
getMaintainList,
|
||||||
editMaintainList,
|
editMaintainList,
|
||||||
editComparsionResult
|
editComparsionResult,
|
||||||
|
|
||||||
|
getInvolvedSystem
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,18 +4,30 @@
|
|||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24" style="margin: 0;">
|
<a-row :gutter="24" style="margin: 0;">
|
||||||
<!--适用零部件-->
|
<!--文本搜索-->
|
||||||
<a-col :md="4" :sm="12">
|
<a-col :md="4" :sm="12">
|
||||||
<a-form-item :label="$t('standardRegulationLibrary.applicableComponents')">
|
<a-form-item :label="$t('docTool.split.textSearch')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.applicableComponents')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('docTool.split.textSearch')"
|
||||||
v-model="queryParam.applicable_components"></a-input>
|
v-model="queryParam.item_content"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--涉及系统/部件-->
|
<!--涉及系统/部件-->
|
||||||
<a-col :md="4" :sm="12">
|
<a-col :md="4" :sm="12">
|
||||||
<a-form-item :label="$t('standardRegulationLibrary.involvingSystemsComponents')">
|
<a-form-item :label="$t('standardRegulationLibrary.involvingSystemsComponents')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.involvingSystemsComponents')"
|
<!--<a-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.involvingSystemsComponents')"-->
|
||||||
v-model="queryParam.keywords"></a-input>
|
<!-- v-model="queryParam.part_name"></a-input>-->
|
||||||
|
<a-tree-select
|
||||||
|
tree-node-filter-prop="title"
|
||||||
|
v-model="queryParam.part_name"
|
||||||
|
:maxTagCount="1"
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
:tree-data="systemPartList"
|
||||||
|
:replaceFields="{key: 'id', value: 'id', title: 'name', children: 'childPartNameList'}"
|
||||||
|
show-search
|
||||||
|
allowClear
|
||||||
|
:filterTreeNode="filterTreeOption"
|
||||||
|
:placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.involvingSystemsComponents')"
|
||||||
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--适用车型-->
|
<!--适用车型-->
|
||||||
@@ -111,7 +123,7 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
<!--条文内容-->
|
<!--条文内容-->
|
||||||
<div class="standard-content">
|
<div class="standard-content" ref="standardContent">
|
||||||
<div class="clause-content-item"
|
<div class="clause-content-item"
|
||||||
v-for="clause in clauseContentList"
|
v-for="clause in clauseContentList"
|
||||||
:key="clause.id"
|
:key="clause.id"
|
||||||
@@ -199,7 +211,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getDocSplitEditForm, getStandardInterpretation, previewDocSplit } from '@api/documentToolApi'
|
import {
|
||||||
|
getDocSplitEditForm,
|
||||||
|
getInvolvedSystem,
|
||||||
|
getStandardInterpretation,
|
||||||
|
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'
|
||||||
@@ -221,7 +238,16 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
labelCol: {
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 6 }
|
||||||
|
},
|
||||||
|
wrapperCol: {
|
||||||
|
xs: { span: 24 },
|
||||||
|
sm: { span: 16 }
|
||||||
|
},
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
|
systemPartList: [], // 涉及系统部件下拉
|
||||||
categoryTreeList: [], // 组织机构下拉框数据
|
categoryTreeList: [], // 组织机构下拉框数据
|
||||||
showClauseLabel: true, // 是否展示条文标签
|
showClauseLabel: true, // 是否展示条文标签
|
||||||
// 条文标签字段
|
// 条文标签字段
|
||||||
@@ -250,6 +276,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getSysCategoryTree()
|
this.getSysCategoryTree()
|
||||||
|
this.initInvolvedSystem()
|
||||||
// 容器实际剩余宽度 = 右侧内容宽度 - 内容中的间距
|
// 容器实际剩余宽度 = 右侧内容宽度 - 内容中的间距
|
||||||
// const boxWidth = this.$refs.sheetBoxRef.getBoundingClientRect().width - this.$refs.clauseLabelChangeRef.getBoundingClientRect().width - (16 * 4)
|
// const boxWidth = this.$refs.sheetBoxRef.getBoundingClientRect().width - this.$refs.clauseLabelChangeRef.getBoundingClientRect().width - (16 * 4)
|
||||||
// this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX
|
// this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX
|
||||||
@@ -275,6 +302,12 @@ export default {
|
|||||||
handleViewFile (ids) {
|
handleViewFile (ids) {
|
||||||
this.$refs.uploadFile.open(ids)
|
this.$refs.uploadFile.open(ids)
|
||||||
},
|
},
|
||||||
|
// 获取涉及系统/部件
|
||||||
|
initInvolvedSystem () {
|
||||||
|
getInvolvedSystem().then(res => {
|
||||||
|
this.systemPartList = res.result.records || res.result || []
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取组织机构树
|
// 获取组织机构树
|
||||||
getSysCategoryTree () {
|
getSysCategoryTree () {
|
||||||
queryDepartTreeList().then((res) => {
|
queryDepartTreeList().then((res) => {
|
||||||
@@ -361,6 +394,7 @@ export default {
|
|||||||
this.treeData = data.sarFileSplitMenuEO || []
|
this.treeData = data.sarFileSplitMenuEO || []
|
||||||
this.spiltInfo = data.documentSplitInfo || {}
|
this.spiltInfo = data.documentSplitInfo || {}
|
||||||
this.clauseContentList = data.documentSplitDetail || []
|
this.clauseContentList = data.documentSplitDetail || []
|
||||||
|
this.$refs.standardContent.scrollTop = 0
|
||||||
} else {
|
} else {
|
||||||
this.$message.warn(res.message)
|
this.$message.warn(res.message)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user