立减金组件 回显样式控制

This commit is contained in:
wangsongsole 2022-07-26 16:41:19 +08:00
parent 13e7aaa317
commit 7517a3ca07
1 changed files with 5 additions and 3 deletions

View File

@ -133,11 +133,11 @@ export default class addKnockGold extends Component {
/* 可用时间段 添加和删除组件控制*/ /* 可用时间段 添加和删除组件控制*/
addOrMoveFunction(index, key, valueKey, isLimit, err) { addOrMoveFunction(index, key, valueKey, isLimit, err) {
if (this.props?.data?.id ? true : false) return
return ( return (
<> <>
{index === valueKey.length - 1 ? ( {index === valueKey.length - 1 ? (
<p <p
disabled={this.props?.data?.id ? true : false}
className='add' className='add'
onClick={() => { onClick={() => {
if (isLimit || valueKey.length < 3) { if (isLimit || valueKey.length < 3) {
@ -153,7 +153,6 @@ export default class addKnockGold extends Component {
) : null} ) : null}
{index !== 0 ? ( {index !== 0 ? (
<p <p
disabled={this.props?.data?.id ? true : false}
className='move' className='move'
onClick={() => { onClick={() => {
const model = valueKey const model = valueKey
@ -1169,7 +1168,10 @@ export default class addKnockGold extends Component {
onChange={(va) => this.onHandleChange(va, 'ruleWeek')} onChange={(va) => this.onHandleChange(va, 'ruleWeek')}
style={{ marginLeft: '25px' }}> style={{ marginLeft: '25px' }}>
{week.map((week) => ( {week.map((week) => (
<Checkbox value={week.text} key={week.key}> <Checkbox
disabled={this.props?.data?.id ? true : false}
value={week.text}
key={week.key}>
{week.text} {week.text}
</Checkbox> </Checkbox>
))} ))}