采集码
This commit is contained in:
parent
5cb96d2110
commit
7ab145e53f
|
|
@ -18,6 +18,7 @@ export default function Render(props) {
|
|||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
padding: '48px',
|
||||
minHeight:600,
|
||||
}}>
|
||||
<div style={{
|
||||
maxWidth: 800
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ export default OakComponent({
|
|||
return;
|
||||
}
|
||||
const { pathname, props, state } = redirectTo;
|
||||
const { oakId } = this.props;
|
||||
const url = pathname.substring(0, 1) === '/' ? pathname : `/${pathname}`;
|
||||
// if (isTabBar) {
|
||||
// this.switchTab(
|
||||
|
|
@ -83,6 +84,7 @@ export default OakComponent({
|
|||
url,
|
||||
...(props || {}),
|
||||
name: nickname,
|
||||
parasiteId: oakId,
|
||||
}, state);
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -85,7 +85,8 @@ export default function render(props) {
|
|||
{
|
||||
label: '失效',
|
||||
action: 'cancel',
|
||||
// alerted: true,
|
||||
alerted: true,
|
||||
alertContent: '确实失效此采集码吗?',
|
||||
show: record['#oakLegalActions']?.includes('cancel'),
|
||||
onClick: () => {
|
||||
updateItem({ expired: true }, record.id, 'cancel');
|
||||
|
|
|
|||
|
|
@ -43,10 +43,11 @@ export default function Render(
|
|||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
padding: '48px',
|
||||
minHeight: 560
|
||||
}}
|
||||
>
|
||||
<div style={{
|
||||
maxWidth: 800
|
||||
maxWidth: 800,
|
||||
}}
|
||||
>
|
||||
<Alert message="将二维码或下方链接发送给使用者" type="info" />
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ export default OakComponent({
|
|||
return;
|
||||
}
|
||||
const { pathname, props, state } = redirectTo;
|
||||
const { oakId } = this.props;
|
||||
const url =
|
||||
pathname.substring(0, 1) === '/' ? pathname : `/${pathname}`;
|
||||
|
||||
|
|
@ -97,6 +98,7 @@ export default OakComponent({
|
|||
url,
|
||||
...(props || {}),
|
||||
name: nickname,
|
||||
parasiteId: oakId,
|
||||
},
|
||||
state
|
||||
);
|
||||
|
|
|
|||
|
|
@ -86,34 +86,6 @@ export default function render(
|
|||
);
|
||||
},
|
||||
},
|
||||
// {
|
||||
// dataIndex: 'op',
|
||||
// width: 200,
|
||||
// title: '操作',
|
||||
// align: 'center',
|
||||
// render: (value, record, index) => {
|
||||
// return (
|
||||
// <>
|
||||
// <Button
|
||||
// type="link"
|
||||
// onClick={() => {
|
||||
// updateItem(
|
||||
// {
|
||||
// expired: true
|
||||
// },
|
||||
// record.id!,
|
||||
// 'cancel'
|
||||
// );
|
||||
// execute();
|
||||
// }}
|
||||
// >
|
||||
// 失效
|
||||
// </Button>
|
||||
// </>
|
||||
// );
|
||||
// },
|
||||
// fixed: 'right',
|
||||
// },
|
||||
{
|
||||
width: 200,
|
||||
title: '操作',
|
||||
|
|
@ -129,7 +101,8 @@ export default function render(
|
|||
{
|
||||
label: '失效',
|
||||
action: 'cancel',
|
||||
// alerted: true,
|
||||
alerted: true,
|
||||
alertContent: '确实失效此采集码吗?',
|
||||
show: record[
|
||||
'#oakLegalActions'
|
||||
]?.includes('cancel'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue