Forráskód Böngészése

fix: 修改导入弹窗中下载模版的位置

mnisting 5 hónapja
szülő
commit
79e01e6a7e
2 módosított fájl, 35 hozzáadás és 35 törlés
  1. 5 6
      src/views/classification/index.vue
  2. 30 29
      src/views/toolsMaterial/index.vue

+ 5 - 6
src/views/classification/index.vue

@@ -26,10 +26,7 @@
           >删除</el-button
         >
       </el-col>
-      <right-toolbar
-        :search="false"
-        @queryTable="getList"
-      ></right-toolbar>
+      <right-toolbar :search="false" @queryTable="getList"></right-toolbar>
     </el-row>
     <el-table
       v-loading="loading"
@@ -53,7 +50,7 @@
             link
             type="primary"
             icon="Plus"
-            @click="handleAdd(scope.row,scope)"
+            @click="handleAdd(scope.row, scope)"
             >新增</el-button
           >
           <el-button
@@ -139,7 +136,9 @@
       </el-form>
       <template #footer>
         <div style="text-align: center">
-          <el-button type="primary" :loading="submitLoading" @click="submitForm">确 定</el-button>
+          <el-button type="primary" :loading="submitLoading" @click="submitForm"
+            >确 定</el-button
+          >
           <el-button @click="cancel">取 消</el-button>
         </div>
       </template>

+ 30 - 29
src/views/toolsMaterial/index.vue

@@ -221,35 +221,36 @@
       append-to-body
       :close-on-click-modal="false"
     >
-      <el-upload
-        ref="uploadRef"
-        :limit="1"
-        accept=".xlsx, .xls"
-        :headers="upload.headers"
-        :action="upload.url"
-        :disabled="upload.isUploading"
-        :on-progress="handleFileUploadProgress"
-        :on-success="handleFileSuccess"
-        :auto-upload="false"
-        drag
-      >
-        <el-icon class="el-icon--upload"><upload-filled /></el-icon>
-        <div class="el-upload__text">
-          将文件拖到此处,或
-          <em>点击上传</em>
-        </div>
-        <div class="el-upload__tip" slot="tip">
-          <el-link
-            type="warning"
-            style="font-size: 13px; margin: 10px"
-            @click="importTemplate"
-            >下载模板</el-link
-          >
-        </div>
-        <div class="el-upload__tip" style="color: red" slot="tip">
-          提示:仅允许导入“xls”或“xlsx”格式文件!
-        </div>
-      </el-upload>
+      <div class="el-upload__tip" slot="tip">
+        <el-link
+          type="warning"
+          style="font-size: 13px; margin: 10px"
+          @click="importTemplate"
+          >下载模板</el-link
+        >
+        <el-upload
+          ref="uploadRef"
+          :limit="1"
+          accept=".xlsx, .xls"
+          :headers="upload.headers"
+          :action="upload.url"
+          :disabled="upload.isUploading"
+          :on-progress="handleFileUploadProgress"
+          :on-success="handleFileSuccess"
+          :auto-upload="false"
+          drag
+        >
+          <el-icon class="el-icon--upload"><upload-filled /></el-icon>
+          <div class="el-upload__text">
+            将文件拖到此处,或
+            <em>点击上传</em>
+          </div>
+
+          <div class="el-upload__tip" style="color: red" slot="tip">
+            提示:仅允许导入“xls”或“xlsx”格式文件!
+          </div>
+        </el-upload>
+      </div>
       <template #footer>
         <div class="dialog-footer">
           <el-button type="primary" @click="submitFileForm">确 定</el-button>