修改状态
This commit is contained in:
parent
e479dae884
commit
f38be5e979
4
.env.dev
4
.env.dev
@ -6,9 +6,9 @@ VITE_OPERATOR_PLUGIN_BASE_URL=${VITE_BASE_URL}:8099
|
|||||||
VITE_AI_SHOP_BASE_URL=http://192.168.0.115:8081
|
VITE_AI_SHOP_BASE_URL=http://192.168.0.115:8081
|
||||||
VITE_WEBSOCKET_BASE_URL=ws://${VITE_HOST}:7025/copyright
|
VITE_WEBSOCKET_BASE_URL=ws://${VITE_HOST}:7025/copyright
|
||||||
# 18634604067
|
# 18634604067
|
||||||
VITE_USERID=80d3365e-0597-4988-979e-18ef1c3ec671
|
# VITE_USERID=80d3365e-0597-4988-979e-18ef1c3ec671
|
||||||
# VITE_USERID=e3e40f95-7a3f-4b53-a1a0-51dd4e881d74
|
# VITE_USERID=e3e40f95-7a3f-4b53-a1a0-51dd4e881d74
|
||||||
# VITE_USERID=5cc90b84-905e-4027-9f6c-ab47e9c320a1
|
VITE_USERID=5cc90b84-905e-4027-9f6c-ab47e9c320a1
|
||||||
# VITE_CURRENT_THEME=fzkj
|
# VITE_CURRENT_THEME=fzkj
|
||||||
VITE_CURRENT_THEME=mzw
|
VITE_CURRENT_THEME=mzw
|
||||||
# VITE_HOST=121.36.71.250:58038
|
# VITE_HOST=121.36.71.250:58038
|
||||||
|
@ -594,7 +594,7 @@ export default function ProductRelease() {
|
|||||||
<Button className='goodsBtn' type="primary" style={{
|
<Button className='goodsBtn' type="primary" style={{
|
||||||
width: '80px',
|
width: '80px',
|
||||||
background: 'rgb(248, 97, 97)',
|
background: 'rgb(248, 97, 97)',
|
||||||
display: item.goodsStatus == '0' || item.goodsOrderStatus == '3' ? 'none' : 'unset'
|
display: item.goodsStatus == '0' || item.goodsOrderStatus == '3' || item.goodsOrderStatus == '4' ? 'none' : 'unset'
|
||||||
}}
|
}}
|
||||||
onClick={() => off(item)}>下架</Button>
|
onClick={() => off(item)}>下架</Button>
|
||||||
<div className='goodsBtnIng' style={{
|
<div className='goodsBtnIng' style={{
|
||||||
|
@ -3,17 +3,30 @@ import { Button, Radio, Form, Input } from 'antd'
|
|||||||
import './EditOne.css'
|
import './EditOne.css'
|
||||||
const { TextArea } = Input;
|
const { TextArea } = Input;
|
||||||
export default function EditOne(props: any) {
|
export default function EditOne(props: any) {
|
||||||
const [form] = Form.useForm<any>();
|
const [formA] = Form.useForm<any>(); // 文字商标表单
|
||||||
|
const [formB] = Form.useForm<any>(); // 图形商标表单
|
||||||
const height = window.innerHeight - 350;
|
const height = window.innerHeight - 350;
|
||||||
const [goodsType, setGoodsType] = useState('a')
|
const [goodsType, setGoodsType] = useState('a')
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
// console.log(form);
|
// console.log(form);
|
||||||
// props.setEditProcess(2);
|
// props.setEditProcess(2);
|
||||||
// 调用表单实例的 submit 方法
|
// 调用表单实例的 submit 方法
|
||||||
form.submit();
|
if (goodsType === 'a') {
|
||||||
|
formA.submit();
|
||||||
|
} else if (goodsType === 'b') {
|
||||||
|
formB.submit();
|
||||||
|
} else {
|
||||||
|
// 表单不显示时,直接更新步骤
|
||||||
|
props.setEditProcess(2);
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
const onFinish = (values: any) => {
|
const onFinishA = (values: any) => {
|
||||||
|
console.log(values);
|
||||||
|
props.setEditProcess(2);
|
||||||
|
|
||||||
|
}
|
||||||
|
const onFinishB = (values: any) => {
|
||||||
console.log(values);
|
console.log(values);
|
||||||
props.setEditProcess(2);
|
props.setEditProcess(2);
|
||||||
|
|
||||||
@ -55,9 +68,9 @@ export default function EditOne(props: any) {
|
|||||||
display: goodsType === 'a' ? 'unset' : 'none',
|
display: goodsType === 'a' ? 'unset' : 'none',
|
||||||
}}>
|
}}>
|
||||||
<Form
|
<Form
|
||||||
name="Form"
|
name="FormA"
|
||||||
form={form}
|
form={formA}
|
||||||
onFinish={onFinish}
|
onFinish={onFinishA}
|
||||||
initialValues={{ softWare: '' }}
|
initialValues={{ softWare: '' }}
|
||||||
style={{ marginTop: 20 }}
|
style={{ marginTop: 20 }}
|
||||||
>
|
>
|
||||||
@ -133,6 +146,87 @@ export default function EditOne(props: any) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div style={{
|
||||||
|
display: goodsType === 'b' ? 'unset' : 'none',
|
||||||
|
}}>
|
||||||
|
<Form
|
||||||
|
name="FormB"
|
||||||
|
form={formB}
|
||||||
|
onFinish={onFinishB}
|
||||||
|
initialValues={{ softWare: '' }}
|
||||||
|
style={{ marginTop: 20 }}
|
||||||
|
>
|
||||||
|
<div className='editFormItem '>
|
||||||
|
<div className='editFormItemTitle'>
|
||||||
|
商标名称<span className='redTitle' >*</span>:
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<Form.Item
|
||||||
|
name="titleB"
|
||||||
|
rules={[{ required: true, message: '请输入商标名称!' }]}
|
||||||
|
>
|
||||||
|
<Input style={{
|
||||||
|
width: 600,
|
||||||
|
height: 46,
|
||||||
|
background: '#FFF',
|
||||||
|
color: 'black'
|
||||||
|
}}
|
||||||
|
placeholder="商标名称"
|
||||||
|
>
|
||||||
|
</Input>
|
||||||
|
|
||||||
|
</Form.Item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div className='editFormItem' style={{
|
||||||
|
marginTop: '20px',
|
||||||
|
}}>
|
||||||
|
<div className='editFormItemTitle'>
|
||||||
|
商标说明<span className='redTitle'>*</span>:
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<Form.Item
|
||||||
|
name="textB"
|
||||||
|
rules={[{ required: true, message: '请输入商标说明' }]}
|
||||||
|
>
|
||||||
|
<TextArea style={{
|
||||||
|
width: 600,
|
||||||
|
height: 150,
|
||||||
|
background: '#FFF',
|
||||||
|
color: 'black',
|
||||||
|
resize: 'none'
|
||||||
|
}}
|
||||||
|
placeholder="商标说明"
|
||||||
|
>
|
||||||
|
</TextArea>
|
||||||
|
|
||||||
|
</Form.Item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{/* <Form.Item>
|
||||||
|
<div className='trademark-btn'>
|
||||||
|
<Button type="primary" htmlType="submit" style={{
|
||||||
|
width: 273,
|
||||||
|
height: 52
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
提交订单
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</Form.Item> */}
|
||||||
|
</Form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className='topLine'></div>
|
<div className='topLine'></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user