Browse Source

页面样式调整。

zhengqiang 4 years ago
parent
commit
943126ea37
2 changed files with 11 additions and 8 deletions
  1. 2 2
      .env.development
  2. 9 6
      src/views/bus/vehicleInfo-list.vue

+ 2 - 2
.env.development

@@ -1,8 +1,8 @@
 OUT_PUT_DIR=dist/smart-bus-portal
 
-VUE_APP_BACKEND_URL=http://127.0.0.1:8086/smart-bus-server
+#VUE_APP_BACKEND_URL=http://127.0.0.1:8086/smart-bus-server
 #VUE_APP_BACKEND_URL=https://ykt-test.xiaoxinda.com/smart-bus-server
-#VUE_APP_BACKEND_URL=http://121.37.187.149/smart-bus-server
+VUE_APP_BACKEND_URL=http://121.37.187.149/smart-bus-server
 
 #手机企业版
 VUE_APP_COMPANY_HEALTH_WECHAT_QY_URL=http://wisdomhousewechat.sudaonline.net/prevention/motemwall.html 

+ 9 - 6
src/views/bus/vehicleInfo-list.vue

@@ -184,7 +184,7 @@
       <el-table-column
         prop="rawData"
         label="上传定位数据"
-        width="150"
+        width="200"
       ></el-table-column>
       <el-table-column
         prop="gpsUploadTime"
@@ -436,10 +436,6 @@ export default {
           self.tableData = jsonData.data;
           self.totalPages = jsonData.totalPages;
           self.totalElements = jsonData.recordsTotal;
-          //45为分页栏的高度
-          //页面高度-列表上面的高度-分页栏高度
-          self.tableHeight =
-            window.innerHeight - self.$refs.formTable.$el.offsetTop - 110;
         })
         .catch((error) => {
           self.loading = false;
@@ -621,7 +617,14 @@ export default {
     },
 
   },
-  mounted: function () {},
+  mounted: function () {
+    //页面高度-列表上面的高度-分页栏高度
+    setTimeout(()=>{
+      this.tableHeight = window.innerHeight - this.$refs.formTable.$el.offsetTop - 110;
+    },1000);
+    
+    console.log(`tableHeight=${this.tableHeight}`);
+  },
   components: {
     "vehicleInfo-detail": vehicleInfoDetail,
     "el-select-tree": SelectTree,