This commit is contained in:
xixi 2024-06-04 16:02:06 +08:00
parent e0b6d38454
commit 266270fa26
9 changed files with 99 additions and 31 deletions

View File

@ -560,8 +560,11 @@ export default function ProjConfigLoginpage(props: any) {
content: '编辑成功'
})
// props.closeModal()
props.closeModal()
// props.closeModal()
setTimeout(() => {
props.closeModal()
// window.location.reload(); // 刷新页面
}, 500);
},
onFinally() {

View File

@ -1,9 +1,11 @@
import './copyrightG-goods.css'
import { Select, DatePicker, Button, Table,
import {
Select, DatePicker, Button, Table,
// message,
Space, Input, Empty } from 'antd';
Space, Input, Empty
} from 'antd';
// import type { TableColumnsType } from 'antd';
import { SearchOutlined } from '@ant-design/icons';
import { SearchOutlined,ClearOutlined } from '@ant-design/icons';
import type { DatePickerProps } from 'antd';
import locale from 'antd/es/date-picker/locale/zh_CN';
const { Column } = Table;
@ -105,11 +107,23 @@ export default function CopyrightGgoods() {
]}
/>
<Button type="primary"
style={{ height: 36, backgroundColor: '#FF9F08' }}
style={{
height: 36,
// backgroundColor: '#FF9F08'
}}
icon={<SearchOutlined />}>
</Button>
<Button
style={{
height: 36,
marginLeft: 10,
// backgroundColor: '#FF9F08'
}}
icon={<ClearOutlined />}>
</Button>
</div>
<div className='copyrightG-goods-table'>
{/* 表格 */}

View File

@ -1,22 +1,33 @@
// import React from 'react'
import './product-release.css'
import { Select, DatePicker, Button,
import {
Select, DatePicker, Button,
// message,
Checkbox, Empty, Switch } from 'antd';
Checkbox, Empty, Switch
} from 'antd';
// import type { CheckboxProps } from 'antd';
import { SearchOutlined } from '@ant-design/icons';
import { SearchOutlined,ClearOutlined } from '@ant-design/icons';
import type { DatePickerProps } from 'antd';
import locale from 'antd/es/date-picker/locale/zh_CN';
import React from 'react';
// import dayjs, { Dayjs } from 'dayjs';
import React, { useState } from 'react';
import dayjs, { } from 'dayjs';
export default function ProductRelease() {
// const [messageApi, contextHolder] = message.useMessage();
const dateFormat = 'YYYY年MM月DD日';
// 所属人类型
const [belongType, setBelongType] = useState<any>(undefined)
const belongTypeChange = (value: string) => {
console.log(`selected ${value}`);
setBelongType(value)
}
// 选择日期
const [date, setDate] = useState<any>(undefined)
const onChange: DatePickerProps['onChange'] = (date, dateString) => {
console.log(date, dateString);
setDate(date)
// dayjs(formInfo.getFieldValue('projDevCompleteDate')).format(dateFormat),
console.log('日期', dayjs(date).format(dateFormat));
};
const height = window.innerHeight - 180;
@ -106,12 +117,13 @@ export default function ProductRelease() {
{ value: 'person', label: '个人' },
{ value: 'lucy', label: '企业' },
]}
value={belongType}
/>
<DatePicker placeholder="软件取得时间"
style={{ width: 198, height: 36, marginRight: 12 }}
format={dateFormat}
locale={locale}
onChange={onChange}
value={date}
/>
<Select
// defaultValue="lucy"
@ -134,11 +146,23 @@ export default function ProductRelease() {
]}
/>
<Button type="primary"
style={{ height: 36, backgroundColor: '#FF9F08' }}
style={{
height: 36,
// backgroundColor: '#FF9F08'
}}
icon={<SearchOutlined />}>
</Button>
<Button
style={{
height: 36,
marginLeft:10,
// backgroundColor: '#FF9F08'
}}
icon={<ClearOutlined />}>
</Button>
</div>
<div>
{/* 表格 */}
@ -205,7 +229,7 @@ export default function ProductRelease() {
<td style={{ fontSize: 24, color: '#FF5D15' }}>{item.price}</td>
<td>{item.time2}</td>
<td>
<Switch checkedChildren="On" unCheckedChildren="Off" onChange={(e) => { opneChange(e, item) }} defaultChecked={item.open == 0 ? false : true} />
<Switch checkedChildren="On" unCheckedChildren="Off" onChange={(e) => { opneChange(e, item) }} defaultChecked={item.open == 0 ? false : true} />
</td>
<td>{item.status}</td>
<td>

View File

@ -3,7 +3,7 @@ import { Select, DatePicker, Button, Table,
// message,
Space, Empty } from 'antd';
// import type { TableColumnsType } from 'antd';
import { SearchOutlined } from '@ant-design/icons';
import { SearchOutlined,ClearOutlined } from '@ant-design/icons';
import type { DatePickerProps } from 'antd';
import locale from 'antd/es/date-picker/locale/zh_CN';
const { Column } = Table;
@ -86,11 +86,22 @@ export default function TradingGoods() {
]}
/>
<Button type="primary"
style={{ height: 36, backgroundColor: '#FF9F08' }}
style={{ height: 36,
// backgroundColor: '#FF9F08'
}}
icon={<SearchOutlined />}>
</Button>
<Button
style={{
height: 36,
marginLeft:10,
// backgroundColor: '#FF9F08'
}}
icon={<ClearOutlined />}>
</Button>
</div>
<div className='trading-goods-table'>
{/* 表格 */}

