Browse Source

提交

storemanagementweb
gwbvipvip 8 months ago
parent
commit
71c950fc48
4 changed files with 5 additions and 12 deletions
  1. +1
    -1
      config/proxy.js
  2. BIN
     
  3. BIN
     
  4. +4
    -11
      src/pages/shopmanage/printerTemplate/index.jsx

+ 1
- 1
config/proxy.js View File

@@ -17,7 +17,7 @@
},
},
'/storemanagement/': {
target: 'http://10.2.1.26:21995/storemanagement/',
target: 'http://localhost:5248/',
changeOrigin: true,
secure: false, //关闭证书验证
pathRewrite: {


BIN
View File


BIN
View File


+ 4
- 11
src/pages/shopmanage/printerTemplate/index.jsx View File

@@ -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>
);
};


Loading…
Cancel
Save