|
@@ -26,6 +26,7 @@ |
|
@@ -26,6 +26,7 @@ |
26
|
<filter-item>
|
26
|
<filter-item>
|
27
|
<Button type="primary" @click="search">筛选</Button>
|
27
|
<Button type="primary" @click="search">筛选</Button>
|
28
|
<Button @click="reset">全部</Button>
|
28
|
<Button @click="reset">全部</Button>
|
|
|
29
|
+ <Button type="success" @click="exportData">导出</Button>
|
29
|
</filter-item>
|
30
|
</filter-item>
|
30
|
</layout-filter>
|
31
|
</layout-filter>
|
31
|
<layout-list>
|
32
|
<layout-list>
|
|
@@ -40,9 +41,10 @@ |
|
@@ -40,9 +41,10 @@ |
40
|
|
41
|
|
41
|
<script>
|
42
|
<script>
|
42
|
import { ListTabs, DataTable } from './components';
|
43
|
import { ListTabs, DataTable } from './components';
|
43
|
-import OrderService from 'services/order/order-service';
|
44
|
+import { OrderService } from 'services/order';
|
44
|
import _ from 'lodash';
|
45
|
import _ from 'lodash';
|
45
|
import { OrderConfig } from '../configs';
|
46
|
import { OrderConfig } from '../configs';
|
|
|
47
|
+import qs from 'querystringify';
|
46
|
export default {
|
48
|
export default {
|
47
|
components: { ListTabs, DataTable },
|
49
|
components: { ListTabs, DataTable },
|
48
|
data() {
|
50
|
data() {
|
|
@@ -101,6 +103,11 @@ export default { |
|
@@ -101,6 +103,11 @@ export default { |
101
|
this.query.pageNo = 1;
|
103
|
this.query.pageNo = 1;
|
102
|
this.search();
|
104
|
this.search();
|
103
|
},
|
105
|
},
|
|
|
106
|
+ exportData() {
|
|
|
107
|
+ const querystring = qs.stringify(this.query, true);
|
|
|
108
|
+ const href = `${OrderService.exportOrdersByStatus}${querystring}`;
|
|
|
109
|
+ window.open(href, '_blank');
|
|
|
110
|
+ },
|
104
|
},
|
111
|
},
|
105
|
};
|
112
|
};
|
106
|
</script>
|
113
|
</script>
|