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