From 7d77cffcb35dc8ea73eab1de0501840728cdbd87 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期日, 28 四月 2024 15:38:26 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/verbaltrick/particulars/index.vue | 62 +++++++++--------------------- 1 files changed, 19 insertions(+), 43 deletions(-) diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue index a3a6804..7be697a 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> @@ -354,36 +358,7 @@ </el-form-item> </el-col></el-row > - <el-row> - <el-col :span="24"> - <el-form-item label="閫氱敤搴撴枃鏈�" prop="submoduletext"> - <el-input - type="textarea" - :rows="2" - id="submoduletext" - placeholder="璇疯緭鍏ュ唴瀹�" - v-model.sync="indexform.submoduletext" - @focus="handleInput('submoduletext')" - maxlength="30" - /> - </el-form-item> </el-col - ></el-row> - <el-row> - <el-col :span="6"> - <el-form-item label="閫氱敤搴撹闊�" prop="libraryy"> - <el-upload - class="upload-demo" - action="https://jsonplaceholder.typicode.com/posts/" - :on-change="handleChange" - :file-list="fileList" - :limit="1" - :on-exceed="handleExceed" - > - <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button> - </el-upload> - </el-form-item> - </el-col></el-row - > + <el-row> <el-col :span="24"> <el-form-item label="鍚笉娓呮枃鏈�" prop="noclearlytext"> @@ -392,9 +367,10 @@ id="noclearlytext" :rows="2" placeholder="璇疯緭鍏ュ唴瀹�" - @focus="handleInput('noclearlytext')" + @focus="handleInput('noclearlytext')" v-model.sync="indexform.noclearlytext" - maxlength="30" + maxlength="66" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -919,8 +895,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 +917,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