Browse Source

room2表格,鼠标显示默认指针

yunxing 4 years ago
parent
commit
5243d5b02e
1 changed files with 16 additions and 7 deletions
  1. 16 7
      src/views/room/room2.vue

+ 16 - 7
src/views/room/room2.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-    <div class='compute-item'>
+    <div class='compute-item cursor-none'>
         <div ref='tableBox2' class='compute-table'>
         <div ref='tableBox2' class='compute-table'>
             <el-table
             <el-table
                 :border='true'
                 :border='true'
@@ -39,7 +39,7 @@
                 background
                 background
                 layout='prev, pager, next'
                 layout='prev, pager, next'
                 :total='total'
                 :total='total'
-                  :current-page.sync="page"
+                :current-page.sync='page'
                 :page-size='size'
                 :page-size='size'
                 @prev-click='pageChanged'
                 @prev-click='pageChanged'
                 @next-click='pageChanged'
                 @next-click='pageChanged'
@@ -60,14 +60,14 @@ export default {
                 { id: 'test1', name: '选择项' },
                 { id: 'test1', name: '选择项' },
                 { id: 'test2', name: '单平米' },
                 { id: 'test2', name: '单平米' },
                 { id: 'test3', name: '下级分项' },
                 { id: 'test3', name: '下级分项' },
-                { id: 'test4', name: '滑动平均滑动平均' }
+                { id: 'test4', name: '滑动平均滑动平均' },
             ],
             ],
             searVal: '',
             searVal: '',
-            tableMaxHeight: 0
+            tableMaxHeight: 0,
         }
         }
     },
     },
     computed: {
     computed: {
-        ...mapGetters(['floorSelect'])
+        ...mapGetters(['floorSelect']),
     },
     },
     components: { Select },
     components: { Select },
     methods: {
     methods: {
@@ -82,17 +82,26 @@ export default {
                 // 页面渲染完成后的回调
                 // 页面渲染完成后的回调
                 this.tableMaxHeight = this.$refs.tableBox2.offsetHeight
                 this.tableMaxHeight = this.$refs.tableBox2.offsetHeight
             })
             })
-        }
+        },
     },
     },
     updated() {
     updated() {
         this.$nextTick(() => {
         this.$nextTick(() => {
             // 页面渲染完成后的回调
             // 页面渲染完成后的回调
             this.tableMaxHeight = this.$refs.tableBox2.offsetHeight
             this.tableMaxHeight = this.$refs.tableBox2.offsetHeight
         })
         })
-    }
+    },
 }
 }
 </script>
 </script>
 <style lang="less" scoped>
 <style lang="less" scoped>
+// 该表格,鼠标显示默认指针
+.cursor-none {
+    cursor: default !important;
+    /deep/ .el-table {
+        td {
+            cursor: default !important;
+        }
+    }
+}
 </style>
 </style>
 <style lang="less">
 <style lang="less">
 .compute-item {
 .compute-item {