askbot-dragon 1.5.59-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 +3 -2
- package/public/index.html +7 -7
- package/src/assets/js/hammer.js +2 -13
- package/src/assets/js/obsBrowser.js +63 -0
- package/src/assets/less/converSationContainer/common.less +0 -7
- package/src/components/AnswerDocknowledge.vue +1 -12
- package/src/components/ConversationContainer.vue +14 -45
- package/src/components/askVideo.vue +5 -2
- package/src/components/associationIntention.vue +1 -1
- package/src/components/formTemplate.vue +24 -19
- package/src/components/pdfPosition.vue +59 -95
- package/src/components/previewPdf.vue +6 -14
- package/src/components/utils/ckeditor.js +10 -7
- package/src/components/utils/ckeditorImageUpload/command.js +9 -7
- package/src/components/utils/ckeditorfileUpload/common.js +10 -17
- package/src/components/newPdfPosition.vue +0 -878
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,8 @@
|
|
|
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",
|
|
17
|
+
"esdk-obs-browserjs": "^3.23.5",
|
|
16
18
|
"install": "^0.13.0",
|
|
17
19
|
"jquery": "^3.5.1",
|
|
18
20
|
"lodash": "^4.17.21",
|
|
@@ -30,7 +32,6 @@
|
|
|
30
32
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
31
33
|
"@vue/cli-service": "~4.5.0",
|
|
32
34
|
"babel-eslint": "^10.1.0",
|
|
33
|
-
"element-ui": "^2.15.10",
|
|
34
35
|
"eslint": "^6.7.2",
|
|
35
36
|
"eslint-plugin-vue": "^6.2.2",
|
|
36
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>
|
package/src/assets/js/hammer.js
CHANGED
|
@@ -3,15 +3,6 @@ export function zoomElement (el) {
|
|
|
3
3
|
let store = {
|
|
4
4
|
scale: 1
|
|
5
5
|
};
|
|
6
|
-
if (!el){
|
|
7
|
-
return
|
|
8
|
-
}
|
|
9
|
-
let scale = 1;
|
|
10
|
-
if (el.style.transform){
|
|
11
|
-
let transForm = el.style.transform;
|
|
12
|
-
var values = transForm.split('(')[1].split(')')[0].split(',');
|
|
13
|
-
scale = values[0] ? values[0] : 1
|
|
14
|
-
}
|
|
15
6
|
// 缩放事件的处理
|
|
16
7
|
el.addEventListener('touchstart', function (event) {
|
|
17
8
|
let touches = event.touches;
|
|
@@ -76,15 +67,13 @@ export function zoomElement (el) {
|
|
|
76
67
|
newScale = 3;
|
|
77
68
|
}
|
|
78
69
|
// 最小缩放比例限制
|
|
79
|
-
if(newScale <
|
|
80
|
-
newScale =
|
|
70
|
+
if(newScale < 1) {
|
|
71
|
+
newScale = 1;
|
|
81
72
|
}
|
|
82
73
|
// 记住使用的缩放值
|
|
83
74
|
store.scale = newScale;
|
|
84
75
|
// 图像应用缩放效果
|
|
85
76
|
el.style.transform = 'scale(' + newScale + ')';
|
|
86
|
-
el.style.transformOrigin = 'top left'
|
|
87
|
-
|
|
88
77
|
}
|
|
89
78
|
});
|
|
90
79
|
document.addEventListener('touchend', function () {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// 创建ObsClient实例
|
|
2
|
+
import ObsClient from 'esdk-obs-browserjs';
|
|
3
|
+
const obsClient = new ObsClient({
|
|
4
|
+
access_key_id: "EE4MAFWH4YLQSQF7NNIP",
|
|
5
|
+
secret_access_key: "Dq9giqqwZoX77dqSIzhA1Yhhe9tarA3LRBGBF4eO",
|
|
6
|
+
server : 'https://obs.cn-east-3.myhuaweicloud.com',
|
|
7
|
+
timeout : 1000
|
|
8
|
+
});
|
|
9
|
+
let mainId = sessionStorage.getItem('_mainId') ? sessionStorage.getItem('_mainId') : "";
|
|
10
|
+
let IDX = 256, HEX = [], SIZE = 256, BUFFER;
|
|
11
|
+
while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
|
|
12
|
+
function uid(len) {
|
|
13
|
+
let i = 0, tmp = (len || 11);
|
|
14
|
+
if (!BUFFER || ((IDX + tmp) > SIZE * 2)) {
|
|
15
|
+
for (BUFFER = '', IDX = 0; i < SIZE; i++) {
|
|
16
|
+
BUFFER += HEX[Math.random() * 256 | 0];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return BUFFER.substring(IDX, IDX++ + tmp);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function dataFormat(fmt, date = new Date()) {
|
|
24
|
+
const o = {
|
|
25
|
+
"M+": date.getMonth() + 1, //月份
|
|
26
|
+
"d+": date.getDate(), //日
|
|
27
|
+
"h+": date.getHours(), //小时
|
|
28
|
+
"m+": date.getMinutes(), //分
|
|
29
|
+
"s+": date.getSeconds(), //秒
|
|
30
|
+
"q+": Math.floor((date.getMonth() + 3) / 3), //季度
|
|
31
|
+
"S": date.getMilliseconds() //毫秒
|
|
32
|
+
};
|
|
33
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
34
|
+
for (const k in o)
|
|
35
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
36
|
+
return fmt;
|
|
37
|
+
}
|
|
38
|
+
async function putObject(file,callback){
|
|
39
|
+
let fileUrl = ''
|
|
40
|
+
let objName = (process.env.VUE_APP_ENV === 'development' ? 'dev_' : 'pro_') + file.name;
|
|
41
|
+
let fileName = "front-oss/" + mainId + '/' + dataFormat("yyyy/MM/dd/hh/mm/") + uid(32) + "/" + objName;
|
|
42
|
+
await obsClient.putObject({
|
|
43
|
+
Bucket: 'askbot-uat',
|
|
44
|
+
Key : fileName,
|
|
45
|
+
SourceFile : file,
|
|
46
|
+
ACL : obsClient.enums.AclPublicRead,
|
|
47
|
+
ProgressCallback: callback
|
|
48
|
+
}).then(function(result) {
|
|
49
|
+
if(result.CommonMsg.Status < 300){
|
|
50
|
+
console.log('Create object:' + JSON.stringify(result) + ' successfully!\n',process.env.VUE_APP_ENV);
|
|
51
|
+
let domain = process.env.VUE_APP_ENV ==='development' ? 'https://askbot-uat.obs.cn-east-3.myhuaweicloud.com/' : ''
|
|
52
|
+
fileUrl = {
|
|
53
|
+
url: domain + fileName,
|
|
54
|
+
name:file.name
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return fileUrl
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
putObject
|
|
63
|
+
}
|
|
@@ -35,13 +35,6 @@
|
|
|
35
35
|
border-radius: 6px;
|
|
36
36
|
background-color: #bfceec !important;
|
|
37
37
|
}
|
|
38
|
-
@media screen and (max-width: 767px){
|
|
39
|
-
::-webkit-scrollbar {
|
|
40
|
-
width: 0;
|
|
41
|
-
height: 0;
|
|
42
|
-
background-color:@system_bordercolor_4;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
38
|
|
|
46
39
|
// 弹窗body
|
|
47
40
|
.el-dialog__body{
|
|
@@ -244,18 +244,7 @@ export default {
|
|
|
244
244
|
}
|
|
245
245
|
this.$refs.previewPdf.fileType = type
|
|
246
246
|
this.$refs.previewPdf.tagIds = item.tagIds
|
|
247
|
-
this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false
|
|
248
|
-
let index = url.indexOf("?");
|
|
249
|
-
let newFileInOssPath = url;
|
|
250
|
-
if (index !== -1){
|
|
251
|
-
newFileInOssPath = url.substring(0, url.indexOf("?"))
|
|
252
|
-
}
|
|
253
|
-
let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
|
|
254
|
-
if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
|
|
255
|
-
this.$refs.previewPdf.fileName = fileName;
|
|
256
|
-
} else {
|
|
257
|
-
this.$refs.previewPdf.fileName = '';
|
|
258
|
-
}
|
|
247
|
+
this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false
|
|
259
248
|
if(item.tagIds && item.tagIds.length != 0) {
|
|
260
249
|
this.$refs.previewPdf.loading = false
|
|
261
250
|
return
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div> -->
|
|
35
35
|
|
|
36
36
|
<text-message :text="text" @submitClick="submitClick"></text-message>
|
|
37
|
-
|
|
37
|
+
<!-- <answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge"></answer-docknowledge> -->
|
|
38
38
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
39
39
|
<div slot="voiceTip">
|
|
40
40
|
松开发送
|
|
@@ -105,7 +105,7 @@ import AnswerVoice from "@/components/AnswerVoice";
|
|
|
105
105
|
// import ChatContent from "./chatContent";
|
|
106
106
|
// import FeedBack from '@/components/feedBack'
|
|
107
107
|
// 知识类型
|
|
108
|
-
import AnswerDocknowledge from "./AnswerDocknowledge.vue";
|
|
108
|
+
// import AnswerDocknowledge from "./AnswerDocknowledge.vue";
|
|
109
109
|
export default {
|
|
110
110
|
name: 'ConversationContainer',
|
|
111
111
|
components: {
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
// FormTemplate,
|
|
132
132
|
// FileType,
|
|
133
133
|
// ChatContent,
|
|
134
|
-
AnswerDocknowledge,
|
|
134
|
+
// AnswerDocknowledge,
|
|
135
135
|
},
|
|
136
136
|
props: {
|
|
137
137
|
messages: Array
|
|
@@ -188,48 +188,17 @@ export default {
|
|
|
188
188
|
answerDocknowledge:
|
|
189
189
|
// {"content":{"knowledgeId":"64915d6e098ec248701da267","actionType":"answer_doc_knowledge","text":"跳舞不仅要有实力,还要有好的穿搭,本文针对街舞爱好者提供了穿搭指南,给你带来灵感和帮助!","list":[{"tagIds":[],"format":"html","updateTime":"2023-06-20 16:03:58","source":"WECHAT","url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/137993c6d830416696bbd771fc61d423/1937/2023/06/20/16/03/微信同步/52720/501775e41a724d7da06e66b3b4686407.html","knowledgeId":"64915d6e098ec248701da267","from":"跳舞要有范儿,穿搭占一半!快来get你的街舞穿搭指南~"}],"renderType":0,"type":0,"isKnowledgeSummary":true},"type":"answer_doc_knowledge","sessionId":1687251699065,"keyId":"1a079f48-ace3-4064-89b4-8a292c6a8a93_________","isKnowledgeSummary":true},
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"knowledgeId": null,
|
|
203
|
-
"actionType": "answer_doc_knowledge",
|
|
204
|
-
"images": null,
|
|
205
|
-
"knowledgePartId": null,
|
|
206
|
-
"srcContentId": null,
|
|
207
|
-
"text": "新能源车是指采用新型能源的轿车、客车、货车等机动车辆,包括纯电动汽车、插电式混合动力汽车和燃料电池汽车。根据数据显示,2020年我国新能源汽车销售量达到139万辆,同比增长10.9%。预计2021年新能源车市场将继续保持高速增长,销售量有望超过200万辆。政府对新能源汽车实行补贴政策,同时逐步放松对新能源车的限购和限行政策。此外,中国汽车企业在新能源车领域的技术研发能力也不断提升,各大品牌纷纷推出新能源车型,采用更优秀的动力电池和电控系统,提高了车辆的续航里程。因此,新能源车市场发展前景广阔。",
|
|
208
|
-
"list": [
|
|
209
|
-
{
|
|
210
|
-
"owner": null,
|
|
211
|
-
"tagId": "6525183560177f6223d52a14",
|
|
212
|
-
"enterprise": null,
|
|
213
|
-
"tagIds": [
|
|
214
|
-
"6525183560177f6223d52a14"
|
|
215
|
-
],
|
|
216
|
-
"format": "docx",
|
|
217
|
-
"srcContentId": "99cada54a02161f979acc28c5b8b913e",
|
|
218
|
-
"updateTime": "2023-10-10 17:24:05",
|
|
219
|
-
"source": "CORP_LOCAL_FILE",
|
|
220
|
-
"srcContent": "新能源车指的是采用新型能源的轿车、客车、货车等机动车辆。目前主要的新能源车包括纯电动汽车、插电式混合动力汽车、燃料电池汽车等。以下是对新能源车的分析报告:市场发展趋势:随着环保和能源安全意识的增强,新能源车市场呈现快速发展态势。数据显示,2020年我国新能源汽车销售量达到139万辆,同比增长10.9%。预计2021年新能源车市场仍将保持高速增长,销售量有望达到200万辆以上。政策扶持力度加大:我国政府对新能源汽车实行补贴政策,以鼓励消费者选择绿色出行方式。此外,对新能源车限购、限行等政策也逐步放松。政策扶持的加大将进一步促进新能",
|
|
221
|
-
"url": "http://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/43aadcaac45f4be19b63fd18ca68f2e6/2023/10/10/17/23/a27c5c1dd534d180c5512c907d5c9888/新能源车分析报告 (1).docx?uploadId=0921CB01AB5847E8BEF44730EE5DACF7",
|
|
222
|
-
"knowledgeId": "6525182f002ff5198983a90c",
|
|
223
|
-
"knowledgePartId": "YfHmGIsBvcIPGxbfkvwK",
|
|
224
|
-
"from": "新能源车分析报告 (1)",
|
|
225
|
-
"introduction": "新能源车指的是采用新型能源的轿车、客车、货车等机动车辆。目前主要的新能源车包括纯电动汽车、插电式混合动力汽车、燃料电池汽车等。以下是对新能源车的分析报告:市场发展趋势:随着环保和能源安全意识的增强,新能源车市场呈现快速发展态势。数据显示,2020年我国新能源汽车销售量达到139万辆,同比增长10.9%。预计2021年新能源车市场仍将保持高速增长,销售量有望达到200万辆以上。政策扶持力度加大:我国政府对新能源汽车实行补贴政策,以鼓励消费者选择绿色出行方式。此外,对新能源车限购、限行等政策也逐步放松。政策扶持的加大将进一步促进新能"
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"renderType": 0,
|
|
229
|
-
"type": 0,
|
|
230
|
-
"srcContent": null
|
|
231
|
-
}
|
|
232
|
-
},
|
|
191
|
+
{
|
|
192
|
+
"content": {
|
|
193
|
+
"images": [{ url: 'https://static.guoranbot.com/images/knowledge/e0f6898c6b0d47fa98e8f71ceab1bde8/安全标志--禁止标志.png' }],
|
|
194
|
+
"actionType": "answer_doc_knowledge",
|
|
195
|
+
"text": "中国的省份名称有湖北省、广西壮族自治区等。",
|
|
196
|
+
"list": [{ "tagIds": [], "format": "yqhtml", "srcContentId": "8ee0fa9bb5a89ea01f588843589bf931", "updateTime": "2023-04-14 20:15:50", "source": "YUQUE", "srcContent": "功能概述分院科室的建立。分院科室医生关联。分院科室建立时,科室编码需要与集团提供的科室编码保持一致。科室维护进入扁鹊基础配置模块,如图进入科室维护界面进行科室新增输入科室信息进行科室增加。", "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/yuque/7faaefde11374c7992c377731ea4dddc/dinga77cc098b0b5e113ee0f45d8e4f7c288/2023/4/14/19/54/31/acc2421dcfd04db39eba0c37e7d3b580.html", "knowledgeId": "643940bb6cbe816b83ebbaaf", "knowledgePartId": "lPexf4cBYkmDoUE2eSUt", "from": "2.3 科室", "introduction": "功能概述分院科室的建立。分院科室医生关联。分院科室建立时,科室编码需要与集团提供的科室编码保持一致。科室维护进入扁鹊基础配置模块,如图进入科室维护界面进行科室新增输入科室信息进行科室增加。" }, { "tagIds": [], "format": "feishuhtml", "srcContentId": "8ee0fa9bb5a89ea01f588843589bf931", "updateTime": "2023-04-13 23:19:48", "source": "YUQUE", "srcContent": "功能概述分院科室的建立。分院科室医生关联。分院科室建立时,科室编码需要与集团提供的科室编码保持一致。科室维护进入扁鹊基础配置模块,如图进入科室维护界面进行科室新增输入科室信息进行科室增加。", "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/yuque/7faaefde11374c7992c377731ea4dddc/dinga77cc098b0b5e113ee0f45d8e4f7c288/2023/4/13/22/20/40/0e48cc7b15b34d2f84fe49fd1a89d606.html", "knowledgeId": "643817509ab4545bef50db64", "knowledgePartId": "NeYze4cBh77-s6lwjWOl", "from": "2.12 重要异常科室对照", "introduction": "功能概述分院科室的建立。分院科室医生关联。分院科室建立时,科室编码需要与集团提供的科室编码保持一致。科室维护进入扁鹊基础配置模块,如图进入科室维护界面进行科室新增输入科室信息进行科室增加。" }, { "tagIds": ['12312313123'], "format": "yqhtml", "srcContentId": "8ee0fa9bb5a89ea01f588843589bf931", "updateTime": "2023-04-13 23:19:02", "source": "YUQUE", "srcContent": "功能概述分院科室的建立。分院科室医生关联。分院科室建立时,科室编码需要与集团提供的科室编码保持一致。科室维护进入扁鹊基础配置模块,如图进入科室维护界面进行科室新增输入科室信息进行科室增加。", "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/yuque/7faaefde11374c7992c377731ea4dddc/dinga77cc098b0b5e113ee0f45d8e4f7c288/2023/4/13/22/20/18/5cdf1295ec1649f6ab73948aa82ea810.html", "knowledgeId": "643817509ab4545bef50db58", "knowledgePartId": "Hvcye4cBYkmDoUE21h6V", "from": "2.3 科室", "introduction": "功能概述分院科室的建立。分院科室医生关联。分院科室建立时,科室编码需要与集团提供的科室编码保持一致。科室维护进入扁鹊基础配置模块,如图进入科室维护界面进行科室新增输入科室信息进行科室增加。" }, { "tagId": "6475eab868110215ab821a7c", "tagIds": ["6475eab868110215ab821a7c"], "format": "xlsx", "srcContentId": "0bf639060655ff3ec217484a2fc7827d", "updateTime": "2023-05-30 20:28:21", "source": "CORP_LOCAL_FILE", "srcContent": "产品:外观,解释:VX50有两种套餐可下单: 套餐一:只购买VX50终端设备,不包含摄像头、麦克风 套餐二:除购买VX50终端设备外,可选购SC701云台摄像头及MC30/MC31麦克风", "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/5ecf2fcd704541149201ab9c1c31162d/2023/05/30/20/11/85b7b2a5f61e2b060387656e88c02d50/VX30与VX50对比表.xlsx", "knowledgeId": "6475e7eac724c54c46cbfa2d", "knowledgePartId": "T_uhbIgB3v-0X8BLeDAh", "from": "VX30与VX50对比表", "introduction": "产品:外观,解释:VX50有两种套餐可下单: 套餐一:只购买VX50终端设备,不包含摄像头、麦克风 套餐二:除购买VX50终端设备外,可选购SC701云台摄像头及MC30/MC31麦克风" },],
|
|
197
|
+
"renderType": 0,
|
|
198
|
+
"type": 0
|
|
199
|
+
},
|
|
200
|
+
"type": "answer_doc_knowledge"
|
|
201
|
+
},
|
|
233
202
|
ActionAiGuideObj: {
|
|
234
203
|
// 智能引导
|
|
235
204
|
type: "answer_intellect_guide",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
</template>
|
|
27
27
|
<script>
|
|
28
|
-
import {
|
|
28
|
+
import { putObject } from "../assets/js/obsBrowser";
|
|
29
29
|
|
|
30
30
|
export default {
|
|
31
31
|
name: "ask_video",
|
|
@@ -85,7 +85,10 @@
|
|
|
85
85
|
console.debug('img.src',output)
|
|
86
86
|
let base64 = canvas.toDataURL("image/png")
|
|
87
87
|
let blob = that.dataURLtoFile(base64,'name')
|
|
88
|
-
let promise = uploadImageByBase64(ossConfig,blob);
|
|
88
|
+
// let promise = uploadImageByBase64(ossConfig,blob);
|
|
89
|
+
const file = new File([blob], 'name', { type: 'text/plain', lastModified: Date.now() });
|
|
90
|
+
console.debug('file',file)
|
|
91
|
+
let promise = putObject(file);
|
|
89
92
|
promise.then((res)=>{
|
|
90
93
|
console.debug("upload base64 reslut",res);
|
|
91
94
|
if (res&&res.url){
|
|
@@ -833,6 +833,7 @@ import Tree from '../components/tree'
|
|
|
833
833
|
import selectPopup from '../components/popup'
|
|
834
834
|
import fileListView from './fielListView.vue'
|
|
835
835
|
import { uniqueData } from './utils/math_utils'
|
|
836
|
+
import { putObject } from "../assets/js/obsBrowser";
|
|
836
837
|
export default {
|
|
837
838
|
name: "formTemplate",
|
|
838
839
|
data() {
|
|
@@ -1598,21 +1599,24 @@ export default {
|
|
|
1598
1599
|
status:'',
|
|
1599
1600
|
url:''
|
|
1600
1601
|
}
|
|
1601
|
-
let res = multipartUpload(
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
);
|
|
1607
|
-
|
|
1602
|
+
// let res = multipartUpload(
|
|
1603
|
+
// this.ossConfig,
|
|
1604
|
+
// file,
|
|
1605
|
+
// null,
|
|
1606
|
+
// imageInfo
|
|
1607
|
+
// );
|
|
1608
|
+
let resp = putObject(file);
|
|
1609
|
+
resp.then((res) => {
|
|
1608
1610
|
console.log("upload result:", res);
|
|
1609
1611
|
// let filePath = res.name;
|
|
1610
|
-
|
|
1612
|
+
let obj = {
|
|
1611
1613
|
name:file.name,
|
|
1612
|
-
url:
|
|
1614
|
+
url:res.url,
|
|
1613
1615
|
status:'success'
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
+
}
|
|
1617
|
+
imageData.urls.push(obj)
|
|
1618
|
+
// imageInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
1619
|
+
imageInfo.url = res.url;
|
|
1616
1620
|
imageInfo.status='success'
|
|
1617
1621
|
imageInfo.name=file.name
|
|
1618
1622
|
for (let j=0;j<this.extInfoFieldValue[this.filedId].length;j++){
|
|
@@ -2498,13 +2502,14 @@ export default {
|
|
|
2498
2502
|
progress: 0,
|
|
2499
2503
|
},
|
|
2500
2504
|
};*/
|
|
2501
|
-
let res = multipartUpload(
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
);
|
|
2507
|
-
|
|
2505
|
+
// let res = multipartUpload(
|
|
2506
|
+
// this.ossConfig,
|
|
2507
|
+
// file,
|
|
2508
|
+
// null,
|
|
2509
|
+
// imgInfo
|
|
2510
|
+
// );
|
|
2511
|
+
let ress = putObject(file)
|
|
2512
|
+
ress.then((res) => {
|
|
2508
2513
|
console.debug("upload result:", res);
|
|
2509
2514
|
// let filePath = res.name;
|
|
2510
2515
|
/* imageData.content.progress = 1;
|
|
@@ -2512,7 +2517,7 @@ export default {
|
|
|
2512
2517
|
ossFileUrl(this.ossConfig, res.name)
|
|
2513
2518
|
);
|
|
2514
2519
|
console.log('imageData',imageData)*/
|
|
2515
|
-
imgInfo.url =
|
|
2520
|
+
imgInfo.url = res.url
|
|
2516
2521
|
imgInfo.status='success'
|
|
2517
2522
|
if (data.file){
|
|
2518
2523
|
imgInfo.name = data.file.name
|