askbot-dragon 1.0.26 → 1.0.27

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
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -6,13 +6,16 @@
6
6
  <div class="alc-title">
7
7
  <div class="alc-box">
8
8
  <img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
9
- <span class="alc-title-from">出自《{{ item.from }}》</span>
9
+ <span class="alc-title-from">出自《{{ item.from }}》<span @click="lookAttach(item.url)"
10
+ class="aci-view">查看原文 ></span></span>
10
11
  </div>
11
- <span class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
12
+
12
13
  </div>
13
14
  <div class="alc-content">
14
- <div class="alc-content-text">{{ item.introduction }} <span class="aci-view">查看原文 ></span></div>
15
- <div class="alc-content-info">
15
+ <div v-if="false" class="alc-content-text">{{ item.introduction }} <span class="aci-view">查看原文 ></span>
16
+ </div>
17
+ <span class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
18
+ <div v-if="false" class="alc-content-info">
16
19
  <div class="alcc-box">
17
20
  <span class="aci-owner">所有者: {{ item.owner }}</span>
18
21
  <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
@@ -22,14 +25,18 @@
22
25
  </div>
23
26
  </div>
24
27
  </div>
28
+ <previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
25
29
  </div>
26
30
  </template>
27
31
 
28
32
  <script>
33
+ import previewDoc from "./previewDoc";
29
34
  export default {
30
35
  name: "answerDocknowledge",
36
+ components: { previewDoc },
31
37
  data() {
32
38
  return {
39
+ previewHref: "",
33
40
  imageObj: {
34
41
  PDF: 'pdf',
35
42
  pdf: 'pdf',
@@ -51,6 +58,11 @@ export default {
51
58
 
52
59
  },
53
60
  methods: {
61
+ //预览图片
62
+ lookAttach(url) {
63
+ this.previewHref = url
64
+ this.$refs.previewDoc.previewShowPopup = true;
65
+ },
54
66
  }
55
67
  }
56
68
  </script>
@@ -81,6 +93,21 @@ export default {
81
93
  display: flex;
82
94
  align-items: center;
83
95
  justify-content: flex-start;
96
+ width: 100%;
97
+
98
+ .alc-title-from {
99
+ flex: auto;
100
+ display: flex;
101
+ justify-content: flex-start;
102
+
103
+ .aci-view {
104
+ font-size: 13px;
105
+ display: inline-block;
106
+ margin-left: 10px;
107
+ color: #366aff;
108
+ cursor: pointer;
109
+ }
110
+ }
84
111
  }
85
112
 
86
113
  .alc-title-icon {
@@ -95,6 +122,14 @@ export default {
95
122
  }
96
123
 
97
124
  .alc-content {
125
+ .alc-title-updateTime {
126
+ margin-top: 12px;
127
+ display: block;
128
+ text-align: right;
129
+ color: #999999;
130
+ font-size: 13px;
131
+ }
132
+
98
133
  .alc-content-text {
99
134
  margin-bottom: 6px;
100
135
 
@@ -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
  },