From 1be7d1dc4426a005621ddb14c96960ca4280bed1 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 20 六月 2024 09:51:11 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionbank/particulars/index.vue | 38 +++++++++++++++++++++++---------------
1 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index 407fbb6..f7e1da4 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -63,7 +63,7 @@
<el-col :span="8"
><el-form-item label="棰樼洰鏍囬">
<el-input
- v-model="topicobj.script"
+ v-model="topicobj.topic"
placeholder="璇疯緭鍏ユ爣棰�"
></el-input> </el-form-item
></el-col>
@@ -164,10 +164,18 @@
<el-input
style="width: 40vw"
type="textarea"
- id="scriptContent"
+ id="script"
+ v-model="topicobj.script"
+ @focus="handleInput('script')"
+ placeholder="璇疯緭鍏ラ鐩唴瀹�"
+ ></el-input>
+ </el-form-item>
+ <el-form-item label="棰樼洰璇存槑">
+ <el-input
+ style="width: 40vw"
+ type="textarea"
v-model="topicobj.scriptContent"
- @focus="handleInput('scriptContent')"
- placeholder="璇疯緭鍏ユ爣棰�"
+ placeholder="璇疯緭鍏ヨ鏄�"
></el-input>
</el-form-item>
@@ -838,8 +846,8 @@
let inputValueArr = "";
let el = document.querySelector("#" + this.currentInputId);
//el.selectionStart; 杩欏氨鏄綋鍓嶅厜鏍囨墍鍦ㄧ殑浣嶇疆锛堝瓧绗︿覆涓瓧绗︾殑index锛�
- if (this.currentInputId == "scriptContent") {
- inputValueArr = this.topicobj.scriptContent.split("");
+ if (this.currentInputId == "script") {
+ inputValueArr = this.topicobj.script.split("");
console.log(123);
} else if (this.currentInputId == "nomatchtext") {
inputValueArr = this.topicobj.nomatchtext.split("");
@@ -861,8 +869,8 @@
// 鎶婃暟缁勯噸鏂拌浆鎹负瀛楃涓插苟璧嬪��
inputValueArr = inputValueArr.join("");
console.log(inputValueArr);
- if (this.currentInputId == "scriptContent") {
- this.topicobj.scriptContent = inputValueArr;
+ if (this.currentInputId == "script") {
+ this.topicobj.script = inputValueArr;
} else if (this.currentInputId == "nomatchtext") {
this.topicobj.nomatchtext = inputValueArr;
} else if (this.currentInputId == "sliencetext") {
@@ -921,14 +929,14 @@
// 鎵ц
test() {
const arrays = [
- ["2", "3", "4"],
- ["1", "2"],
- ["3", "4", "5"],
- ["3", "2", "5"],
+ ["2", "3", "4", "5"],
+ ["1", "2", "5", "6"],
+ ["3", "4", "5", "3"],
+ ["3", "2", "5", "7"],
];
const newMixArray = this.generateCombinations(arrays);
- console.log(newMixArray,'鍏ㄩ儴璺嚎');
+ console.log(newMixArray, "鍏ㄩ儴璺嚎");
this.screen(newMixArray);
},
// 鏁扮粍姹傚拰
@@ -937,9 +945,9 @@
},
// 绛涢�夐敊璇矾绾�
screen(data) {
- const arraysGreaterThan10 = data.filter((arr) => this.sumArray(arr) > 13);
+ const arraysGreaterThan10 = data.filter((arr) => this.sumArray(arr) > 21);
- console.log(arraysGreaterThan10,'绛涢�夐敊璇矾绾垮ぇ浜�13鍒�');
+ console.log(arraysGreaterThan10, "绛涢�夐敊璇矾绾垮ぇ浜�13鍒�");
},
},
};
--
Gitblit v1.9.3