[update] 修改高级检索和三个标准的查询标准状态变多选,并且有默认值

This commit is contained in:
lideqin
2024-03-20 11:11:08 +08:00
parent 2060ab01b7
commit e5df53a6c6
6 changed files with 70 additions and 16 deletions
@@ -60,6 +60,7 @@
<search ref="searchRef"
:url="url"
:get-query-condition-func="getQueryConditionFunc"
:defaultSearchParams="defaultSearchParams"
search-has="domesticStandard:search"
@search="searchQuery"
@reset="searchReset" />
@@ -261,7 +262,13 @@ import {
collectionDomesticStandard,
cancelCollectionDomesticStandard
} from '../../../api/standardRegulationLibraryApi'
import { OperationType, StandardSource, StandardSystemTreeNodeType, YesOrNoEnum } from '../../../enums/commonEnums'
import {
OperationType,
StandardSource,
StandardStatus,
StandardSystemTreeNodeType,
YesOrNoEnum
} from '../../../enums/commonEnums'
import UserSelectModal from '../../../components/selection/UserSelectModal.vue'
import DomesticSystemTreeModal from './modules/DomesticSystemTreeModal.vue'
import SelectionDomesticStandardDrawer from './modules/SelectionDomesticStandardDrawer.vue'
@@ -342,7 +349,10 @@ export default {
treeLoading: false,
isCollection: false,
expandedKeys: [], // 展开的节点
needFilterTableBtn: true
needFilterTableBtn: true,
defaultSearchParams: {
standard_state: `${StandardStatus.CURRENTLY_EFFECTIVE.value},${StandardStatus.RELEASE.value}`
}
}
},
computed: {
@@ -713,8 +723,8 @@ export default {
/**
* 重置查询
*/
searchReset () {
this.searchParams = {}
searchReset (params) {
this.searchParams = Object.assign({}, params)
this.selectedRowKeys = []
this.selectedTreeKeys = []
delete this.filters.nodeCode
@@ -61,6 +61,7 @@
<search ref="searchRef"
:url="url"
:get-query-condition-func="getQueryConditionFunc"
:default-search-params="defaultSearchParams"
search-has="overseasStandard:search"
@search="searchQuery"
@reset="searchReset" />
@@ -260,7 +261,13 @@ import {
getOverseasStandardForm,
getOverseasStandardDocumentInfo
} from '../../../api/standardRegulationLibraryApi'
import { OperationType, StandardSource, StandardSystemTreeNodeType, YesOrNoEnum } from '../../../enums/commonEnums'
import {
OperationType,
StandardSource,
StandardStatus,
StandardSystemTreeNodeType,
YesOrNoEnum
} from '../../../enums/commonEnums'
import UserSelectModal from '../../../components/selection/UserSelectModal.vue'
import OverseasStandardModal from './modules/OverseasStandardModal.vue'
import OverseasSystemTreeModal from './modules/OverseasSystemTreeModal.vue'
@@ -342,7 +349,10 @@ export default {
tableSlotField: ['standard_name', 'standard_number'], // 表格中需要插槽的字段
treeLoading: false,
isCollection: false,
expandedKeys: []
expandedKeys: [],
defaultSearchParams: {
standard_state: `${StandardStatus.CURRENTLY_EFFECTIVE.value},${StandardStatus.RELEASE.value}`
}
}
},
computed: {
@@ -714,8 +724,8 @@ export default {
/**
* 重置查询
*/
searchReset () {
this.searchParams = {}
searchReset (params) {
this.searchParams = Object.assign({}, params)
this.selectedRowKeys = []
this.selectedTreeKeys = []
delete this.filters.nodeCode