| | |
| | | that.setData({ |
| | | submitData: { |
| | | ...that.data.submitData, |
| | | [key]: wordsResult |
| | | [key]: that.data.submitData.caseDes + wordsResult |
| | | }, |
| | | [keyNum]: wordsResult.length |
| | | [keyNum]: (that.data.submitData.caseDes + wordsResult).length |
| | | }); |
| | | } |
| | | }, |
| | |
| | | onShow: function () { |
| | | if (this.data.oneData?.trueName) { |
| | | let list = this.data.oneList; |
| | | console.log('list', list); |
| | | console.log('this.data.editIndex', this.data.editIndex); |
| | | console.log('this.data.oneData', this.data.oneData); |
| | | if (this.data.editIndex) { |
| | | list[this.data.editIndex] = this.data.oneData; |
| | | } else { |
| | |
| | | this.setData({ |
| | | submitData: { |
| | | ...this.data.submitData, |
| | | [this.data.twoKey]: this.data.twoValue, |
| | | [this.data.twoKey]: this.data.submitData.caseDes + this.data.twoValue, |
| | | }, |
| | | [this.data.twoKey + 'Num']: this.data.twoValue.length, |
| | | [this.data.twoKey + 'Num']: (this.data.submitData.caseDes + this.data.twoValue).length, |
| | | twoValue: '', |
| | | twoKey: '' |
| | | }) |