♻️ refactor: 调整字段
This commit is contained in:
parent
9998d0173a
commit
7112ac7e93
|
@ -16,7 +16,6 @@ export default ({ data = [], onColes }) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (data.length < 2) {
|
||||
console.log(1)
|
||||
setModel({ ...data[0].expiration_value })
|
||||
}
|
||||
}, [data])
|
||||
|
@ -73,7 +72,7 @@ export default ({ data = [], onColes }) => {
|
|||
<>
|
||||
<Form ref={ref} model={model} 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 labelname="key码有效期:" prop="expiration_type" id="keyDelay">
|
||||
<Radio.Group
|
||||
|
|
|
@ -587,7 +587,7 @@ export default class acclist extends React.Component {
|
|||
)
|
||||
}
|
||||
if (com == "delay") {
|
||||
return <span>{keyDelayFunc(rowData.expiration_value)}</span>
|
||||
return <span>{keyDelayFunc(rowData.expiration_conf)}</span>
|
||||
}
|
||||
if (com == "title") {
|
||||
return (
|
||||
|
|
|
@ -740,7 +740,7 @@ const UseKeyList = () => {
|
|||
)
|
||||
}
|
||||
if (com == "delay") {
|
||||
return <span>{keyDelayFunc(rowData.expiration_value)}</span>
|
||||
return <span>{keyDelayFunc(rowData.expiration_conf)}</span>
|
||||
}
|
||||
if (com == "status") {
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue