소스 검색

管理组编辑

wangwei 4 년 전
부모
커밋
60b921b055
1개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  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);
         });
       }