|
|
@@ -72,9 +72,6 @@ |
|
|
|
<view v-if="jiaoseshow" @click="Addtheessence()" |
|
|
|
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华 |
|
|
|
</view> |
|
|
|
<!-- <view @click="openwajue()" |
|
|
|
style="font-size: 24rpx;text-align: center;margin-left: 22rpx;">挖掘话术 |
|
|
|
</view> --> |
|
|
|
<view @click="clickbofang(dialog.backindex,item)" |
|
|
|
style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放 |
|
|
|
</view> |
|
|
@@ -122,53 +119,26 @@ |
|
|
|
</view> |
|
|
|
<!-- 加入常错词 --> |
|
|
|
<view class="zhezhao" v-if="isshow2" @tap="Cancelout"></view> |
|
|
|
|
|
|
|
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit"> |
|
|
|
<u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" |
|
|
|
@confirm="$noMultipleClicks(Confirmtheexit)"> |
|
|
|
<view class="tian-view"> |
|
|
|
<viwe class="tian-view-t2" style="margin-left: 20rpx;"> |
|
|
|
常错词:<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> |
|
|
|
</viwe> |
|
|
|
<view class="tian-view-t2" style="margin-left: 20rpx;"> |
|
|
|
常错词:<view class="word1"> |
|
|
|
<u-input :auto-height="false" height="30" type="textarea" v-model="thewrongword" :border="false" |
|
|
|
:custom-style="customStyle" placeholder="请输入" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tian-view"> |
|
|
|
<viwe class="tian-view-t3" style="margin-left: 20rpx;">正确词:<input class="huashu-input" v-model="reswrongword" type="text" placeholder="请输入" /> |
|
|
|
</viwe> |
|
|
|
</view> |
|
|
|
<!-- <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 class="tian-view-t2" style="margin-left: 20rpx;"> |
|
|
|
正确词:<view class="word1"> |
|
|
|
<u-input :auto-height="false" height="30" type="textarea" v-model="reswrongword" :border="false" |
|
|
|
:custom-style="customStyle" placeholder="请输入" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</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="isNum" class="tian-input" placeholder="请输入" /> |
|
|
|
</viwe> |
|
|
|
</view> |
|
|
|
<view class="tian-view"> |
|
|
|
<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> |
|
|
|
<view class="bounced3"> |
|
|
|
<view class="bounced3-1" @tap="Cancelout">取消</view> |
|
|
|
<view class="bounced3-2" @tap="Confirmtheexit">确认</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- 加精华 --> |
|
|
|
<view class="zhezhao" v-if="isshow3" @tap="Cancelout2"></view> |
|
|
|
<view class="bounced" v-if="isshow3"> |
|
|
@@ -185,23 +155,6 @@ |
|
|
|
<view class="bounced3-2" @tap="Confirmtheexit2">确认</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 加入挖掘话术 --> |
|
|
|
<view class="zhezhao" v-if="wajueshow" @tap="CancelAdd"></view> |
|
|
|
<u-modal v-model="wajueshow" title="新增挖掘话术" :show-cancel-button="true" @cancel="CancelAdd" @confirm="wajueConfirm(word)"> |
|
|
|
<view class="tian-view" style="margin-left: 20rpx;"> |
|
|
|
<viwe class="tian-view-t3"> |
|
|
|
话术分类:<input class="huashu-input" disabled @click="treeshow=true" v-model="wordBiaoqian" type="text" placeholder="请选择" /> |
|
|
|
</viwe> |
|
|
|
</view> |
|
|
|
<view class="tian-view" style="margin-left: 20rpx;"> |
|
|
|
<viwe class="tian-view-t2"> |
|
|
|
话术内容:<textarea :auto-height="true" type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" /> |
|
|
|
<!-- <input class="huashu-input" v-model="thewrongword" type="text" placeholder="请输入" /> --> |
|
|
|
</viwe> |
|
|
|
</view> |
|
|
|
</u-modal> |
|
|
|
<u-select v-model="treeshow" mode="mutil-column-auto" @confirm="confirm" :list="treelist"></u-select> |
|
|
|
|
|
|
|
<view class="zhezhao" v-if="effective"></view> |
|
|
|
<view class="bounced" v-if="effective"> |
|
|
|
<view class="jiajinghuatit">选择</view> |
|
|
@@ -240,10 +193,14 @@ |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
customStyle: { |
|
|
|
'width': '320rpx', |
|
|
|
'font-size': '34rpx', |
|
|
|
'border-bottom': '1px solid #ccc' |
|
|
|
}, |
|
|
|
wajueshow: false, |
|
|
|
wordBiaoqian: '', |
|
|
|
wordBiaoqianId: [], |
|
|
|
treelist: [], |
|
|
|
treeshow: false, |
|
|
|
recordPath: "", |
|
|
|
customerId: "", |
|
|
@@ -362,7 +319,6 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
this.buildingID = uni.getStorageSync('buildingID').id; |
|
|
|
this.getWordMiningList() |
|
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
|
if (this.userInfo.dataCode == 6) { |
|
|
|
this.jiaoseshow = false |
|
|
@@ -404,50 +360,6 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//获取画像标签 |
|
|
|
getWordMiningList() { |
|
|
|
this.treelist = []; |
|
|
|
this.$u.get("/corpus/findSelectedWordMiningTemplate", { |
|
|
|
houseId: this.buildingID, |
|
|
|
selected: 0 |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
// console.log(res) |
|
|
|
|
|
|
|
if(res.length){ |
|
|
|
res.forEach(item=>{ |
|
|
|
item.value = item.id; |
|
|
|
item.label = item.name; |
|
|
|
if(item.children.length){ |
|
|
|
item.children.forEach(subitem=>{ |
|
|
|
subitem.value = subitem.id; |
|
|
|
subitem.label = subitem.name; |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
item.children=[{ |
|
|
|
value: 'default'+ item.id, |
|
|
|
label: '--' |
|
|
|
}] |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
this.treelist = res; |
|
|
|
}); |
|
|
|
}, |
|
|
|
wajueConfirm(){ |
|
|
|
}, |
|
|
|
// 挖掘话术分类树的选择 |
|
|
|
confirm(e){ |
|
|
|
console.log(e) |
|
|
|
if(e[1].label=='--'){ |
|
|
|
this.wordBiaoqian = e[0].label |
|
|
|
this.wordBiaoqianId[0] = e[0].value |
|
|
|
}else{ |
|
|
|
this.wordBiaoqian = e[0].label + '-' + e[1].label |
|
|
|
this.wordBiaoqianId[0] = e[0].value |
|
|
|
this.wordBiaoqianId[1] = e[1].value |
|
|
|
} |
|
|
|
}, |
|
|
|
CancelAdd(){ |
|
|
|
this.wajueshow = false |
|
|
|
}, |
|
|
@@ -880,7 +792,7 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
//加入长错词 |
|
|
|
//加入常错词 |
|
|
|
Oftenthewrongword() { |
|
|
|
this.isNum = false; |
|
|
|
this.reswrongword = ""; |
|
|
@@ -963,7 +875,7 @@ |
|
|
|
changanxiaoguo(item, index, i) { |
|
|
|
this.messagelisy = []; |
|
|
|
this.changanitem = {}; |
|
|
|
this.duihuawenjianid = "", |
|
|
|
this.duihuawenjianid = ""; |
|
|
|
this.dialogList.forEach(res => { |
|
|
|
res.message.forEach(asd => { |
|
|
|
asd.isshow = false; |
|
|
@@ -975,7 +887,6 @@ |
|
|
|
this.textItself = item.onebest; |
|
|
|
let onebest = item.onebest; |
|
|
|
this.thewrongword = onebest.replace(/<.*?>/ig, ""); |
|
|
|
// this.thewrongword = item.onebest; |
|
|
|
this.messagelisy = this.dialogList[i].message |
|
|
|
this.argtextindex1 = i; |
|
|
|
this.argtextindex2 = index; |
|
|
@@ -1284,27 +1195,20 @@ |
|
|
|
width: 100%; |
|
|
|
font-size: 34rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
color: #333; |
|
|
|
.tian-input { |
|
|
|
width: 384rpx; |
|
|
|
font-size: 34rpx; |
|
|
|
padding: 0 10rpx; |
|
|
|
border: none; |
|
|
|
border-bottom: 1px solid #e0e0e0; |
|
|
|
|
|
|
|
.word { |
|
|
|
flex: 1; |
|
|
|
border-bottom: 1px solid #ccc; |
|
|
|
} |
|
|
|
} |
|
|
|
.tian-view-t3 { |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
font-size: 34rpx; |
|
|
|
align-items: center; |
|
|
|
.huashu-input{ |
|
|
|
width: 384rpx; |
|
|
|
height: 60rpx; |
|
|
|
padding: 0 10rpx; |
|
|
|
font-size: 34rpx; |
|
|
|
border-bottom: 1px solid #E0E0E0; |
|
|
|
|
|
|
|
.word1 { |
|
|
|
height: 80rpx; |
|
|
|
flex: 1; |
|
|
|
|
|
|
|
/deep/ textarea { |
|
|
|
max-height: 80rpx !important; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|