Pārlūkot izejas kodu

提交

storemanagementweb
gwbvipvip pirms 9 mēnešiem
vecāks
revīzija
71c950fc48
4 mainītis faili ar 5 papildinājumiem un 12 dzēšanām
  1. +1
    -1
      config/proxy.js
  2. Binārs
     
  3. Binārs
     
  4. +4
    -11
      src/pages/shopmanage/printerTemplate/index.jsx

+ 1
- 1
config/proxy.js Parādīt failu

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


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 4
- 11
src/pages/shopmanage/printerTemplate/index.jsx Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt