|
|
@@ -30,7 +30,7 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
- <el-dropdown split-button type="primary" size="mini" @click="handleSearch" @command="searchCommand">
|
|
|
+ <el-dropdown split-button type="primary" size="mini" @click="handleSearch($event)" @command="searchCommand">
|
|
|
查询
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item command="search">高级查询</el-dropdown-item>
|
|
|
@@ -296,7 +296,7 @@
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="handleSearch($event)">查 询</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
@@ -759,12 +759,29 @@ import certApi from '@/api/oilsupplier/suppliercert'
|
|
|
created () {
|
|
|
// 查询条件初始值备份
|
|
|
Object.assign(this.searchFormReset, this.searchForm)
|
|
|
+ if (process.client) {
|
|
|
+ let basisStoredSearchParams = window.localStorage.getItem('basisStoredSearchParams')
|
|
|
+ if (basisStoredSearchParams !== '' && basisStoredSearchParams !== null) {
|
|
|
+ let basisSearchForm = JSON.parse(basisStoredSearchParams)
|
|
|
+ this.InFlag = basisSearchForm.InFlag
|
|
|
+ this.searchForm = basisSearchForm
|
|
|
+ }
|
|
|
+ }
|
|
|
// 查询列表
|
|
|
this.initDatas()
|
|
|
this.getDictOptions()
|
|
|
},
|
|
|
methods: {
|
|
|
- initDatas () {
|
|
|
+ initDatas (event) {
|
|
|
+ if (event != null) {
|
|
|
+ this.currentPage = 1
|
|
|
+ if (process.client) {
|
|
|
+ let basisSearchForm = this.searchForm
|
|
|
+ basisSearchForm.InFlag = this.InFlag
|
|
|
+ window.localStorage.setItem('basisStoredSearchParams', JSON.stringify(basisSearchForm)) // 已入库查询参数
|
|
|
+ }
|
|
|
+ this.dialogVisible = false
|
|
|
+ }
|
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|
|
|
@@ -830,8 +847,13 @@ import certApi from '@/api/oilsupplier/suppliercert'
|
|
|
this.initDatas()
|
|
|
},
|
|
|
clearSearch () {
|
|
|
+ if (process.client) {
|
|
|
+ window.localStorage.setItem('basisStoredSearchParams', '')
|
|
|
+ }
|
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
|
// this.searchForm = this.searchFormReset;
|
|
|
+ this.searchForm.InFlag = ''
|
|
|
+ this.InFlag = ''
|
|
|
this.CityAry = []
|
|
|
this.LinkCityAry = []
|
|
|
this.CreateOn = ''
|
|
|
@@ -865,10 +887,10 @@ import certApi from '@/api/oilsupplier/suppliercert'
|
|
|
this.searchForm.City = value[1]
|
|
|
this.searchForm.Street = value[2]
|
|
|
},
|
|
|
- handleSearch () {
|
|
|
+ handleSearch ($event) {
|
|
|
this.currentPage = 1
|
|
|
this.dialogVisible = false
|
|
|
- this.initDatas()
|
|
|
+ this.initDatas($event)
|
|
|
},
|
|
|
handleCurrentChange (value) {
|
|
|
this.currentPage = value
|