Browse Source

修改资产样式

zhangyu 5 years ago
parent
commit
0047a77643

+ 3 - 3
src/components/ledger/handsontables/assets.vue

@@ -1,5 +1,5 @@
 <template>
-  <div style="height: 94%;">
+  <div style="height: calc(100% - 44.5px);padding: 0px 10px 10px;box-sizing: border-box;">
     <!-- <div class="hanson-bar">
       <span>当前筛选条件下共{{page.total || '--'}}资产</span>
       <div style="width:300px;float:right;overflow:hidden;">
@@ -100,7 +100,7 @@
                 暂无数据
                 </p>
             </div>
-    <div v-show="mess.deviceId && main && main.length" v-loading="loading" id="handsontable" ref="handsontable" style="margin-left:10px"></div>
+    <div v-show="mess.deviceId && main && main.length" v-loading="loading" id="handsontable" ref="handsontable"></div>
     <div v-show="main && main.length" class='right'>
         <my-pagination @change="getMain" :page="page"></my-pagination>
     </div>
@@ -728,7 +728,7 @@ export default {
         columns: this.getType(this.headers), //数据显示格式
         filters: true,
         maxRows: this.main.length,
-        height: winHeight - 100 - 50 - 200,
+        height: winHeight - 335,
         columnSorting: true, //添加排序
         sortIndicator: true, //添加排序
         renderAllRows: true,

+ 3 - 3
src/views/ledger/property/index.vue

@@ -168,17 +168,17 @@ export default {
 #deviceList {
   overflow: hidden;
   height: 100%;
-  background-color: #f6f6f6;
+  background-color: #fff;
   position: relative;
   .table-main {
     position: absolute;
     top: 87px;
-    bottom: 10px;
+    bottom: 0;
     left: 0;
     right: 0;
     background-color: #fff;
     // border-radius: 5px;
-    padding: 10px 0;
+    // padding: 10px 0;
   }
   .search-header {
     overflow: hidden;