feat: There is no way the, 56586 高级查询里边的以下查询条件,搜索之后点击清空,不能重置,必须刷新页面

This commit is contained in:
396572590@qq.com
2022-07-21 16:52:27 +08:00
parent d908398499
commit e20cf28d2d
@@ -1665,6 +1665,7 @@
<!-- 标准类别--> <!-- 标准类别-->
<el-form-item :label="$t('m.standardCategory')" class="add-form-item form-item-disabled"> <el-form-item :label="$t('m.standardCategory')" class="add-form-item form-item-disabled">
<search-select <search-select
:key="keyModel"
v-model="sarStandardsSearch.standSort" v-model="sarStandardsSearch.standSort"
:placeholder="$t('m.standardCategoryTips')" :placeholder="$t('m.standardCategoryTips')"
:options="standSortOptions" :options="standSortOptions"
@@ -1809,6 +1810,7 @@
<!-- 归口管理部门--> <!-- 归口管理部门-->
<el-form-item label="归口管理部门" class="add-form-item form-item-disabled"> <el-form-item label="归口管理部门" class="add-form-item form-item-disabled">
<search-select <search-select
:key="keyModel"
v-model="advanceSearchMapping.GKDW" v-model="advanceSearchMapping.GKDW"
:placeholder="'归口管理部门'" :placeholder="'归口管理部门'"
:options="gkglbmOptions" :options="gkglbmOptions"
@@ -1831,6 +1833,7 @@
<!-- 适用车型--> <!-- 适用车型-->
<template> <template>
<custom-select-array <custom-select-array
:key="keyModel"
style="margin-left: -14px" style="margin-left: -14px"
:config="applyArcticOptions" :config="applyArcticOptions"
v-model="sarStandardsSearch['CLLX']" v-model="sarStandardsSearch['CLLX']"
@@ -1848,6 +1851,7 @@
<!-- 适用认证--> <!-- 适用认证-->
<template> <template>
<custom-select-array <custom-select-array
:key="keyModel"
style="margin-left: -14px" style="margin-left: -14px"
:config="syrzOptions" :config="syrzOptions"
v-model="advanceSearchMapping['SYRZ']" v-model="advanceSearchMapping['SYRZ']"
@@ -1924,6 +1928,7 @@
<!-- 能源类型--> <!-- 能源类型-->
<template> <template>
<custom-select-array <custom-select-array
:key="keyModel"
:config="nylxOptions" :config="nylxOptions"
style="margin-left: -14px" style="margin-left: -14px"
v-model="advanceSearchMapping['NYLX']" v-model="advanceSearchMapping['NYLX']"
@@ -1941,6 +1946,7 @@
<!-- 适用产品线(新增字段)--> <!-- 适用产品线(新增字段)-->
<template> <template>
<custom-select-array <custom-select-array
:key="keyModel"
:config="sycpxOptions" :config="sycpxOptions"
style="margin-left: -14px" style="margin-left: -14px"
v-model="advanceSearchMapping['SYCPX']" v-model="advanceSearchMapping['SYCPX']"
@@ -2233,6 +2239,7 @@ export default {
}, },
data() { data() {
return { return {
keyModel: 1,
modalShowFlag6: false, modalShowFlag6: false,
QCDWValue: [], QCDWValue: [],
QCDWmodal: false, QCDWmodal: false,
@@ -3791,31 +3798,16 @@ export default {
// }, // },
// 清空搜索框 // 清空搜索框
clearAllSearch(flag) { clearAllSearch(flag) {
if (flag === 'sarStandardsSearch' || flag === 'standCommonlySearch') { debugger
if (flag === 'sarStandardsSearch' || flag === 'standCommonlySearch') {
// 标准搜索 // 标准搜索
this.sarStandardsSearch.country = ''
this.sarStandardsSearch.standSort = ''
this.sarStandardsSearch.standNumber = ''
this.sarStandardsSearch.standName = ''
this.sarStandardsSearch.standEnName = ''
this.sarStandardsSearch.standState = ''
this.sarStandardsSearch.standNature = ''
this.sarStandardsSearch.issueTime = ''
this.sarStandardsSearch.applyArctic = ''
this.sarStandardsSearch.replaceStandNum = ''
this.sarStandardsSearch.replacedStandNum = ''
this.sarStandardsSearch.replacePartStandNum = ''
this.sarStandardsSearch.replacedPartStandNum = ''
this.sarStandardsSearch.synopsis = ''
this.sarStandardsSearch.category = ''
this.sarStandardsSearch.standYear = ''
this.sarStandardsSearch.standEnName = ''
this.isAdvancedSearch = false this.isAdvancedSearch = false
// } else if (flag === 'standCommonlySearch') { // } else if (flag === 'standCommonlySearch') {
this.sarStandardsSearch.standName = '' this.sarStandardsSearch = {}
this.sarStandardsSearch.standNumber = ''
this.advanceSearchMapping = {} this.advanceSearchMapping = {}
this.standCommonlySearch = {} this.standCommonlySearch = {}
this.sarStandardsSearch['CLLX'] = []
this.keyModel++
this.sarStandardsSearch = { this.sarStandardsSearch = {
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
@@ -4619,7 +4611,7 @@ export default {
connect: "and", connect: "and",
field: key || '', field: key || '',
type: 'regexp', type: 'regexp',
value: list.join(',') value: value.join(',')
}); });
} else if (value !== null && value !== '' && (key === 'SSRQ' || key === 'XCXSSRQ' || key === 'ZCCSSRQ')) { } else if (value !== null && value !== '' && (key === 'SSRQ' || key === 'XCXSSRQ' || key === 'ZCCSSRQ')) {
advanceSearchVOList.push({ advanceSearchVOList.push({