Browse Source

样式修改

zhangyu 5 years ago
parent
commit
3a8a2123c7
1 changed files with 14 additions and 10 deletions
  1. 14 10
      src/views/ledger/facility/batchlink.vue

+ 14 - 10
src/views/ledger/facility/batchlink.vue

@@ -9,7 +9,7 @@
         <el-button v-show="Object.keys(radio).length" style="float:right;margin-top:1px;margin-right:15px;" @click="handleClickReset">重置</el-button>
       </div>
       <div class="main">
-        <el-table ref="multipleTable" :data="tableData" v-loading='loading' stripe height="100%" :span-method="objectSpanMethod">
+        <el-table ref="multipleTable" :data="tableData" v-loading='loading' stripe height="100%" :span-method="objectSpanMethod" :header-cell-style="headerStyle">
           <el-table-column prop="EquipLocalName" label="设备本地名称" show-overflow-tooltip max-width="150">
             <!-- <template slot-scope="scope">{{ scope.row.EquipLocalName?scope.row.EquipLocalName:scope.row.EquipName }}</template> -->
           </el-table-column>
@@ -78,15 +78,20 @@ export default {
       loading: false,
       unlinkNumber: 0,
       linkNumber: 0,
-      page: {
-        pageSize: 50,
-        pageSizes: [10, 20, 50, 100],
-        pageNumber: 1,
-        total: 0
-      },
+      // page: {
+      //   pageSize: 50,
+      //   pageSizes: [10, 20, 50, 100],
+      //   pageNumber: 1,
+      //   total: 0
+      // },
       radio: {},
       tableData: [],
-      mergeCol: []
+      mergeCol: [],
+      headerStyle: {
+        backgroundColor: '#e1e4e5',
+        color: '#2b2b2b',
+        lineHeight: '30px'
+      }, // 列表样式
     }
   },
   methods: {
@@ -252,7 +257,6 @@ export default {
     flex-direction: column;
     border: 1px solid #dfe6ec;
     background: #fff;
-    margin-bottom: 10px;
     .header{
       padding-bottom: 10px;
       border-bottom: 1px solid #bcbcbc;
@@ -263,7 +267,7 @@ export default {
     }
     .main{
       margin-top: 10px;
-      height: calc(100% - 96px);
+      height: calc(100% - 46px);
     }
   }
 }