🦀️ fix: 修复bug,key批次支持修改链接有效期
This commit is contained in:
parent
227494c89b
commit
fc65730e3b
|
@ -156,7 +156,7 @@ export default class acclist extends React.Component {
|
||||||
[4, 5, 8].includes(params.keyBatch?.status) &&
|
[4, 5, 8].includes(params.keyBatch?.status) &&
|
||||||
[3, 5, 4].includes(params.keyBatch.plan?.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 = (
|
element = (
|
||||||
<span className="grid-link" style={{}} onClick={(e) => this.addCodeFunction(1, params)}>
|
<span className="grid-link" style={{}} onClick={(e) => this.addCodeFunction(1, params)}>
|
||||||
复制
|
复制
|
||||||
|
|
|
@ -1206,7 +1206,6 @@ const UseKeyAddEdit = () => {
|
||||||
<FormItem labelname="key码有效期" prop="expiration_type" id="expiration_type">
|
<FormItem labelname="key码有效期" prop="expiration_type" id="expiration_type">
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
value={model.expiration_type}
|
value={model.expiration_type}
|
||||||
disabled={state.KeyPcType === "1"}
|
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setModel({
|
setModel({
|
||||||
expiration_value: "",
|
expiration_value: "",
|
||||||
|
@ -1223,7 +1222,6 @@ const UseKeyAddEdit = () => {
|
||||||
{model.expiration_type === "2" ? (
|
{model.expiration_type === "2" ? (
|
||||||
<FormItem labelname="固定时间段">
|
<FormItem labelname="固定时间段">
|
||||||
<DateRangePicker
|
<DateRangePicker
|
||||||
disabled={state.KeyPcType === "1"}
|
|
||||||
className="zent-datepicker-plan"
|
className="zent-datepicker-plan"
|
||||||
showTime={{
|
showTime={{
|
||||||
format: "HH:mm:ss",
|
format: "HH:mm:ss",
|
||||||
|
@ -1244,7 +1242,6 @@ const UseKeyAddEdit = () => {
|
||||||
{model.expiration_type === "3" ? (
|
{model.expiration_type === "3" ? (
|
||||||
<FormItem labelname="接口调取后有效期">
|
<FormItem labelname="接口调取后有效期">
|
||||||
<Input
|
<Input
|
||||||
disabled={state.KeyPcType === "1"}
|
|
||||||
placeholder="请输入天数"
|
placeholder="请输入天数"
|
||||||
value={model.expiration_value}
|
value={model.expiration_value}
|
||||||
width={120}
|
width={120}
|
||||||
|
|
Loading…
Reference in New Issue