diff --git a/src/api/dashboard.js b/src/api/dashboard.js index 8cafb796..475995b6 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -15,16 +15,16 @@ const getSearchParamNumFullText = (params) => getAction('/home/lawsHomeSearch/ge const generalSearchFullTextSearch = (params) => getAction('/home/lawsHomeSearch/getNormalSearchAllPage', params) // 国内标准的高级搜索,查询搜索条件 -const getDomesticStandardQuery = (params) => getAction('/laws/standard/domestic/getQueryCondition', params) +const getDomesticStandardQuery = (params) => getAction('/laws/standard/domestic/getAdvancedQueryCondition', params) // 国外标准的高级搜索,查询搜索条件 -const getOverseasStandardQuery = (params) => getAction('/laws/standard/overseas/getQueryCondition', params) +const getOverseasStandardQuery = (params) => getAction('/laws/standard/overseas/getAdvancedQueryCondition', params) // 企业标准的高级搜索,查询搜索条件 -const getEnterStandardQuery = (params) => getAction('/laws/standard/enterprise/getQueryCondition', params) +const getEnterStandardQuery = (params) => getAction('/laws/standard/enterprise/getAdvancedQueryCondition', params) // 国内标准的高级搜索,查询列表数据 -const getDomesticStandardList = (params) => postAction('/laws//standard/domestic/getCommonPage', params) +const getDomesticStandardList = (params) => postAction('/laws/standard/domestic/getCommonPage', params) // 国外标准的高级搜索,查询列表数据 -const getOverseasStandardList = (params) => postAction('/laws//standard/overseas/getCommonPage', params) +const getOverseasStandardList = (params) => postAction('/laws/standard/overseas/getCommonPage', params) // 企标的高级搜索,查询列表数据 const getEnterStandardList = (params) => postAction('/laws/standard/enterprise/getCommonPage', params) diff --git a/src/views/dashboard/search/AdvancedSearch.vue b/src/views/dashboard/search/AdvancedSearch.vue index 54fa6bfa..4a693fab 100644 --- a/src/views/dashboard/search/AdvancedSearch.vue +++ b/src/views/dashboard/search/AdvancedSearch.vue @@ -1,141 +1,142 @@ - - - 一般检索 - 高级检索 - {{ toggleSearchStatus ? '收起条件' : '展开条件' }} - - 检索类别 - - - 标准类型 - - - {{ item.label }} - - - - - - - - - - - - - - - - - - + + + 一般检索 + 高级检索 + {{ toggleSearchStatus ? '收起条件' : '展开条件' }} + + 检索类别 + + + 标准类型 + + + {{ item.label }} + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ $t('query') }} - {{ $t('reset') }} - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('query') }} + {{ $t('reset') }} + + + - - + + + @@ -297,11 +298,14 @@ export default { const params = { module: this.currStandardType } + this.loading = true this.getQueryConditionFunc(params).then((res) => { if (res.success) { this.searchList = res.result this.getOptionsData() // 获取下拉数据 } + }).finally(() => { + this.loading = false }) }, /** @@ -346,12 +350,6 @@ export default { return filterObj(param) }, loadData (arg) { - const flag = Object.values(this.queryParam).some(v => !!v || v === 0) - if (!flag) { - // 提示至少填写一项 - this.$message.warning(this.$t('pleaseFillInAtLeastOneItem')) - return - } if (arg === 1) { this.ipagination.current = 1 } @@ -387,12 +385,19 @@ export default { }, // 查询 searchQuery () { + const flag = Object.values(this.queryParam).some(v => !!v || v === 0) + if (!flag) { + // 提示至少填写一项 + this.$message.warning(this.$t('pleaseFillInAtLeastOneItem')) + return + } this.loadData(1) }, // 重置 searchReset () { this.queryParam = {} - this.loadData(1) + this.dataSource = [] + this.ipagination.total = 0 } } } diff --git a/src/views/system/tags/modules/StandardDrawer.vue b/src/views/system/tags/modules/StandardDrawer.vue index 1aa62e0c..1197318f 100644 --- a/src/views/system/tags/modules/StandardDrawer.vue +++ b/src/views/system/tags/modules/StandardDrawer.vue @@ -173,11 +173,11 @@ - + {{ $t('system.tag.displayOtherModules') }} - +
{{ $t('system.tag.displayOtherModules') }}