From 1811ac2572dc2e7116f8ba4ea537abf7d57dd61e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 02 八月 2024 16:31:01 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/intention/index.vue | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index fcd9c99..5950bd3 100644 --- a/src/views/repositoryai/intention/index.vue +++ b/src/views/repositoryai/intention/index.vue @@ -484,7 +484,10 @@ <el-row v-if="!measurement"> <el-col :span="24"> <el-form-item label="棰樼洰绫诲瀷"> - <el-radio-group v-model="indexform.scriptType"> + <el-radio-group + @input="Changtype" + v-model="indexform.scriptType" + > <el-radio :label="1">鍗曢��</el-radio> <el-radio :label="2">澶氶��</el-radio> <el-radio :label="3">濉┖</el-radio> @@ -534,6 +537,7 @@ <el-form-item label="鏀堕泦淇℃伅"> <el-card class="box-card"> <div v-for="item in indexform.targetoptionList"> + <span>{{ "(" + item.orderno + ")" }}</span> <el-input type="text" placeholder="濉叆鏀堕泦淇℃伅" @@ -718,6 +722,7 @@ radio: "涓诲垎绫�", testvalue: "", testgovalue: "", + creatype:'',//鎸囨爣涓存椂绫诲瀷 hasValue: true, classifyform: { categoryname: "", @@ -846,7 +851,7 @@ // 渚挎嵎鏍囩 tsgnameto(row) { let inputValueArr = ""; - let value = 1; + let value = indexform.targetoptionList.length + 1; let el = document.querySelector("#" + this.currentInputId); //el.selectionStart; 杩欏氨鏄綋鍓嶅厜鏍囨墍鍦ㄧ殑浣嶇疆锛堝瓧绗︿覆涓瓧绗︾殑index锛� @@ -865,6 +870,10 @@ selectLength, "__" + value + "__" ); + this.indexform.targetoptionList.push({ + orderno: value, + optiondesc: "", + }); // 鎶婃暟缁勯噸鏂拌浆鎹负瀛楃涓插苟璧嬪�� inputValueArr = inputValueArr.join(""); console.log(inputValueArr); @@ -874,6 +883,19 @@ return; } }, + Changtype(item) { + console.log(item, "閫夐」鍙樻洿鐨勫鐞�"); + if (item==3) { + this.$modal + .confirm('鏇存敼绫诲瀷涓哄~绌哄悗閫夐」灏嗘竻绌烘槸鍚︾户缁紵') + .then(() => { + + }) + .catch(() => { + + }); + } + }, // 鐤剧梾----------------------- illnessUpdate(row) { this.illnessVisible = true; -- Gitblit v1.9.3