♻️ refactor: 修改字段
This commit is contained in:
parent
7df4a9b798
commit
f8c19a3633
|
@ -107,7 +107,7 @@ export default class addKnockGold extends Component {
|
|||
receive_mode: 1,
|
||||
is_webview: 0,
|
||||
timer_show: 1,
|
||||
instructionNotice: noticeZFB
|
||||
notice: noticeZFB
|
||||
},
|
||||
subjectList: [],
|
||||
TimeDiffer: "",
|
||||
|
@ -140,7 +140,7 @@ export default class addKnockGold extends Component {
|
|||
model.entry_time[1] = this.props.data.time_limit.effect_time.end_time
|
||||
model.timer_show = Number(this.props.data.time_limit.timer_show) || 1
|
||||
model.instruction = this.props.data.instruction
|
||||
model.instructionNotice = this.props.data.instructionNotice
|
||||
model.notice = this.props.data.notice
|
||||
|
||||
model.fixed_time[0] = this.props.data.time_limit.use_time.fiexd_time?.start_time
|
||||
model.fixed_time[1] = this.props.data.time_limit.use_time.fiexd_time?.end_time
|
||||
|
@ -511,7 +511,7 @@ export default class addKnockGold extends Component {
|
|||
transformData.natural_limit = this.state.model.natural_limit
|
||||
transformData.brush_limit = this.state.model.brush_limit
|
||||
transformData.instruction = this.state.model.instruction
|
||||
transformData.instructionNotice = this.state.model.instructionNotice
|
||||
transformData.notice = this.state.model.notice
|
||||
transformData.early_per = this.state.model.early_per.filter((item) => item)
|
||||
transformData.early_notifier = this.state.model.early_notifier.map(({ text, key }) => ({
|
||||
real_name: text,
|
||||
|
@ -798,10 +798,10 @@ export default class addKnockGold extends Component {
|
|||
if (value == 1) {
|
||||
this.onHandleChange(defaultInstructionZfb, "instruction")
|
||||
if (this.state.model.receive_mode == 1) {
|
||||
this.onHandleChange(noticeZFB, "instructionNotice")
|
||||
this.onHandleChange(noticeZFB, "notice")
|
||||
}
|
||||
} else if (value == 2) {
|
||||
this.onHandleChange(noticeWX, "instructionNotice")
|
||||
this.onHandleChange(noticeWX, "notice")
|
||||
this.onHandleChange(defaultInstructionWx, "instruction")
|
||||
} else {
|
||||
this.onHandleChange(defaultInstructionYsf, "instruction")
|
||||
|
@ -1612,15 +1612,15 @@ export default class addKnockGold extends Component {
|
|||
<Form ref="form3">
|
||||
{this.state.model.channel == 2 ||
|
||||
(this.state.model.channel == 1 && this.state.model.receive_mode == 1) ? (
|
||||
<FormItem id="instructionNotice" labelname="使用须知" required="">
|
||||
<FormItem id="notice" labelname="使用须知" required="">
|
||||
<WangEditor
|
||||
pageType="detaileditor1"
|
||||
setEdittext={(text) => {
|
||||
this.onHandleChange(text, "instructionNotice")
|
||||
this.onHandleChange(text, "notice")
|
||||
}}
|
||||
height={125}
|
||||
width="520px"
|
||||
text={this.state.model.instructionNotice}
|
||||
text={this.state.model.notice}
|
||||
limitLength={200}
|
||||
key={this.state.model.channel + 1}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue