shenwu 5 місяців тому
батько
коміт
88bb56904d

+ 3 - 3
src/pages/distribution/distributor/info/index.tsx

@@ -28,7 +28,7 @@ const Page: React.FC = () => {
   let [open, setOpen] = useState<any>(null); //付费配置
   let [editValues, setEditValues] = useState<any>({});
   let [workDirection, setWorkDirection] = useState<any>(null);
-  const [openBook, setOpneBook] = useState<any>(null); //阅读小说
+  const [userManage, setUserManage] = useState<any>(null); //账号管理
   const [editSelectedRow, setEditSelectedRow] = useState<any[]>([]); //小说列表选择
 
   // ======================API=======================
@@ -121,7 +121,7 @@ const Page: React.FC = () => {
           return await DistributorInfoPageList.run(params);
         }}
         // 表
-        columns={columns({ del, edit: closeForm, setEditValues })}
+        columns={columns({ del, edit: closeForm, setUserManage })}
       />
       {/* 新增分销商 */}
       <BetaSchemaForm<DataItem>
@@ -146,7 +146,7 @@ const Page: React.FC = () => {
         loading={DistributorInfo?.loading || DistributorInfoUpdate?.loading}
       />
       {/* 账号管理 */}
-      <Item data={editValues} onClose={setEditValues} />
+      <Item data={userManage} onClose={setUserManage} />
     </PageContainer>
   );
 };

+ 3 - 3
src/pages/distribution/distributor/info/tableConfig.tsx

@@ -4,9 +4,9 @@ import { Badge, Button, Popconfirm, Space, Switch } from 'antd';
 export const columns = (props: {
   del: (id: any) => void;
   edit: (b: boolean, v: any) => void;
-  setEditValues: (v: any) => void;
+  setUserManage: (v: any) => void;
 }): ProColumns<any>[] => {
-  let { del, edit, setEditValues } = props;
+  let { del, edit, setUserManage } = props;
   return [
     {
       title: 'ID',
@@ -114,7 +114,7 @@ export const columns = (props: {
             </Popconfirm>
             <Button
               onClick={() => {
-                setEditValues(b);
+                setUserManage(b);
               }}
               type="link"
               size="small"