From a4dff39e4fd1e29b4b94997c79a1dd5f575f56de Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 29 七月 2024 11:15:42 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/intention/index.vue | 43 ++++++++++++++++++++++++++++++------------- 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index 100dd5b..ea7af50 100644 --- a/src/views/repositoryai/intention/index.vue +++ b/src/views/repositoryai/intention/index.vue @@ -212,7 +212,7 @@ > </el-table-column> - <el-table-column + <!-- <el-table-column label="姝e父鍊艰寖鍥�" align="center" key="warndown" @@ -222,7 +222,7 @@ <template slot-scope="scope"> <span>{{ scope.row.warnup }}~{{ scope.row.warndown }}</span> </template> - </el-table-column> + </el-table-column> --> <el-table-column label="鎸囨爣鎻忚堪" align="center" @@ -297,7 +297,7 @@ ><i class="el-icon-edit"></i>淇敼</span ></el-button > - <el-button + <!-- <el-button size="medium" type="text" @click="handlemeasurement(scope.row)" @@ -305,7 +305,7 @@ ><span class="button-textcs" ><i class="el-icon-help"></i>娴嬭瘯</span ></el-button - > + > --> <el-button size="medium" type="text" @@ -486,6 +486,7 @@ <el-radio :label="1">鍗曢��</el-radio> <el-radio :label="2">澶氶��</el-radio> <el-radio :label="3">濉┖</el-radio> + <el-radio :label="4">闂瓟</el-radio> </el-radio-group> </el-form-item> </el-col></el-row @@ -495,8 +496,10 @@ <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 @@ -513,18 +516,19 @@ <el-card class="box-card" style="margin-bottom: 20px" - v-if="indexform.valueType == 1 || indexform.valueType == 2" + v-if="indexform.scriptType == 1 || indexform.scriptType == 2" > <Regular :TargetoptionList="testuserList" :intent="false" + :hasValue="hasValue" @addoption="addoption" @deloption="deloption" @syioption="syioption" @xiayioption="xiayioption" /> </el-card> - <div v-if="indexform.valueType == 3"> + <div v-if="indexform.scriptType == 3"> <el-form-item label="鏀堕泦淇℃伅"> <el-input type="text" @@ -707,6 +711,7 @@ radio: "涓诲垎绫�", testvalue: "", testgovalue: "", + hasValue: true, classifyform: { categoryname: "", }, //绫诲埆琛ㄥ崟 @@ -811,6 +816,10 @@ // 杩斿洖鏁扮粍涓寚瀹氬厓绱犵殑绱㈠紩 return arr.indexOf(obj); }, + changeselect(row) { + console.log(row); + this.hasValue = row.includes("2"); + }, //鍒犻櫎鍒嗙被 deletefenlei(row) { if (this.deleteVisible) { @@ -913,7 +922,7 @@ console.log(this.dynamicTags.indexOf(tag)); const lindex = this.dynamicTags.indexOf(tag); this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); - this.indexform.baseTagList[lindex].isoperation = 3; + this.indexform.ivrLibaTargetTagList[lindex].delFlag = 3; }, handleInputConfirm() { let tagvalue = {}; @@ -935,9 +944,9 @@ }; } console.log(tagvalue); - this.indexform.baseTagList.push(tagvalue); + this.indexform.ivrLibaTargetTagList.push(tagvalue); this.dynamicTags.push(tagvalue); - console.log(this.indexform.baseTagList); + console.log(this.indexform.ivrLibaTargetTagList); console.log(this.dynamicTags); }); } @@ -954,9 +963,11 @@ id: this.indexform.id, targettype: this.indexform.targettype, isoperation: 1, + isabnormal: 0, targetvalue: "", targetregex: "", targetregex2: "", + picturePath: "", dynamiccruxs: [], nodynamiccruxs: [], dynamiccruxsJson: "", @@ -1008,6 +1019,8 @@ dynamiccruxsJson: item.dynamiccruxsJson, nodynamiccruxsJson: item.nodynamiccruxsJson, targetoptionid: item.targetoptionid, + isabnormal: item.isabnormal, + picturePath: item.picturePath, }; }); console.log(this.testuserList); @@ -1120,7 +1133,7 @@ suitWayList: undefined, id: undefined, targetdesc: undefined, - baseTagList: [], + ivrLibaTargetTagList: [], targetoptionList: [], }; // this.resetForm("indexform"); @@ -1152,7 +1165,7 @@ this.reset(); this.title = "鏂板鎸囨爣"; this.indexform = { - baseTagList: [], + ivrLibaTargetTagList: [], targetoptionList: [], }; this.dynamicTags = []; @@ -1163,6 +1176,7 @@ targetregex: "", targetregex2: "", isoperation: 1, + picturePath: "", dynamiccruxs: [], nodynamiccruxs: [], dynamiccruxsJson: "", @@ -1175,10 +1189,10 @@ /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { this.reset(); - console.log(row); this.title = "鎸囨爣璇︽儏"; this.indexform = {}; this.indexform = row; + this.indexform.scriptType = Number(row.scriptType); if (!row.targetoptionList[0]) { row.targetoptionList = [ { @@ -1194,7 +1208,7 @@ }, ]; } - this.dynamicTags = row.baseTagList.map(this.processElement); + this.dynamicTags = row.ivrLibaTargetTagList.map(this.processElement); this.testuserList = row.targetoptionList; console.log(this.testuserList, "bbbb"); this.testvalue = ""; @@ -1396,6 +1410,9 @@ height: 400px; } } +.el-select { + width: 40%; +} ::v-deep.el-tabs--left, .el-tabs--right { overflow: hidden; -- Gitblit v1.9.3