瀏覽代碼

徐明浩
特种设备-所有导入按钮增加导入时Loading加载渲染

徐明浩 3 年之前
父節點
當前提交
f4cf2c4074
共有 2 個文件被更改,包括 5 次插入6 次删除
  1. 3 4
      ui/src/views/sems/reportYlgd/index.vue
  2. 2 2
      ui/src/views/sems/reportYlrq/index.vue

+ 3 - 4
ui/src/views/sems/reportYlgd/index.vue

@@ -643,9 +643,8 @@
         <!--        <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>-->
       </el-upload>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" v-loading.fullscreen.lock="fullscreenLoading"
-                   @click="thirdSubmitFileForm">确 定
-        </el-button>
+        <el-button type="primary" @click="thirdSubmitFileForm"
+                   v-loading.fullscreen.lock="fullscreenLoading">确 定</el-button>
         <el-button @click="thirdUpload.open = false">取 消</el-button>
       </div>
     </el-dialog>
@@ -705,7 +704,6 @@ export default {
   components: {Treeselect, YearApprove},
   data() {
     return {
-      fullscreenLoading: false,
       submitData: {
         plantCode: null,
         year: null,
@@ -749,6 +747,7 @@ export default {
         // 上传的地址
         url: process.env.VUE_APP_BASE_API + "/sems/reportYlgd/importForThird"
       },
+      fullscreenLoading: false,
       // 第三方数据列表
       thirdList: {
         // 是否显示弹出层

+ 2 - 2
ui/src/views/sems/reportYlrq/index.vue

@@ -886,7 +886,7 @@
           :show-overflow-tooltip="true"
           align="center">
           <template slot-scope="scope">
-            <a  class="link-type"  @click="handleDownload(scope.row)">
+            <a class="link-type" @click="handleDownload(scope.row)">
               <span>{{ scope.row.fileName }}</span>
             </a>
           </template>
@@ -921,7 +921,6 @@ export default {
   components: {Treeselect, YearApprove},
   data() {
     return {
-      fullscreenLoading: false,
       submitData: {
         plantCode: null,
         year: null,
@@ -1076,6 +1075,7 @@ export default {
         // 上传的地址
         url: process.env.VUE_APP_BASE_API + "/sems/reportYlrq/importForUpdate"
       },
+      fullscreenLoading: false,
       // 第三方导入参数
       thirdUpload: {
         // 是否显示弹出层(用户导入)