Browse Source

修改分页

chuwu 5 years ago
parent
commit
cfdd7f0b4c

+ 1 - 1
src/components/business_space/business/handsontable.vue

@@ -11,7 +11,7 @@
             暂无数据
         </div>
         <!-- <add-business :buildMess="buildMess" :dialog="dialog"></add-business> -->
-        <div class="right-nobg" v-show="main && main.length">
+        <div class="right" v-show="main && main.length">
             <my-pagination :page="page" @change="pageChange"></my-pagination>    
         </div>
     </div>

+ 1 - 1
src/components/business_space/table/addEquip.vue

@@ -82,7 +82,7 @@
     <el-dialog width="40%" title="设备详情" :visible.sync="innerVisible" append-to-body>
       <iframe height="400px" width="100%" :src="iframeSrc"></iframe>
     </el-dialog>
-    <div class="right-nobg">
+    <div class="right" v-if="tableData.length">
         <my-pagination :page="page" @change="pageChange"></my-pagination>
     </div>
     <div class="el-dialog__footer">

+ 1 - 1
src/components/business_space/table/businessTable.vue

@@ -40,7 +40,7 @@
             </el-table-column>
         </el-table>
     </div>
-    <div class="right">
+    <div class="right" v-if="tableData.length">
         <my-pagination :page="page" @change="pageChange"></my-pagination>
     </div>
   </div>

+ 9 - 9
src/components/business_space/table/equipTable.vue

@@ -26,15 +26,15 @@
                         </template>
                     </el-table-column>
                 </el-table>
-        <div class="right-nobg">
-            <my-pagination :page="page" @change="pageChange"></my-pagination>
-        </div>
-        </el-tab-pane>
-    </el-tabs>
-    <el-dialog width="40%" title="设备详情" :visible.sync="innerVisible" append-to-body>
-      <iframe height="400px" width="100%" :src="iframeSrc"></iframe>
-    </el-dialog>
-  </div>
+                <div class="right" v-show="tableData.length">
+                    <my-pagination :page="page" @change="pageChange"></my-pagination>
+                </div>
+            </el-tab-pane>
+        </el-tabs>
+        <el-dialog width="40%" title="设备详情" :visible.sync="innerVisible" append-to-body>
+        <iframe height="400px" width="100%" :src="iframeSrc"></iframe>
+        </el-dialog>
+    </div>
 </template>
 
 <script>

+ 1 - 1
src/views/point/config_point/steps/index.vue

@@ -78,7 +78,7 @@
                 console.log("test")
             },
             changeStep(index) {
-                console.log()
+                // console.log()
                 let step = this.$refs.step
                 let flag = step.hasOwnProperty('noSaveData') ? step.noSaveData() : false
                 if (flag || this.activeStep == 4 || this.activeStep == 3) {