diff --git a/src/api/modules/api.js b/src/api/modules/api.js index 475655f..4c50711 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -1319,18 +1319,11 @@ export function getResultsList(data) { data: data }) } -//需求挖掘话术配置- 树图,设置初始选中值及分数回显 -export function findSelectedWordMiningTemplate(data) { - return request({ - url: `/autoSR/keywords/findSelectedWordMiningTemplate`, - method: 'GET', - data: data - }) -} + //需求挖掘话术配置- 编辑提交 export function updateQuestion(data) { return request({ - url: `/autoSR/keywords/updateQuestion`, + url: `/autoSRzk//keywords/updateQuestion`, method: 'GET', data: data }) @@ -1346,7 +1339,7 @@ export function updateSort(data) { //需求挖掘话术配置- 评分保存 export function saveWordTemplate(data) { return request({ - url: `/autoSR/keywords/saveWordTemplate`, + url: `/autoSR/zk/keywords/saveWordTemplate`, method: 'POST', data: data }) @@ -1354,7 +1347,7 @@ export function saveWordTemplate(data) { //需求挖掘话术配置-获取模型数据回显 export function keymodelfindById(data) { return request({ - url: `/autoSR/keymodel/findById`, + url: `/autoSR/zk/keymodel/findById`, method: 'GET', data: data }) @@ -1362,7 +1355,7 @@ export function keymodelfindById(data) { //需求挖掘话术配置-设置话术等级 export function setWordLevel(data) { return request({ - url: `/autoSR/keywords/setWordLevel`, + url: `/autoSR/zk/keywords/setWordLevel`, method: 'GET', data: data }) @@ -1370,23 +1363,16 @@ export function setWordLevel(data) { //需求挖掘话术配置-添加问题保存 export function addQuestion(data) { return request({ - url: `/autoSR/keywords/addQuestion`, + url: `/autoSR/zk/keywords/addQuestion`, method: 'POST', data: data }) } -//模型提醒 -export function todolist(data) { - return request({ - url: `/autoSR/todo/list`, - method: 'GET', - data: data - }) -} + //需求挖掘话术配置-修改保存标签模型 export function updateKeywordsModel(data) { return request({ - url: `/autoSR/keymodel/updateKeywordsModel`, + url: `/autoSR/zk/keymodel/updateKeywordsModel`, method: 'POST', data: data }) @@ -1394,7 +1380,7 @@ export function updateKeywordsModel(data) { //需求挖掘话术配置-拿问题获取所在的标签数据 export function findKeywordsById(data) { return request({ - url: `/autoSR/keywords/findKeywordsById`, + url: `/autoSR/zk/keywords/findKeywordsById`, method: 'GET', data: data }) diff --git a/src/views/Customer/label.vue b/src/views/Customer/label.vue index 9732672..224fe76 100644 --- a/src/views/Customer/label.vue +++ b/src/views/Customer/label.vue @@ -63,7 +63,6 @@ 编辑 - 编辑模型 @@ -74,19 +73,19 @@ 编辑 + 编辑模型 删除 - - - 编辑模型 - 编辑 + + 编辑模型 + 删除 @@ -95,8 +94,7 @@ - - +
+ + + +
增加场景描述有利于标签命中,场景越丰富触达越精准; + 例如:意向面积:120平,场景:我想要一个120平的;
+
@@ -169,7 +179,7 @@ - +
万元
-
-
- 类名: +
+
+ 类名:
-
+
+
+
+ 场景描述: +
+
+ + +
增加场景描述有利于标签命中,场景越丰富触达越精准; + 例如:意向面积:120平,场景:我想要一个120平的;
-
@@ -39,12 +39,12 @@ 项目名称:
- 筛选 + 筛选
@@ -192,7 +192,7 @@
- {{item.label}} + {{item.label}} @@ -261,25 +261,27 @@ export default { }; }, mounted() { - // this.houseId = localStorage.getItem("AitemId"); - // this.gettableList() + this.houseId = localStorage.getItem("houseId"); + this.gettableList() }, methods: { // keytype =0,获取需求挖掘类型的数据回显接口 wajuehuixian() { // 获取模型数据回显 - this.$api.api - .keymodelfindById({ - houseId: this.currentHouseId, - level: this.level, - keyType: 0, - questionId: this.questionId, - keywordsId: this.form.keywordsId, - }) - .then((res) => { + axios({ + url: `/autoSR/zk/keymodel/findById`, + method: 'get', + params: { + houseId: this.currentHouseId, + level: this.level, + keyType: 0, + questionId: this.questionId, + keywordsId: this.form.keywordsId + } + }).then((res) => { this.dialogVisible = true; - if (res.data.res == 1) { - let obj = res.data.obj; + if (res.code== 0) { + let obj = res.data; if (obj != null) { this.form.distance = obj.distance || 10; this.form.originalExpression = obj.originalExpression; @@ -331,17 +333,19 @@ export default { }, otherhuixian(type) { // 获取模型数据回显 - this.$api.api - .keymodelfindById({ - houseId: this.currentHouseId, - level: type == 3 ? 1 : this.level, - keyType: type, - keywordsId: this.form.keywordsId, - }) - .then((res) => { + axios({ + url: `/autoSR/zk/keymodel/findById`, + method: 'get', + params: { + houseId: this.currentHouseId, + level: type==3?1:this.level, + keyType: type, + keywordsId: this.form.keywordsId + } + }).then((res) => { this.dialogVisible = true; - if (res.data.res == 1) { - let obj = res.data.obj; + if (res.code == 0) { + let obj = res.data; if (obj != null) { this.form.distance = obj.distance || 10; this.form.originalExpression = obj.originalExpression || ""; @@ -499,11 +503,11 @@ export default { .then((res) => { this.cansave = false; this.dialogVisible = false; - if (data.data.res == 1) { - this.$message.success(data.data.obj); + if (res.code == 0) { + this.$message.success(res.data); this.gettableList(); } else { - this.$message.error(data.data.resMsg); + this.$message.error(res.msg); } }) .catch((e) => { @@ -650,16 +654,18 @@ export default { // 拿问题获取所在的标签数据 findKeywordsById(level1Id) { this.wajueList = []; - this.$api.api - .keymodelfindById({ + axios({ + url: `/autoSR/zk/keywords/findKeywordsById`, + method: 'get', + params: { houseId: this.currentHouseId, keywordsId: level1Id, - level: 1, - }) - .then((res) => { - if (res.data.res == 1) { - console.log(res.data); - this.wajueList = res.data.obj; + level: 1 + } + }).then((res) => { + if (res.code == 0) { + console.log(res); + this.wajueList = res.data; if (this.wajueList && this.wajueList.length) { this.wajueList.forEach((item) => { item.disabled = false; @@ -707,25 +713,27 @@ export default { this.searchFun(); }, gettableList() { - this.$api.api - .todolist({ - pageNum: this.pageNum, - pageSize: this.pageSize, - houseName: this.searchForm.houseName, - updateUserName: this.searchForm.updateUserName, - name: this.searchForm.name, - status: this.type, //status 状态 0已处理 1未处理 - startTime: this.searchForm.startTime, - endTime: this.searchForm.endTime, - }) - .then((res) => { - console.log(data); - if (data.data.res == 1) { - this.tableData = data.data.obj.results || []; - this.total = data.data.obj.totalRecord; - } else { - this.tableData = []; - } + axios({ + url: `/autoSR/zk/todo/list`, + method: "get", + params: { + pageNum: this.pageNum, + pageSize: this.pageSize, + houseName: this.searchForm.houseName, + updateUserName: this.searchForm.updateUserName, + name: this.searchForm.name, + status: this.type, //status 状态 0已处理 1未处理 + startTime: this.searchForm.startTime, + endTime: this.searchForm.endTime, + }, + }).then((res) => { + // console.log(res) + if(res.code==0){ + this.tableData = res.data.results || []; + this.total = res.data.totalRecord; + } else { + this.tableData = []; + } }); }, handleSizeChange(val) { diff --git a/src/views/Template/requiremining.vue b/src/views/Template/requiremining.vue index 7715c21..0335f88 100644 --- a/src/views/Template/requiremining.vue +++ b/src/views/Template/requiremining.vue @@ -254,7 +254,7 @@ class="item-input" v-html="item.editValue" :id="'huashuModel'+index"> - 删除 + 删除
@@ -262,7 +262,7 @@
- {{item.label}} + {{item.label}} @@ -273,7 +273,12 @@