样式修改
This commit is contained in:
parent
0bfa080d89
commit
5e9a5e9abd
@ -77,7 +77,7 @@ export default function BelongPeople(props: propsInfo) {
|
||||
// const [isEditModalOpen, setIsEditModalOpen] = useState(false);
|
||||
const [isNewBelongOpen, setIsNewBelongOpen] = useState(false)
|
||||
|
||||
const height = window.innerHeight - 200;
|
||||
// const height = window.innerHeight - 200;
|
||||
// const dateFormat = 'YYYY年MM月DD日';
|
||||
// 点击查看是否显示账号密码
|
||||
const [checkCrcAccountShow, setCheckCrcAccountShow] = useState('')
|
||||
@ -387,7 +387,7 @@ export default function BelongPeople(props: propsInfo) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div style={{ height: props.isShow ? `${height - 100}px` : `${height - 200}px`, overflow: 'auto', background: 'var(--color-light)', position: 'relative' }}>
|
||||
<div style={{ height: props.isShow ? 600 :510 , overflow: 'auto', background: 'var(--color-light)', position: 'relative' }}>
|
||||
|
||||
|
||||
{contextHolder}
|
||||
@ -505,245 +505,246 @@ export default function BelongPeople(props: propsInfo) {
|
||||
{/* 表格 */}
|
||||
{props.isShow ? (
|
||||
<Table
|
||||
rowSelection={{
|
||||
type: 'radio',
|
||||
...belongRowSelection,
|
||||
// selectedRowKeys: belongselectedKeys // 设置默认选中的行
|
||||
}}
|
||||
rowSelection={{
|
||||
type: 'radio',
|
||||
...belongRowSelection,
|
||||
// selectedRowKeys: belongselectedKeys // 设置默认选中的行
|
||||
}}
|
||||
dataSource={tableBelongData}
|
||||
pagination={{
|
||||
defaultPageSize: 5, // 设置默认一页显示 5 条数据
|
||||
}}
|
||||
style={{ textAlign: 'center',height:390 }} // 设置表格内容居中显示
|
||||
rowKey="projOwnerId" // 指定数据项的唯一标识符
|
||||
>
|
||||
<Column title="所属者名称" dataIndex="name" />
|
||||
<Column
|
||||
title="所属类型"
|
||||
dataIndex="type"
|
||||
render={(_text, record: any) => (
|
||||
record.type === 'PERSONAL' ? '自然人' : '企业/组织'
|
||||
)}
|
||||
/>
|
||||
<Column
|
||||
title="所属证件类型"
|
||||
dataIndex="idCardType"
|
||||
render={(_text, record: any) => (
|
||||
record.idCardType === 'ID_CARD' ? '身份证' : '营业执照'
|
||||
)}
|
||||
/>
|
||||
<Column title="所属者身份证号" dataIndex="idCardNo" key="belongCardNo" />
|
||||
{/* <Column title="实名认证状态" dataIndex="address" key="key" /> */}
|
||||
<Column
|
||||
title="操作"
|
||||
render={(_text, record: any) => (
|
||||
<Space size="middle">
|
||||
<a onClick={() => {
|
||||
|
||||
dataSource={tableBelongData}
|
||||
pagination={{
|
||||
defaultPageSize: 5, // 设置默认一页显示 5 条数据
|
||||
}}
|
||||
style={{ textAlign: 'center' }} // 设置表格内容居中显示
|
||||
rowKey="projOwnerId" // 指定数据项的唯一标识符
|
||||
>
|
||||
<Column title="所属者名称" dataIndex="name" />
|
||||
<Column
|
||||
title="所属类型"
|
||||
dataIndex="type"
|
||||
render={(_text, record: any) => (
|
||||
record.type === 'PERSONAL' ? '自然人' : '企业/组织'
|
||||
)}
|
||||
/>
|
||||
<Column
|
||||
title="所属证件类型"
|
||||
dataIndex="idCardType"
|
||||
render={(_text, record: any) => (
|
||||
record.idCardType === 'ID_CARD' ? '身份证' : '营业执照'
|
||||
)}
|
||||
/>
|
||||
<Column title="所属者身份证号" dataIndex="idCardNo" key="belongCardNo" />
|
||||
{/* <Column title="实名认证状态" dataIndex="address" key="key" /> */}
|
||||
<Column
|
||||
title="操作"
|
||||
render={(_text, record: any) => (
|
||||
<Space size="middle">
|
||||
<a onClick={() => {
|
||||
// alert(record.projOwnerId);
|
||||
|
||||
// alert(record.projOwnerId);
|
||||
// console.log('text:', text);
|
||||
// console.log('record:', record);
|
||||
|
||||
// console.log('text:', text);
|
||||
// console.log('record:', record);
|
||||
setProjOwnerId(record.projOwnerId)
|
||||
setbelongTitle('编辑所属者')
|
||||
setBelongShow(record.type)
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
setCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
// 查看账号密码是否显示
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
}}>编辑 </a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
// alert(record.projOwnerId);
|
||||
del({
|
||||
messageApi,
|
||||
url: `/api/proj-owner/remove/${record.projOwnerId}`,
|
||||
onSuccess() {
|
||||
messageApi.success('删除成功');
|
||||
// getProjOwnerList()
|
||||
getSearchProjOwnerList(keywords, type)
|
||||
}
|
||||
})
|
||||
}}>删除</a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
setbelongTitle('查看所属者')
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
// 查看是否显示账号密码
|
||||
setCheckCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
|
||||
setProjOwnerId(record.projOwnerId)
|
||||
setbelongTitle('编辑所属者')
|
||||
setBelongShow(record.type)
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
setCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
// 查看账号密码是否显示
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
}}>编辑 </a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
// alert(record.projOwnerId);
|
||||
del({
|
||||
messageApi,
|
||||
url: `/api/proj-owner/remove/${record.projOwnerId}`,
|
||||
onSuccess() {
|
||||
messageApi.success('删除成功');
|
||||
// getProjOwnerList()
|
||||
getSearchProjOwnerList(keywords, type)
|
||||
}
|
||||
})
|
||||
}}>删除</a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
setbelongTitle('查看所属者')
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
// 查看是否显示账号密码
|
||||
setCheckCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
}}>查看</a>
|
||||
|
||||
}}>查看</a>
|
||||
</Space>
|
||||
)}
|
||||
/>
|
||||
</Table>
|
||||
) : (
|
||||
<Table
|
||||
dataSource={tableBelongData}
|
||||
pagination={{
|
||||
defaultPageSize: 5, // 设置默认一页显示 5 条数据
|
||||
}}
|
||||
style={{ textAlign: 'center',height:390 }} // 设置表格内容居中显示
|
||||
rowKey="projOwnerId" // 指定数据项的唯一标识符
|
||||
>
|
||||
<Column title="所属者名称" dataIndex="name" />
|
||||
<Column
|
||||
title="所属类型"
|
||||
dataIndex="type"
|
||||
render={(_text, record: any) => (
|
||||
record.type === 'PERSONAL' ? '自然人' : '企业/组织'
|
||||
)}
|
||||
/>
|
||||
<Column
|
||||
title="所属证件类型"
|
||||
dataIndex="idCardType"
|
||||
render={(_text, record: any) => (
|
||||
record.idCardType === 'ID_CARD' ? '身份证' : '营业执照'
|
||||
)}
|
||||
/>
|
||||
<Column title="所属者证件号" dataIndex="idCardNo" key="belongCardNo" />
|
||||
{/* <Column title="实名认证状态" dataIndex="address" key="key" /> */}
|
||||
<Column
|
||||
title="操作"
|
||||
render={(_text, record: any) => (
|
||||
<Space size="middle">
|
||||
<a onClick={() => {
|
||||
|
||||
</Space>
|
||||
)}
|
||||
/>
|
||||
</Table>) : (<Table
|
||||
dataSource={tableBelongData}
|
||||
pagination={{
|
||||
defaultPageSize: 5, // 设置默认一页显示 5 条数据
|
||||
}}
|
||||
style={{ textAlign: 'center' }} // 设置表格内容居中显示
|
||||
rowKey="projOwnerId" // 指定数据项的唯一标识符
|
||||
>
|
||||
<Column title="所属者名称" dataIndex="name" />
|
||||
<Column
|
||||
title="所属类型"
|
||||
dataIndex="type"
|
||||
render={(_text, record: any) => (
|
||||
record.type === 'PERSONAL' ? '自然人' : '企业/组织'
|
||||
)}
|
||||
/>
|
||||
<Column
|
||||
title="所属证件类型"
|
||||
dataIndex="idCardType"
|
||||
render={(_text, record: any) => (
|
||||
record.idCardType === 'ID_CARD' ? '身份证' : '营业执照'
|
||||
)}
|
||||
/>
|
||||
<Column title="所属者证件号" dataIndex="idCardNo" key="belongCardNo" />
|
||||
{/* <Column title="实名认证状态" dataIndex="address" key="key" /> */}
|
||||
<Column
|
||||
title="操作"
|
||||
render={(_text, record: any) => (
|
||||
<Space size="middle">
|
||||
<a onClick={() => {
|
||||
// alert(record.projOwnerId);
|
||||
|
||||
// alert(record.projOwnerId);
|
||||
// console.log('text:', text);
|
||||
// console.log('record:', record);
|
||||
|
||||
// console.log('text:', text);
|
||||
// console.log('record:', record);
|
||||
setProjOwnerId(record.projOwnerId)
|
||||
setbelongTitle('编辑所属者')
|
||||
setBelongShow(record.type)
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
setCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
}}>编辑 </a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
// alert(record.projOwnerId);
|
||||
del({
|
||||
messageApi,
|
||||
url: `/api/proj-owner/remove/${record.projOwnerId}`,
|
||||
onSuccess() {
|
||||
messageApi.success('删除成功');
|
||||
// getProjOwnerList()
|
||||
getSearchProjOwnerList(keywords, type)
|
||||
}
|
||||
})
|
||||
}}>删除</a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
setbelongTitle('查看所属者')
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
setCheckCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
}}>查看</a>
|
||||
|
||||
setProjOwnerId(record.projOwnerId)
|
||||
setbelongTitle('编辑所属者')
|
||||
setBelongShow(record.type)
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
setCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
}}>编辑 </a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
// alert(record.projOwnerId);
|
||||
del({
|
||||
messageApi,
|
||||
url: `/api/proj-owner/remove/${record.projOwnerId}`,
|
||||
onSuccess() {
|
||||
messageApi.success('删除成功');
|
||||
// getProjOwnerList()
|
||||
getSearchProjOwnerList(keywords, type)
|
||||
}
|
||||
})
|
||||
}}>删除</a>
|
||||
<span style={{ color: '#3472EE' }}>|</span>
|
||||
<a onClick={() => {
|
||||
setbelongTitle('查看所属者')
|
||||
setIsNewBelongOpen(true)
|
||||
// 发起请求给formBelong 表单赋值
|
||||
formBelong.setFieldsValue({
|
||||
// 公司名
|
||||
authorName: record.name,
|
||||
// 公司英文名
|
||||
nameEn: record.nameEn,
|
||||
// 证件类型
|
||||
authorIdCardType: record.idCardType ? record.idCardType : 'BUSINESS_LICENSE',
|
||||
// 证件号
|
||||
authorIdCard: record.idCardNo,
|
||||
// 国籍
|
||||
// authorNation: '中国',
|
||||
// 地区
|
||||
authorProvince: record.provinceCity ? record.provinceCity.split(',') : '',
|
||||
// 成立日期
|
||||
// authorEstablishDate: record.gmtCreate ? dayjs(record.gmtCreate, 'YYYY-MM-DD') : '',
|
||||
// 是否提供平台账号
|
||||
isCrcAccount: record.isCrcAccount == 1 ? '1' : '0',
|
||||
// 个人/企业
|
||||
authorType: record.type,
|
||||
// 密码
|
||||
crcAccountPassword: record.crcAccountPassword,
|
||||
// 账号
|
||||
crcAccountUsername: record.crcAccountUsername
|
||||
})
|
||||
setCheckCrcAccountShow(record.isCrcAccount == 1 ? '1' : '0')
|
||||
}}>查看</a>
|
||||
|
||||
</Space>
|
||||
)}
|
||||
/>
|
||||
</Table>
|
||||
</Space>
|
||||
)}
|
||||
/>
|
||||
</Table>
|
||||
)}
|
||||
|
||||
|
||||
@ -755,7 +756,7 @@ export default function BelongPeople(props: propsInfo) {
|
||||
</Form>
|
||||
</div>
|
||||
</div>
|
||||
<div style={{ display: props.isShow ? 'block' : 'none', position: 'absolute', right: 0, bottom: 10 }}>
|
||||
<div style={{ display: props.isShow ? 'block' : 'none' }}>
|
||||
<div className="belongPeopleModal-btn" style={{ display: 'flex', justifyContent: 'flex-end' }} >
|
||||
<Button onClick={() => {
|
||||
props.closeModal()
|
||||
|
@ -231,6 +231,9 @@ export default function CapitalModal() {
|
||||
dataIndex: 'orderType',
|
||||
key: 'orderType',
|
||||
width: 160,
|
||||
render:(text) => (
|
||||
<div >{text == 'ai'?'AI秒著引擎':text}</div>
|
||||
)
|
||||
},
|
||||
{
|
||||
title: <div style={{ textAlign: 'center' }}>交易时间</div>,
|
||||
|
@ -36,7 +36,7 @@ export default function ContactPeople(props: any) {
|
||||
const [applyContactCompany, setapplyContactCompany] = useState('')
|
||||
const [messageApi, contextHolder] = message.useMessage();
|
||||
const [formContact] = Form.useForm<ContactType>()
|
||||
const height = window.innerHeight - 200;
|
||||
// const height = window.innerHeight - 200;
|
||||
const [isContantOpen, steIsContantOpen] = useState(false)
|
||||
// 联系人弹窗标题
|
||||
const [contactTitle, setContactTitle] = useState('')
|
||||
@ -104,7 +104,7 @@ export default function ContactPeople(props: any) {
|
||||
csaNo: data.csaNo
|
||||
});
|
||||
if (data.casQrCode) {
|
||||
const imgUrl = downloadUrl(data.casQrCode,false);
|
||||
const imgUrl = downloadUrl(data.casQrCode, false);
|
||||
// console.log('图片地址', imgUrl);
|
||||
setImgUrl(imgUrl)
|
||||
}
|
||||
@ -194,9 +194,11 @@ export default function ContactPeople(props: any) {
|
||||
|
||||
}, [])
|
||||
return (
|
||||
<div style={{ height: props.isShow ? `${height - 80}px`:`${height - 160}px`, overflow: 'auto', position: 'relative' }}>
|
||||
// <div style={{ height: props.isShow ? `${height - 80}px`:`${height - 160}px`, overflow: 'auto', position: 'relative' }}>
|
||||
<div style={{ height: props.isShow ? 623 : 530, overflow: 'auto', position: 'relative' }}>
|
||||
|
||||
{contextHolder}
|
||||
<div style={{ padding: '22px 15px 0 15px', background: 'var(--color-light)' }}>
|
||||
<div style={{ padding: '22px 15px 10px 15px', background: 'var(--color-light)' }}>
|
||||
<div style={{ padding: '14px 19px', background: '#F3F3F3', color: '#A3A3A3', fontSize: '14px' }}>
|
||||
联系人用于接受平台相关业务办理进度的通知信息与各类协议的线下签章等工作。
|
||||
</div>
|
||||
@ -216,7 +218,7 @@ export default function ContactPeople(props: any) {
|
||||
</div>
|
||||
<div className='showInfo' style={{ display: props.isShow ? 'block' : 'none' }}>
|
||||
{applyContactName ? (
|
||||
<div style={{display:'flex'}}>
|
||||
<div style={{ display: 'flex' }}>
|
||||
<div style={{ marginRight: '22px' }}>当前联系人:</div>
|
||||
<div style={{ display: applyContactName == '' ? 'block' : 'none' }}>请选择联系人</div>
|
||||
<div style={{ display: applyContactName == '' ? 'none' : 'block' }}>
|
||||
@ -224,7 +226,7 @@ export default function ContactPeople(props: any) {
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div style={{display:'flex'}}>
|
||||
<div style={{ display: 'flex' }}>
|
||||
<div style={{ marginRight: '22px' }}>当前联系人:</div>
|
||||
<div style={{ display: props.concatPeopleInfo.applyContactName == '' ? 'block' : 'none' }}>请选择联系人</div>
|
||||
<div style={{ display: props.concatPeopleInfo.applyContactName == '' ? 'none' : 'block' }}>
|
||||
@ -248,7 +250,7 @@ export default function ContactPeople(props: any) {
|
||||
pagination={{
|
||||
defaultPageSize: 5, // 设置默认一页显示 5 条数据
|
||||
}}
|
||||
style={{ textAlign: 'center' }} // 设置表格内容居中显示
|
||||
style={{ textAlign: 'center', height: 390 }} // 设置表格内容居中显示
|
||||
rowKey="projContactId" // 指定数据项的唯一标识符
|
||||
>
|
||||
<Column title="联系人" dataIndex="name" />
|
||||
@ -315,7 +317,7 @@ export default function ContactPeople(props: any) {
|
||||
pagination={{
|
||||
defaultPageSize: 5, // 设置默认一页显示 5 条数据
|
||||
}}
|
||||
style={{ textAlign: 'center' }} // 设置表格内容居中显示
|
||||
style={{ textAlign: 'center', height: 390 }} // 设置表格内容居中显示
|
||||
rowKey="projContactId" // 指定数据项的唯一标识符
|
||||
>
|
||||
<Column title="联系人" dataIndex="name" />
|
||||
@ -380,31 +382,31 @@ export default function ContactPeople(props: any) {
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div style={{ display: props.isShow ? 'block' : 'none', position: 'absolute', right: 0, bottom: 10 }}>
|
||||
<div className="belongPeopleModal-btn" style={{ display: 'flex', justifyContent: 'flex-end' }} >
|
||||
<Button onClick={() => {
|
||||
props.closeModal()
|
||||
}}>取消</Button>
|
||||
<Button style={{
|
||||
marginLeft: 20
|
||||
}} type="primary"
|
||||
onClick={() => {
|
||||
props.setConcatPeopleInfo({
|
||||
applyConcatId,
|
||||
applyContactCsaNo,
|
||||
applyContactEmail,
|
||||
applyContactName,
|
||||
applyContactPhone,
|
||||
applyContactCompany
|
||||
})
|
||||
props.setConcatValue(applyContactName)
|
||||
<div style={{ display: props.isShow ? 'block' : 'none' }}>
|
||||
<div className="belongPeopleModal-btn" style={{ display: 'flex', justifyContent: 'flex-end' }} >
|
||||
<Button onClick={() => {
|
||||
props.closeModal()
|
||||
}}
|
||||
>确定</Button>
|
||||
}}>取消</Button>
|
||||
<Button style={{
|
||||
marginLeft: 20
|
||||
}} type="primary"
|
||||
onClick={() => {
|
||||
props.setConcatPeopleInfo({
|
||||
applyConcatId,
|
||||
applyContactCsaNo,
|
||||
applyContactEmail,
|
||||
applyContactName,
|
||||
applyContactPhone,
|
||||
applyContactCompany
|
||||
})
|
||||
props.setConcatValue(applyContactName)
|
||||
props.closeModal()
|
||||
}}
|
||||
>确定</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 选择创建/编辑/查看联系人弹框 lyp*/}
|
||||
<Modal
|
||||
destroyOnClose
|
||||
|
@ -54,6 +54,10 @@ export default function Head() {
|
||||
const [icStatus, setIcStatus] = useState('')
|
||||
// 邀请码返利比例
|
||||
const [icRebateRatio, seticRebateRatio] = useState('')
|
||||
// 全托管分账
|
||||
const [icPriceAll,seticPriceAll] = useState(0)
|
||||
// 写材料分账
|
||||
const [icPriceMaterial,seticPriceMaterial] = useState(0)
|
||||
// 获取邀请码申请状态
|
||||
const getIcStatus = () => {
|
||||
get<any>({
|
||||
@ -80,6 +84,8 @@ export default function Head() {
|
||||
setInvNum(data.ic)
|
||||
setBindingInvNum(data.relationIc)
|
||||
seticRebateRatio(data.icRebateRatio)
|
||||
seticPriceAll(Number(data.icPriceAll)/100 * Number(data.icRebateRatio)/100)
|
||||
seticPriceMaterial(Number(data.icPriceMaterial)/100* Number(data.icRebateRatio)/100)
|
||||
if (data.ic == '') {
|
||||
getIcStatus()
|
||||
}
|
||||
@ -289,9 +295,9 @@ export default function Head() {
|
||||
}
|
||||
});
|
||||
}, [globalContext.user]);
|
||||
useEffect(()=>{
|
||||
useEffect(() => {
|
||||
getUnRead()
|
||||
},[])
|
||||
}, [])
|
||||
const items: MenuProps['items'] = [
|
||||
{
|
||||
key: 'userinfo',
|
||||
@ -421,11 +427,11 @@ export default function Head() {
|
||||
<QuestionCircleOutlined />
|
||||
</div>
|
||||
<div className='headLine'></div>
|
||||
<div className='head-notice' onClick={() => {
|
||||
<div className='head-notice' onClick={() => {
|
||||
setNoticeModal(true)
|
||||
}}>
|
||||
<BellOutlined />
|
||||
<div className='noticeNum' style={{display:unRead == 0?'none':'block'}}>{unRead}</div>
|
||||
<div className='noticeNum' style={{ display: unRead == 0 ? 'none' : 'block' }}>{unRead}</div>
|
||||
</div>
|
||||
<div className='headLine'></div>
|
||||
|
||||
@ -619,8 +625,16 @@ export default function Head() {
|
||||
{/* <div style={{ display: icRebateRatio ? 'block' : 'none' }}> */}
|
||||
<div className='invBox-bot'>
|
||||
<div className='invBox-tips' >
|
||||
{icRebateRatio ? `邀请码分享给他人,即可获得${icRebateRatio}%佣金` : '邀请码分享给他人,即可获得佣金'}
|
||||
{/* 邀请码分享给他人,即可获得{icRebateRatio}%佣金 */}
|
||||
{/* {icRebateRatio ? `邀请码分享给他人,即可获得${icRebateRatio}%佣金` : '邀请码分享给他人,即可获得佣金'} */}
|
||||
{icRebateRatio ?
|
||||
(<div>
|
||||
<div> 邀请码分享给他人,即可获得{icRebateRatio}%佣金</div>
|
||||
<div style={{paddingBottom:20}}>全托管佣金:{icPriceAll}元,写材料佣金:{icPriceMaterial}元</div>
|
||||
</div>
|
||||
|
||||
)
|
||||
: (<>邀请码分享给他人,即可获得佣金</>)}
|
||||
{/* */}
|
||||
|
||||
</div>
|
||||
{/* <div className='invBox-tips'>
|
||||
|
@ -3,13 +3,15 @@ import type { MessageInstance } from "antd/es/message/interface";
|
||||
|
||||
export const Axios = axios;
|
||||
|
||||
axios.defaults.baseURL = 'http://192.168.0.15:7025/copyright';
|
||||
// axios.defaults.baseURL = 'http://192.168.0.15:7025/copyright';
|
||||
axios.defaults.baseURL = 'http://192.168.0.103:7025/copyright';
|
||||
// axios.defaults.baseURL = 'http://192.168.43.145:7025/copyright';
|
||||
// axios.defaults.baseURL = 'http://127.0.0.1:7025/copyright';
|
||||
// axios.defaults.baseURL = 'https://www.aimzhu.com/copyright';
|
||||
// axios.defaults.baseURL = '/copyright';
|
||||
// export const WebSocketBaseUrl: string = 'ws://127.0.0.1:7025/copyright';
|
||||
export const WebSocketBaseUrl: string = 'ws://192.168.0.15:7025/copyright';
|
||||
// export const WebSocketBaseUrl: string = 'ws://192.168.0.15:7025/copyright';
|
||||
export const WebSocketBaseUrl: string = 'ws://192.168.0.103:7025/copyright';
|
||||
// export const WebSocketBaseUrl: string = '/copyright';
|
||||
export const DevUserId: string = '80d3365e-0597-4988-979e-18ef1c3ec671'; // 18634604067
|
||||
// export const DevUserId: string = 'eb9a82a6-6ed3-4ba0-90e6-d836cefff915'; // 15042810561
|
||||
|
Loading…
Reference in New Issue
Block a user