View File

@ -4,7 +4,7 @@ import { Select, DatePicker, Button, Table,
// message,
Space, Empty } from 'antd';
// import type { TableColumnsType } from 'antd';
import { SearchOutlined } from '@ant-design/icons';
import { SearchOutlined,ClearOutlined } from '@ant-design/icons';
import type { DatePickerProps } from 'antd';
import locale from 'antd/es/date-picker/locale/zh_CN';
const { Column } = Table;
@ -87,11 +87,22 @@ export default function TransactionOrder() {
]}
/>
<Button type="primary"
style={{ height: 36, backgroundColor: '#FF9F08' }}
style={{ height: 36,
// backgroundColor: '#FF9F08'
}}
icon={<SearchOutlined />}>
</Button>
<Button
style={{
height: 36,
marginLeft:10,
// backgroundColor: '#FF9F08'
}}
icon={<ClearOutlined />}>
</Button>
</div>
<div className='transaction-order-table'>
{/* 表格 */}

View File

@ -561,9 +561,10 @@ export default function ProjConfigLoginpage(props: any) {
content: '编辑成功'
})
// props.closeModal()
props.closeModal()
// props.closeModal()
setTimeout(()=>{
window.location.reload()
// window.location.reload()
props.closeModal()
},500)
},

View File

@ -226,7 +226,7 @@ export default function ProjEditStep1(props: any) {
setTimeout(() => {
props.closeModal()
// window.location.reload(); // 刷新页面
}, 1000);
}, 500);
},
onFinally() {

View File

@ -94,7 +94,7 @@ export default function ProjEditStep2(props: any) {
const [applyContactEmail, setapplyContactEmail] = useState('') //联系人邮箱
const [applyContactName, setapplyContactName] = useState('') //联系人姓名
const [applyContactPhone, setapplyContactPhone] = useState('') //联系人手机
const [applyContactCompany,setapplyContactCompany] = useState('')
const [applyContactCompany, setapplyContactCompany] = useState('')
// 设置所属者more你选中的行
// const [selectedRowKeys, setSelectedRowKeys] = useState<BelongDataType[]>([]);
@ -259,7 +259,7 @@ export default function ProjEditStep2(props: any) {
setApplyConcatId(data.applyContactId)
setapplyContactName(data.applyContactName)
setapplyContactPhone(data.applyContactPhone)
// setapplyContactCompany(data.applyContactCompany)
setapplyContactCompany(data.applyContactCompany)
setapplyContactCsaNo(data.applyContactCsaNo)
setapplyContactEmail(data.applyContactEmail)
console.log('基本信息', data);
@ -862,7 +862,7 @@ export default function ProjEditStep2(props: any) {
<div style={{ marginRight: '22px' }}>:</div>
<div style={{ display: applyContactName == '' ? 'block' : 'none' }}></div>
<div style={{ display: applyContactName == '' ? 'none' : 'block' }}>
{applyContactName}/{applyContactPhone}{applyContactEmail?'/'+applyContactEmail:''}
{applyContactName}/{applyContactPhone}{applyContactEmail ? '/' + applyContactEmail : ''}
</div>
</div>
<div className='belongPeople-bot'>
@ -1057,14 +1057,17 @@ export default function ProjEditStep2(props: any) {
setLoading(true);
},
onSuccess() {
// props.closeModal()
messageApi.open({
type: 'success',
content: '编辑成功'
})
// props.closeModal()
props.closeModal()
setTimeout(() => {
window.location.reload()
// window.location.reload()
props.closeModal()
}, 500)
},
@ -1445,7 +1448,7 @@ export default function ProjEditStep2(props: any) {
</Form.Item>
</div>
<div className='blongNameInt'>
<div className='blongTitle ' style={{ width: 65 , marginRight: '15px'}}>: </div>
<div className='blongTitle ' style={{ width: 65, marginRight: '15px' }}>: </div>
<Form.Item<ContactType>
name="phone"
@ -1483,7 +1486,7 @@ export default function ProjEditStep2(props: any) {
]}
>
<Input placeholder="请输入邮箱"
style={{ height: '44px', width: '384px', fontSize: '15px', marginTop: '22px'}}
style={{ height: '44px', width: '384px', fontSize: '15px', marginTop: '22px' }}
disabled={contactTitle == '查看联系人' ? true : false}
/>

View File

@ -319,12 +319,13 @@ export default function ProjEditStep3(props:any) {
onSuccess() {
messageApi.open({
type: 'success',
content: '编辑成功'
content: '编辑成功',
})
// props.closeModal()
props.closeModal()
// props.closeModal()
setTimeout(()=>{
window.location.reload()
// window.location.reload()
props.closeModal()
},500)
},
onFinally() {