From 4bc27ca4c7eb5e6ceed68036b9dda7d80c69ead6 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 25 四月 2024 16:49:15 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/verbaltrick/particulars/index.vue | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue index a3a6804..a97de91 100644 --- a/src/views/repositoryai/verbaltrick/particulars/index.vue +++ b/src/views/repositoryai/verbaltrick/particulars/index.vue @@ -265,15 +265,16 @@ > <el-row> <el-col :span="24"> - <el-form-item label="闂鏂囨湰" prop="questiontext"> + <el-form-item label="闂鏂囨湰" prop="questionText"> <el-input + :rows="2" type="textarea" - :rows="2" + id="questionText" + maxlength="66" + show-word-limit placeholder="璇疯緭鍏ュ唴瀹�" - id="questiontext" v-model.sync="indexform.questionText" - @focus="handleInput('questiontext')" - maxlength="30" + @focus="handleInput('questionText')" /> </el-form-item> </el-col ></el-row> @@ -290,7 +291,8 @@ > <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button> </el-upload> - <!-- <el-input v-model="indexform.userName" maxlength="30" /> --> + <!-- <el-input v-model="indexform.userName" maxlength="66" + show-word-limit /> --> </el-form-item> </el-col></el-row > @@ -304,7 +306,8 @@ placeholder="璇疯緭鍏ュ唴瀹�" v-model.sync="indexform.nomatchtext" @focus="handleInput('nomatchtext')" - maxlength="30" + maxlength="66" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -334,7 +337,8 @@ placeholder="璇疯緭鍏ュ唴瀹�" v-model.sync="indexform.sliencetext" @focus="handleInput('sliencetext')" - maxlength="30" + maxlength="66" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -364,7 +368,8 @@ placeholder="璇疯緭鍏ュ唴瀹�" v-model.sync="indexform.submoduletext" @focus="handleInput('submoduletext')" - maxlength="30" + maxlength="66" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -394,7 +399,8 @@ placeholder="璇疯緭鍏ュ唴瀹�" @focus="handleInput('noclearlytext')" v-model.sync="indexform.noclearlytext" - maxlength="30" + maxlength="66" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -919,8 +925,8 @@ let inputValueArr = ""; let el = document.querySelector("#" + this.currentInputId); //el.selectionStart; 杩欏氨鏄綋鍓嶅厜鏍囨墍鍦ㄧ殑浣嶇疆锛堝瓧绗︿覆涓瓧绗︾殑index锛� - if (this.currentInputId == "questiontext") { - inputValueArr = this.indexform.questiontext.split(""); + if (this.currentInputId == "questionText") { + inputValueArr = this.indexform.questionText.split(""); } else if (this.currentInputId == "nomatchtext") { inputValueArr = this.indexform.nomatchtext.split(""); } else if (this.currentInputId == "sliencetext") { @@ -941,7 +947,7 @@ // 鎶婃暟缁勯噸鏂拌浆鎹负瀛楃涓插苟璧嬪�� inputValueArr = inputValueArr.join(""); console.log(inputValueArr); - if (this.currentInputId == "questiontext") { + if (this.currentInputId == "questionText") { this.indexform.questionText = inputValueArr; } else if (this.currentInputId == "nomatchtext") { this.indexform.nomatchtext = inputValueArr; -- Gitblit v1.9.3