no message
Former-commit-id: fb3f946a68fe7df7b84f74aaecdf4fef48201d1b Former-commit-id: 415c4fb1778e0bcf38b422f26cd9b5f56a446fb6 Former-commit-id: 3fe7f26d64a6c630ebe234b15acfd7acb57a3375
This commit is contained in:
@@ -29,12 +29,15 @@ import '@/mock/index.js'
|
|||||||
// vuex
|
// vuex
|
||||||
import store from '@/store/index.js'
|
import store from '@/store/index.js'
|
||||||
|
|
||||||
// log简化
|
// 插件 log简化
|
||||||
import pluginLog from '@/plugin/log'
|
import pluginLog from '@/plugin/log'
|
||||||
|
// 插件 导出文件
|
||||||
|
import pluginExport from '@/plugin/export'
|
||||||
|
|
||||||
Vue.use(ElementUI)
|
Vue.use(ElementUI)
|
||||||
|
|
||||||
Vue.use(pluginLog)
|
Vue.use(pluginLog)
|
||||||
|
Vue.use(pluginExport)
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
exportCsv (params = {}) {
|
exportCsv (params = {}) {
|
||||||
|
this.$export.csv()
|
||||||
// 默认值
|
// 默认值
|
||||||
const paramsDefault = {
|
const paramsDefault = {
|
||||||
noHeader: false
|
noHeader: false
|
||||||
|
|||||||
10
src/plugin/export/index.js
Normal file
10
src/plugin/export/index.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
export default {
|
||||||
|
install (Vue, options) {
|
||||||
|
// 导出
|
||||||
|
Vue.prototype.$export = {
|
||||||
|
csv () {
|
||||||
|
console.log('export csv')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user