优化excel模板导出方法声明

dev
smallchill 6 years ago
parent e2e6503492
commit 4b98b90e70
  1. 2
      src/views/base/region.vue
  2. 3
      src/views/system/user.vue

@ -33,7 +33,7 @@
width="555px"> width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"> <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
<template slot="excelTemplate"> <template slot="excelTemplate">
<el-button type="primary" @click="handleTemplate()"> <el-button type="primary" @click="handleTemplate">
点击下载<i class="el-icon-download el-icon--right"></i> 点击下载<i class="el-icon-download el-icon--right"></i>
</el-button> </el-button>
</template> </template>

@ -85,6 +85,7 @@
<el-tree :data="roleGrantList" <el-tree :data="roleGrantList"
show-checkbox show-checkbox
check-strictly
default-expand-all default-expand-all
node-key="id" node-key="id"
ref="treeRole" ref="treeRole"
@ -104,7 +105,7 @@
width="555px"> width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"> <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
<template slot="excelTemplate"> <template slot="excelTemplate">
<el-button type="primary" @click="handleTemplate()"> <el-button type="primary" @click="handleTemplate">
点击下载<i class="el-icon-download el-icon--right"></i> 点击下载<i class="el-icon-download el-icon--right"></i>
</el-button> </el-button>
</template> </template>

Loading…
Cancel
Save