@@ -400,7 +400,25 @@ | |||
<!-- 加入常错词 --> | |||
<view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view> | |||
<view class="bounced" v-if="isshow2"> | |||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit"> | |||
<view class="tian-view"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
<view class="tian-view" style="margin-bottom: 74rpx;"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">正确词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
</u-modal> | |||
<!-- <view class="bounced" v-if="isshow2"> | |||
<view class="tian-view"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
@@ -419,7 +437,7 @@ | |||
<view class="bounced3-1" @tap="Cancelout">取消</view> | |||
<view class="bounced3-2" @tap="Confirmtheexit">确认</view> | |||
</view> | |||
</view> | |||
</view> --> | |||
<!-- 加精华 --> | |||
<view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view> | |||
@@ -2680,4 +2698,7 @@ | |||
.rotatearrow { | |||
transform: rotate(270deg); | |||
} | |||
/deep/ .u-model-title{ | |||
padding: 34rpx 0 16rpx !important; | |||
} | |||
</style> |
@@ -145,12 +145,30 @@ | |||
</view> | |||
<!-- 加入常错词 --> | |||
<view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view> | |||
<view class="bounced" v-if="isshow2"> | |||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit"> | |||
<view class="tian-view"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
<view class="tian-view" style="margin-bottom: 74rpx;"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">正确词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
</u-modal> | |||
<!-- <view class="bounced" v-if="isshow2"> | |||
<view class="tian-view"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<input type="text" v-model="thewrongword" :disabled="true" class="tian-input" placeholder="请输入" /> | |||
<input type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
<view class="tian-view"> | |||
@@ -164,7 +182,7 @@ | |||
<view class="bounced3-1" @tap="Cancelout">取消</view> | |||
<view class="bounced3-2" @tap="Confirmtheexit">确认</view> | |||
</view> | |||
</view> | |||
</view> --> | |||
<!-- 加精华 --> | |||
<view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view> | |||
<view class="bounced" v-if="isshow3"> | |||
@@ -270,7 +288,8 @@ | |||
effectiveitext:'', | |||
textItself:'', | |||
argtextindex1:0, | |||
argtextindex2:0 | |||
argtextindex2:0, | |||
isNum:false | |||
}; | |||
}, | |||
onLoad: function(options) { | |||
@@ -804,50 +823,58 @@ | |||
}, | |||
//确认加入常错词 | |||
Confirmtheexit() { | |||
let reg = /^[0-9]+$/ | |||
if(reg.test(this.thewrongword)){ | |||
if(this.reswrongword.length>8 || this.thewrongword.length>8){ | |||
this.$refs.uToast.show({ | |||
title: '错误词不能为纯数字', | |||
title: '正确词错误词不能超过8个字', | |||
type: 'warning', | |||
}) | |||
}else{ | |||
if (this.thewrongword) { | |||
if (this.reswrongword) { | |||
let parames = { | |||
customerId:this.customerId, | |||
cupid: this.luyinList[this.csdFileindex].id, | |||
wrongWord: this.thewrongword, //错误词 | |||
correctWord: this.reswrongword, //正确词 | |||
translateHtmlContent: this.messagelisy, | |||
} | |||
this.isshow2 = false; | |||
let sas=this.textItself.replace(this.thewrongword,this.reswrongword) | |||
this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas | |||
this.dialogList.forEach(res => { | |||
res.message.forEach(asd => { | |||
asd.isshow = false; | |||
}) | |||
}) | |||
this.$u.post("/corpus/addCorrectWord", parames).then(data => { | |||
this.thewrongword = ""; | |||
this.reswrongword = ""; | |||
let reg = /^[0-9]+$/ | |||
if(reg.test(this.thewrongword)){ | |||
this.$refs.uToast.show({ | |||
title: '错误词不能为纯数字', | |||
type: 'warning', | |||
}) | |||
}else{ | |||
if (this.thewrongword) { | |||
if (this.reswrongword) { | |||
let parames = { | |||
customerId:this.customerId, | |||
cupid: this.luyinList[this.csdFileindex].id, | |||
wrongWord: this.thewrongword, //错误词 | |||
correctWord: this.reswrongword, //正确词 | |||
translateHtmlContent: this.messagelisy, | |||
} | |||
this.isshow2 = false; | |||
let sas=this.textItself.replace(this.thewrongword,this.reswrongword) | |||
this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas | |||
this.dialogList.forEach(res => { | |||
res.message.forEach(asd => { | |||
asd.isshow = false; | |||
}) | |||
}) | |||
this.$u.post("/corpus/addCorrectWord", parames).then(data => { | |||
this.thewrongword = ""; | |||
this.reswrongword = ""; | |||
}) | |||
} else { | |||
uni.showToast({ | |||
title: '正确值不能为空', | |||
duration: 2000 | |||
}); | |||
return | |||
} | |||
} else { | |||
uni.showToast({ | |||
title: '正确值不能为空', | |||
title: '错误词不能为空', | |||
duration: 2000 | |||
}); | |||
return | |||
} | |||
} else { | |||
uni.showToast({ | |||
title: '错误词不能为空', | |||
duration: 2000 | |||
}); | |||
return | |||
} | |||
} | |||
} | |||
}, | |||
//取消加入常错词 | |||
Cancelout() { | |||
@@ -860,8 +887,13 @@ | |||
}, | |||
//加入长错词 | |||
Oftenthewrongword() { | |||
this.isNum = false; | |||
this.reswrongword = ""; | |||
this.isshow2 = true; | |||
let reg = /^[0-9]+$/ | |||
if (reg.test(this.thewrongword)) { | |||
this.isNum = true | |||
} | |||
}, | |||
//加精华 | |||
Addtheessence() { | |||
@@ -1852,4 +1884,7 @@ | |||
color: #333333; | |||
} | |||
} | |||
/deep/ .u-model-title{ | |||
padding: 34rpx 0 16rpx !important; | |||
} | |||
</style> |
@@ -215,8 +215,26 @@ | |||
</view> | |||
<!-- 加入常错词 --> | |||
<view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view> | |||
<view class="bounced" v-if="isshow2"> | |||
<view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view> | |||
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit"> | |||
<view class="tian-view"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
<view class="tian-view" style="margin-bottom: 74rpx;"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">正确词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
</u-modal> | |||
<!-- <view class="bounced" v-if="isshow2"> | |||
<view class="tian-view"> | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
@@ -234,8 +252,8 @@ | |||
<view class="bounced3"> | |||
<view class="bounced3-1" @tap="Cancelout">取消</view> | |||
<view class="bounced3-2" @tap="Confirmtheexit">确认</view> | |||
</view> | |||
</view> | |||
</view> | |||
</view> --> | |||
<!-- 加精华 --> | |||
<view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view> | |||
@@ -496,12 +514,12 @@ | |||
<script> | |||
var util = require("../../utils/util.js"); | |||
var config = require("../../config"); | |||
// import LongAudio from "@/components/long_audio/long_audio.vue" | |||
import LongAudio from "@/components/long_audio/long_audio.vue" | |||
import audioList from "@/audios.js" | |||
export default { | |||
// components: { | |||
// LongAudio | |||
// }, | |||
components: { | |||
LongAudio | |||
}, | |||
data() { | |||
return { | |||
isShowMark: 0, | |||
@@ -1573,7 +1591,7 @@ | |||
wrongWord: this.thewrongword, //错误词 | |||
correctWord: this.reswrongword, //正确词 | |||
translateHtmlContent: this.messagelisy, | |||
id:uni.getStorageSync('buildingID').id | |||
} | |||
this.isshow2 = false; | |||
@@ -1749,10 +1767,10 @@ | |||
}, | |||
// 获取评分 | |||
getRatelist() { | |||
if (this.ratelist.length == 0) { | |||
uni.showLoading({ | |||
title: '加载中' | |||
}); | |||
// if (this.ratelist.length == 0) { | |||
// uni.showLoading({ | |||
// title: '加载中' | |||
// }); | |||
this.$u.get("/customer/findzkMByCusId", { | |||
cusId: this.customerId | |||
}).then(res => { | |||
@@ -1820,7 +1838,7 @@ | |||
uni.hideLoading(); | |||
}, 1000); | |||
}) | |||
} | |||
// } | |||
}, | |||
//--------------------------------- 获取转义后的对话结果 | |||
@@ -2904,5 +2922,8 @@ | |||
height: 100rpx; | |||
padding: 20rpx; | |||
border: 1rpx solid #E4F0FF; | |||
} | |||
/deep/ .u-model-title{ | |||
padding: 34rpx 0 16rpx !important; | |||
} | |||
</style> |
@@ -2,11 +2,11 @@ | |||
// http.js使用域名 | |||
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地 | |||
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 | |||
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 | |||
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 | |||
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 | |||
// const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | |||
const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | |||
// config使用域名 | |||
/**192.168.31.167 | |||