[update] 修改主分支高级检索
This commit is contained in:
@@ -15,11 +15,11 @@ const getSearchParamNumFullText = (params) => getAction('/home/lawsHomeSearch/ge
|
|||||||
const generalSearchFullTextSearch = (params) => getAction('/home/lawsHomeSearch/getNormalSearchAllPage', params)
|
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)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
|
<a-spin :spinning="loading">
|
||||||
<!-- 一般检索和高级检索的tab切换 -->
|
<!-- 一般检索和高级检索的tab切换 -->
|
||||||
<div class="tab-wrapper">
|
<div class="tab-wrapper">
|
||||||
<span class="tab-title" @click="clickGeneralSearch">一般检索</span>
|
<span class="tab-title" @click="clickGeneralSearch">一般检索</span>
|
||||||
@@ -131,11 +132,11 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
|
</a-spin>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -297,11 +298,14 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
module: this.currStandardType
|
module: this.currStandardType
|
||||||
}
|
}
|
||||||
|
this.loading = true
|
||||||
this.getQueryConditionFunc(params).then((res) => {
|
this.getQueryConditionFunc(params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.searchList = res.result
|
this.searchList = res.result
|
||||||
this.getOptionsData() // 获取下拉数据
|
this.getOptionsData() // 获取下拉数据
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@@ -346,12 +350,6 @@ export default {
|
|||||||
return filterObj(param)
|
return filterObj(param)
|
||||||
},
|
},
|
||||||
loadData (arg) {
|
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) {
|
if (arg === 1) {
|
||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
@@ -387,12 +385,19 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
searchQuery () {
|
searchQuery () {
|
||||||
|
const flag = Object.values(this.queryParam).some(v => !!v || v === 0)
|
||||||
|
if (!flag) {
|
||||||
|
// 提示至少填写一项
|
||||||
|
this.$message.warning(this.$t('pleaseFillInAtLeastOneItem'))
|
||||||
|
return
|
||||||
|
}
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
searchReset () {
|
searchReset () {
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.loadData(1)
|
this.dataSource = []
|
||||||
|
this.ipagination.total = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,11 +173,11 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</template>
|
</template>
|
||||||
<!--其它模块展示-->
|
<!--其它模块展示-->
|
||||||
<template>
|
<template v-if="isSearch">
|
||||||
<p class="tag-info">{{ $t('system.tag.displayOtherModules') }}</p>
|
<p class="tag-info">{{ $t('system.tag.displayOtherModules') }}</p>
|
||||||
<a-divider dashed />
|
<a-divider dashed />
|
||||||
<!--搜索中心展示-->
|
<!--搜索中心展示-->
|
||||||
<a-col :span="24">
|
<a-col :span="24" v-if="isSearch">
|
||||||
<a-form-model-item :label="$t('system.tag.searchCenterDisplay')" prop="isShowSearch">
|
<a-form-model-item :label="$t('system.tag.searchCenterDisplay')" prop="isShowSearch">
|
||||||
<j-dict-select-tag type="list" v-model="form.isShowSearch" dictCode="yn"
|
<j-dict-select-tag type="list" v-model="form.isShowSearch" dictCode="yn"
|
||||||
:placeholder="$t('system.tag.selectSearchCenterDisplayed')" />
|
:placeholder="$t('system.tag.selectSearchCenterDisplayed')" />
|
||||||
|
|||||||
Reference in New Issue
Block a user