|
@@ -23,6 +23,7 @@
|
|
|
<PublicPageDialog dialog-title="高级查询" dialogSize="600px" :dialog-drawer="advancedDrawer" @handleClose="advancedClose" @handleSubmit="advancedTable('advancedDialogForm')">
|
|
|
<AdvancedQuery ref="advancedDialogForm" @getAdvancedQueryData="getAdvancedQueryData" />
|
|
|
<template slot="d_foot">
|
|
|
+ <el-button size="small" @click="restCollect('advancedDialogForm')" type="warning">重置</el-button>
|
|
|
<el-button size="small" @click="queryCollect('advancedDialogForm')" type="primary">收藏</el-button>
|
|
|
</template>
|
|
|
</PublicPageDialog>
|
|
@@ -478,8 +479,8 @@ export default {
|
|
|
//高级查询-取消
|
|
|
advancedClose () {
|
|
|
this.advancedDrawer = false
|
|
|
- this.defaultfilter = { 1: 1 }
|
|
|
- this.queryTableData(true)
|
|
|
+ // this.defaultfilter = { 1: 1 }
|
|
|
+ // this.queryTableData(true)
|
|
|
},
|
|
|
//高级查询-确定-数据
|
|
|
getAdvancedQueryData (dataRules) {
|
|
@@ -497,6 +498,12 @@ export default {
|
|
|
queryCollect (refName) {
|
|
|
this.$refs[refName].advancedQueryCollect()
|
|
|
},
|
|
|
+ //高级查询-重置
|
|
|
+ restCollect (refName) {
|
|
|
+ this.defaultfilter = { 1: 1 }
|
|
|
+ this.queryTableData(true)
|
|
|
+ this.$refs[refName].advancedRestCollect()
|
|
|
+ },
|
|
|
// 给表头单元格加上 ascending 或 descending 使用 element 自带的排序箭头变色
|
|
|
headerCellClass () {
|
|
|
return function ({ row, column, rowIndex, columnIndex }) {
|