Browse Source

管理组编辑

wangwei 4 years ago
parent
commit
60b921b055
1 changed files with 2 additions and 9 deletions
  1. 2 9
      src/views/admin/group/index.vue

+ 2 - 9
src/views/admin/group/index.vue

@@ -163,16 +163,9 @@
         }
         // currentEditKeyRef.value = record.id; // record.key
         popupData.title = '编辑';
-
-        // const data = getTableAction().getDataSource();
-        // data.map((item) => {
-        //   if (item.id === record.id) {
-        //     record = item;
-        //   }
-        // });
         getGroupById({ id: record.id }).then((res) => {
-          console.log(`res`, res);
-          // openPopup(true, record);
+          const data = res.row;
+          openPopup(true, data);
         });
       }