显示当前进度
This commit is contained in:
parent
f2202f1674
commit
4f5ad40fbf
@ -50,6 +50,10 @@ import DisplayOrderShow from '../../route/proj/edit/ProjConfigMenuListShow.tsx'
|
|||||||
// }
|
// }
|
||||||
// type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0];
|
// type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0];
|
||||||
export default function ProjEditAll() {
|
export default function ProjEditAll() {
|
||||||
|
// 进度提示弹窗
|
||||||
|
const [progressModal, setprogressModal] = useState(true)
|
||||||
|
// 当前进度
|
||||||
|
const [progress, setprogress] = useState('')
|
||||||
//证书img
|
//证书img
|
||||||
const [certificate, setcertificate] = useState('')
|
const [certificate, setcertificate] = useState('')
|
||||||
// 回复信息
|
// 回复信息
|
||||||
@ -347,6 +351,7 @@ export default function ProjEditAll() {
|
|||||||
onSuccess({ data }) {
|
onSuccess({ data }) {
|
||||||
console.log('嘻嘻', data);
|
console.log('嘻嘻', data);
|
||||||
setcertificate(data.certificates)
|
setcertificate(data.certificates)
|
||||||
|
setprogress(data.progress == 'PRODUCTION' ? '制作中' : data.progress == 'SUBMIT_FOR_REVIEW' ? '提交审核' : data.progress == 'DONE' ? '已完成' : '')
|
||||||
console.log('状态判断', data.pay.chargeAdditionals);
|
console.log('状态判断', data.pay.chargeAdditionals);
|
||||||
// setShowZpi(true)
|
// setShowZpi(true)
|
||||||
// const isShow = data.pay.chargeAdditionals.includes('PKG')
|
// const isShow = data.pay.chargeAdditionals.includes('PKG')
|
||||||
@ -587,9 +592,9 @@ export default function ProjEditAll() {
|
|||||||
|
|
||||||
<CardProjDownload title="证书下载"
|
<CardProjDownload title="证书下载"
|
||||||
desc="点击下载证书"
|
desc="点击下载证书"
|
||||||
canBtnClick={certificate!=''}
|
canBtnClick={certificate != ''}
|
||||||
handleDownload={() => {
|
handleDownload={() => {
|
||||||
window.open(downloadUrl(certificate,false),'_blank')
|
window.open(downloadUrl(certificate, false), '_blank')
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -609,7 +614,7 @@ export default function ProjEditAll() {
|
|||||||
<div style={{ display: questionList.length == 0 ? 'block' : 'none' }} className='editAll-boxNo-con'>
|
<div style={{ display: questionList.length == 0 ? 'block' : 'none' }} className='editAll-boxNo-con'>
|
||||||
暂无数据
|
暂无数据
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginTop: 50, maxHeight: `${height - 230}px`, overflow: 'auto',width:'100%' }}>
|
<div style={{ marginTop: 50, maxHeight: `${height - 230}px`, overflow: 'auto', width: '100%' }}>
|
||||||
{questionList.length == 0 ? (<>
|
{questionList.length == 0 ? (<>
|
||||||
</>) : (<>
|
</>) : (<>
|
||||||
{questionList.map((item, index) => (
|
{questionList.map((item, index) => (
|
||||||
@ -636,7 +641,7 @@ export default function ProjEditAll() {
|
|||||||
<span key={index}>
|
<span key={index}>
|
||||||
<div style={{ cursor: 'pointer', color: 'var(--color-blue)', wordWrap: 'break-word', widows: '100%' }} onClick={() => {
|
<div style={{ cursor: 'pointer', color: 'var(--color-blue)', wordWrap: 'break-word', widows: '100%' }} onClick={() => {
|
||||||
// window.open(downloadUrl(item.key))
|
// window.open(downloadUrl(item.key))
|
||||||
window.open(downloadUrl(item.key,false),'_blank')
|
window.open(downloadUrl(item.key, false), '_blank')
|
||||||
}}>{item.value} </div>
|
}}>{item.value} </div>
|
||||||
|
|
||||||
{/* <span style={{ marginRight: 5, visibility: index + 1 == JSON.parse(item.aFiles).length ? 'hidden' : 'visible' }}>,</span> */}
|
{/* <span style={{ marginRight: 5, visibility: index + 1 == JSON.parse(item.aFiles).length ? 'hidden' : 'visible' }}>,</span> */}
|
||||||
@ -657,7 +662,7 @@ export default function ProjEditAll() {
|
|||||||
<span key={index}>
|
<span key={index}>
|
||||||
<div style={{ cursor: 'pointer', color: 'var(--color-blue)' }} onClick={() => {
|
<div style={{ cursor: 'pointer', color: 'var(--color-blue)' }} onClick={() => {
|
||||||
// window.open(downloadUrl(item.key))
|
// window.open(downloadUrl(item.key))
|
||||||
window.open(downloadUrl(item.key,false),'_blank')
|
window.open(downloadUrl(item.key, false), '_blank')
|
||||||
}}>{item.value} </div>
|
}}>{item.value} </div>
|
||||||
|
|
||||||
{/* <span style={{ marginRight: 5, visibility: index + 1 == JSON.parse(item.aFiles).length ? 'hidden' : 'visible' }}>,</span> */}
|
{/* <span style={{ marginRight: 5, visibility: index + 1 == JSON.parse(item.aFiles).length ? 'hidden' : 'visible' }}>,</span> */}
|
||||||
@ -1091,6 +1096,29 @@ export default function ProjEditAll() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
<Modal title=""
|
||||||
|
destroyOnClose={true}
|
||||||
|
open={progressModal}
|
||||||
|
|
||||||
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
height: `${height}px`,
|
||||||
|
|
||||||
|
}}
|
||||||
|
|
||||||
|
footer={null}
|
||||||
|
onCancel={() => {
|
||||||
|
setprogressModal(false);
|
||||||
|
}}>
|
||||||
|
<div style={{
|
||||||
|
width: 700,
|
||||||
|
// marginTop: 20
|
||||||
|
}}>
|
||||||
|
当前进度:{progress}
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user