/i, \"\");\r\n var con1 = con1.replace(/<\\/p>/i, \"\");\r\n return con1;\r\n } else {\r\n return value\r\n }\r\n\r\n\r\n }\r\n copy() {\r\n const clipboard = new Vue.prototype.clipboard(\".btn\");\r\n clipboard.on(\"success\", () => {\r\n this.$Message.success({\r\n content: \"复制成功\",\r\n duration: 1,\r\n }); // 释放内存\r\n\r\n clipboard.destroy();\r\n });\r\n clipboard.on(\"error\", () => {\r\n this.$Message.error({\r\n content: \"复制失败\",\r\n duration: 1,\r\n }); // 释放内存\r\n\r\n clipboard.destroy();\r\n });\r\n }\r\n //removefilterHtmlbrcont(value) {\r\n //^(<[Bb][Rr]*?.*?\\/?\\s*?>)+ 去除头部 br 带clsss\r\n //(<[Bb][Rr]*?.*?\\/?\\s*?>)+$ 去除头部 br 带clsss\r\n // let content = value\r\n // .replace(/^(<[Bb][Rr]*?.*?\\/?\\s*?>)+/, \"\").replace(/(<[Bb][Rr]*?.*?\\/?\\s*?>)+$/g, \"\");\r\n // return content;\r\n //}\r\n\r\n choicenumChange(value) {\r\n this.choicenum = value;\r\n if (value == 2) {\r\n this.testQuestion.answerKeyF = \"\";\r\n this.testQuestion.answerKeyG = \"\";\r\n this.testQuestion.answerKeyH = \"\";\r\n this.testQuestion.answerKeyI = \"\";\r\n this.testQuestion.answerKeyJ = \"\";\r\n }\r\n }\r\n blanksnumChange(value) {\r\n this.blanksnum = value;\r\n if (value < 2) {\r\n this.testQuestion.answerKeyF = \"\";\r\n this.testQuestion.answerKeyG = \"\";\r\n this.testQuestion.answerKeyH = \"\";\r\n this.testQuestion.answerKeyI = \"\";\r\n this.testQuestion.answerKeyJ = \"\";\r\n }\r\n if (value < 3) {\r\n this.testQuestion.answerKeyK = \"\";\r\n this.testQuestion.answerKeyL = \"\";\r\n this.testQuestion.answerKeyM = \"\";\r\n this.testQuestion.answerKeyN = \"\";\r\n this.testQuestion.answerKeyO = \"\";\r\n }\r\n }\r\n topicOne: any = [];\r\n topicTwo: any = [];\r\n uploadActin: string = url + \"api/services/app/File/FileGetToken\";\r\n token: string = \"Bearer \" + window.abp.auth.getToken();\r\n uploadList: any = [];\r\n uploadPdfList: any = [];\r\n questionContent: string = \"\";\r\n answerTips: string = \"\";\r\n answerKeyA: string = \"\";\r\n answerKeyB: string = \"\";\r\n answerKeyC: string = \"\";\r\n answerKeyD: string = \"\";\r\n answerKeyE: string = \"\";\r\n answerKeyF: string = \"\";\r\n answerKeyG: string = \"\";\r\n answerKeyH: string = \"\";\r\n answerKeyI: string = \"\";\r\n answerKeyJ: string = \"\";\r\n answerKeyK: string = \"\";\r\n answerKeyL: string = \"\";\r\n answerKeyM: string = \"\";\r\n answerKeyN: string = \"\";\r\n answerKeyO: string = \"\";\r\n uploadSuccess(res, file, fileList) {\r\n this.uploadList = fileList;\r\n }\r\n\r\n searchebutcount() {\r\n if (!this.keywords) {\r\n this.$Message.error(\"请输入试题内容\");\r\n return false;\r\n }\r\n if (\r\n !this.testQuestion.questionType &&\r\n this.testQuestion.questionType !== 0\r\n ) {\r\n this.$Message.error(\"请选择试题类型\");\r\n return false;\r\n }\r\n this.$store.state.testQuestion.editTestQuestion.questionType =\r\n this.testQuestion.questionType;\r\n this.$store.state.testQuestion.editTestQuestion.keyword = this.keywords;\r\n this.repeatModalShow = true;\r\n }\r\n\r\n\r\n\r\n\r\n setEditorDataInit() {\r\n (this.$refs[\"deconme\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerTips\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyA\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyB\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyC\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyD\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyE\"] as any).setHtmlewebQuesTion(\"\");\r\n if (\r\n this.testQuestion.questionType == 1 ||\r\n this.testQuestion.questionType == 3\r\n ) {\r\n (this.$refs[\"answerKeyF\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyG\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyH\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyI\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyJ\"] as any).setHtmlewebQuesTion(\"\");\r\n }\r\n if (this.testQuestion.questionType == 3) {\r\n (this.$refs[\"answerKeyK\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyL\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyM\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyN\"] as any).setHtmlewebQuesTion(\"\");\r\n (this.$refs[\"answerKeyO\"] as any).setHtmlewebQuesTion(\"\");\r\n }\r\n }\r\n getQuestionContent() {\r\n this.testQuestion.questionContent = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.questionContent)\r\n );\r\n this.testQuestion.answerTips = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerTips)\r\n );\r\n if (this.testQuestion.questionType > 0) {\r\n this.testQuestion.answerKeyA = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyA)\r\n );\r\n this.testQuestion.answerKeyB = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyB)\r\n );\r\n this.testQuestion.answerKeyC = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyC)\r\n );\r\n this.testQuestion.answerKeyD = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyD)\r\n );\r\n this.testQuestion.answerKeyE = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyE)\r\n );\r\n }\r\n if (\r\n this.testQuestion.questionType == 1 ||\r\n this.testQuestion.questionType == 3\r\n ) {\r\n if (this.blanksnum >= 2 || this.choicenum == 2) {\r\n this.testQuestion.answerKeyF = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyF)\r\n );\r\n this.testQuestion.answerKeyG = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyG)\r\n );\r\n this.testQuestion.answerKeyH = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyH)\r\n );\r\n this.testQuestion.answerKeyI = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyI)\r\n );\r\n this.testQuestion.answerKeyJ = this.removefilterHtmlbr(\r\n this.removefilterHtmlp(this.testQuestion.answerKeyJ)\r\n );\r\n }\r\n }\r\n if (this.testQuestion.questionType == 3) {\r\n if (this.blanksnum > 2) {\r\n this.testQuestion.answerKeyK = this.removefilterHtmlbr(\r\n this.testQuestion.answerKeyK\r\n );\r\n this.testQuestion.answerKeyL = this.removefilterHtmlbr(\r\n this.testQuestion.answerKeyL\r\n );\r\n this.testQuestion.answerKeyM = this.removefilterHtmlbr(\r\n this.testQuestion.answerKeyM\r\n );\r\n this.testQuestion.answerKeyN = this.removefilterHtmlbr(\r\n this.testQuestion.answerKeyN\r\n );\r\n this.testQuestion.answerKeyO = this.removefilterHtmlbr(\r\n this.testQuestion.answerKeyO\r\n );\r\n }\r\n }\r\n }\r\n handleRemove(file, fileList) {\r\n this.uploadList = fileList;\r\n }\r\n\r\n handleMaxSize(file) {\r\n this.$Notice.warning({\r\n title: \"超出文件大小限制\",\r\n desc: \"文件【\" + file.name + \"】 太大, 不能超过50M.\",\r\n });\r\n }\r\n search() { }\r\n cascaderSelect(value, selectedData) {\r\n if (selectedData.length > 0) {\r\n if (selectedData[0].id == 1033) {\r\n this.newtabdata[0].display = false;\r\n }\r\n if (selectedData[0].id == 1026 || selectedData[0].id == 1027 || selectedData[0].id == 1028 || selectedData[0].id == 1029 || selectedData[0].id == 1030 || selectedData[0].id == 1031 || selectedData[0].id == 1032 || selectedData[0].id == 1033) {\r\n this.newtabdata[2].display = false;\r\n }\r\n if (selectedData[0].id == 1031) {\r\n this.newtabdata[3].display = false;\r\n }\r\n if (selectedData[0].id == 1026 || selectedData[0].id == 1028 || selectedData[0].id == 1030 || selectedData[0].id == 1031 || selectedData[0].id == 1032 || selectedData[0].id == 1033) {\r\n this.newtabdata[4].display = false;\r\n }\r\n if (selectedData[0].id == 1027 || selectedData[0].id == 1025 || selectedData[0].id == 1029 || selectedData[0].id == 1030 || selectedData[0].id == 1031 || selectedData[0].id == 1032 || selectedData[0].id == 1033) {\r\n this.newtabdata[6].display = false;\r\n }\r\n if (selectedData[0].id == 1028 || selectedData[0].id == 1033) {\r\n this.newtabdata[7].display = false;\r\n }\r\n if (selectedData[0].id == 1028 || selectedData[0].id == 1025 || selectedData[0].id == 1029 || selectedData[0].id == 1030 || selectedData[0].id == 1033) {\r\n this.newtabdata[8].display = false;\r\n }\r\n if (selectedData[0].id == 1028 || selectedData[0].id == 1025 || selectedData[0].id == 1029 || selectedData[0].id == 1030 || selectedData[0].id == 1033) {\r\n this.newtabdata[9].display = false;\r\n }\r\n\r\n this.testQuestion.sectionId = selectedData[selectedData.length - 1].id;\r\n }\r\n else {\r\n this.testQuestion.sectionId = null;\r\n this.newtabdata = [\r\n { value: 0, label: \"判断题\", display: true },\r\n { value: 1, label: \"单选题\", display: true },\r\n { value: 2, label: \"多选题\", display: true },\r\n { value: 3, label: \"填空题\", display: true },\r\n { value: 4, label: \"计算题\", display: true },\r\n { value: 8, label: \"解答题\", display: true },\r\n { value: 9, label: \"作文题\", display: true },\r\n { value: 10, label: \"探究题\", display: true },\r\n { value: 11, label: \"材料题\", display: true },\r\n { value: 12, label: \"实践题\", display: true },\r\n { value: 7, label: \"选考单选\", display: false },\r\n { value: 5, label: \"选考多选\", display: false },\r\n { value: 6, label: \"选考计算\", display: false },\r\n ];\r\n }\r\n }\r\n save() {\r\n (this.$refs.testQuestionForm as any).validate(async (valid: boolean) => {\r\n if (valid) {\r\n if (this.valueArray.length > 0) {\r\n if (this.valueArray.length < 4) {\r\n this.$Message.warning(\"学科未选择到末级!\");\r\n return false;\r\n }\r\n } else {\r\n this.$Message.warning(\"请选择试题学科\");\r\n return false;\r\n }\r\n if (!this.testQuestion.degreeDifficulty) {\r\n this.$Message.warning(\"请选择试题难度\");\r\n return false;\r\n }\r\n if (\r\n !this.testQuestion.questionType &&\r\n this.testQuestion.questionType !== 0\r\n ) {\r\n this.$Message.warning(\"请选择试题类型\");\r\n return false;\r\n }\r\n this.getQuestionContent();\r\n if (\r\n this.testQuestion.questionType == 1 ||\r\n this.testQuestion.questionType == 2 ||\r\n this.testQuestion.questionType == 5 ||\r\n this.testQuestion.questionType == 7\r\n ) {\r\n if (\r\n this.testQuestion.questionType == 1 ||\r\n this.testQuestion.questionType == 7\r\n ) {\r\n this.testQuestion.correctAnswer = this.keytype;\r\n } else {\r\n this.testQuestion.correctAnswer = this.keychecktype.join(\",\");\r\n }\r\n } else {\r\n if (\r\n !this.testQuestion.answerKeyA &&\r\n this.testQuestion.questionType != 0\r\n ) {\r\n this.$Message.warning(\"至少有一个答案,并从第一个开始\");\r\n return false;\r\n } else if (this.testQuestion.questionType == 0) {\r\n this.testQuestion.correctAnswer = this.onequestype;\r\n } else {\r\n this.testQuestion.correctAnswer = this.testQuestion.answerKeyA;\r\n }\r\n if (this.testQuestion.answerKeyB) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyB;\r\n }\r\n if (this.testQuestion.answerKeyC) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyC;\r\n }\r\n if (this.testQuestion.answerKeyD) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyD;\r\n }\r\n if (this.testQuestion.answerKeyE) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyE;\r\n }\r\n if (this.testQuestion.questionType == 3) {\r\n //填空题 正确答案后10空\r\n if (this.testQuestion.answerKeyF) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyF;\r\n }\r\n if (this.testQuestion.answerKeyG) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyG;\r\n }\r\n if (this.testQuestion.answerKeyH) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyH;\r\n }\r\n if (this.testQuestion.answerKeyI) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyI;\r\n }\r\n if (this.testQuestion.answerKeyJ) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyJ;\r\n }\r\n if (this.testQuestion.answerKeyK) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyK;\r\n }\r\n if (this.testQuestion.answerKeyL) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyL;\r\n }\r\n if (this.testQuestion.answerKeyM) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyM;\r\n }\r\n if (this.testQuestion.answerKeyN) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyN;\r\n }\r\n if (this.testQuestion.answerKeyO) {\r\n this.testQuestion.correctAnswer +=\r\n \"\\r\\n\" + this.testQuestion.answerKeyO;\r\n } //填空题 正确答案后10空\r\n }\r\n }\r\n\r\n if (!this.testQuestion.questionContent) {\r\n this.$Message.warning(\"请填写试题内容\");\r\n return false;\r\n }\r\n if (!this.testQuestion.answerKeyA && this.testQuestion.questionType) {\r\n this.$Message.warning(\"请填写答案内容\");\r\n return false;\r\n }\r\n if (this.testQuestion.questionType == 0) {\r\n if (!this.onequestype) {\r\n this.$Message.warning(\"请设置正确答案\");\r\n return false;\r\n }\r\n }\r\n if (\r\n this.testQuestion.questionType == 1 ||\r\n this.testQuestion.questionType == 2 ||\r\n this.testQuestion.questionType == 5 ||\r\n this.testQuestion.questionType == 7\r\n ) {\r\n if (\r\n !this.testQuestion.correctAnswer ||\r\n this.testQuestion.correctAnswer.length < 1\r\n ) {\r\n this.$Message.warning(\"请设置正确答案\");\r\n return false;\r\n }\r\n }\r\n if (\r\n this.testQuestion.questionType == 2 ||\r\n this.testQuestion.questionType == 5\r\n ) {\r\n if (this.testQuestion.correctAnswer.length < 3) {\r\n this.$Message.warning(\"请至少选择两个正确答案\");\r\n return false;\r\n }\r\n }\r\n this.testQuestion.gradeType = 0;\r\n let sendType = \"testQuestion/create\";\r\n if (!this.isCreate) {\r\n sendType = \"testQuestion/update\";\r\n }\r\n this.$store\r\n .dispatch({\r\n type: sendType,\r\n data: this.testQuestion,\r\n })\r\n .then((result) => {\r\n if (this.isCreate) {\r\n this.testQuestion.degreeDifficulty = 0;\r\n this.keytype = \"\";\r\n this.keychecktype = [];\r\n this.onequestype = \"\";\r\n this.testQuestion.questionContent = \"\";\r\n this.testQuestion.answerTips = \"\";\r\n if (this.testQuestion.questionType > 0) {\r\n this.testQuestion.correctAnswer = \"\";\r\n this.testQuestion.answerKeyA = \"\";\r\n this.testQuestion.answerKeyB = \"\";\r\n this.testQuestion.answerKeyC = \"\";\r\n this.testQuestion.answerKeyD = \"\";\r\n this.testQuestion.answerKeyE = \"\";\r\n if (this.blanksnum >= 2 || this.choicenum == 2) {\r\n this.testQuestion.answerKeyF = \"\";\r\n this.testQuestion.answerKeyG = \"\";\r\n this.testQuestion.answerKeyH = \"\";\r\n this.testQuestion.answerKeyI = \"\";\r\n this.testQuestion.answerKeyJ = \"\";\r\n }\r\n if (this.blanksnum > 2) {\r\n this.testQuestion.answerKeyK = \"\";\r\n this.testQuestion.answerKeyL = \"\";\r\n this.testQuestion.answerKeyM = \"\";\r\n this.testQuestion.answerKeyN = \"\";\r\n this.testQuestion.answerKeyO = \"\";\r\n }\r\n } else {\r\n this.testQuestion.correctAnswer = \"\";\r\n }\r\n this.testQuestion.questionType = undefined;\r\n } else {\r\n this.testQuestion.correctAnswer = \"\";\r\n (this.$refs.testQuestionForm as any).resetFields();\r\n this.$emit(\"save-success\");\r\n this.$emit(\"input\", false);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n cancel() {\r\n this.visibleChange(false);\r\n }\r\n visibleChange(value: boolean) {\r\n this.choicenum = 1;\r\n this.blanksnum = 1;\r\n if (!value) {\r\n this.testQuestion = new TestQuestion();\r\n this.$store.state.testQuestion.editTestQuestion = this.testQuestion;\r\n (this.$refs.testQuestionForm as any).resetFields();\r\n this.newtabdata = [\r\n { id: 0, value: \"判断题\", display: true },\r\n { id: 1, value: \"单选题\", display: true },\r\n { id: 2, value: \"多选题\", display: true },\r\n { id: 3, value: \"填空题\", display: true },\r\n { id: 4, value: \"计算题\", display: true },\r\n { id: 8, value: \"解答题\", display: true },\r\n { id: 9, value: \"作文题\", display: true },\r\n { id: 10, value: \"探究题\", display: true },\r\n { id: 11, value: \"材料题\", display: true },\r\n { id: 12, value: \"实践题\", display: true },\r\n { id: 7, value: \"选考单选\", display: false },\r\n { id: 5, value: \"选考多选\", display: false },\r\n { id: 6, value: \"选考计算\", display: false },\r\n ]\r\n if (this.isCreate) this.$emit(\"save-success\");\r\n this.$emit(\"input\", value);\r\n } else {\r\n this.data = this.$store.state.testQuestion.cascaders.items;\r\n this.testQuestion = Util.extend(\r\n true,\r\n {},\r\n this.$store.state.testQuestion.editTestQuestion\r\n );\r\n this.valueArray = this.testQuestion.categoryList;\r\n if (this.testQuestion.id) {\r\n\r\n if (this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[0].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1026 || this.testQuestion.categoryList[0] == 1027 || this.testQuestion.categoryList[0] == 1028 || this.testQuestion.categoryList[0] == 1029 || this.testQuestion.categoryList[0] == 1030 || this.testQuestion.categoryList[0] == 1031 || this.testQuestion.categoryList[0] == 1032 || this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[2].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1031) {\r\n\r\n this.newtabdata[3].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1026 || this.testQuestion.categoryList[0] == 1028 || this.testQuestion.categoryList[0] == 1030 || this.testQuestion.categoryList[0] == 1031 || this.testQuestion.categoryList[0] == 1032 || this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[4].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1027 || this.testQuestion.categoryList[0] == 1025 || this.testQuestion.categoryList[0] == 1029 || this.testQuestion.categoryList[0] == 1030 || this.testQuestion.categoryList[0] == 1031 || this.testQuestion.categoryList[0] == 1032 || this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[6].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1028 || this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[7].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1028 || this.testQuestion.categoryList[0] == 1025 || this.testQuestion.categoryList[0] == 1029 || this.testQuestion.categoryList[0] == 1030 || this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[8].display = false;\r\n }\r\n if (this.testQuestion.categoryList[0] == 1028 || this.testQuestion.categoryList[0] == 1025 || this.testQuestion.categoryList[0] == 1029 || this.testQuestion.categoryList[0] == 1030 || this.testQuestion.categoryList[0] == 1033) {\r\n\r\n this.newtabdata[9].display = false;\r\n }\r\n\r\n this.isCreate = false;\r\n this.formTitle = \"修改试题\";\r\n this.keytype = this.testQuestion.correctAnswer;\r\n this.keychecktype = this.testQuestion.listAnswer;\r\n this.onequestype = this.testQuestion.correctAnswer;\r\n this.questionContent = this.testQuestion.questionContent;\r\n this.answerTips = this.testQuestion.answerTips;\r\n this.testQuestion.isAudit = this.testQuestion.isAudit.toString();\r\n\r\n if (this.testQuestion.questionType > 0) {\r\n if (this.testQuestion.answerKeyA === null) {\r\n this.testQuestion.answerKeyA = \"\";\r\n } else {\r\n this.testQuestion.answerKeyA = this.testQuestion.answerKeyA;\r\n }\r\n if (this.testQuestion.answerKeyB === null) {\r\n this.testQuestion.answerKeyB = \"\";\r\n } else {\r\n this.testQuestion.answerKeyB = this.testQuestion.answerKeyB;\r\n }\r\n if (this.testQuestion.answerKeyC === null) {\r\n this.testQuestion.answerKeyC = \"\";\r\n } else {\r\n this.testQuestion.answerKeyC = this.testQuestion.answerKeyC;\r\n }\r\n if (this.testQuestion.answerKeyD === null) {\r\n this.testQuestion.answerKeyD = \"\";\r\n } else {\r\n this.testQuestion.answerKeyD = this.testQuestion.answerKeyD;\r\n }\r\n if (this.testQuestion.answerKeyE === null) {\r\n this.testQuestion.answerKeyE = \"\";\r\n } else {\r\n this.testQuestion.answerKeyE = this.testQuestion.answerKeyE;\r\n }\r\n //试题为单选或者填空时编辑器内容赋值\r\n if (\r\n this.testQuestion.questionType == 1 ||\r\n this.testQuestion.questionType == 3\r\n ) {\r\n if (\r\n this.testQuestion.answerKeyF === null ||\r\n !this.testQuestion.answerKeyF\r\n ) {\r\n this.answerKeyF = \"\";\r\n } else {\r\n this.answerKeyF = this.testQuestion.answerKeyF;\r\n this.choicenum = 2;\r\n this.blanksnum = 2;\r\n }\r\n if (\r\n this.testQuestion.answerKeyG === null ||\r\n !this.testQuestion.answerKeyG\r\n ) {\r\n this.answerKeyG = \"\";\r\n } else {\r\n this.answerKeyG = this.testQuestion.answerKeyG;\r\n this.choicenum = 2;\r\n this.blanksnum = 2;\r\n }\r\n if (\r\n this.testQuestion.answerKeyH === null ||\r\n !this.testQuestion.answerKeyH\r\n ) {\r\n this.answerKeyH = \"\";\r\n } else {\r\n this.answerKeyH = this.testQuestion.answerKeyH;\r\n this.choicenum = 2;\r\n this.blanksnum = 2;\r\n }\r\n if (\r\n this.testQuestion.answerKeyI === null ||\r\n !this.testQuestion.answerKeyI\r\n ) {\r\n this.answerKeyI = \"\";\r\n } else {\r\n this.answerKeyI = this.testQuestion.answerKeyI;\r\n this.choicenum = 2;\r\n this.blanksnum = 2;\r\n }\r\n if (\r\n this.testQuestion.answerKeyJ === null ||\r\n !this.testQuestion.answerKeyJ\r\n ) {\r\n this.answerKeyJ = \"\";\r\n } else {\r\n this.answerKeyJ = this.testQuestion.answerKeyJ;\r\n this.choicenum = 2;\r\n this.blanksnum = 2;\r\n }\r\n }\r\n if (this.testQuestion.questionType == 3) {\r\n if (\r\n this.testQuestion.answerKeyK === null ||\r\n !this.testQuestion.answerKeyK\r\n ) {\r\n this.answerKeyK = \"\";\r\n } else {\r\n this.answerKeyK = this.testQuestion.answerKeyK;\r\n this.blanksnum = 3;\r\n }\r\n if (\r\n this.testQuestion.answerKeyL === null ||\r\n !this.testQuestion.answerKeyL\r\n ) {\r\n this.answerKeyL = \"\";\r\n } else {\r\n this.answerKeyL = this.testQuestion.answerKeyL;\r\n this.blanksnum = 3;\r\n }\r\n if (\r\n this.testQuestion.answerKeyM === null ||\r\n !this.testQuestion.answerKeyM\r\n ) {\r\n this.answerKeyM = \"\";\r\n } else {\r\n this.answerKeyM = this.testQuestion.answerKeyM;\r\n this.blanksnum = 3;\r\n }\r\n if (\r\n this.testQuestion.answerKeyN === null ||\r\n !this.testQuestion.answerKeyN\r\n ) {\r\n this.answerKeyN = \"\";\r\n } else {\r\n this.answerKeyN = this.testQuestion.answerKeyN;\r\n this.blanksnum = 3;\r\n }\r\n if (\r\n this.testQuestion.answerKeyO === null ||\r\n !this.testQuestion.answerKeyO\r\n ) {\r\n this.answerKeyO = \"\";\r\n } else {\r\n this.answerKeyO = this.testQuestion.answerKeyO;\r\n this.blanksnum = 3;\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n }\r\n\r\n } else {\r\n this.isCreate = true;\r\n this.formTitle = \"增加试题\";\r\n this.createInit();\r\n // this.setEditorDataInit();\r\n }\r\n }\r\n }\r\n async created() {\r\n this.visibleChange(true);\r\n }\r\n createInit() {\r\n // (this.$refs.testQuestionForm as any).resetFields();\r\n if (this.testQuestion.sisterId === \"\") this.valueArray = [];\r\n this.keytype = \"\";\r\n this.keychecktype = [];\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit-testQuestion.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit-testQuestion.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./edit-testQuestion.vue?vue&type=template&id=902cfd22&scoped=true&\"\nimport script from \"./edit-testQuestion.vue?vue&type=script&lang=ts&\"\nexport * from \"./edit-testQuestion.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./edit-testQuestion.vue?vue&type=style&index=0&id=902cfd22&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"902cfd22\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sister-Question.vue?vue&type=style&index=0&id=1aad8cd4&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sister-Question.vue?vue&type=style&index=0&id=1aad8cd4&scoped=true&lang=css&\""],"sourceRoot":""}