Explorar o código

提示列拜访,建店,色卡表格,切换时报错bug修改

zhujindu hai 10 meses
pai
achega
848ead7b9d
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      src/views/home/hintTabPage/hintDetail.vue

+ 6 - 5
src/views/home/hintTabPage/hintDetail.vue

@@ -278,11 +278,12 @@ export default {
   },
   methods: {
     rowKey(row) {
-      if (this.fromType == 'noVisit' || this.fromType == 'createStore') {
-        return row['onlyId'];
-      } else if (this.fromType == 'pantone') {
-        return row['warehouseCode'];
-      }
+      return row['onlyId'] || row['warehouseCode'];
+      // if (this.fromType == 'noVisit' || this.fromType == 'createStore') {
+      //   return row['onlyId'];
+      // } else if (this.fromType == 'pantone') {
+      //   return row['warehouseCode'];
+      // }
     },
     setTabsItem() {
       this.tabsItem = [