From e8fb5c107625b4896a2be5983b6aece0367fff0e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 12 四月 2024 18:34:15 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/verbaltrick/particulars/index.vue | 29 +++++++++++++++++++++++++++--
src/components/Regular/index.vue | 2 ++
src/views/repositoryai/intention/index.vue | 9 +++++++++
3 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index 1789177..6d64170 100644
--- a/src/components/Regular/index.vue
+++ b/src/components/Regular/index.vue
@@ -285,7 +285,9 @@
this.generateRegex(item);
},
handleInputConfirm(row) {
+ console.log(this.TargetoptionList, "TargetoptionList");
let index = this.TargetoptionList.indexOf(row);
+ console.log(1112);
if (this.whether == 1 && this.inputValue) {
if (
this.TargetoptionList[index].dynamiccruxs.indexOf(this.inputValue) ==
diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index 79481fc..a32ffee 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -982,6 +982,10 @@
targetvalue: "",
targetregex: "",
targetregex2: "",
+ dynamiccruxs: [],
+ nodynamiccruxs: [],
+ dynamiccruxsJson: "",
+ nodynamiccruxsJson: "",
};
this.testuserList.push(objvakue);
// this.indexform.targetoptionList.push(objvakue);
@@ -1016,6 +1020,7 @@
return {
guid: index + 1,
targetvalue: item.targetvalue,
+ targetregex2: item.targetregex2,
targetregex: item.targetregex,
targetoptionid: item.targetoptionid,
id: this.indexform.id,
@@ -1023,6 +1028,10 @@
isoperation: item.targetoptionid ? 2 : 1,
categoryName: item.categoryName,
language: item.language,
+ dynamiccruxs: item.dynamiccruxs,
+ nodynamiccruxs: item.nodynamiccruxs,
+ dynamiccruxsJson: item.dynamiccruxsJson,
+ nodynamiccruxsJson: item.nodynamiccruxsJson,
};
});
console.log(this.testuserList);
diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue
index 5fedafb..7e8a952 100644
--- a/src/views/repositoryai/verbaltrick/particulars/index.vue
+++ b/src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -599,6 +599,7 @@
radios: [], //澶氶�夐閫変腑
radioas: "", //濉┖棰樼瓟妗�
dynamicTags: [],
+ dellist: [],
inputVisible: false,
inputValue: "",
testvalue: "",
@@ -671,7 +672,8 @@
if (id) {
getverbaltrick({ id: id }).then((res) => {
this.indexform = res.data;
- this.indexform.suitway = this.indexform.suitway.split(",");
+ if (this.indexform.suitway)
+ this.indexform.suitway = this.indexform.suitway.split(",");
this.indexform.assortid = parseInt(this.indexform.assortid);
this.variablelist = JSON.parse(this.indexform.otherdata).length
? JSON.parse(this.indexform.otherdata)
@@ -696,7 +698,6 @@
// 淇濆瓨璇︾粏淇℃伅
Saveproblem() {
- console.log(this.indexform);
this.indexform.otherdata = JSON.stringify(this.variablelist);
if (this.indexform.suitway) {
this.indexform.suitway = this.indexform.suitway.join(",");
@@ -710,7 +711,10 @@
}
return res;
});
+
this.indexform.isoperation = 2;
+ console.log(this.dellist);
+ this.indexform.ivrLibaScriptTargetoptionList=this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist);
compileverbaltrick(this.indexform).then((res) => {
if (res.code == 200) {
this.$modal.msgSuccess("淇敼鎴愬姛");
@@ -890,12 +894,23 @@
isoperation: 1,
targetvalue: "",
targetregex: "",
+ targetregex2: "",
+ dynamiccruxs: [],
+ nodynamiccruxs: [],
+ dynamiccruxsJson: "",
+ nodynamiccruxsJson: "",
});
this.sortFn();
},
deloption(item) {
const index = this.indexform.ivrLibaScriptTargetoptionList.indexOf(item);
if (index !== -1) {
+ if (item.id) {
+ console.log(item, "chunz");
+ item.isoperation = 3;
+ this.dellist.push(item);
+ }
+ console.log(this.dellist, "dellist");
this.indexform.ivrLibaScriptTargetoptionList.splice(index, 1); // 浠庣储寮曚綅缃垹闄や竴涓厓绱�
this.sortFn();
} else {
@@ -938,7 +953,17 @@
return {
guid: index + 1,
targetvalue: item.targetvalue,
+ targetregex2: item.targetregex2,
targetregex: item.targetregex,
+ id: item.id,
+ targettype: this.indexform.targettype,
+ isoperation: item.id ? 2 : 1,
+ categoryName: item.categoryName,
+ language: item.language,
+ dynamiccruxs: item.dynamiccruxs,
+ nodynamiccruxs: item.nodynamiccruxs,
+ dynamiccruxsJson: item.dynamiccruxsJson,
+ nodynamiccruxsJson: item.nodynamiccruxsJson,
};
});
console.log(this.indexform.ivrLibaScriptTargetoptionList);
--
Gitblit v1.9.3