From 193b6ba90e066ba13358e07d4a34aaa07407f4e3 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 19 七月 2024 18:01:51 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/intention/index.vue | 48 ++++++++++++++++++++++++++++-------------------- 1 files changed, 28 insertions(+), 20 deletions(-) diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue index db42cb5..100dd5b 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" @@ -333,6 +333,7 @@ <el-dialog :title="title" :visible.sync="indexopen" + :close-on-click-modal="false" width="900px" append-to-body > @@ -478,6 +479,17 @@ </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"> @@ -501,7 +513,7 @@ <el-card class="box-card" style="margin-bottom: 20px" - v-if="indexform.valueType == 1" + v-if="indexform.valueType == 1 || indexform.valueType == 2" > <Regular :TargetoptionList="testuserList" @@ -512,19 +524,6 @@ @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"> <el-form-item label="鏀堕泦淇℃伅"> <el-input @@ -954,6 +953,7 @@ guid: 1, id: this.indexform.id, targettype: this.indexform.targettype, + isoperation: 1, targetvalue: "", targetregex: "", targetregex2: "", @@ -1000,7 +1000,7 @@ targetregex: item.targetregex, id: this.indexform.id, targettype: this.indexform.targettype, - isoperation: item.id ? 2 : 1, + isoperation: item.targetoptionid ? 2 : 1, categoryName: item.categoryName, language: item.language, dynamiccruxs: item.dynamiccruxs, @@ -1109,6 +1109,7 @@ // 鍙栨秷鎸夐挳 cancel() { + this.indexform = null; this.indexopen = false; this.reset(); }, @@ -1122,7 +1123,7 @@ baseTagList: [], targetoptionList: [], }; - this.resetForm("indexform"); + // this.resetForm("indexform"); }, /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { @@ -1176,6 +1177,7 @@ this.reset(); console.log(row); this.title = "鎸囨爣璇︽儏"; + this.indexform = {}; this.indexform = row; if (!row.targetoptionList[0]) { row.targetoptionList = [ @@ -1220,13 +1222,19 @@ // return res; // } // ); - console.log(this.testuserList, "aaa"); - console.log(this.targetoptionList, "bbb"); + this.$refs["indexform"].validate((valid) => { this.indexform.targetoptionList = this.testuserList.concat( this.targetoptionList ); - console.log(this.indexform.targetoptionList); + console.log(this.indexform.targetoptionList, "11"); + this.indexform.targetoptionList.forEach((item) => { + if (item.isoperation != 3 && item.targetoptionid) { + console.log(item, "item"); + item.isoperation = 2; + } else { + } + }); if (valid) { if (!this.indexform.version) this.indexform.version = "1.0"; if (this.indexform.id != undefined) { -- Gitblit v1.9.3