[fix 86567] 搜索条件来源改成标准结构树

This commit is contained in:
danshihao
2024-07-02 10:06:28 +08:00
parent 55a5fc6fbe
commit 0bf0698528
3 changed files with 50 additions and 9 deletions
+1
View File
@@ -496,6 +496,7 @@ module.exports = {
numberColumns: 'Number of columns'
},
comparison: {
standardStructureTree: 'Standard Structure Tree',
oldDocumentTextNumber: 'Old document text number',
oldDocumentTextName: 'Old document text name',
oldTextState: 'Old text state',
+1
View File
@@ -526,6 +526,7 @@ module.exports = {
},
// 文档比对
comparison: {
standardStructureTree: '标准结构树',
textNumber: '文本号',
textName: '文本名称',
oldDocumentTextNumber: '旧文档文本号',
@@ -12,14 +12,20 @@
<a-row :gutter="24">
<!--来源-->
<a-col :md="8" :sm="12">
<a-form-item :label="$t('standardSelect.source')">
<j-dict-select-tag
class="box-input"
v-model="queryParam.origin"
:placeholder="$t('pleaseSelect') + $t('standardSelect.source')"
:type="'select'"
:triggerChange="false"
:dictCode="'split_standard_source'" />
<a-form-item :label="$t('docTool.comparison.standardStructureTree')">
<a-tree-select
tree-node-filter-prop="title"
v-model="queryParam.standardSystem"
:maxTagCount="1"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
:tree-data="standardStructureTree"
tree-checkable
show-search
allowClear
tree-check-strictly
:filterTreeNode="filterTreeOption"
:placeholder="$t('pleaseSelect') + $t('docTool.comparison.standardStructureTree')"
/>
</a-form-item>
</a-col>
<!--标准号-->
@@ -80,6 +86,8 @@
import JTable from '../../../../components/jero/JTable.vue'
import { JeroListMixin } from '../../../../mixins/JeroListMixin.js'
import { addDocSplit } from '../../../../api/documentToolApi.js'
import { getForeignStandardTree } from '@api/standardRegulationLibraryApi'
import { filterObj } from '@/utils/util'
export default {
name: 'SplitText',
@@ -134,10 +142,41 @@ export default {
operationList: [],
showAction: false,
flag: 'header',
disableMixinCreated: true
disableMixinCreated: true,
// 标准结构树
standardStructureTree: []
}
},
created () {
this.loadStandardStructureTree()
},
methods: {
getQueryParams () {
// 获取查询条件
const sqp = {}
if (this.superQueryParams) {
sqp.superQueryParams = encodeURI(this.superQueryParams)
sqp.superQueryMatchType = this.superQueryMatchType
}
const param = Object.assign(sqp, this.queryParam, this.isorter, this.filters)
param.field = this.getQueryField()
param.pageNo = this.ipagination.current
param.pageSize = this.ipagination.pageSize
if (Array.isArray(param.standardSystem)) {
param.standardSystem = param.standardSystem.map(item => item.value).join(',')
}
return filterObj(param)
},
// 加载标准结构树
loadStandardStructureTree () {
// option 不传显示我的收藏,1不显示我的收藏
getForeignStandardTree({ option: 1 }).then(res => {
if (res.success) {
console.log(res.result)
this.standardStructureTree = res.result || []
}
})
},
open () {
this.visible = true
this.queryParam = {}