|
@@ -9,6 +9,27 @@
|
|
|
@ok='handleOk'
|
|
|
>
|
|
|
<a-card :bordered="false" class="top" style="margin-bottom:1%;margin-top:1%">
|
|
|
+ <div class="table-page-search-wrapper">
|
|
|
+ <a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-item label="存货分类">
|
|
|
+ <a-input placeholder="请输入" v-model="queryParam.className" ></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
+ <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
|
+ <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
+ <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
|
|
|
+ {{ toggleSearchStatus ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
|
|
+ </a> -->
|
|
|
+ </span>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
<a-form-model ref="formRef">
|
|
|
<a-table
|
|
|
ref="table"
|
|
@@ -44,6 +65,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
visible:false,
|
|
|
+ queryParam:{},
|
|
|
selectedRowKeys:[],
|
|
|
selectedRows:[],
|
|
|
dataSource:[],
|
|
@@ -146,6 +168,13 @@
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
+ searchQuery(){
|
|
|
+ this.getData(this.queryParam.Org)
|
|
|
+ },
|
|
|
+ searchReset(){
|
|
|
+ this.queryParam.className = ''
|
|
|
+ this.getData(this.queryParam.Org)
|
|
|
+ },
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
this.queryParam.pageSize = pagination.pageSize
|