Browse Source

商铺和商户管理:修改下载模板文件名

skym1024 1 year ago
parent
commit
bc9c2effa9
2 changed files with 7 additions and 7 deletions
  1. 6 6
      src/views/community/merchant/index.vue
  2. 1 1
      src/views/community/shop/index.vue

+ 6 - 6
src/views/community/merchant/index.vue

@@ -31,7 +31,7 @@
     placeholder="请选择所属社区">
   </el-cascader>
 </el-form-item>
- 
+
 
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
@@ -84,7 +84,7 @@
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
- 
+
 
     <el-table v-loading="loading" :data="merchantList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
@@ -122,7 +122,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"
@@ -140,7 +140,7 @@
         <el-form-item label="类型">
           <el-radio-group v-model="form.type" >
             <el-radio
-              v-for="dict in dict.type.community_merchant_type" 
+              v-for="dict in dict.type.community_merchant_type"
               :key="dict.value"
 :label="dict.value"
 v-show="dict.value!='全部'"
@@ -176,7 +176,7 @@ v-show="dict.value!='全部'"
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
-    
+
     <!-- 用户导入对话框 -->
     <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
       <el-upload
@@ -394,7 +394,7 @@ export default {
     /** 下载模板操作 */
     importTemplate() {
       this.download('community/merchant/importTemplate', {
-      }, `CommunityMerchant_template_${new Date().getTime()}.xlsx`)
+      }, `商户信息模板_${new Date().getTime()}.xlsx`)
     },
     // 文件上传中处理
     handleFileUploadProgress(event, file, fileList) {

+ 1 - 1
src/views/community/shop/index.vue

@@ -455,7 +455,7 @@ export default {
     /** 下载模板操作 */
     importTemplate() {
       this.download('community/shop/importTemplate', {
-      }, `user_template_${new Date().getTime()}.xlsx`)
+      }, `商铺信息模板_${new Date().getTime()}.xlsx`)
     },
     // 文件上传中处理
     handleFileUploadProgress(event, file, fileList) {