| | |
| | | :rows="2" |
| | | type="textarea" |
| | | id="questionText" |
| | | maxlength="66" |
| | | show-word-limit |
| | | placeholder="请输入内容" |
| | | v-model.sync="indexform.questionText" |
| | |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="无匹配文本" prop="nomatchtext"> |
| | | <el-form-item label="无匹配文本" prop="noMatchText"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | id="nomatchtext" |
| | | id="noMatchText" |
| | | placeholder="请输入内容" |
| | | v-model.sync="indexform.nomatchtext" |
| | | @focus="handleInput('nomatchtext')" |
| | | maxlength="66" |
| | | v-model.sync="indexform.noMatchText" |
| | | @focus="handleInput('noMatchText')" |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> </el-col |
| | |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="无声文本" prop="sliencetext"> |
| | | <el-form-item label="无声文本" prop="slienceText"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | id="sliencetext" |
| | | id="slienceText" |
| | | placeholder="请输入内容" |
| | | v-model.sync="indexform.sliencetext" |
| | | @focus="handleInput('sliencetext')" |
| | | maxlength="66" |
| | | v-model.sync="indexform.slienceText" |
| | | @focus="handleInput('slienceText')" |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> </el-col |
| | |
| | | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="听不清文本" prop="noclearlytext"> |
| | | <el-form-item label="听不清文本" prop="noClearlyText"> |
| | | <el-input |
| | | type="textarea" |
| | | id="noclearlytext" |
| | | id="noClearlyText" |
| | | :rows="2" |
| | | placeholder="请输入内容" |
| | | @focus="handleInput('noclearlytext')" |
| | | v-model.sync="indexform.noclearlytext" |
| | | maxlength="66" |
| | | @focus="handleInput('noClearlyText')" |
| | | v-model.sync="indexform.noClearlyText" |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> </el-col |
| | |
| | | //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index) |
| | | if (this.currentInputId == "questionText") { |
| | | inputValueArr = this.indexform.questionText.split(""); |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | inputValueArr = this.indexform.nomatchtext.split(""); |
| | | } else if (this.currentInputId == "sliencetext") { |
| | | inputValueArr = this.indexform.sliencetext.split(""); |
| | | } else if (this.currentInputId == "noclearlytext") { |
| | | inputValueArr = this.indexform.noclearlytext.split(""); |
| | | } else if (this.currentInputId == "noMatchText") { |
| | | inputValueArr = this.indexform.noMatchText.split(""); |
| | | } else if (this.currentInputId == "slienceText") { |
| | | inputValueArr = this.indexform.slienceText.split(""); |
| | | } else if (this.currentInputId == "noClearlyText") { |
| | | inputValueArr = this.indexform.noClearlyText.split(""); |
| | | } else if (this.currentInputId == "submoduletext") { |
| | | inputValueArr = this.indexform.submoduletext.split(""); |
| | | } else { |
| | |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "questionText") { |
| | | this.indexform.questionText = inputValueArr; |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | this.indexform.nomatchtext = inputValueArr; |
| | | } else if (this.currentInputId == "sliencetext") { |
| | | this.indexform.sliencetext = inputValueArr; |
| | | } else if (this.currentInputId == "noclearlytext") { |
| | | this.indexform.noclearlytext = inputValueArr; |
| | | } else if (this.currentInputId == "noMatchText") { |
| | | this.indexform.noMatchText = inputValueArr; |
| | | } else if (this.currentInputId == "slienceText") { |
| | | this.indexform.slienceText = inputValueArr; |
| | | } else if (this.currentInputId == "noClearlyText") { |
| | | this.indexform.noClearlyText = inputValueArr; |
| | | } else if (this.currentInputId == "submoduletext") { |
| | | this.indexform.submoduletext = inputValueArr; |
| | | } else { |