浏览代码

提交

storemanagementweb
gwbvipvip 9 个月前
父节点
当前提交
71c950fc48
共有 4 个文件被更改,包括 5 次插入12 次删除
  1. +1
    -1
      config/proxy.js
  2. 二进制
     
  3. 二进制
     
  4. +4
    -11
      src/pages/shopmanage/printerTemplate/index.jsx

+ 1
- 1
config/proxy.js 查看文件

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


二进制
查看文件


二进制
查看文件


+ 4
- 11
src/pages/shopmanage/printerTemplate/index.jsx 查看文件

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


正在加载...
取消
保存