【update 高级检索】导出参数调整

This commit is contained in:
danshihao
2024-06-27 09:15:30 +08:00
parent 87c76abddc
commit ee43b9c278
+15 -11
View File
@@ -234,7 +234,7 @@ export default {
currStandardType: '1',
standardTypeOptions: [
// 全部
{ label: this.$t('dashboard.advancedSearch.all'), value: 'all' },
{ label: this.$t('dashboard.advancedSearch.all'), value: '5' },
// 外来标准法规
{ label: this.$t('dashboard.advancedSearch.foreignStandards'), value: StandardSource.FOREIGN.value },
// 企业标准
@@ -486,7 +486,7 @@ export default {
this.getDataListFunc = getEnterStandardList
this.getFormFunc = getEnterpriseStandardAddForm
this.getDocumentInfoFunc = getEnterpriseStandardInfoById
} else if (val === 'all') {
} else if (val === '5') {
this.getQueryConditionFunc = getDomesticStandardQuery
this.getDataListFunc = getAdvancedSearchAll
this.getFormFunc = getEnterpriseStandardAddForm
@@ -515,7 +515,7 @@ export default {
fileName = '导出文件'
}
const param = this.getQueryParams()
param.standardType = this.currStandardType
param.resourceType = this.currStandardType
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
param.selections = this.selectedRowKeys.join(',')
}
@@ -720,10 +720,12 @@ export default {
showSizeChanger: true,
total: 0
}
if (value === StandardSource.ENTERPRISE.value) {
this.queryParam.standard_state = this.defaultEnStandardStatus
} else {
this.queryParam.standard_state = this.defaultStandardStatus
if (this.currStandardType !== '4') {
if (value === StandardSource.ENTERPRISE.value) {
this.queryParam.standard_state = this.defaultEnStandardStatus
} else {
this.queryParam.standard_state = this.defaultStandardStatus
}
}
},
onChange (item) {
@@ -865,10 +867,12 @@ export default {
// 重置
searchReset () {
this.queryParam = {}
if (this.currStandardType === StandardSource.ENTERPRISE.value) {
this.queryParam.standard_state = this.defaultEnStandardStatus
} else {
this.queryParam.standard_state = this.defaultStandardStatus
if (this.currStandardType !== '4') {
if (this.currStandardType === StandardSource.ENTERPRISE.value) {
this.queryParam.standard_state = this.defaultEnStandardStatus
} else {
this.queryParam.standard_state = this.defaultStandardStatus
}
}
this.dataSource = []
this.clauseDataSource = []