♻️ refactor: 调整字段

This commit is contained in:
wangsongsole 2024-04-11 16:52:55 +08:00
parent 9998d0173a
commit 7112ac7e93
3 changed files with 3 additions and 4 deletions

View File

@ -16,7 +16,6 @@ export default ({ data = [], onColes }) => {
useEffect(() => { useEffect(() => {
if (data.length < 2) { if (data.length < 2) {
console.log(1)
setModel({ ...data[0].expiration_value }) setModel({ ...data[0].expiration_value })
} }
}, [data]) }, [data])
@ -73,7 +72,7 @@ export default ({ data = [], onColes }) => {
<> <>
<Form ref={ref} model={model} id="keyDelay"> <Form ref={ref} model={model} id="keyDelay">
<FormItem labelname="当前key批次有效期:" id="keyDelay"> <FormItem labelname="当前key批次有效期:" id="keyDelay">
<p>{keyDelayFunc(data[0].batch_expiration_value)}</p> <p>{keyDelayFunc(data[0].batch_expiration_conf)}</p>
</FormItem> </FormItem>
<FormItem labelname="key码有效期:" prop="expiration_type" id="keyDelay"> <FormItem labelname="key码有效期:" prop="expiration_type" id="keyDelay">
<Radio.Group <Radio.Group

View File

@ -587,7 +587,7 @@ export default class acclist extends React.Component {
) )
} }
if (com == "delay") { if (com == "delay") {
return <span>{keyDelayFunc(rowData.expiration_value)}</span> return <span>{keyDelayFunc(rowData.expiration_conf)}</span>
} }
if (com == "title") { if (com == "title") {
return ( return (

View File

@ -740,7 +740,7 @@ const UseKeyList = () => {
) )
} }
if (com == "delay") { if (com == "delay") {
return <span>{keyDelayFunc(rowData.expiration_value)}</span> return <span>{keyDelayFunc(rowData.expiration_conf)}</span>
} }
if (com == "status") { if (com == "status") {
return ( return (