From 257f46bce7c3325c9d9aed68e0df84ea279019aa Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 28 五月 2024 15:30:21 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/verbaltrick/particulars/index.vue | 108 ++++++++++++++++++++---------------------------------- 1 files changed, 40 insertions(+), 68 deletions(-) diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue index a3a6804..f239964 100644 --- a/src/views/repositoryai/verbaltrick/particulars/index.vue +++ b/src/views/repositoryai/verbaltrick/particulars/index.vue @@ -265,15 +265,15 @@ > <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" + 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,21 +290,22 @@ > <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 > <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="30" + v-model.sync="indexform.noMatchText" + @focus="handleInput('noMatchText')" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -326,15 +327,15 @@ > <el-row> <el-col :span="24"> - <el-form-item label="鏃犲0鏂囨湰" prop="sliencetext"> + <el-form-item label="鏃犲0鏂囨湰" prop="slienceText"> <el-input type="textarea" :rows="2" - id="sliencetext" + id="slienceText" placeholder="璇疯緭鍏ュ唴瀹�" - v-model.sync="indexform.sliencetext" - @focus="handleInput('sliencetext')" - maxlength="30" + v-model.sync="indexform.slienceText" + @focus="handleInput('slienceText')" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -354,47 +355,18 @@ </el-form-item> </el-col></el-row > + <el-row> <el-col :span="24"> - <el-form-item label="閫氱敤搴撴枃鏈�" prop="submoduletext"> + <el-form-item label="鍚笉娓呮枃鏈�" prop="noClearlyText"> <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"> - <el-input - type="textarea" - id="noclearlytext" + id="noClearlyText" :rows="2" placeholder="璇疯緭鍏ュ唴瀹�" - @focus="handleInput('noclearlytext')" - v-model.sync="indexform.noclearlytext" - maxlength="30" + @focus="handleInput('noClearlyText')" + v-model.sync="indexform.noClearlyText" + show-word-limit /> </el-form-item> </el-col ></el-row> @@ -510,8 +482,8 @@ <script> import { listtag } from "@/api/system/label"; import { - getverbaltricklist, - verbaltrickinfo, + gettagerlist, + testtagerlist, delverbaltrickinfo, compileverbaltrick, getverbaltrick, @@ -919,14 +891,14 @@ let inputValueArr = ""; let el = document.querySelector("#" + this.currentInputId); //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(""); + 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 == "submoduletext") { inputValueArr = this.indexform.submoduletext.split(""); } else { @@ -941,14 +913,14 @@ // 鎶婃暟缁勯噸鏂拌浆鎹负瀛楃涓插苟璧嬪�� 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; - } 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 { -- Gitblit v1.9.3