...
|
...
|
@@ -26,6 +26,7 @@ |
|
|
<filter-item>
|
|
|
<Button type="primary" @click="search">筛选</Button>
|
|
|
<Button @click="reset">全部</Button>
|
|
|
<Button type="success" @click="exportData">导出</Button>
|
|
|
</filter-item>
|
|
|
</layout-filter>
|
|
|
<layout-list>
|
...
|
...
|
@@ -40,9 +41,10 @@ |
|
|
|
|
|
<script>
|
|
|
import { ListTabs, DataTable } from './components';
|
|
|
import OrderService from 'services/order/order-service';
|
|
|
import { OrderService } from 'services/order';
|
|
|
import _ from 'lodash';
|
|
|
import { OrderConfig } from '../configs';
|
|
|
import qs from 'querystringify';
|
|
|
export default {
|
|
|
components: { ListTabs, DataTable },
|
|
|
data() {
|
...
|
...
|
@@ -101,6 +103,11 @@ export default { |
|
|
this.query.pageNo = 1;
|
|
|
this.search();
|
|
|
},
|
|
|
exportData() {
|
|
|
const querystring = qs.stringify(this.query, true);
|
|
|
const href = `${OrderService.exportOrdersByStatus}${querystring}`;
|
|
|
window.open(href, '_blank');
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|