From b50917f4bdf0b05c028d76d8cdbde44a85ec8b91 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 27 八月 2024 16:02:53 +0800 Subject: [PATCH] 测试完成 --- src/api/system/user.js | 2 vue.config.js | 2 src/views/repositoryai/templateku/configurat/index.vue | 217 +++++++--- src/components/Regular/index.vue | 7 src/views/knowledge/questionbank/particulars/index.vue | 295 ++++++++------ src/views/knowledge/questionnaire/compilequer/index.vue | 423 ++++++++++++++------ src/views/knowledge/questionnaire/index.vue | 105 ++-- src/views/repositoryai/intention/index.vue | 15 src/views/knowledge/education/compilequer/index.vue | 1 src/views/outsideChain.vue | 8 src/views/repositoryai/templateku/index.vue | 107 ++-- 11 files changed, 711 insertions(+), 471 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index bcc2061..eb6f277 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -21,7 +21,7 @@ // 鏂板鐢ㄦ埛 export function addUser(data) { return request({ - url: '/system/user', + url: '/system/user/add', method: 'post', data: data }) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index 71a6fc0..b52668f 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -56,10 +56,11 @@ > </el-input> </el-form-item ></el-col> - <el-col :span="12" + <el-col :span="12" v-show="branchFlag" ><el-form-item label="閫変腑璺宠浆"> <el-input type="text" + @blur="$emit('branchFlagfn', item.nextQuestion)" placeholder="璇疯緭鍏ラ鐩妭鐐�" v-model="item.nextQuestion" show-word-limit @@ -272,6 +273,10 @@ type: Boolean, default: true, }, + branchFlag: { + type: Boolean, + default: false, + }, }, created() { diff --git a/src/views/knowledge/education/compilequer/index.vue b/src/views/knowledge/education/compilequer/index.vue index dae4b40..b064c0e 100644 --- a/src/views/knowledge/education/compilequer/index.vue +++ b/src/views/knowledge/education/compilequer/index.vue @@ -142,6 +142,7 @@ @change="handleInputConfirm" filterable remote + allow-create reserve-keyword default-first-option :remote-method="remoteMethodtag" diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue index 2a5cfa1..a615daf 100644 --- a/src/views/knowledge/questionbank/particulars/index.vue +++ b/src/views/knowledge/questionbank/particulars/index.vue @@ -101,7 +101,7 @@ ></el-col> <el-col :span="8" ><el-form-item label="鏄惁鍙敤"> - <el-radio-group v-model="topicobj.isAvailable"> + <el-radio-group v-model="topicobj.isavailable"> <el-radio v-for="(item, index) in usable" :label="item.value" @@ -348,6 +348,11 @@ topicobj.targetname ? "淇敼鎸囨爣" : "+閫夋嫨鎸囨爣" }}</el-button></span > + <span style="margin-left: 30px" + ><el-button type="primary" @click="Saveproblem" + >淇� 瀛�</el-button + > + </span> </div> <el-divider></el-divider> <el-form ref="form"> @@ -401,116 +406,120 @@ </el-col> </el-row> </el-form> - <div v-if="topicobj.scriptType != 4"> - <div class="headline"> - 閫夐」璁剧疆<span style="margin-left: 30px" - ><el-button type="primary" round @click="addoption" - >+鏂板</el-button - ></span - > - </div> + <div> <el-divider></el-divider> + <div v-if="topicobj.scriptType != 4"> + <div class="headline"> + 閫夐」璁剧疆<span style="margin-left: 30px" + ><el-button type="primary" round @click="addoption" + >+鏂板</el-button + ></span + > + </div> + <div + class="topicxq" + v-for="item in topicobj.svyLibScriptOptions" + v-if="item.isoperation != 3" + > + <el-row :gutter="10"> + <el-col :span="11" + ><el-form-item label="閫夐」鍚嶇О"> + <el-input + type="text" + placeholder="璇疯緭鍏ラ�夐」鍒嗗��" + v-model="item.optioncontent" + show-word-limit + > + </el-input> </el-form-item + ></el-col> + <el-col :span="11"> + <el-form-item v-if="topicobj.scoretype == 1" label="鍒嗗��"> + <el-input + type="text" + placeholder="璇疯緭鍏ラ�夐」鍒嗗��" + v-model="item.score" + show-word-limit + > + </el-input> + </el-form-item> + <el-form-item + v-else-if="topicobj.scoretype == 2" + label="ABC绛夌骇" + > + <el-radio-group v-model="item.score"> + <el-radio label="A">A</el-radio> + <el-radio label="B">B</el-radio> + <el-radio label="C">C</el-radio> + </el-radio-group> + </el-form-item> + <el-form-item + v-else-if="topicobj.scoretype == 3" + label="浼樿壇绛夌骇" + > + <el-radio-group v-model="item.score"> + <el-radio label="浼�">浼�</el-radio> + <el-radio label="鑹�">鑹�</el-radio> + <el-radio label="宸�">宸�</el-radio> + </el-radio-group> + </el-form-item> + </el-col> - <div - class="topicxq" - v-for="item in topicobj.svyLibScriptOptions" - v-if="item.isoperation != 3" - > - <el-row :gutter="10"> - <el-col :span="11" - ><el-form-item label="閫夐」鍚嶇О"> - <el-input - type="text" - placeholder="璇疯緭鍏ラ�夐」鍒嗗��" - v-model="item.optioncontent" - show-word-limit - > - </el-input> </el-form-item - ></el-col> - <el-col :span="11"> - <el-form-item v-if="topicobj.scoretype == 1" label="鍒嗗��"> - <el-input - type="text" - placeholder="璇疯緭鍏ラ�夐」鍒嗗��" - v-model="item.score" - show-word-limit - > - </el-input> - </el-form-item> - <el-form-item - v-else-if="topicobj.scoretype == 2" - label="ABC绛夌骇" + <el-col + :span="2" + :offsset="topicobj.scoretype == 4 ? 11 : 0" > - <el-radio-group v-model="item.score"> - <el-radio label="A">A</el-radio> - <el-radio label="B">B</el-radio> - <el-radio label="C">C</el-radio> + <el-button + type="danger" + icon="el-icon-delete" + circle + @click="deletexuanx(item)" + ></el-button> + </el-col> + </el-row> + <el-row :gutter="10"> + <el-form-item label="棰勮鎻愰啋"> + <el-radio-group v-model="item.isabnormal"> + <el-radio :label="1">鏄�</el-radio> + <el-radio :label="0">鍚�</el-radio> </el-radio-group> </el-form-item> - <el-form-item - v-else-if="topicobj.scoretype == 3" - label="浼樿壇绛夌骇" - > - <el-radio-group v-model="item.score"> - <el-radio label="浼�">浼�</el-radio> - <el-radio label="鑹�">鑹�</el-radio> - <el-radio label="宸�">宸�</el-radio> - </el-radio-group> - </el-form-item> - </el-col> - - <el-col :span="2" :offsset="topicobj.scoretype == 4 ? 11 : 0"> - <el-button - type="danger" - icon="el-icon-delete" - circle - @click="deletexuanx(item)" - ></el-button> - </el-col> - </el-row> - <el-row :gutter="10"> - <el-form-item label="棰勮鎻愰啋"> - <el-radio-group v-model="item.isabnormal"> - <el-radio :label="1">鏄�</el-radio> - <el-radio :label="0">鍚�</el-radio> - </el-radio-group> - </el-form-item> - </el-row> - <el-row :gutter="10"> - <el-form-item label="閫変腑鎻愮ず"> - <el-input - style="width: 40vw" - type="textarea" - autosize - placeholder="璇疯緭鍏ュ唴瀹�" - v-model="item.prompt" - > - </el-input - ></el-form-item> - </el-row> - <el-form-item label="閫夐」鏂囦欢" prop="sickness"> - <div style="width: 40vw"> - <el-upload - class="upload-demo" - :action="uploadImgUrl" - :headers="headers" - accept=".jpg,.png,image/*" - :on-success="handleChange.bind(this, item)" - > - <el-button size="small" type="primary" - >鐐瑰嚮涓婁紶</el-button + </el-row> + <el-row :gutter="10"> + <el-form-item label="閫変腑鎻愮ず"> + <el-input + style="width: 40vw" + type="textarea" + autosize + placeholder="璇疯緭鍏ュ唴瀹�" + v-model="item.prompt" > - </el-upload> - <div style="margin: 20px"> - <el-image - style="width: 100px; height: 100px" - :src="item.picturePath" - :preview-src-list="[...item.picturePath]" + </el-input + ></el-form-item> + </el-row> + <el-form-item label="閫夐」鏂囦欢" prop="sickness"> + <div style="width: 40vw"> + <el-upload + class="upload-demo" + :action="uploadImgUrl" + :headers="headers" + accept=".jpg,.png,image/*" + :on-success="handleChange.bind(this, item)" > - </el-image> + <el-button size="small" type="primary" + >鐐瑰嚮涓婁紶</el-button + > + </el-upload> + <div style="margin: 20px"> + <el-image + style="width: 100px; height: 100px" + :src="item.picturePath" + :preview-src-list="[...item.picturePath]" + > + </el-image> + </div> </div> - </div> - </el-form-item> + </el-form-item> + </div> </div> <div v-else class="topicxq"> <el-input @@ -610,11 +619,11 @@ <el-table-column label="鏄惁鍙敤" align="center" - key="isAvailable" - prop="isAvailable" + key="isavailable" + prop="isavailable" > <template slot-scope="scope"> - <dict-tag :options="usable" :value="scope.row.isAvailable" /> + <dict-tag :options="usable" :value="scope.row.isavailable" /> </template> </el-table-column> <el-table-column @@ -763,6 +772,7 @@ { value: "scriptTopic", table: "scriptTopic" }, ], inputValueillness: "", + testgovalue: "", required: [], themelist: [], languagelist: [], @@ -829,9 +839,9 @@ // 鑾峰彇鏁版嵁 getissueinfo() { this.id = this.$route.query.id; - this.topicobj.categoryid = Number(this.$route.query.categoryid); - console.log(this.topicobj.categoryid); - + if (this.$route.query.categoryid) { + this.topicobj.categoryid = Number(this.$route.query.categoryid); + } this.topicobj.isavailable = "1"; this.topicobj.language = "鏅�氳瘽"; // 鍒嗙被 @@ -937,35 +947,54 @@ // 鍒ゆ柇鍒嗗�� Scorejudgment() { let scorearr = this.topicobj.svyLibScriptOptions; - let isValid = scorearr.every((score) => { - if (score.score) { - console.log(Number(score.score), this.topicobj.score, "鍒嗗��"); - if ( - Number(score.score) < 0 || - Number(score.score) > Number(this.topicobj.score) - ) { - console.log(score, "閿欒鍒嗗��"); + let isValid = scorearr.every((score, index) => { + if (this.topicobj.scriptType == 1) { + if (score.score) { + if ( + Number(score.score) < 0 || + Number(score.score) > Number(this.topicobj.score) + ) { + console.log(score, "閿欒鍒嗗��"); + this.$message({ + message: "閫夐」鍒嗗�煎繀椤诲湪0鍒�" + this.topicobj.score + "鍒嗕箣闂�", + type: "warning", + }); + return false; + } + return true; + } else { this.$message({ - message: "閫夐」鍒嗗�煎繀椤诲湪0鍒�" + this.topicobj.score + "鍒嗕箣闂�", + message: "閫夐」鍒嗗�兼湭璁剧疆", type: "warning", }); return false; } + } else if (this.topicobj.scriptType == 2) { + // 绱姞鍒嗗�� + const totalScore = scorearr.reduce((acc, score) => { + if (score.score) { + return acc + Number(score.score); + } + return acc; // 濡傛灉 score.score 涓嶅瓨鍦紝涓嶇疮鍔� + }, 0); + + // 妫�鏌ョ疮鍔犵殑鍒嗗�兼槸鍚︾瓑浜� this.topicobj.score + if (totalScore !== Number(this.topicobj.score)) { + this.$message({ + message: + "澶氶�夐閫夐」鍒嗗�兼�诲拰蹇呴』绛変簬 " + this.topicobj.score + " 鍒�", + type: "warning", + }); + return false; + } + return true; // 濡傛灉鎬诲垎姝g‘锛岃繑鍥� true + } else if (this.topicobj.scriptType == 4) { return true; - } else if (this.topicobj.scriptType == 3) { - return true; - } else { - this.$message({ - message: "閫夐」鍒嗗�兼湭璁剧疆", - type: "warning", - }); - return false; } }); if (isValid) { this.compileissue(); - // console.log("鍒颁繚瀛樹簡"); } }, Saveproblem() { @@ -978,13 +1007,14 @@ // 鍒ゆ柇鎸囨爣 changefn(item) { console.log(item); - if (this.topicobj.targetname || this.topicobj.svyLibScriptOptions[0]) { this.$modal .confirm("鏇存敼绫诲瀷鍚庨�夐」灏嗘竻绌烘槸鍚︾户缁紵") .then(() => { this.scriptTypels = this.topicobj.scriptType; - this.topicobj.svyLibScriptOptions = []; + this.topicobj.svyLibScriptOptions.forEach((item) => { + item.isoperation = 3; + }); }) .catch(() => { this.topicobj.scriptType = this.scriptTypels; @@ -1001,8 +1031,6 @@ console.log(this.topicobj.svyLibScriptOptions); if (this.topicobj.svyLibScriptOptions[index].id) { - console.log(2); - this.topicobj.svyLibScriptOptions[index].isoperation = 3; } else { this.topicobj.svyLibScriptOptions.splice(index, 1); @@ -1055,12 +1083,10 @@ tagcategoryid: "0", }; listtag(tagqueryParams).then((response) => { - console.log(response, "寰呴�夋爣绛�"); this.optionstag = response.rows; }); }, handleClosetag(tag) { - console.log(tag); console.log(this.dynamicTags.indexOf(tag)); const lindex = this.dynamicTags.indexOf(tag); this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); @@ -1331,8 +1357,7 @@ border-radius: 4px; margin-top: 15px; margin-left: 10%; - padding-left: 20px; - padding-top: 15px; + padding: 20px; border: 1px solid #dcdfe6; -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04); diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 6d02685..85d3a9c 100644 --- a/src/views/knowledge/questionnaire/compilequer/index.vue +++ b/src/views/knowledge/questionnaire/compilequer/index.vue @@ -242,7 +242,18 @@ </div> <!-- 闂嵎璁剧疆 --> <div v-if="Editprogress == 2"> - <div class="leftvlue-jbxx">闂嵎棰樼洰璁剧疆</div> + <div class="leftvlue-jbxx"> + 闂嵎棰樼洰璁剧疆 + <span style="" + ><el-button + type="warning" + icon="el-icon-finished" + round + @click="test" + >棰樼洰瑙勫垯鏁堥獙</el-button + ></span + > + </div> <el-divider></el-divider> <div style="display: flex; justify-content: space-between"> <div> @@ -349,7 +360,15 @@ key="nextScriptno" prop="nextScriptno" :show-overflow-tooltip="true" - /> + > + <template slot-scope="scope"> + <span>{{ + scope.row.nextScriptno == 0 + ? "宸叉槸鏈�鍚庝竴棰�" + : scope.row.nextScriptno + }}</span> + </template> + </el-table-column> <el-table-column v-if="Operateit" @@ -405,7 +424,7 @@ ></el-input> </el-form-item ></el-col> <el-col :span="12"> - <el-form-item label="涓嬮璺宠浆" v-if="!topicobj.branchFlag"> + <el-form-item label="涓嬮璺宠浆"> <el-input v-model="topicobj.nextScriptno" placeholder="璇疯緭鍏ラ鍙�" @@ -433,12 +452,16 @@ </el-option> </el-select></el-form-item ></el-col> <el-col :span="12"> - <el-form-item label="棰樼洰鍒嗘暟"> + <el-form-item + label="棰樼洰鍒嗗��" + v-if="topicobj.scoretype == 1" + > <el-input - v-model="topicobj.scriptTopic" - placeholder="璇疯緭鍏ユ爣棰�" - ></el-input> </el-form-item - ></el-col> + v-model="topicobj.score" + placeholder="璇疯緭鍏ラ鍙�" + ></el-input> + </el-form-item> + </el-col> </el-row> <el-row :gutter="10"> @@ -465,20 +488,10 @@ </el-form-item></el-col > </el-row> - <el-row> - <el-col :span="12"> - <el-form-item - label="棰樼洰鍒嗗��" - v-if="topicobj.scoretype == 1" - > - <el-input - v-model="topicobj.score" - placeholder="璇疯緭鍏ラ鍙�" - ></el-input> - </el-form-item> - </el-col> - </el-row> - <el-form-item label="鏄惁鐢遍�夐」閰嶇疆璺宠浆"> + <el-form-item + label="鏄惁鐢遍�夐」閰嶇疆璺宠浆" + v-if="topicobj.scriptType == 1" + > <el-radio-group v-model="topicobj.branchFlag"> <el-radio :label="1">鏄�</el-radio> <el-radio :label="0">鍚�</el-radio> @@ -506,7 +519,7 @@ <el-col :span="8"> <el-form-item v-if="topicobj.scoretype == 1" - label="鍒嗗��" + label="閫夐」鍒嗗��" > <el-input class="custom-width" @@ -539,11 +552,12 @@ </el-form-item> </el-col> </el-row> - <el-row :gutter="10"> + <el-row :gutter="10" v-if="topicobj.branchFlag == 1"> <el-col :span="20" ><el-form-item label="涓嬮璺宠浆(搴忓彿)"> <el-input type="text" + @blur="branchFlagfn" placeholder="璇疯緭鍏ラ鍙�" v-model="item.nextQuestion" show-word-limit @@ -635,62 +649,61 @@ <div class="leftvlue-jbxx">闂嵎棰勮</div> <el-divider></el-divider> <div class="preview-left"> - <!-- 鍗曢�� --> - <div - class="scriptTopic-dev" - v-for="item in ruleForm.svyTemplateLibScripts" - :key="item.sort" - v-if="item.scriptType == 1" - > - <div class="dev-text"> - {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + <div v-for="item in ruleForm.svyTemplateLibScripts"> + <!-- 鍗曢�� --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 1" + > + <div class="dev-text"> + {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-radio-group v-model="item.remark"> + <el-radio + v-for="(items, index) in item.svyLibTemplateTargetoptions" + :key="index" + :label="index" + >{{ items.optioncontent }}</el-radio + > + </el-radio-group> + </div> </div> - <div class="dev-xx"> - <el-radio-group v-model="item.remark"> - <el-radio - v-for="(items, index) in item.svyLibTemplateTargetoptions" - :key="index" - :label="index" - >{{ items.optioncontent }}</el-radio - > - </el-radio-group> + <!-- 澶氶�� --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 2" + > + <div class="dev-text"> + {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-checkbox-group v-model="qremark"> + <el-checkbox + v-for="(items, index) in item.svyLibTemplateTargetoptions" + :key="index" + :label="index" + > + {{ items.optioncontent }} + </el-checkbox> + </el-checkbox-group> + </div> </div> - </div> - <!-- 澶氶�� --> - <div - class="scriptTopic-dev" - v-for="item in ruleForm.svyTemplateLibScripts" - :key="item.sort" - v-if="item.scriptType == 2" - > - <div class="dev-text"> - {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-checkbox-group v-model="qremark"> - <el-checkbox - v-for="(items, index) in item.svyLibTemplateTargetoptions" - :key="index" - :label="index" - > - {{ items.optioncontent }} - </el-checkbox> - </el-checkbox-group> - </div> - </div> - <!-- 濉┖ --> - <div - class="scriptTopic-dev" - v-for="item in ruleForm.svyTemplateLibScripts" - :key="item.sort" - v-if="item.scriptType == 3" - > - <div class="dev-text"> - {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> - </el-input> + <!-- 濉┖ --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 3" + > + <div class="dev-text"> + {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> + </el-input> + </div> </div> </div> </div> @@ -1487,13 +1500,10 @@ this.sortFn(); }, sortFn() { - console.log(this.ruleForm.svyTemplateLibScripts, "搴忓墠鍊�"); this.ruleForm.svyTemplateLibScripts.forEach((item, index) => { item.sort = Number(index) + 1; - console.log(this.ruleForm.svyTemplateLibScripts.length, "length"); - if (item.sort == this.ruleForm.svyTemplateLibScripts.length) { - item.nextScriptno = "宸叉槸鏈�鍚庝竴棰�"; + item.nextScriptno = 0; } else { item.nextScriptno = item.sort + 1; } @@ -1626,14 +1636,12 @@ this.illnessVisible = false; this.$modal.msgSuccess("缂栬緫鎴愬姛"); }, - // -------------------------- resetQuery() { this.queryParams = { pageNum: 1, pageSize: 10 }; this.getaddtopiclist(); }, - resetForm(formName) { - this.$refs[formName].resetFields(); - }, + + // -------------------------- // 闂嵎鍒嗘暟闄愬埗绠楁硶 // 娣峰悎璺嚎 generateCombinations(arrays, currentIndex = 0, currentCombination = []) { @@ -1657,16 +1665,13 @@ }, // 鎵ц test() { - const arrays = [ - ["2", "3", "4", "5"], - ["1", "2", "5", "6"], - ["3", "4", "5", "3"], - ["3", "2", "5", "7"], - ]; + console.log(this.ruleForm.svyTemplateLibScripts); + const arraysa = [ { id: 1, - grade: "5", + Topicjump: "2", + branchFlag: "0", arr: [ { name: "涓嶉敊", skip: 2 }, { name: "涓�鑸�", skip: 2 }, @@ -1677,86 +1682,217 @@ { id: 2, - grade: "5", + Topicjump: "4", + branchFlag: "1", arr: [ - { name: "浼樼", skip: 3 }, + { name: "浼樼", skip: 4 }, { name: "鑹ソ", skip: 3 }, { name: "涓�鑸�", skip: 3 }, - { name: "杈冨樊", skip: 4 }, + { name: "杈冨樊", skip: 3 }, ], }, { id: 3, - grade: "5", + Topicjump: "4", + branchFlag: "1", arr: [ { name: "鏄殑", skip: 4 }, - { name: "涓嶆竻妤�", skip: 4 }, + { name: "涓嶆竻妤�", skip: 5 }, { name: "杩樺彲", skip: 4 }, { name: "涓�鑸�", skip: 4 }, ], }, { id: 4, - grade: "5", + Topicjump: "5", + branchFlag: "0", + bac: null, + }, + { + id: 5, + Topicjump: "0", + branchFlag: "0", arr: [ - { name: "鐪熶笉閿�", skip: null }, - { name: "杩樺彲浠�", skip: null }, - { name: "涓�鑸埇", skip: null }, - { name: "涓嶆竻妤�", skip: null }, + { name: "鐪熶笉閿�", skip: 0 }, + { name: "杩樺彲浠�", skip: 0 }, + { name: "涓�鑸埇", skip: 0 }, + { name: "涓嶆竻妤�", skip: 0 }, ], }, ]; - // const newMixArray = this.generateCombinations(arrays); - const newMixArray = this.getExecutionOrders(arraysa); - + const csnewMixArray = this.csgetExecutionOrders(arraysa); + console.log(csnewMixArray, "娴嬭瘯鍏ㄩ儴璺嚎"); + const newMixArray = this.getExecutionOrders( + this.ruleForm.svyTemplateLibScripts + ); console.log(newMixArray, "鍏ㄩ儴璺嚎"); - this.screen(newMixArray); + this.sumArray(newMixArray); }, - getExecutionOrders(data) { - let orders = []; + // 閬嶅巻鏂规硶 + csgetExecutionOrders(arrays) { + const allPaths = []; + const findPath = (currentId, path) => { + const current = arrays.find((item) => item.id.toString() === currentId); + if (!current) return; + path.push(current); - const explore = (currentOrder, id) => { - console.log(currentOrder, "currentOrder", id); - const currentQuestion = data[currentOrder[currentOrder.length - 1]]; - if ( - currentQuestion.arr.some( - (option) => - option.skip !== null && !currentOrder.includes(option.skip) - ) - ) { - currentQuestion.arr.forEach((option) => { - if (option.skip !== null && !currentOrder.includes(option.skip)) { - explore([...currentOrder, option.skip]); - } + if (current.branchFlag === "1") { + current.arr.forEach((option) => { + findPath(option.skip.toString(), path.slice()); }); } else { - orders.push( - currentOrder.map((id) => ({ - id: data[id].id, - grade: data[id].grade, - })) - ); + const nextId = parseInt(current.Topicjump); + if (nextId !== 0) { + findPath(nextId.toString(), path.slice()); + } else { + allPaths.push(path.slice()); + } } }; - console.log(data, "data"); - data.forEach((entry) => { - explore([entry.id], entry.id); - }); - return orders; + findPath("1", []); + return allPaths; + }, + // 閬嶅巻鏂规硶 + getExecutionOrders(arrays) { + const allPaths = []; + const findPath = (currentId, path) => { + const current = arrays.find( + (item) => item.sort.toString() === currentId + ); + if (!current) return; + path.push(current); + + if (current.branchFlag == "1") { + current.svyLibTemplateTargetoptions.forEach((option) => { + findPath(option.nextQuestion.toString(), path.slice()); + }); + } else { + const nextId = parseInt(current.nextScriptno); + if (nextId !== 0) { + findPath(nextId.toString(), path.slice()); + } else { + allPaths.push(path.slice()); + } + } + }; + + findPath("1", []); + return allPaths; }, // 鏁扮粍姹傚拰 sumArray(arr) { - return arr.reduce((acc, curr) => acc + parseInt(curr), 0); - }, - // 绛涢�夐敊璇矾绾� - screen(data) { - const arraysGreaterThan10 = data.filter((arr) => this.sumArray(arr) > 21); + // const arrsum = arr; + // arrsum.forEach((item) => { + // // 鍒ゆ柇棰樼洰鍜屾ā鐗堝眰绾� + // console.log(item, "涓�鏉¢摼璺�"); - console.log(arraysGreaterThan10, "绛涢�夐敊璇矾绾垮ぇ浜�13鍒�"); + // const totalScore = item.reduce((accumulator, current) => { + // return accumulator + Number(current.score); + // }, 0); + // console.log(totalScore); + // console.log(this.ruleForm.scriptScore); + + // if (totalScore == this.ruleForm.scriptScore) { + // this.ClaimNofn(arr); + // this.$modal.msgSuccess("鍒嗘暟鏍搁獙鎴愬姛"); + // } + // }); + + const allGreaterThanTen = arr.every((array) => { + const totalScore = array.reduce((accumulator, current) => { + return accumulator + current.score; + }, 0); + return totalScore == this.ruleForm.scriptScore; + }); + if (allGreaterThanTen) { + this.$modal.msgSuccess("棰樼洰鍒嗗�肩疮鍔犲拰妯$増鎬诲垎鐩哥"); + } else { + this.$modal.msgError("棰樼洰鍒嗗�肩疮鍔犲拰妯$増鍒嗗�间笉绗�"); + } }, + + // 閬嶅巻鏄惁閲嶅鏄惁閮界敤涓� + ClaimNofn(arr) { + arr.forEach((item) => { + const Aarr = item; + const Barr = this.ruleForm.svyTemplateLibScripts; + const notInB = A.filter( + (itemA) => !B.some((itemB) => itemB.id === itemA.id) + ); + + if (notInB.length) { + this.$modal.msgError("棰樼洰鏈叏閮ㄤ娇鐢�"); + } else { + this.$modal.msgSuccess("棰樼洰鍏ㄩ儴浣跨敤"); + } + }); + arr.forEach((item) => { + const idCount = arr.reduce((acc, item) => { + acc[item.id] = (acc[item.id] || 0) + 1; + return acc; + }, {}); + const whether = item.values(idCount).some((count) => count > 1); // 濡傛灉鏈変换浣� id 鐨勮鏁板ぇ浜� 1 灏辫繑鍥� true + if (!whether) this.$modal.msgError("閰嶇疆椤规湁棰樼洰閲嶅"); + }); + }, + // 棰樼洰鍜岄�夐」闂寸殑鍒嗗�煎垽鏂� + Scorejudgment() { + let scorearr = this.topicobj.svyLibScriptOptions; + let isValid = scorearr.every((score, index) => { + if (this.topicobj.scriptType == 1) { + if (score.score) { + if ( + Number(score.score) < 0 || + Number(score.score) > Number(this.topicobj.score) + ) { + console.log(score, "閿欒鍒嗗��"); + this.$message({ + message: "閫夐」鍒嗗�煎繀椤诲湪0鍒�" + this.topicobj.score + "鍒嗕箣闂�", + type: "warning", + }); + return false; + } + return true; + } else { + this.$message({ + message: "閫夐」鍒嗗�兼湭璁剧疆", + type: "warning", + }); + return false; + } + } else if (this.topicobj.scriptType == 2) { + // 绱姞鍒嗗�� + const totalScore = scorearr.reduce((acc, score) => { + if (score.score) { + return acc + Number(score.score); + } + return acc; // 濡傛灉 score.score 涓嶅瓨鍦紝涓嶇疮鍔� + }, 0); + + // 妫�鏌ョ疮鍔犵殑鍒嗗�兼槸鍚︾瓑浜� this.topicobj.score + if (totalScore !== Number(this.topicobj.score)) { + this.$message({ + message: + "澶氶�夐閫夐」鍒嗗�兼�诲拰蹇呴』绛変簬 " + this.topicobj.score + " 鍒�", + type: "warning", + }); + return false; + } + return true; // 濡傛灉鎬诲垎姝g‘锛岃繑鍥� true + } else if (this.topicobj.scriptType == 4) { + return true; + } + }); + + if (isValid) { + this.compileissue(); + } + }, + + // --------------------------------------------------------- // 鏂伴棶棰樻柊澧� addoption() { if (!this.indexform.svyLibTemplateTargetoptions) { @@ -1783,6 +1919,13 @@ this.$forceUpdate(); } else { this.$message.error("鍥剧墖鎻掑叆澶辫触"); + } + }, + branchFlagfn(row) { + console.log(row); + if (this.topicobj.branchFlag == 1 && this.topicobj.nextScriptno != 0) { + this.topicobj.nextScriptno = + this.topicobj.svyLibTemplateTargetoptions[0].nextQuestion; } }, }, @@ -1818,6 +1961,8 @@ font-size: 20px; } .leftvlue-jbxx { + display: flex; /* 浣跨敤 Flexbox 甯冨眬 */ + justify-content: space-between; font-size: 24px; border-left: 5px solid #41a1be; padding-left: 5px; diff --git a/src/views/knowledge/questionnaire/index.vue b/src/views/knowledge/questionnaire/index.vue index a4c3b9e..a77ca7e 100644 --- a/src/views/knowledge/questionnaire/index.vue +++ b/src/views/knowledge/questionnaire/index.vue @@ -405,61 +405,60 @@ <el-dialog title="闅忚棰樼洰棰勮" :visible.sync="topicVisible" width="50%"> <div class="preview-left"> <!-- 鍗曢�� --> - <div - class="scriptTopic-dev" - v-for="item in topicform.svyTemplateLibScripts" - :key="item.sort" - v-if="item.scriptType == 1" - > - <div class="dev-text"> - {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + <div v-for="item in topicform.svyTemplateLibScripts"> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 1" + > + <div class="dev-text"> + {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-radio-group v-model="item.remark"> + <el-radio + v-for="(items, index) in item.svyLibTemplateTargetoptions" + :key="index" + :label="index" + >{{ items.optioncontent }}</el-radio + > + </el-radio-group> + </div> </div> - <div class="dev-xx"> - <el-radio-group v-model="item.remark"> - <el-radio - v-for="(items, index) in item.svyLibTemplateTargetoptions" - :key="index" - :label="index" - >{{ items.optioncontent }}</el-radio - > - </el-radio-group> + <!-- 澶氶�� --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 2" + > + <div class="dev-text"> + {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-checkbox-group v-model="qremark"> + <el-checkbox + v-for="(items, index) in item.svyLibTemplateTargetoptions" + :key="index" + :label="index" + > + {{ items.optioncontent }} + </el-checkbox> + </el-checkbox-group> + </div> </div> - </div> - <!-- 澶氶�� --> - <div - class="scriptTopic-dev" - v-for="item in topicform.svyTemplateLibScripts" - :key="item.sort" - v-if="item.scriptType == 2" - > - <div class="dev-text"> - {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-checkbox-group v-model="qremark"> - <el-checkbox - v-for="(items, index) in item.svyLibTemplateTargetoptions" - :key="index" - :label="index" - > - {{ items.optioncontent }} - </el-checkbox> - </el-checkbox-group> - </div> - </div> - <!-- 濉┖ --> - <div - class="scriptTopic-dev" - v-for="item in topicform.svyTemplateLibScripts" - :key="item.sort" - v-if="item.scriptType == 4" - > - <div class="dev-text"> - {{ item.sort }}銆乕闂瓟]<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> - </el-input> + <!-- 濉┖ --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 4" + > + <div class="dev-text"> + {{ item.sort }}銆乕闂瓟]<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> + </el-input> + </div> </div> </div> </div> diff --git a/src/views/outsideChain.vue b/src/views/outsideChain.vue index e17fbfe..63ec141 100644 --- a/src/views/outsideChain.vue +++ b/src/views/outsideChain.vue @@ -76,16 +76,18 @@ getQuestionnaire() { let taskid = this.$route.query.param1; let patid = this.$route.query.param2; + let taskname = this.$route.query.param3; let routertf = this.$route.query.param5; console.log(taskid, "taskid"); console.log(patid, "patid"); + console.log(taskname, "patid"); console.log(routertf, "routertf"); // let taskid = // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; // let patid = // "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; - // this.taskid = this.decrypt(taskid); + this.taskid = this.decrypt(taskid); this.patid = this.decrypt(patid); this.taskid = taskid; @@ -93,8 +95,8 @@ console.log(this.taskid, "this.taskid"); console.log(this.patid, "this.patid"); - // this.$modal.msgSuccess("鐢ㄦ埛id涓�" + this.patid); - // this.$modal.msgSuccess("浠诲姟id涓�" + this.taskid); + this.$modal.msgSuccess("鐢ㄦ埛id涓�" + this.patid); + this.$modal.msgSuccess("浠诲姟id涓�" + this.taskid); let taskids = this.encrypt(this.taskid); let patids = this.encrypt(this.patid); getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index 8c547ab..e8b0995 100644 --- a/src/views/repositoryai/intention/index.vue +++ b/src/views/repositoryai/intention/index.vue @@ -512,20 +512,6 @@ <el-row v-if="!measurement"> <el-col :span="24"> <el-form-item label="閫傜敤鍦烘櫙" prop="suitWayList"> - <!-- <el-select - class="el-select1" - v-model="indexform.suitWayList" - multiple - @change="changeselect" - placeholder="璇烽�夋嫨" - > - <el-option - v-for="item in mode" - :key="item.value" - :label="item.label" - :value="item.value" - ></el-option> - </el-select> --> <el-checkbox-group v-model="indexform.suitWayList"> <el-checkbox v-for="item in mode" :label="item.value">{{ item.label @@ -1279,6 +1265,7 @@ this.indexform = { ivrLibaTargetTagList: [], targetoptionList: [], + suitWayList: [], }; this.dynamicTags = []; this.testuserList = [ diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue index 62ee58e..e33ab1e 100644 --- a/src/views/repositoryai/templateku/configurat/index.vue +++ b/src/views/repositoryai/templateku/configurat/index.vue @@ -348,9 +348,16 @@ @click="getaddtopiclist" >娣诲姞棰樼洰</el-button > + <el-button + type="success" + icon="el-icon-edit-outline" + round + @click="Operateit = !Operateit" + >{{ !Operateit ? "缂栬緫棰樼洰" : "瀹屾暣淇℃伅灞曠ず" }}</el-button + > </div> <div class="presentation"> - <div class="presentation-left"> + <div :class="Operateit ? 'presentation-left' : 'spresentation-left'"> <el-card class="box-card" style="min-height: 688px"> <el-table v-loading="loading" @@ -370,15 +377,40 @@ :show-overflow-tooltip="true" /> <el-table-column + v-if="!Operateit" label="闂璇濇湳" align="center" key="scriptContent" prop="scriptContent" :show-overflow-tooltip="true" /> + <el-table-column + v-if="!Operateit" + label="闂璇濇湳" + align="center" + key="scriptContent" + prop="scriptContent" + :show-overflow-tooltip="true" + /> + <el-table-column + label="涓嬮璺宠浆" + align="center" + key="nextScriptno" + prop="nextScriptno" + :show-overflow-tooltip="true" + > + <template slot-scope="scope"> + <span>{{ + scope.row.nextScriptno == 0 + ? "宸叉槸鏈�鍚庝竴棰�" + : scope.row.nextScriptno + }}</span> + </template> + </el-table-column> <el-table-column label="鎿嶄綔" + v-if="Operateit" align="center" width="250" class-name="small-padding fixed-width" @@ -413,7 +445,7 @@ </el-table> </el-card> </div> - <div class="presentation-right"> + <div class="presentation-right" v-if="Operateit"> <el-card class="box-card"> <el-form :model="topicobj" @@ -422,13 +454,21 @@ > <div class="headline">棰樼洰璁剧疆璇︽儏</div> <el-row> - <el-col :span="20" + <el-col :span="12" ><el-form-item label="棰樼洰鏍囬"> <el-input v-model="topicobj.scriptTopic" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" ></el-input> </el-form-item ></el-col> + <el-col :span="12"> + <el-form-item label="涓嬮璺宠浆"> + <el-input + v-model="topicobj.nextScriptno" + placeholder="璇疯緭鍏ラ鍙�" + ></el-input> + </el-form-item> + </el-col> </el-row> <el-row> <el-col :span="20" @@ -469,14 +509,14 @@ </el-select> </el-form-item ></el-col> <el-col :span="12" - ><el-form-item label="鍙栧�肩被鍨�"> + ><el-form-item label="棰樼洰绫诲瀷"> <el-select - v-model="topicobj.valueType" + v-model="topicobj.scriptType" placeholder="璇烽�夋嫨" :disabled="true" > <el-option - v-for="item in valuetype" + v-for="item in askvaluetype" :key="item.value" :label="item.label" :value="item.value" @@ -485,6 +525,15 @@ </el-select> </el-form-item ></el-col> </el-row> + <el-form-item + label="鏄惁鐢遍�夐」閰嶇疆璺宠浆" + v-if="topicobj.scriptType == 1" + > + <el-radio-group v-model="topicobj.branchFlag"> + <el-radio :label="1">鏄�</el-radio> + <el-radio :label="0">鍚�</el-radio> + </el-radio-group> + </el-form-item> <el-row> <el-col :span="6"> <el-form-item label="闂璇煶" prop="verbaltrickyy"> @@ -556,6 +605,8 @@ <Regular :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList" @deloption="deloption" + @branchFlagfn="branchFlagfn" + :branchFlag="topicobj.branchFlag ? true : false" :controlsc="false" /> <!-- 鏃犲尮閰嶇被鍨� --> @@ -753,62 +804,64 @@ <el-divider></el-divider> <div class="preview-left"> - <!-- 鍗曢�� --> - <div - class="scriptTopic-dev" - v-for="item in valssu" - :key="item.sort" - v-if="item.valueType == 1" - > - <div class="dev-text"> - {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + <div v-for="item in valssu"> + <!-- 鍗曢�� --> + <div + class="scriptTopic-dev" + + :key="item.sort" + v-if="item.valueType == 1" + > + <div class="dev-text"> + {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-radio-group v-model="item.remark"> + <el-radio + v-for="(items, index) in item.ivrLibaScriptTargetoptionList" + :key="index" + :label="index" + >{{ items.targetvalue }}</el-radio + > + </el-radio-group> + </div> </div> - <div class="dev-xx"> - <el-radio-group v-model="item.remark"> - <el-radio - v-for="(items, index) in item.ivrLibaScriptTargetoptionList" - :key="index" - :label="index" - >{{ items.targetvalue }}</el-radio - > - </el-radio-group> + <!-- 澶氶�� --> + <div + class="scriptTopic-dev" + + :key="item.sort" + v-if="item.valueType == 2" + > + <div class="dev-text"> + {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-checkbox-group v-model="item.remark"> + <el-checkbox + v-for="(items, index) in item.ivrLibaScriptTargetoptionList" + :key="index" + :label="index" + > + {{ items.targetvalue }} + </el-checkbox> + </el-checkbox-group> + </div> </div> - </div> - <!-- 澶氶�� --> - <div - class="scriptTopic-dev" - v-for="item in valssu" - :key="item.sort" - v-if="item.valueType == 2" - > - <div class="dev-text"> - {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-checkbox-group v-model="item.remark"> - <el-checkbox - v-for="(items, index) in item.ivrLibaScriptTargetoptionList" - :key="index" - :label="index" - > - {{ items.targetvalue }} - </el-checkbox> - </el-checkbox-group> - </div> - </div> - <!-- 濉┖ --> - <div - class="scriptTopic-dev" - v-for="item in valssu" - :key="item.sort" - v-if="item.valueType == 3" - > - <div class="dev-text"> - {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> - </el-input> + <!-- 濉┖ --> + <div + class="scriptTopic-dev" + + :key="item.sort" + v-if="item.valueType == 3" + > + <div class="dev-text"> + {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> + </el-input> + </div> </div> </div> </div> @@ -1335,6 +1388,7 @@ radioas: "", //濉┖棰樼瓟妗� task: null, //鏄惁鏉ヨ嚜浠诲姟 taskform: null, //浠诲姟淇℃伅 + Operateit: true, indexform: { ivrLibaScriptTargetoptionList: [], }, @@ -1385,6 +1439,7 @@ usable: [], required: [], valuetype: [], + askvaluetype: [], mode: [], inputVisible: false, inputVisibleillness: false, @@ -1451,6 +1506,7 @@ this.usable = store.getters.usable; this.required = store.getters.required; this.valuetype = store.getters.valuetype; + this.askvaluetype = store.getters.askvaluetype; this.languagelist = store.getters.languagelist; this.courtyardlist = store.getters.courtyardlist; this.precedencetype = store.getters.precedencetype; @@ -1555,7 +1611,14 @@ }); // 鐤剧梾鍒� }, - // + // 閫夐」閰嶇疆璺宠浆瑙﹀彂 + branchFlagfn(row) { + if (this.topicobj.branchFlag == 1 && this.topicobj.nextScriptno != 0) { + this.topicobj.nextScriptno = + this.topicobj.ivrLibaScriptTargetoptionList[0].nextQuestion; + } + }, + //淇濆瓨 submitForm(formName) { if (this.ruleForm.id) { this.ruleForm.isoperation = 2; @@ -1874,16 +1937,20 @@ }, // 闂鎺掑簭 sortFn() { - this.ruleForm.ivrLibaTemplateScriptVOList = - this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => { - return Object.assign({}, item, { sort: (index + 1).toString() }); - }); - this.ruleForm.ivrLibaTemplateScriptVOList.forEach((question, index) => { - question.ivrLibaScriptTargetoptionList = - question.ivrLibaScriptTargetoptionList.map((option) => { - option.nextQuestion = Number(question.sort) + 1; - return option; + this.ruleForm.ivrLibaTemplateScriptVOList.forEach((item, index) => { + item.sort = Number(index) + 1; + console.log(1); + + if (item.sort == this.ruleForm.ivrLibaTemplateScriptVOList.length) { + item.nextScriptno = 0; + } else { + item.nextScriptno = item.sort + 1; + } + if (item.ivrLibaScriptTargetoptionList) { + item.ivrLibaScriptTargetoptionList.forEach((items) => { + items.nextQuestion = Number(item.sort) + 1; }); + } }); console.log(this.ruleForm.ivrLibaTemplateScriptVOList); }, @@ -2092,6 +2159,16 @@ color: #f52727; } } + .spresentation-left { + width: 100%; + // height: 500px; + .button-textxg { + color: #024df0; + } + .button-textsc { + color: #f52727; + } + } .presentation-right { width: 55%; max-height: 688px; diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue index cdd2e22..db3e944 100644 --- a/src/views/repositoryai/templateku/index.vue +++ b/src/views/repositoryai/templateku/index.vue @@ -416,62 +416,61 @@ <!-- 闅忚棰樼洰棰勮 --> <el-dialog title="闅忚棰樼洰棰勮" :visible.sync="topicVisible" width="50%"> <div class="preview-left"> - <!-- 鍗曢�� --> - <div - class="scriptTopic-dev" - v-for="item in topicform.ivrLibaTemplateScriptVOList" - :key="item.targetid" - v-if="item.valueType == 1" - > - <div class="dev-text"> - {{ item.targetid }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + <div v-for="item in topicform.ivrLibaTemplateScriptVOList"> + <!-- 鍗曢�� --> + <div + class="scriptTopic-dev" + :key="item.targetid" + v-if="item.valueType == 1" + > + <div class="dev-text"> + {{ item.targetid }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-radio-group v-model="item.remark"> + <el-radio + v-for="(items, index) in item.ivrLibaScriptTargetoptionList" + :key="index" + :label="index" + >{{ items.targetvalue }}</el-radio + > + </el-radio-group> + </div> </div> - <div class="dev-xx"> - <el-radio-group v-model="item.remark"> - <el-radio - v-for="(items, index) in item.ivrLibaScriptTargetoptionList" - :key="index" - :label="index" - >{{ items.targetvalue }}</el-radio - > - </el-radio-group> + <!-- 澶氶�� --> + <div + class="scriptTopic-dev" + :key="item.targetid" + v-if="item.valueType == 2" + > + <div class="dev-text"> + {{ item.targetid }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-checkbox-group v-model="item.remark"> + <el-checkbox + v-for="(items, index) in item.ivrLibaScriptTargetoptionList" + :key="index" + :label="index" + > + {{ items.targetvalue }} + </el-checkbox> + </el-checkbox-group> + </div> </div> - </div> - <!-- 澶氶�� --> - <div - class="scriptTopic-dev" - v-for="item in topicform.ivrLibaTemplateScriptVOList" - :key="item.targetid" - v-if="item.valueType == 2" - > - <div class="dev-text"> - {{ item.targetid }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-checkbox-group v-model="item.remark"> - <el-checkbox - v-for="(items, index) in item.ivrLibaScriptTargetoptionList" - :key="index" - :label="index" - > - {{ items.targetvalue }} - </el-checkbox> - </el-checkbox-group> - </div> - </div> - <!-- 濉┖ --> - <div - class="scriptTopic-dev" - v-for="item in topicform.ivrLibaTemplateScriptVOList" - :key="item.targetid" - v-if="item.valueType == 3" - > - <div class="dev-text"> - {{ item.targetid }}銆乕濉┖]<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> - </el-input> + <!-- 濉┖ --> + <div + class="scriptTopic-dev" + :key="item.targetid" + v-if="item.valueType == 3" + > + <div class="dev-text"> + {{ item.targetid }}銆乕濉┖]<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> + </el-input> + </div> </div> </div> </div> diff --git a/vue.config.js b/vue.config.js index 2e93784..7abbd0d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -9,7 +9,7 @@ const name = process.env.VUE_APP_TITLE || '鎮h�呮櫤鎱ф湇鍔$郴缁�' // 缃戦〉鏍囬 -const port = process.env.port || process.env.npm_config_port || 8096 // 绔彛 +const port = process.env.port || process.env.npm_config_port || 8095 // 绔彛 // vue.config.js 閰嶇疆璇存槑 //瀹樻柟vue.config.js 鍙傝�冩枃妗� https://cli.vuejs.org/zh/config/#css-loaderoptions -- Gitblit v1.9.3