Przeglądaj źródła

:zap: 优化excel模板导出方法声明

smallchill 6 lat temu
rodzic
commit
4b98b90e70
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 1
      src/views/base/region.vue
  2. 2 1
      src/views/system/user.vue

+ 1 - 1
src/views/base/region.vue

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

+ 2 - 1
src/views/system/user.vue

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