sunyadv 5 years ago
parent
commit
e8659b7bd5
2 changed files with 12 additions and 3 deletions
  1. 2 2
      ys_vue/src/views/base/allocation.vue
  2. 10 1
      ys_vue/src/views/mold/moldDetail.vue

+ 2 - 2
ys_vue/src/views/base/allocation.vue

@@ -17,13 +17,13 @@
                 <el-form-item>
                     <el-button type="primary" @click="getMoulds">查询</el-button>
                 </el-form-item>
-                <el-form-item style="float: right;">
+                <!-- <el-form-item style="float: right;">
                     <a class="download" href="/upload/零件信息导入模板示例.xlsx" download="零件信息导入模板示例.xlsx">
                         <el-button type="primary">
                             下载模板
                         </el-button>
                     </a>
-                </el-form-item>
+                </el-form-item> -->
                 <el-form-item style="float: right;">
                     <el-upload ref="upload" action="customize" :show-file-list="false" :http-request="uploadFile" :limit="1">
                         <el-button type="primary" :loading="uploading">批量导入</el-button>

+ 10 - 1
ys_vue/src/views/mold/moldDetail.vue

@@ -112,7 +112,12 @@
                 <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item @click.native="centerDialog3Visible = true">单个新建</el-dropdown-item>
                     <el-dropdown-item>
-                         <el-upload ref="upload" action="customize" :http-request="uploadPart" :show-file-list="false" :limit="1">
+                        <a class="download" href="/upload/零件信息导入模板示例.xlsx" download="零件信息导入模板示例.xlsx">
+                            下载模板
+                        </a>
+                    </el-dropdown-item>
+                    <el-dropdown-item>
+                        <el-upload ref="upload" action="customize" :http-request="uploadPart" :show-file-list="false" :limit="1">
                             批量导入
                         </el-upload>
                     </el-dropdown-item>
@@ -1612,6 +1617,10 @@
         text-decoration: none;
     }
 
+    a.download {
+        color:#20a0ff;
+    }
+
     .toolbar .el-form-item {
         font-size: 14px;
         vertical-align: middle;