askbot-dragon 1.0.26 → 1.0.28
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="answer-docknowledge">
|
|
3
|
-
<div class="ad-text">{{ msg.content.text }}
|
|
3
|
+
<div class="ad-text">{{ msg.content.text }}<span @click="lookAttach(item.url)" class="aci-view">查看原文 ></span></div>
|
|
4
4
|
<div class="ad-list">
|
|
5
5
|
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
|
|
6
6
|
<div class="alc-title">
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
<img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
|
|
9
9
|
<span class="alc-title-from">出自《{{ item.from }}》</span>
|
|
10
10
|
</div>
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
</div>
|
|
13
13
|
<div class="alc-content">
|
|
14
|
-
<div class="alc-content-text">{{ item.introduction }} <span class="aci-view">查看原文 ></span
|
|
15
|
-
|
|
14
|
+
<div v-if="false" class="alc-content-text">{{ item.introduction }} <span class="aci-view">查看原文 ></span>
|
|
15
|
+
</div>
|
|
16
|
+
<span class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
17
|
+
<div v-if="false" class="alc-content-info">
|
|
16
18
|
<div class="alcc-box">
|
|
17
19
|
<span class="aci-owner">所有者: {{ item.owner }}</span>
|
|
18
20
|
<span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
|
|
@@ -22,14 +24,18 @@
|
|
|
22
24
|
</div>
|
|
23
25
|
</div>
|
|
24
26
|
</div>
|
|
27
|
+
<previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
|
|
25
28
|
</div>
|
|
26
29
|
</template>
|
|
27
30
|
|
|
28
31
|
<script>
|
|
32
|
+
import previewDoc from "./previewDoc";
|
|
29
33
|
export default {
|
|
30
34
|
name: "answerDocknowledge",
|
|
35
|
+
components: { previewDoc },
|
|
31
36
|
data() {
|
|
32
37
|
return {
|
|
38
|
+
previewHref: "",
|
|
33
39
|
imageObj: {
|
|
34
40
|
PDF: 'pdf',
|
|
35
41
|
pdf: 'pdf',
|
|
@@ -51,6 +57,11 @@ export default {
|
|
|
51
57
|
|
|
52
58
|
},
|
|
53
59
|
methods: {
|
|
60
|
+
//预览图片
|
|
61
|
+
lookAttach(url) {
|
|
62
|
+
this.previewHref = url
|
|
63
|
+
this.$refs.previewDoc.previewShowPopup = true;
|
|
64
|
+
},
|
|
54
65
|
}
|
|
55
66
|
}
|
|
56
67
|
</script>
|
|
@@ -62,12 +73,20 @@ export default {
|
|
|
62
73
|
.ad-text {
|
|
63
74
|
line-height: 18px;
|
|
64
75
|
padding: 0px 0px 12px 0px;
|
|
76
|
+
|
|
77
|
+
.aci-view {
|
|
78
|
+
font-size: 13px;
|
|
79
|
+
display: inline-block;
|
|
80
|
+
margin-left: 10px;
|
|
81
|
+
color: #366aff;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
65
84
|
}
|
|
66
85
|
|
|
67
86
|
.ad-list {
|
|
68
87
|
.ad-list-cell {
|
|
69
88
|
border-top: solid 1px #E0E6F7;
|
|
70
|
-
padding: 10px 0;
|
|
89
|
+
padding: 10px 0 6px;
|
|
71
90
|
|
|
72
91
|
.alc-title {
|
|
73
92
|
display: flex;
|
|
@@ -81,10 +100,17 @@ export default {
|
|
|
81
100
|
display: flex;
|
|
82
101
|
align-items: center;
|
|
83
102
|
justify-content: flex-start;
|
|
103
|
+
width: 100%;
|
|
104
|
+
|
|
105
|
+
.alc-title-from {
|
|
106
|
+
flex: auto;
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: flex-start;
|
|
109
|
+
}
|
|
84
110
|
}
|
|
85
111
|
|
|
86
112
|
.alc-title-icon {
|
|
87
|
-
margin-right:
|
|
113
|
+
margin-right: 6px;
|
|
88
114
|
}
|
|
89
115
|
|
|
90
116
|
.alc-title-updateTime {
|
|
@@ -95,6 +121,14 @@ export default {
|
|
|
95
121
|
}
|
|
96
122
|
|
|
97
123
|
.alc-content {
|
|
124
|
+
.alc-title-updateTime {
|
|
125
|
+
margin-top: 6px;
|
|
126
|
+
display: block;
|
|
127
|
+
text-align: right;
|
|
128
|
+
color: #999999;
|
|
129
|
+
font-size: 13px;
|
|
130
|
+
}
|
|
131
|
+
|
|
98
132
|
.alc-content-text {
|
|
99
133
|
margin-bottom: 6px;
|
|
100
134
|
|
|
@@ -103,6 +103,7 @@ export default {
|
|
|
103
103
|
// VoiceCompontent,
|
|
104
104
|
AiGuide,
|
|
105
105
|
FormTemplate,
|
|
106
|
+
// FormTemplate,
|
|
106
107
|
// FileType,
|
|
107
108
|
// ChatContent,
|
|
108
109
|
AnswerDocknowledge,
|
|
@@ -127,7 +128,7 @@ export default {
|
|
|
127
128
|
owner: "管理员", // 所有者
|
|
128
129
|
enterprise: "果然智汇", // 所属企业
|
|
129
130
|
source: "企业微信微盘", // 文件来源 例如 企业微信微盘
|
|
130
|
-
url: "",
|
|
131
|
+
url: "https://www.baidu.com/",
|
|
131
132
|
},{
|
|
132
133
|
format: "TXT", // 格式 例如 PDF,DOC 等
|
|
133
134
|
from: "员工手册", // 出自 例如 《员工手册》
|
|
@@ -136,7 +137,7 @@ export default {
|
|
|
136
137
|
owner: "管理员", // 所有者
|
|
137
138
|
enterprise: "果然智汇", // 所属企业
|
|
138
139
|
source: "企业微信微盘", // 文件来源 例如 企业微信微盘
|
|
139
|
-
url: "",
|
|
140
|
+
url: "https://www.baidu.com/",
|
|
140
141
|
}
|
|
141
142
|
]
|
|
142
143
|
},
|