Karsa 1 rok temu
rodzic
commit
59f9992dc0

+ 4 - 3
src/views/dataEntry_manage/thirdBase/steelChemicalbase.vue

@@ -129,7 +129,7 @@
       v-loading="dataloading"
       v-loading="dataloading"
       element-loading-text="获取数据中..."
       element-loading-text="获取数据中..."
     >
     >
-      <template v-if="rightShow">
+      <div v-if="rightShow">
         <el-button
         <el-button
         v-permission="permissionBtn.dataSourcePermission.mysteelData_refresh"
         v-permission="permissionBtn.dataSourcePermission.mysteelData_refresh"
           type="primary"
           type="primary"
@@ -176,7 +176,7 @@
             >{{ item.key }}</el-button
             >{{ item.key }}</el-button
           >
           >
         </div>
         </div>
-      </template>
+      </div>
       <div v-else class="nodata-cont">
       <div v-else class="nodata-cont">
         <tableNoData text="暂无数据"/>
         <tableNoData text="暂无数据"/>
       </div>
       </div>
@@ -340,7 +340,6 @@ export default {
           CurrentIndex: this.page_no,
           CurrentIndex: this.page_no,
         })
         })
         .then((res) => {
         .then((res) => {
-          this.rightShow = true;
           if (res.Ret !== 200) return;
           if (res.Ret !== 200) return;
 
 
           // 找出最多的页码 判断是否还有数据
           // 找出最多的页码 判断是否还有数据
@@ -396,6 +395,8 @@ export default {
             }
             }
 
 
           this.dataloading = false;
           this.dataloading = false;
+          
+          this.rightShow = true;
           this.page_no === 1 &&
           this.page_no === 1 &&
             this.$nextTick(() => {
             this.$nextTick(() => {
               this.initWidth();
               this.initWidth();