🦀️ fix: 修复bug,key批次支持修改链接有效期

This commit is contained in:
wangsongsole 2024-04-10 20:29:26 +08:00
parent 227494c89b
commit fc65730e3b
2 changed files with 1 additions and 4 deletions

View File

@ -156,7 +156,7 @@ export default class acclist extends React.Component {
[4, 5, 8].includes(params.keyBatch?.status) &&
[3, 5, 4].includes(params.keyBatch.plan?.status))
if (isCopy && params.keyBatch.plan.settlement_type === 0) {
if (isCopy && params.keyBatch?.plan.settlement_type === 0) {
element = (
<span className="grid-link" style={{}} onClick={(e) => this.addCodeFunction(1, params)}>
复制

View File

@ -1206,7 +1206,6 @@ const UseKeyAddEdit = () => {
<FormItem labelname="key码有效期" prop="expiration_type" id="expiration_type">
<Radio.Group
value={model.expiration_type}
disabled={state.KeyPcType === "1"}
onChange={(e) => {
setModel({
expiration_value: "",
@ -1223,7 +1222,6 @@ const UseKeyAddEdit = () => {
{model.expiration_type === "2" ? (
<FormItem labelname="固定时间段">
<DateRangePicker
disabled={state.KeyPcType === "1"}
className="zent-datepicker-plan"
showTime={{
format: "HH:mm:ss",
@ -1244,7 +1242,6 @@ const UseKeyAddEdit = () => {
{model.expiration_type === "3" ? (
<FormItem labelname="接口调取后有效期">
<Input
disabled={state.KeyPcType === "1"}
placeholder="请输入天数"
value={model.expiration_value}
width={120}