|
|
@@ -1,4 +1,4 @@ |
|
|
|
import { Form, Tabs, Row, Col, Card,Radio,message,Modal } from 'antd'; |
|
|
|
import { Form, Tabs, Row, Col, Card,Radio,message } from 'antd'; |
|
|
|
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout'; |
|
|
|
import React, { useState, useRef, useEffect } from 'react'; |
|
|
|
import ProForm, { ProFormText, ModalForm } from '@ant-design/pro-form'; |
|
|
@@ -12,7 +12,6 @@ const printerTemplateInfo = () => { |
|
|
|
const [panes, setPanes] = useState([]); |
|
|
|
const [activeKey, SetActiveKey] = useState(); |
|
|
|
const [isAdd, SetIsAdd] = useState(false); |
|
|
|
const [isModalOpen, setIsModalOpen] = useState(false); |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
GetStoreTemplaterList(); |
|
|
@@ -123,6 +122,8 @@ const printerTemplateInfo = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
<PageContainer header={{ |
|
|
|
title: '', |
|
|
@@ -132,9 +133,7 @@ const printerTemplateInfo = () => { |
|
|
|
type="editable-card" |
|
|
|
onChange={onChange} |
|
|
|
activeKey={activeKey} |
|
|
|
onEdit={(targetKey, action)=>{ |
|
|
|
setIsModalOpen(true); |
|
|
|
}} |
|
|
|
onEdit={onEdit} |
|
|
|
> |
|
|
|
{panes?.map(pane => ( |
|
|
|
<TabPane tab={pane.title} key={pane.id} > |
|
|
@@ -155,12 +154,6 @@ const printerTemplateInfo = () => { |
|
|
|
</TabPane> |
|
|
|
))} |
|
|
|
</Tabs> |
|
|
|
|
|
|
|
<Modal open={true} onOk={()=>{}} onCancel={setIsModalOpen(false)}> |
|
|
|
<p>确认删除吗?</p> |
|
|
|
</Modal> |
|
|
|
|
|
|
|
|
|
|
|
</PageContainer> |
|
|
|
); |
|
|
|
}; |
|
|
|