diff --git a/src/views/jhzx/ydjhzxCX.vue b/src/views/jhzx/ydjhzxCX.vue index 0ececf0..8227e17 100644 --- a/src/views/jhzx/ydjhzxCX.vue +++ b/src/views/jhzx/ydjhzxCX.vue @@ -24,6 +24,7 @@ 查询 + 导出 @@ -92,6 +93,7 @@ import { mapGetters } from 'vuex' import XEUtils from 'xe-utils' import { getToken } from '@/utils/auth' import ScrollPane from "@/layout/components/TagsView/ScrollPane.vue"; +import {exportByExcel} from "@/utils/rpkj"; export default { name:'YdjhzxCX', components: {ScrollPane}, @@ -698,6 +700,12 @@ export default { this.initgxList() }, methods: { + + exportExcel(){ + exportByExcel(this.tableColumn,this.$refs.xGrid.getTableData().visibleData,1,'作业计划.xlsx') + }, + + initgxList(){ const dict=window.localStorage.getItem( 'SYZT'); const status =JSON.parse(dict)