|
@@ -3,6 +3,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<p>homeIndex</p>
|
|
|
+ <el-button type="primary" size="small" @click="toExport()">导出</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -10,6 +11,8 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: investigation } = createNamespacedHelpers('investigation');
|
|
|
+
|
|
|
export default {
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
@@ -21,7 +24,15 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
created() {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ ...investigation(['export']),
|
|
|
+ async toExport() {
|
|
|
+ let res = await this.export();
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
},
|