From e7170681ee9e544f51564e026279875c0cc31563 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 25 七月 2024 14:55:09 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/intention/index.vue | 51 ++++++++++++++++++++++++++------------------------- 1 files changed, 26 insertions(+), 25 deletions(-) diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index 7c51c7c..4a78f11 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" @@ -495,8 +495,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,31 +515,19 @@ <el-card class="box-card" style="margin-bottom: 20px" - v-if="indexform.valueType == 1" + 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 == 2"> - <el-form-item label="鏀堕泦淇℃伅"> - <el-input - type="textarea" - :rows="2" - placeholder="濉叆鏀堕泦淇℃伅" - v-model="indexform.reply" - maxlength="50" - show-word-limit - > - </el-input - ></el-form-item> - </div> - <div v-if="indexform.valueType == 3"> + <div v-if="indexform.scriptType == 3"> <el-form-item label="鏀堕泦淇℃伅"> <el-input type="text" @@ -720,6 +710,7 @@ radio: "涓诲垎绫�", testvalue: "", testgovalue: "", + hasValue: true, classifyform: { categoryname: "", }, //绫诲埆琛ㄥ崟 @@ -824,6 +815,10 @@ // 杩斿洖鏁扮粍涓寚瀹氬厓绱犵殑绱㈠紩 return arr.indexOf(obj); }, + changeselect(row) { + console.log(row); + this.hasValue = row.includes("2"); + }, //鍒犻櫎鍒嗙被 deletefenlei(row) { if (this.deleteVisible) { @@ -926,7 +921,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 = {}; @@ -948,9 +943,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); }); } @@ -967,6 +962,7 @@ id: this.indexform.id, targettype: this.indexform.targettype, isoperation: 1, + isabnormal: 0, targetvalue: "", targetregex: "", targetregex2: "", @@ -1021,6 +1017,7 @@ dynamiccruxsJson: item.dynamiccruxsJson, nodynamiccruxsJson: item.nodynamiccruxsJson, targetoptionid: item.targetoptionid, + isabnormal: item.isabnormal, }; }); console.log(this.testuserList); @@ -1133,7 +1130,7 @@ suitWayList: undefined, id: undefined, targetdesc: undefined, - baseTagList: [], + ivrLibaTargetTagList: [], targetoptionList: [], }; // this.resetForm("indexform"); @@ -1165,7 +1162,7 @@ this.reset(); this.title = "鏂板鎸囨爣"; this.indexform = { - baseTagList: [], + ivrLibaTargetTagList: [], targetoptionList: [], }; this.dynamicTags = []; @@ -1192,6 +1189,7 @@ this.title = "鎸囨爣璇︽儏"; this.indexform = {}; this.indexform = row; + this.indexform.scriptType = Number(row.scriptType); if (!row.targetoptionList[0]) { row.targetoptionList = [ { @@ -1207,7 +1205,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 = ""; @@ -1409,6 +1407,9 @@ height: 400px; } } +.el-select { + width: 40%; +} ::v-deep.el-tabs--left, .el-tabs--right { overflow: hidden; -- Gitblit v1.9.3