Browse Source

接待记录

newStyle
corala 1 year ago
parent
commit
c8712d79f0
7 changed files with 48 additions and 87 deletions
  1. +2
    -24
      src/api/modules/api.js
  2. +1
    -2
      src/views/Customer/label.vue
  3. +0
    -2
      src/views/Receive/index.vue
  4. +21
    -39
      src/views/Template/modelTodo.vue
  5. +16
    -12
      src/views/Template/requiremining.vue
  6. +6
    -6
      src/views/Template/taboo.vue
  7. +2
    -2
      vue.config.js

+ 2
- 24
src/api/modules/api.js View File

@@ -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
})
}





+ 1
- 2
src/views/Customer/label.vue View File

@@ -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;


+ 0
- 2
src/views/Receive/index.vue View File

@@ -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


+ 21
- 39
src/views/Template/modelTodo.vue View File

@@ -22,7 +22,7 @@
<div class="label">
名称:
<el-input
placeholder="处理人"
placeholder="名称"
v-model="searchForm.name"
style="width: 140px"
></el-input>
@@ -38,26 +38,12 @@
<div class="label">
项目名称:
<el-input
placeholder="处理人"
placeholder="项目名称"
v-model="searchForm.houseName"
style="width: 140px"
></el-input>
</div>
<el-select
v-if="orgType==0"
v-model="houseId"
@change="houseChange"
placeholder="请选择"
filterable
>
<el-option
v-for="item in houseList"
:key="item.id"
:label="item.propertyName"
:value="item.id"
>
</el-option>
</el-select>
<div style="margin-left: 20px">
<el-button @click="searchFun" type="primary">筛选</el-button>
</div>
@@ -171,7 +157,7 @@
<div v-else>暂无描述</div>
</el-form-item>
<el-form-item label="after,near,answer 匹配距离:">
<el-input-number v-model="form.distance" controls-position="right" :min="0" :max="500"></el-input-number></el-input><span style="color:red;margin-left:10px">*请输入0~500内的整数</span> <el-button type="text" style="margin-left:30px" @click="innerVisible=true">规则说明</el-button>
<el-input-number v-model="form.distance" controls-position="right" :min="0" :max="500"></el-input-number><span style="color:red;margin-left:10px">*请输入0~500内的整数</span> <el-button type="text" style="margin-left:30px" @click="innerVisible=true">规则说明</el-button>
</el-form-item>
<div contentEditable="true"
@click="myeditorenter($event)"
@@ -274,26 +260,26 @@ export default {
pageNum: 1,
houseId: '',
currentHouseId: "",
orgType: ''
};
},
created(){
this.houseId=localStorage.getItem("houseId");
this.orgType = localStorage.getItem("orgType")
this.orgType==0?this.zkhousePage():this.gettableList()
this.gettableList();
// this.orgType = localStorage.getItem("orgType")
// this.orgType==0?this.zkhousePage():this.gettableList()
},
methods: {
// 获取项目列表
zkhousePage() {
this.$api.api.findHouseByUser({
orgType: localStorage.getItem("orgType"),
}).then((res) => {
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(/\&nbsp\;/g, "");
temp = temp.replace(/<text>/g, "");
temp = temp.replace(/<\/text>/g, "");
temp = temp.replace(
/<span contenteditable="false" style="color:red">/g,
" #"
); // 后台返回是这样的,变了,需要也处理一下
temp = temp.replace(
/<span style="color:red" contenteditable="false">/g,
" #"
);
temp = temp.replace(/<span contenteditable="false" style="color:red">/g, " #"); // 后台返回是这样的,变了,需要也处理一下
temp = temp.replace(/<span style="color:red" contenteditable="false">/g," #");
temp = temp.replace(/<\/span>/g, "#");
temp = temp.replace(/<\/br>/g,'')
temp = temp.replace(/<br>/g,'')
// console.log(temp);
// console.log('截取前',temp);
this.delMark(temp);


+ 16
- 12
src/views/Template/requiremining.vue View File

@@ -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({


+ 6
- 6
src/views/Template/taboo.vue View File

@@ -66,7 +66,7 @@
<el-button v-if="tem_tab_edit" type="text" @click="bianji(row)"
>编辑</el-button>
<el-button v-if="tem_tab_del" type="text" @click="del(row)">删除</el-button>
<el-button type="text" @click="editFun(row.id)">模型匹配</el-button>
<el-button type="text" @click="editFun(row)">模型匹配</el-button>
</template>
</avue-crud>
</div>
@@ -164,7 +164,7 @@
</el-dialog>
<el-form ref="form" size="mini" :inline="true" :model="form" label-position="right">
<el-form-item label="敏感词:">
<div style="max-width:400px;min-width: 200px;font-weight: bold">{{form.keywordsName||'XXX'}}</div>
<div style="max-width:400px;min-width: 200px;font-weight: bold">{{form.keywordsName||''}}</div>
</el-form-item>
<el-form-item label="场景描述:">
<div v-if="form.sceneDesc" style="width:500px;border: 1px dashed #ccc;padding:5px 10px;line-height: 25px"> {{form.sceneDesc}}</div>
@@ -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


+ 2
- 2
vue.config.js View File

@@ -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' // 正式域名


Loading…
Cancel
Save