Przeglądaj źródła

提示类-色卡开放大区及以上级别权限

zhujindu 11 miesięcy temu
rodzic
commit
e27b834fe9
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      src/views/home/hintTabPage/hintDetail.vue

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

@@ -276,7 +276,11 @@ export default {
   },
   methods: {
     rowKey(row) {
-      return this.fromType == 'pantone' ? row['id'] : row['onlyId'];
+      if (this.fromType == 'noVisit' || this.fromType == 'createStore') {
+        return row['onlyId'];
+      } else if (this.fromType == 'pantone') {
+        return row['warehouseCode'];
+      }
     },
     setTabsItem() {
       this.tabsItem = [
@@ -321,7 +325,7 @@ export default {
       } else if (this.fromType == 'pantone') {
         // 色卡
         this.firstProp = 'warehouseName';
-        let deptId = tree ? tree.onlyId : null;
+        let deptId = tree ? tree.deptId : null;
         this.getPantoneData(resolve, deptId);
       }
     },