askbot-dragon 1.5.58-beta → 1.5.60-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/public/index.html +7 -7
- package/src/components/AnswerDocknowledge.vue +2 -1
- package/src/components/answerRadio.vue +29 -28
- package/src/components/associationIntention.vue +2 -2
- package/src/components/message/TicketMessage.vue +1 -1
- package/src/components/recommend.vue +9 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.60-beta",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"audio-loader": "^1.0.3",
|
|
14
14
|
"ckeditor": "^4.12.1",
|
|
15
15
|
"core-js": "^3.6.5",
|
|
16
|
+
"element-ui": "^2.15.14",
|
|
16
17
|
"esdk-obs-browserjs": "^3.23.5",
|
|
17
18
|
"install": "^0.13.0",
|
|
18
19
|
"jquery": "^3.5.1",
|
|
@@ -31,7 +32,6 @@
|
|
|
31
32
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
32
33
|
"@vue/cli-service": "~4.5.0",
|
|
33
34
|
"babel-eslint": "^10.1.0",
|
|
34
|
-
"element-ui": "^2.15.10",
|
|
35
35
|
"eslint": "^6.7.2",
|
|
36
36
|
"eslint-plugin-vue": "^6.2.2",
|
|
37
37
|
"less": "^3.12.2",
|
package/public/index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
</script>
|
|
26
|
-
<script src="https://
|
|
26
|
+
<script src="https://askbot-uat.obs.cn-east-3.myhuaweicloud.com/npm-static/ckeditor5-build-classic/0.4.4/ckeditor.js"></script>
|
|
27
27
|
<!-- 项目图标 -->
|
|
28
28
|
<link rel="stylesheet" href="//at.alicdn.com/t/font_1566110_3hu6pyd938i.css"/>
|
|
29
29
|
<!-- guoran图标 -->
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf.worker.min.js" integrity="sha512-6UHd2tcWIvg5hIYHXb3lnNO61tWfriGen6KddwGYTSUUazWGYESTHDDxJFEQkCy1cSL//yXKc1gcL+51/DTLFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
49
49
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf_viewer.min.js" integrity="sha512-tYEGuMBQkCfSlBKJ3dNgS06wbb/MNE6nO2poZ1Y5brix8NajGcDcfEvuL38wJDOTkq0j5ojASNmrzv/8/wgGHQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
50
50
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf_viewer.min.css" integrity="sha512-Jf9DLkegLgARLR151csVkPvcVt4cOUhslrSZwiTAe9mqFL/BbYRDmxCOioCtbHifEgjsBFbrVhOMQ3mYPDLrqQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /> -->
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<script src="https://
|
|
54
|
-
<script src="https://
|
|
55
|
-
<script src="https://
|
|
56
|
-
<link rel="stylesheet" href="https://
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
<script src="https://askbot-uat.obs.cn-east-3.myhuaweicloud.com/npm-static/pdfJS2.1.266/pdf.min.js" referrerpolicy="no-referrer"></script>
|
|
54
|
+
<script src="https://askbot-uat.obs.cn-east-3.myhuaweicloud.com/npm-static/pdfJS2.1.266/pdf.worker.min.js" referrerpolicy="no-referrer"></script>
|
|
55
|
+
<script src="https://askbot-uat.obs.cn-east-3.myhuaweicloud.com/npm-static/pdfJS2.1.266/pdf_viewer.js" referrerpolicy="no-referrer"></script>
|
|
56
|
+
<link rel="stylesheet" href="https://askbot-uat.obs.cn-east-3.myhuaweicloud.com/npm-static/pdfJS2.1.266/pdf_viewer_01.css" referrerpolicy="no-referrer" />
|
|
57
57
|
<!-- hammer.js -->
|
|
58
58
|
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js" integrity="sha512-UXumZrZNiOwnTcZSHLOfcTs0aos2MzBWHXOHOuB0J/R44QB0dwY5JgfbvljXcklVf65Gc4El6RjZ+lnwd2az2g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
|
|
59
59
|
<style>
|
|
@@ -234,7 +234,8 @@ export default {
|
|
|
234
234
|
if(res.data.code == '0') {
|
|
235
235
|
this.previewHref = res.data.data;
|
|
236
236
|
this.sourceFileType = url.substring(url.lastIndexOf('.'))
|
|
237
|
-
|
|
237
|
+
let isOhmPc = sessionStorage.getItem('isOhmPc')
|
|
238
|
+
if (isMobile() || isOhmPc == 'true'){
|
|
238
239
|
this.$refs.previewPdf.drawer = true;
|
|
239
240
|
this.$refs.previewPdf.previewShowPopup = true;
|
|
240
241
|
} else {
|
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
class="options-item"
|
|
10
10
|
:class="index!==msg.content.options.length -1?'recommend-item':'last-item'"
|
|
11
11
|
:key="msg.nodeId + '_' + index"
|
|
12
|
-
@click="
|
|
13
|
-
$emit(
|
|
14
|
-
'onRadioClick',msg.id +'_' + index + '_' + option.value + '_' + option.name,option.name, msg.apiKey,msg.actionCategory, msg.msgId?msg.msgId:''
|
|
15
|
-
)">
|
|
12
|
+
@click="radioClick(msg,option,index)">
|
|
16
13
|
|
|
17
14
|
<!-- <el-tooltip class="item" effect="dark" :content="option.name" placement="bottom-start" v-if="!isMobile">
|
|
18
15
|
<span > {{ option.name }}</span>
|
|
@@ -26,30 +23,34 @@
|
|
|
26
23
|
|
|
27
24
|
<script>
|
|
28
25
|
export default {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
26
|
+
name: "answerRadio",
|
|
27
|
+
data(){
|
|
28
|
+
return{
|
|
29
|
+
isMobile:false,
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
props:['msg'],
|
|
33
|
+
mounted(){
|
|
34
|
+
console.log(this.msg,'msg');
|
|
35
|
+
this.judgeIsMobile();
|
|
36
|
+
},
|
|
37
|
+
methods:{
|
|
38
|
+
judgeIsMobile() {
|
|
39
|
+
let flag = navigator.userAgent.match(
|
|
40
|
+
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
41
|
+
);
|
|
42
|
+
if (flag) {
|
|
43
|
+
this.isMobile = true;
|
|
44
|
+
} else {
|
|
45
|
+
this.isMobile = false;
|
|
46
|
+
}
|
|
47
|
+
console.log(this.isMobile,'this.isMobile');
|
|
48
|
+
},
|
|
49
|
+
radioClick(msg,option,index){
|
|
50
|
+
let value = option.answerId ? msg.id +'_' + index + '_' + option.value + '_' + option.name + '_' + option.answerId : msg.id +'_' + index + '_' + option.value + '_' + option.name
|
|
51
|
+
this.$emit('onRadioClick',value,option.name, msg.apiKey,msg.actionCategory, msg.msgId?msg.msgId:'',option.apiKey)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
53
54
|
|
|
54
55
|
}
|
|
55
56
|
</script>
|
|
@@ -229,8 +229,8 @@
|
|
|
229
229
|
index + 1
|
|
230
230
|
}.png" align="middle">`;
|
|
231
231
|
},
|
|
232
|
-
onRadioClickReco(id, name, apikey) {
|
|
233
|
-
this.$emit("onRadioClick", id, name, apikey);
|
|
232
|
+
onRadioClickReco(id, name, apikey,optionApiKey) {
|
|
233
|
+
this.$emit("onRadioClick", id, name, apikey,optionApiKey);
|
|
234
234
|
},
|
|
235
235
|
onImageClick(url){
|
|
236
236
|
this.$emit('onImageClick',url)
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
if (element.version == 1) {
|
|
126
126
|
element.content.htmlList.forEach((item) => {
|
|
127
127
|
item.tampList = [];
|
|
128
|
-
item.list.forEach((cell, cellIndex) => {
|
|
128
|
+
item.list && item.list.forEach((cell, cellIndex) => {
|
|
129
129
|
let tampCell = {
|
|
130
130
|
html: cell,
|
|
131
131
|
style: item.style[cellIndex]
|
|
@@ -8,23 +8,9 @@
|
|
|
8
8
|
class="options-item"
|
|
9
9
|
:class="index!==msg.recommend.list.length -1?'recommend-item':'last-item'"
|
|
10
10
|
:key="msg.nodeId + '_' + index"
|
|
11
|
-
@click="
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'recdNodeId' +
|
|
15
|
-
'_' +
|
|
16
|
-
index +
|
|
17
|
-
'_' +
|
|
18
|
-
option.id +
|
|
19
|
-
'_' +
|
|
20
|
-
option.text,
|
|
21
|
-
option.text,
|
|
22
|
-
msg.apiKey
|
|
23
|
-
)
|
|
24
|
-
"
|
|
25
|
-
>
|
|
26
|
-
{{ option.text
|
|
27
|
-
}}<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
11
|
+
@click="radioClick(option,index,msg)">
|
|
12
|
+
{{ option.text}}
|
|
13
|
+
<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
28
14
|
</p>
|
|
29
15
|
</div>
|
|
30
16
|
</div>
|
|
@@ -35,7 +21,12 @@
|
|
|
35
21
|
|
|
36
22
|
export default {
|
|
37
23
|
name: "recommend",
|
|
38
|
-
props: ["msg"]
|
|
24
|
+
props: ["msg"],
|
|
25
|
+
methods:{
|
|
26
|
+
radioClick(option,index,msg){
|
|
27
|
+
this.$emit('onRadioClickReco','recdNodeId' + '_' + index + '_' + option.id + '_' + option.text, option.text, msg.apiKey,option.apiKey)
|
|
28
|
+
},
|
|
29
|
+
}
|
|
39
30
|
}
|
|
40
31
|
</script>
|
|
41
32
|
|