askbot-dragon 1.0.21 → 1.0.23
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/README.md +27 -27
- package/babel.config.js +6 -6
- package/dragon.iml +7 -7
- package/package.json +56 -56
- package/public/index.html +43 -43
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +191 -191
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +211 -211
- package/src/components/ActionAlertIframe.vue +112 -112
- package/src/components/AiGuide.vue +467 -467
- package/src/components/AnswerDocknowledge.vue +131 -131
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +4658 -4658
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +76 -76
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +138 -138
- package/src/components/assetDetails.vue +370 -370
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +269 -269
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/fielListView.vue +346 -346
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3344 -3344
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +177 -177
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +503 -503
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +70 -70
- package/src/components/popup.vue +227 -227
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +89 -89
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/senderMessagePlatform.vue +50 -50
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +294 -275
- package/src/components/utils/AliyunIssUtil.js +72 -72
- package/src/components/utils/ckeditor.js +155 -155
- package/src/components/utils/ckeditorImageUpload/command.js +109 -109
- package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
- package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
- package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
- package/src/components/utils/ckeditorfileUpload/common.js +111 -111
- package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
- package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
- package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
- package/src/components/utils/format_date.js +25 -25
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +29 -29
- package/src/components/voiceComponent.vue +119 -119
- package/src/main.js +60 -60
- package/vue.config.js +47 -47
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="action_alert_iframe">
|
|
3
|
-
<iframe
|
|
4
|
-
class="grzh-iframe"
|
|
5
|
-
:id="tampId"
|
|
6
|
-
:data-name="tampId"
|
|
7
|
-
:src="actionAlertIframe.template"
|
|
8
|
-
width="100%"
|
|
9
|
-
:height="actionAlertIframe.height"
|
|
10
|
-
:scrolling="actionAlertIframe.scrolling"
|
|
11
|
-
frameborder="no"
|
|
12
|
-
border="0"
|
|
13
|
-
></iframe>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
<script>
|
|
17
|
-
export default {
|
|
18
|
-
name: "action_alert_iframe",
|
|
19
|
-
props: ["actionAlertIframe"],
|
|
20
|
-
data() {
|
|
21
|
-
return {
|
|
22
|
-
name: "action_alert_iframe",
|
|
23
|
-
dataName: "",
|
|
24
|
-
tampId:'',
|
|
25
|
-
// 组件接收数据
|
|
26
|
-
actionAlertIframeObj: {
|
|
27
|
-
template: "url地址(可插入变量)",
|
|
28
|
-
description: "描述",
|
|
29
|
-
height: "frame高度",
|
|
30
|
-
width: "iframe 的宽度",
|
|
31
|
-
scrolling: "yes/no/auto(是否在 iframe 中显示滚动条)",
|
|
32
|
-
sandbox: [
|
|
33
|
-
"预留",
|
|
34
|
-
"启用一系列对 <iframe> 中内容的额外限制",
|
|
35
|
-
"参考 https://www.w3school.com.cn/tags/att_iframe_sandbox.asp",
|
|
36
|
-
],
|
|
37
|
-
frameborder: "0/1(是否显示框架周围的边框)",
|
|
38
|
-
displayStyle:
|
|
39
|
-
"iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
methods: {},
|
|
44
|
-
mounted() {
|
|
45
|
-
this.tampId = 'iframeId++' + new Date().getTime();
|
|
46
|
-
let tampUrl = this.actionAlertIframe.template;
|
|
47
|
-
function GetRequest() {
|
|
48
|
-
var url = tampUrl.split("?")[1]; //获取url中"?"符后的字串
|
|
49
|
-
var theRequest = new Object();
|
|
50
|
-
if (url) {
|
|
51
|
-
// var str = url.substr(1);
|
|
52
|
-
let strs = url.split("&");
|
|
53
|
-
for (var i = 0; i < strs.length; i++) {
|
|
54
|
-
theRequest[strs[i].split("=")[0]] = unescape(
|
|
55
|
-
strs[i].split("=")[1]
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return theRequest;
|
|
60
|
-
}
|
|
61
|
-
if (JSON.stringify(GetRequest()) == "{}") {
|
|
62
|
-
this.actionAlertIframe.template = this.actionAlertIframe.template + "?iframeId=" + this.tampId
|
|
63
|
-
} else {
|
|
64
|
-
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
</script>
|
|
69
|
-
<style lang="less" scoped>
|
|
70
|
-
// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
71
|
-
|
|
72
|
-
#action_alert_iframe {
|
|
73
|
-
width: 100%;
|
|
74
|
-
margin: 0 auto;
|
|
75
|
-
overflow-x: auto;
|
|
76
|
-
.grzh-iframe {
|
|
77
|
-
scrollbar-face-color: #9aa1c4;
|
|
78
|
-
/* 滚动条滑块按钮的颜色 */
|
|
79
|
-
scrollbar-highlight-color: #f60;
|
|
80
|
-
/* 滚动条整体颜色 */
|
|
81
|
-
scrollbar-3dlight-color: #f00;
|
|
82
|
-
scrollbar-darkshadow-color: #000;
|
|
83
|
-
/* 滚动条阴影 */
|
|
84
|
-
scrollbar-shadow-color: #000;
|
|
85
|
-
/* 三角箭头颜色 */
|
|
86
|
-
scrollbar-arrow-color: #394264;
|
|
87
|
-
/* 滚动条轨道颜色 */
|
|
88
|
-
scrollbar-track-color: #394264;
|
|
89
|
-
|
|
90
|
-
::-webkit-scrollbar {
|
|
91
|
-
width: 5px;
|
|
92
|
-
height: 5px;
|
|
93
|
-
}
|
|
94
|
-
::-webkit-scrollbar-thumb {
|
|
95
|
-
background-color: #999;
|
|
96
|
-
-webkit-border-radius: 5px;
|
|
97
|
-
border-radius: 5px;
|
|
98
|
-
}
|
|
99
|
-
::-webkit-scrollbar-thumb:vertical:hover {
|
|
100
|
-
background-color: #666;
|
|
101
|
-
}
|
|
102
|
-
::-webkit-scrollbar-thumb:vertical:active {
|
|
103
|
-
background-color: #333;
|
|
104
|
-
}
|
|
105
|
-
::-webkit-scrollbar-button {
|
|
106
|
-
display: none;
|
|
107
|
-
}
|
|
108
|
-
::-webkit-scrollbar-track {
|
|
109
|
-
background-color: #f1f1f1;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div id="action_alert_iframe">
|
|
3
|
+
<iframe
|
|
4
|
+
class="grzh-iframe"
|
|
5
|
+
:id="tampId"
|
|
6
|
+
:data-name="tampId"
|
|
7
|
+
:src="actionAlertIframe.template"
|
|
8
|
+
width="100%"
|
|
9
|
+
:height="actionAlertIframe.height"
|
|
10
|
+
:scrolling="actionAlertIframe.scrolling"
|
|
11
|
+
frameborder="no"
|
|
12
|
+
border="0"
|
|
13
|
+
></iframe>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
name: "action_alert_iframe",
|
|
19
|
+
props: ["actionAlertIframe"],
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
name: "action_alert_iframe",
|
|
23
|
+
dataName: "",
|
|
24
|
+
tampId:'',
|
|
25
|
+
// 组件接收数据
|
|
26
|
+
actionAlertIframeObj: {
|
|
27
|
+
template: "url地址(可插入变量)",
|
|
28
|
+
description: "描述",
|
|
29
|
+
height: "frame高度",
|
|
30
|
+
width: "iframe 的宽度",
|
|
31
|
+
scrolling: "yes/no/auto(是否在 iframe 中显示滚动条)",
|
|
32
|
+
sandbox: [
|
|
33
|
+
"预留",
|
|
34
|
+
"启用一系列对 <iframe> 中内容的额外限制",
|
|
35
|
+
"参考 https://www.w3school.com.cn/tags/att_iframe_sandbox.asp",
|
|
36
|
+
],
|
|
37
|
+
frameborder: "0/1(是否显示框架周围的边框)",
|
|
38
|
+
displayStyle:
|
|
39
|
+
"iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
methods: {},
|
|
44
|
+
mounted() {
|
|
45
|
+
this.tampId = 'iframeId++' + new Date().getTime();
|
|
46
|
+
let tampUrl = this.actionAlertIframe.template;
|
|
47
|
+
function GetRequest() {
|
|
48
|
+
var url = tampUrl.split("?")[1]; //获取url中"?"符后的字串
|
|
49
|
+
var theRequest = new Object();
|
|
50
|
+
if (url) {
|
|
51
|
+
// var str = url.substr(1);
|
|
52
|
+
let strs = url.split("&");
|
|
53
|
+
for (var i = 0; i < strs.length; i++) {
|
|
54
|
+
theRequest[strs[i].split("=")[0]] = unescape(
|
|
55
|
+
strs[i].split("=")[1]
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return theRequest;
|
|
60
|
+
}
|
|
61
|
+
if (JSON.stringify(GetRequest()) == "{}") {
|
|
62
|
+
this.actionAlertIframe.template = this.actionAlertIframe.template + "?iframeId=" + this.tampId
|
|
63
|
+
} else {
|
|
64
|
+
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
</script>
|
|
69
|
+
<style lang="less" scoped>
|
|
70
|
+
// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
71
|
+
|
|
72
|
+
#action_alert_iframe {
|
|
73
|
+
width: 100%;
|
|
74
|
+
margin: 0 auto;
|
|
75
|
+
overflow-x: auto;
|
|
76
|
+
.grzh-iframe {
|
|
77
|
+
scrollbar-face-color: #9aa1c4;
|
|
78
|
+
/* 滚动条滑块按钮的颜色 */
|
|
79
|
+
scrollbar-highlight-color: #f60;
|
|
80
|
+
/* 滚动条整体颜色 */
|
|
81
|
+
scrollbar-3dlight-color: #f00;
|
|
82
|
+
scrollbar-darkshadow-color: #000;
|
|
83
|
+
/* 滚动条阴影 */
|
|
84
|
+
scrollbar-shadow-color: #000;
|
|
85
|
+
/* 三角箭头颜色 */
|
|
86
|
+
scrollbar-arrow-color: #394264;
|
|
87
|
+
/* 滚动条轨道颜色 */
|
|
88
|
+
scrollbar-track-color: #394264;
|
|
89
|
+
|
|
90
|
+
::-webkit-scrollbar {
|
|
91
|
+
width: 5px;
|
|
92
|
+
height: 5px;
|
|
93
|
+
}
|
|
94
|
+
::-webkit-scrollbar-thumb {
|
|
95
|
+
background-color: #999;
|
|
96
|
+
-webkit-border-radius: 5px;
|
|
97
|
+
border-radius: 5px;
|
|
98
|
+
}
|
|
99
|
+
::-webkit-scrollbar-thumb:vertical:hover {
|
|
100
|
+
background-color: #666;
|
|
101
|
+
}
|
|
102
|
+
::-webkit-scrollbar-thumb:vertical:active {
|
|
103
|
+
background-color: #333;
|
|
104
|
+
}
|
|
105
|
+
::-webkit-scrollbar-button {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
::-webkit-scrollbar-track {
|
|
109
|
+
background-color: #f1f1f1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
113
|
</style>
|