From f488fea65d0c0e96fb3e3c3ec835e4f324d11caa Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 05 六月 2024 17:48:22 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/intention/index.vue | 49 +++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 43 insertions(+), 6 deletions(-)
diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index 3952f5d..649217f 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -197,7 +197,10 @@
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
- <dict-tag :options="valuetypelb" :value="scope.row.valueType" />
+ <dict-tag
+ :options="valuetypelb"
+ :value="scope.row.valueType"
+ />
</template>
</el-table-column>
<el-table-column
@@ -532,14 +535,16 @@
<el-col :span="12">
<el-form-item label="娴嬭瘯杈撳叆" prop="nickName">
<el-input
- v-model="testvalue"
+ v-model="indexform.content"
placeholder="璇疯緭鍏ユ祴璇曞唴瀹�"
maxlength="40"
/>
</el-form-item>
</el-col>
<el-col :span="4">
- <el-button type="success">寮�濮嬫祴璇�</el-button>
+ <el-button type="success" @click="testtagerlist"
+ >寮�濮嬫祴璇�</el-button
+ >
</el-col>
</el-row>
</el-form>
@@ -649,6 +654,7 @@
gettargetInfo,
particulartarget,
gettargetInfoedit,
+ testtagerlist,
addtarget,
deletetarget,
getillnesslist,
@@ -745,7 +751,7 @@
pageNum: 1,
pageSize: 10,
},
- valuetypelb:[],
+ valuetypelb: [],
// 琛ㄥ崟鏍¢獙
rules: {},
@@ -974,10 +980,9 @@
targetvalue: item.targetvalue,
targetregex2: item.targetregex2,
targetregex: item.targetregex,
- targetoptionid: item.targetoptionid,
id: this.indexform.id,
targettype: this.indexform.targettype,
- isoperation: item.targetoptionid ? 2 : 1,
+ isoperation: item.id ? 2 : 1,
categoryName: item.categoryName,
language: item.language,
dynamiccruxs: item.dynamiccruxs,
@@ -1137,6 +1142,7 @@
targetvalue: "",
targetregex: "",
targetregex2: "",
+ isoperation: 1,
dynamiccruxs: [],
nodynamiccruxs: [],
dynamiccruxsJson: "",
@@ -1152,8 +1158,24 @@
console.log(row);
this.title = "鎸囨爣璇︽儏";
this.indexform = row;
+ if (!row.targetoptionList[0]) {
+ row.targetoptionList = [
+ {
+ targettype: "1",
+ targetvalue: "",
+ targetregex: "",
+ targetregex2: "",
+ isoperation: 1,
+ dynamiccruxs: [],
+ nodynamiccruxs: [],
+ dynamiccruxsJson: "",
+ nodynamiccruxsJson: "",
+ },
+ ];
+ }
this.dynamicTags = row.baseTagList.map(this.processElement);
this.testuserList = row.targetoptionList;
+ this.testvalue = "";
this.indexopen = true;
this.measurement = false;
},
@@ -1204,6 +1226,21 @@
}
});
},
+ // 娴嬭瘯琛ㄥ崟
+ testtagerlist() {
+ if (this.indexform.content) {
+ let data = this.indexform;
+ data.targetoptionList = this.testuserList.concat(this.targetoptionList);
+ testtagerlist(data).then((res) => {
+ this.$modal.msgSuccess("娴嬭瘯鎴愬姛");
+ this.testgovalue = res.msg;
+ this.getList();
+ });
+ } else {
+ this.$modal.msgError("璇峰~鍐欐祴璇曞唴瀹�");
+ return;
+ }
+ },
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
const userIds = row.id || this.ids;
--
Gitblit v1.9.3