...
|
...
|
@@ -3,7 +3,7 @@ |
|
|
<layout-filter>
|
|
|
<filter-item :label="filters.orderNo.label">
|
|
|
<Input v-model.trim="filters.orderNo.model"
|
|
|
:placeholder="filters.orderNo.holder"></Input>
|
|
|
:placeholder="filters.orderNo.holder" :maxlength="9"></Input>
|
|
|
</filter-item>
|
|
|
<filter-item :label="filters.orderTime.label">
|
|
|
<Date-picker type="daterange"
|
...
|
...
|
@@ -18,7 +18,7 @@ |
|
|
</filter-item>
|
|
|
</layout-filter>
|
|
|
<layout-list>
|
|
|
<Table border :context="self" :columns="tableCols" :data="tableData"></Table>
|
|
|
<Table border :columns="columns" :data="dataList"></Table>
|
|
|
<Page :total="page.total" :current="page.current"
|
|
|
@on-change="pageChange" :page-size="20" show-total></Page>
|
|
|
</layout-list>
|
...
|
...
|
@@ -27,28 +27,15 @@ |
|
|
<script>
|
|
|
import _ from 'lodash';
|
|
|
import moment from 'moment';
|
|
|
import {TradeService} from 'services/trade';
|
|
|
import allotStore from './store';
|
|
|
import {TradeService} from 'services/trade';
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
self: this,
|
|
|
tableCols: [],
|
|
|
tableData: {},
|
|
|
page: {},
|
|
|
filters: {},
|
|
|
enableFilter: false
|
|
|
};
|
|
|
return allotStore.apply(this);
|
|
|
},
|
|
|
created() {
|
|
|
this.tradeService = new TradeService();
|
|
|
const allot = allotStore.apply(this);
|
|
|
|
|
|
this.page = allot.page;
|
|
|
this.tableData = allot.list;
|
|
|
this.filters = allot.fields;
|
|
|
this.tableCols = allot.columns;
|
|
|
this.allotList(this.filterValues());
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -94,11 +81,12 @@ |
|
|
this.allotList(this.filterValues());
|
|
|
},
|
|
|
clearFilter() {
|
|
|
const allot = allotStore.apply(this);
|
|
|
|
|
|
this.page.current = 1;
|
|
|
this.enableFilter = false;
|
|
|
this.filters = allot.fields;
|
|
|
this.filters.orderNo.model = '';
|
|
|
this.filters.orderTime.model = '';
|
|
|
this.filters.startTime.model = '';
|
|
|
this.filters.endTime.model = '';
|
|
|
this.allotList(this.filterValues());
|
|
|
},
|
|
|
allotList(params) {
|
...
|
...
|
@@ -125,7 +113,7 @@ |
|
|
this.page.current = 1;
|
|
|
},
|
|
|
resolveData(data) {
|
|
|
this.tableData = data.records;
|
|
|
this.dataList = data.records;
|
|
|
this.page.total = data.totalCount;
|
|
|
},
|
|
|
pageChange(page) {
|
...
|
...
|
|