瀏覽代碼

生活去除无用方法

tianyabing 2 年之前
父節點
當前提交
47d10b2e58

+ 0 - 4
src/components/home/HomeAside.vue

@@ -29,15 +29,11 @@ export default {
       })
     },
     handleSelected(item) {
-      //this.$router.push({name: item.key})
       if (item.key=='nav') {
         this.$router.push({name: 'nav'})
       } else {
-        console.log(item.key)
-        console.log(item && item.key!='')
         if (item && item.key!=='') {
           let obj = this.menuList[item.key]
-          console.log(obj)
           this.$router.push({path: obj.router})
         } else {
           this.$router.push({name: 'empty'})

+ 0 - 3
src/components/life/life.vue

@@ -23,9 +23,6 @@ export default {
     Breadcrumb: defineAsyncComponent(() => import("@/components/breadcrumb/iotBreadcrumb.vue")),
   },
   watch: {
-    $route(val) {
-      this.initScroll()
-    }
   },
   mounted() {
   },

+ 10 - 1
src/components/life/supermarket/components/lifeSupermarketTopTable.vue

@@ -6,7 +6,7 @@
       }
     "
     :columns="columns"
-    :data-source="data"
+    :data-source="tableData"
     :pagination="false"
     :customRow="customRow"
   >
@@ -64,6 +64,15 @@ export default {
       ],
     };
   },
+  methods: {
+    customRow(record, index) {
+      return {
+        style: {
+          "background-color": index % 2 === 0 ? "#ffffff" : "#fafafa",
+        },
+      };
+    },
+  }
 };
 </script>