1afb67d0 by yangwei

表格查询功能修改

1 parent 92a5ebf8
......@@ -12,14 +12,18 @@ export default {
...mapGetters(['dictData']),
},
mounted () {
// if (this.fetchData) {
// this.fetchData()
// }
if (this.queryClick) {
this.queryClick()
}
this.handleSearch()
},
methods: {
handleSearch(){
this.pageData.currentPage = 1
if (this.fetchData) {
this.fetchData()
}
if (this.queryClick) {
this.queryClick()
}
},
handleSizeChange (val) {
this.pageData.currentPage = 1
this.pageData.pageSize = val
......@@ -27,14 +31,9 @@ export default {
},
handleCurrentChange (val) {
this.pageData.currentPage = val
// if (this.fetchData) {
// this.fetchData()
// }
console.log('this.queryClick,', this.queryClick, 'this.fetchData', this.fetchData);
if (this.queryClick) {
this.queryClick()
}
console.log(val, this.pageData.currentPage, 'this.pageDatathis.pageData');
},
handleDel () {
let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize)
......
......@@ -6,19 +6,19 @@
<el-row>
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" @clear="queryClick" clearable class="width100">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" @clear="queryClick" clearable class="width100">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
......
......@@ -6,13 +6,13 @@
<el-row>
<el-col :span="5">
<el-form-item label="查询编号">
<el-input placeholder="请输入编号" v-model="queryForm.cxbh" class="width100" clearable @clear="queryClick">
<el-input placeholder="请输入编号" v-model="queryForm.cxbh" class="width100" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="申请人">
<el-input placeholder="请输入申请人" v-model="queryForm.sqr" class="width100" @clear="queryClick" clearable>
<el-input placeholder="请输入申请人" v-model="queryForm.sqr" class="width100" clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -28,7 +28,7 @@
</el-col>
<el-col :span="3" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="openAddDialog">新增</el-button>
</el-form-item>
</el-col>
......
......@@ -27,7 +27,7 @@
</el-form-item>
</el-col>
<el-col :span="3" class="btnColRight">
<el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="handleAdd">新增</el-button>
</el-col>
</el-row>
......
......@@ -22,13 +22,13 @@
</el-col>
<el-col :span="6">
<el-form-item label="查询编号">
<el-input placeholder="请输入编号" @clear="queryClick" v-model="queryForm.cxbh" class="width100" clearable>
<el-input placeholder="请输入编号" v-model="queryForm.cxbh" class="width100" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="申请人">
<el-input placeholder="请输入申请人" @clear="queryClick" v-model="queryForm.sqr" class="width100" clearable>
<el-input placeholder="请输入申请人" v-model="queryForm.sqr" class="width100" clearable>
</el-input>
</el-form-item>
</el-col>
......@@ -50,7 +50,7 @@
</el-col>
<el-col :span="12" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -6,17 +6,17 @@
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="字典类型编码">
<el-input v-model="ruleForm.dcode" @clear="queryClick" clearable placeholder="字典类型编码"></el-input>
<el-input v-model="ruleForm.dcode" clearable placeholder="字典类型编码"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="字典类型名称">
<el-input v-model="ruleForm.dname" @clear="queryClick" clearable placeholder="字典类型名称"></el-input>
<el-input v-model="ruleForm.dname" clearable placeholder="字典类型名称"></el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button icon="el-icon-refresh" @click="handleRefresh">刷新缓存</el-button>
</el-form-item>
</el-col>
......
......@@ -11,7 +11,7 @@
</el-col>
<el-col :span="19" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询1</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
......
......@@ -6,7 +6,7 @@
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="权利类型">
<el-select v-model="queryForm.qllx" @change="queryClick" class="width100" filterable clearable
<el-select v-model="queryForm.qllx" class="width100" filterable clearable
placeholder="请选择权利类型">
<el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
</el-option>
......@@ -15,7 +15,7 @@
</el-col>
<el-col :span="18" class="btnColRight">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="queryClick">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -6,7 +6,7 @@
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="权利类型">
<el-select v-model="queryForm.qllx" @change="queryClick" filterable class="width100" clearable
<el-select v-model="queryForm.qllx" filterable class="width100" clearable
placeholder="请选择权利类型">
<el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value">
</el-option>
......@@ -15,13 +15,13 @@
</el-col>
<el-col :span="6">
<el-form-item label="登记业务编码">
<el-input placeholder="请输入登记业务编码" @clear="queryClick" v-model="queryForm.djywbm" clearable>
<el-input placeholder="请输入登记业务编码" v-model="queryForm.djywbm" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -19,7 +19,7 @@
</el-col>
<el-col :span="14" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
......
......@@ -11,7 +11,7 @@
</el-col>
<el-col :span="19" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button type="primary" native-type="submit" @click="toReadAll()">一键已读</el-button>
</el-form-item>
</el-col>
......
......@@ -21,7 +21,7 @@
</el-col>
<el-col :span="6" class="btnColRight">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="queryClick">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="zslqClick()">证书领取</el-button>
</el-form-item>
</el-col>
......
......@@ -18,7 +18,7 @@
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -18,7 +18,7 @@
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -76,7 +76,6 @@
<el-input
placeholder="请输入业务号"
v-model="queryForm.ywh"
@clear="queryClick"
clearable
class="width100"
>
......@@ -86,7 +85,7 @@
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick"
<el-button type="primary" native-type="submit" @click="handleSearch"
>查询</el-button
>
<el-button @click="moreQueryClick">高级查询</el-button>
......
......@@ -77,7 +77,6 @@
<el-input
placeholder="请输入业务号"
v-model="queryForm.ywh"
@clear="queryClick"
clearable
class="width200px"
>
......@@ -87,7 +86,7 @@
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick"
<el-button type="primary" native-type="submit" @click="handleSearch"
>查询</el-button
>
<el-button @click="moreQueryClick">高级查询</el-button>
......
......@@ -24,7 +24,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -33,7 +33,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -49,7 +49,7 @@
<el-col :span="3" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -18,7 +18,7 @@
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -18,7 +18,7 @@
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -33,7 +33,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -25,7 +25,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -25,7 +25,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -52,7 +52,7 @@
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -18,7 +18,7 @@
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -25,7 +25,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -25,7 +25,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -25,7 +25,7 @@
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
</el-row>
......
......@@ -14,28 +14,28 @@
</el-col>
<el-col :span="5">
<el-form-item label="不动产单元号" label-width="105px">
<el-input placeholder="请输入不动产单元号" @clear="queryClick" v-model="queryForm.bdcdyh" clearable
<el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable
class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="不动产权证号" label-width="105px">
<el-input placeholder="请输入不动产权证号" @clear="queryClick" v-model="queryForm.bdcqzh" clearable
<el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable
class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" @clear="queryClick" v-model="queryForm.ywh" clearable class="width100">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -30,14 +30,14 @@
</el-col>
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" @clear="queryClick" clearable class="width200px">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px">
</el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -6,32 +6,32 @@
<el-row>
<el-col :span="5">
<el-form-item label="项目名称" label-width="70px">
<el-input placeholder="请输入项目名称" @clear="queryClick" v-model="queryForm.xmmc" clearable class="width100">
<el-input placeholder="请输入项目名称" v-model="queryForm.xmmc" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="项目编号">
<el-input placeholder="请输入项目编号" @clear="queryClick" v-model="queryForm.xmbh" clearable class="width100">
<el-input placeholder="请输入项目编号" v-model="queryForm.xmbh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="宗地代码">
<el-input placeholder="请输入宗地代码" @clear="queryClick" v-model="queryForm.zddm" clearable class="width100">
<el-input placeholder="请输入宗地代码" v-model="queryForm.zddm" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="自然幢号">
<el-input placeholder="请输入自然幢号" @clear="queryClick" v-model="queryForm.zrzh" clearable class="width100">
<el-input placeholder="请输入自然幢号" v-model="queryForm.zrzh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -6,32 +6,32 @@
<el-row>
<el-col :span="5">
<el-form-item label="不动产权证号" label-width="100px">
<el-input placeholder="请输入不动产权证号" class="width100" @clear="queryClick" v-model="queryForm.bdcqzh" clearable>
<el-input placeholder="请输入不动产权证号" class="width100" v-model="queryForm.bdcqzh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="印刷序列号" label-width="100px">
<el-input placeholder="请输入印刷序列号" class="width100" @clear="queryClick" v-model="queryForm.ysxlh" clearable>
<el-input placeholder="请输入印刷序列号" class="width100" v-model="queryForm.ysxlh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" class="width100" @clear="queryClick" v-model="queryForm.ywh" clearable>
<el-input placeholder="请输入业务号" class="width100" v-model="queryForm.ywh" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="领取人">
<el-input placeholder="请输入领取人" class="width100" @clear="queryClick" v-model="queryForm.lzrxm" clearable>
<el-input placeholder="请输入领取人" class="width100" v-model="queryForm.lzrxm" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="4" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -24,7 +24,7 @@
</el-col>
<el-col :span="9" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="queryClick">查询</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick">高级查询</el-button>
</el-form-item>
</el-col>
......
......@@ -27,7 +27,7 @@
<el-col :span="9" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
......
......@@ -25,7 +25,7 @@
</el-col>
<el-col :span="9" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
<el-button type="primary" @click="openDialog()">新增</el-button>
</el-form-item>
</el-col>
......
......@@ -30,7 +30,7 @@
<el-col :span="3" class="btnColRight">
<el-form-item>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="queryClick">查询</el-button>
<el-button type="primary" native-type="submit" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
</el-form-item>
</el-col>
......