From 452e7fb4ea242b0d7bb821abc0cb3bf465129ffd Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 22 七月 2024 17:40:05 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/intention/index.vue | 52 ++++++++++++++++++++++++++++++++-------------------- 1 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index 47cfd46..a7edc4b 100644 --- a/src/views/repositoryai/intention/index.vue +++ b/src/views/repositoryai/intention/index.vue @@ -189,7 +189,7 @@ prop="id" /> <el-table-column - label="鍊肩被鍨�" + label="缁撴灉绫诲瀷" fixed align="center" key="valueType" @@ -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" @@ -479,13 +479,26 @@ </el-form-item> </el-col></el-row > + <el-row v-if="!measurement"> + <el-col :span="24"> + <el-form-item label="棰樼洰绫诲瀷"> + <el-radio-group v-model="indexform.scriptType"> + <el-radio :label="1">鍗曢��</el-radio> + <el-radio :label="2">澶氶��</el-radio> + <el-radio :label="3">濉┖</el-radio> + </el-radio-group> + </el-form-item> + </el-col></el-row + > <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 @@ -502,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" @@ -709,6 +710,7 @@ radio: "涓诲垎绫�", testvalue: "", testgovalue: "", + hasValue: true, classifyform: { categoryname: "", }, //绫诲埆琛ㄥ崟 @@ -812,6 +814,10 @@ getIndexInArray(arr, obj) { // 杩斿洖鏁扮粍涓寚瀹氬厓绱犵殑绱㈠紩 return arr.indexOf(obj); + }, + changeselect(row) { + console.log(row); + this.hasValue = row.includes('2'); }, //鍒犻櫎鍒嗙被 deletefenlei(row) { @@ -956,6 +962,7 @@ id: this.indexform.id, targettype: this.indexform.targettype, isoperation: 1, + isabnormal: 0, targetvalue: "", targetregex: "", targetregex2: "", @@ -1010,6 +1017,7 @@ dynamiccruxsJson: item.dynamiccruxsJson, nodynamiccruxsJson: item.nodynamiccruxsJson, targetoptionid: item.targetoptionid, + isabnormal: item.isabnormal, }; }); console.log(this.testuserList); @@ -1181,6 +1189,7 @@ this.title = "鎸囨爣璇︽儏"; this.indexform = {}; this.indexform = row; + this.indexform.scriptType = Number(row.scriptType); if (!row.targetoptionList[0]) { row.targetoptionList = [ { @@ -1398,6 +1407,9 @@ height: 400px; } } +.el-select { + width: 40%; +} ::v-deep.el-tabs--left, .el-tabs--right { overflow: hidden; -- Gitblit v1.9.3