[update 88199] 标准解读搜索

This commit is contained in:
danshihao
2024-08-07 19:18:05 +08:00
parent fe895182de
commit e123769247
2 changed files with 48 additions and 9 deletions
+6 -1
View File
@@ -103,6 +103,9 @@ const editMaintainList = (params) => postAction('/customCompare/lawsCustomCompar
// 自定义比对-对比分析结果保存
const editComparsionResult = (params) => postAction('/customCompare/lawsCustomCompareInfo/saveCellCompareResult', params)
// 涉及系统部件下拉
const getInvolvedSystem = (params) => getAction('/laws/standard/partName/', params)
export {
// 文档拆分
releaseSplitStandard,
@@ -159,5 +162,7 @@ export {
getTableData,
getMaintainList,
editMaintainList,
editComparsionResult
editComparsionResult,
getInvolvedSystem
}
+42 -8
View File
@@ -4,18 +4,30 @@
<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 :label="$t('docTool.split.textSearch')">
<a-input :placeholder="$t('pleaseEnter') + $t('docTool.split.textSearch')"
v-model="queryParam.item_content"></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-input :placeholder="$t('pleaseEnter') + $t('standardRegulationLibrary.involvingSystemsComponents')"-->
<!-- 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-col>
<!--适用车型-->
@@ -111,7 +123,7 @@
</a-button>
</div>
<!--条文内容-->
<div class="standard-content">
<div class="standard-content" ref="standardContent">
<div class="clause-content-item"
v-for="clause in clauseContentList"
:key="clause.id"
@@ -199,7 +211,12 @@
</template>
<script>
import { getDocSplitEditForm, getStandardInterpretation, previewDocSplit } from '@api/documentToolApi'
import {
getDocSplitEditForm,
getInvolvedSystem,
getStandardInterpretation,
previewDocSplit
} from '@api/documentToolApi'
import { FieldType } from '@/enums/commonEnums'
import VueDraggableResizable from 'vue-draggable-resizable'
import { queryDepartTreeList } from '@api/api'
@@ -221,7 +238,16 @@ export default {
},
data () {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 6 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 }
},
queryParam: {},
systemPartList: [], // 涉及系统部件下拉
categoryTreeList: [], // 组织机构下拉框数据
showClauseLabel: true, // 是否展示条文标签
// 条文标签字段
@@ -250,6 +276,7 @@ export default {
},
mounted () {
this.getSysCategoryTree()
this.initInvolvedSystem()
// 容器实际剩余宽度 = 右侧内容宽度 - 内容中的间距
// const boxWidth = this.$refs.sheetBoxRef.getBoundingClientRect().width - this.$refs.clauseLabelChangeRef.getBoundingClientRect().width - (16 * 4)
// this.sheetContainerRefX = boxWidth - this.standardCatalogueRefX - this.clauseLabelRefX
@@ -275,6 +302,12 @@ export default {
handleViewFile (ids) {
this.$refs.uploadFile.open(ids)
},
// 获取涉及系统/部件
initInvolvedSystem () {
getInvolvedSystem().then(res => {
this.systemPartList = res.result.records || res.result || []
})
},
// 获取组织机构树
getSysCategoryTree () {
queryDepartTreeList().then((res) => {
@@ -361,6 +394,7 @@ export default {
this.treeData = data.sarFileSplitMenuEO || []
this.spiltInfo = data.documentSplitInfo || {}
this.clauseContentList = data.documentSplitDetail || []
this.$refs.standardContent.scrollTop = 0
} else {
this.$message.warn(res.message)
}