From c8712d79f0bf0173dd916341fa1efa439276b92e Mon Sep 17 00:00:00 2001
From: corala <18339694416@163.com>
Date: Sat, 7 Jan 2023 16:48:18 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=BE=85=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/api.js | 26 +-----------
src/views/Customer/label.vue | 3 +-
src/views/Receive/index.vue | 2 -
src/views/Template/modelTodo.vue | 60 ++++++++++------------------
src/views/Template/requiremining.vue | 28 +++++++------
src/views/Template/taboo.vue | 12 +++---
vue.config.js | 4 +-
7 files changed, 48 insertions(+), 87 deletions(-)
diff --git a/src/api/modules/api.js b/src/api/modules/api.js
index 4c50711..d007afa 100644
--- a/src/api/modules/api.js
+++ b/src/api/modules/api.js
@@ -1320,14 +1320,6 @@ export function getResultsList(data) {
})
}
-//需求挖掘话术配置- 编辑提交
-export function updateQuestion(data) {
- return request({
- url: `/autoSRzk//keywords/updateQuestion`,
- method: 'GET',
- data: data
- })
-}
//需求挖掘话术配置-排序提交
export function updateSort(data) {
return request({
@@ -1352,14 +1344,7 @@ export function keymodelfindById(data) {
data: data
})
}
-//需求挖掘话术配置-设置话术等级
-export function setWordLevel(data) {
- return request({
- url: `/autoSR/zk/keywords/setWordLevel`,
- method: 'GET',
- data: data
- })
-}
+
//需求挖掘话术配置-添加问题保存
export function addQuestion(data) {
return request({
@@ -1377,14 +1362,7 @@ export function updateKeywordsModel(data) {
data: data
})
}
-//需求挖掘话术配置-拿问题获取所在的标签数据
-export function findKeywordsById(data) {
- return request({
- url: `/autoSR/zk/keywords/findKeywordsById`,
- method: 'GET',
- data: data
- })
-}
+
diff --git a/src/views/Customer/label.vue b/src/views/Customer/label.vue
index 224fe76..30c88ea 100644
--- a/src/views/Customer/label.vue
+++ b/src/views/Customer/label.vue
@@ -630,10 +630,8 @@ export default {
}).catch((e)=>{
this.moxingVisible = false
})
-
},
moxingEdit(node, data){
- console.log(data)
this.level = data.level
this.form.keywordsName = data.endName?data.name+'~'+data.endName:data.name
this.form.keywordsId = data.keywordsId
@@ -741,6 +739,7 @@ export default {
this.amountintervalname = data.name;
this.addForm.name = "";
this.addForm.endName = "";
+ this.addForm.sceneDesc = '';
this.pid = data.id;
this.level = data.level + 1;
this.orgCode = data.orgCode;
diff --git a/src/views/Receive/index.vue b/src/views/Receive/index.vue
index 1436fda..5b66e3e 100644
--- a/src/views/Receive/index.vue
+++ b/src/views/Receive/index.vue
@@ -1342,8 +1342,6 @@ export default {
dealword(type){
if(type){
let a = type.split('-')
- console.log(type)
- console.log(a)
let rest = type.substring(2).split('-').join(',')
let arr =[a[0],rest]
return arr
diff --git a/src/views/Template/modelTodo.vue b/src/views/Template/modelTodo.vue
index 5cabd77..a4f67f7 100644
--- a/src/views/Template/modelTodo.vue
+++ b/src/views/Template/modelTodo.vue
@@ -22,7 +22,7 @@
名称:
@@ -38,26 +38,12 @@
项目名称:
-
-
-
-
+
筛选
@@ -171,7 +157,7 @@
暂无描述
- *请输入0~500内的整数 规则说明
+ *请输入0~500内的整数 规则说明
{
- this.houseList = res.data;
- this.houseId = res.data[0].id;
- this.gettableList();
- });
- },
+ // zkhousePage() {
+ // this.$api.api.findHouseByUser({
+ // orgType: localStorage.getItem("orgType"),
+ // }).then((res) => {
+ // this.houseList = res.data;
+ // this.houseId = res.data[0].id;
+ // this.gettableList();
+ // });
+ // },
houseChange(){
this.gettableList()
},
@@ -391,7 +377,7 @@ export default {
editValue: cont.originalExpression,
};
});
- console.log(this.dynamiclist);
+ // console.log(this.dynamiclist);
} else {
this.dynamiclist = [];
}
@@ -454,15 +440,11 @@ export default {
temp = temp.replace(/\ \;/g, "");
temp = temp.replace(//g, "");
temp = temp.replace(/<\/text>/g, "");
- temp = temp.replace(
- //g,
- " #"
- ); // 后台返回是这样的,变了,需要也处理一下
- temp = temp.replace(
- //g,
- " #"
- );
+ temp = temp.replace(//g, " #"); // 后台返回是这样的,变了,需要也处理一下
+ temp = temp.replace(//g," #");
temp = temp.replace(/<\/span>/g, "#");
+ temp = temp.replace(/<\/br>/g,'')
+ temp = temp.replace(/
/g,'')
// console.log(temp);
// console.log('截取前',temp);
this.delMark(temp);
diff --git a/src/views/Template/requiremining.vue b/src/views/Template/requiremining.vue
index 0335f88..6b70d46 100644
--- a/src/views/Template/requiremining.vue
+++ b/src/views/Template/requiremining.vue
@@ -376,17 +376,17 @@ export default {
this.level1 = data.level1
this.findKeywordsById(data.level1)
// 获取模型数据回显
- axios({
- url: `/autoSR/zk/keymodel/findById`,
- method: "get",
- params: {
- houseId: this.houseId,
- level: this.level1,
- keyType: 0,
- questionId: this.questionId,
- keywordsId: data.keywordsId
- },
- }).then((res) => {
+ axios({
+ url: `/autoSR/zk/keymodel/findById`,
+ method: "get",
+ params: {
+ houseId: this.houseId,
+ level: this.level1,
+ keyType: 0,
+ questionId: this.questionId,
+ keywordsId: data.keywordsId
+ },
+ }).then((res) => {
this.moxingVisible = true
if (res.code===0) {
let obj = res.data
@@ -1012,10 +1012,14 @@ export default {
},
//编辑提交
submiadd() {
- this.$api.api.updateQuestion({
+ axios({
+ url: `/autoSR/zk/keywords/updateQuestion`,
+ method: 'get',
+ params: {
id: this.frosasd.id,
houseId: this.houseId,
question: this.frosasd.name
+ }
}).then((res) => {
if (res.code == 0) {
this.$message({
diff --git a/src/views/Template/taboo.vue b/src/views/Template/taboo.vue
index f406947..57d8233 100644
--- a/src/views/Template/taboo.vue
+++ b/src/views/Template/taboo.vue
@@ -66,7 +66,7 @@
编辑
删除
- 模型匹配
+ 模型匹配
@@ -164,7 +164,7 @@
- {{form.keywordsName||'XXX'}}
+ {{form.keywordsName||''}}
{{form.sceneDesc}}
@@ -324,9 +324,9 @@ export default {
},
//点击编辑按钮
- editFun(id){
- this.form.keywordsId = id
- this.form.keywordsName = ''
+ editFun(row){
+ this.form.keywordsId = row.id
+ this.form.keywordsName = row.words||''
this.form.id = ''
// 获取模型数据回显
axios({
@@ -335,7 +335,7 @@ export default {
params: {
houseId: this.houseId,
keyType: 3,
- keywordsId: id
+ keywordsId: row.id
}
}).then(res => {
this.modelVisible = true
diff --git a/vue.config.js b/vue.config.js
index 884fc33..2b82699 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -3,10 +3,10 @@
* https://cli.vuejs.org/zh/config/
*/
// const url = 'http://192.168.31.160:9999' //长龙
-const url = 'http://192.168.31.85:9999' // 胜浩
+// const url = 'http://192.168.31.85:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地
-// const url = 'http://39.97.244.65:9999' // 测试服务器
+const url = 'http://39.97.244.65:9999' // 测试服务器
// const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'https://www.aihxz.com' // 正式域名