askbot-dragon 1.1.21 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -20,7 +20,7 @@
20
20
  {{docSource[item.source]}}
21
21
  </div>
22
22
  <div v-show="item.url" class="alc-content-text">
23
- <span @click="lookAttach(item.url, item)" class="aci-view">查看 ></span>
23
+ <span @click="lookAttach(item.url, item, $event)" class="aci-view">查看 ></span>
24
24
  </div>
25
25
  <!-- <div class="time">
26
26
  <span>更新时间:</span>
@@ -31,7 +31,7 @@
31
31
  </div>
32
32
  <div class="alc-content" v-if="false">
33
33
  <div v-if="msg.content.type == 1" class="alc-content-text">{{ item.introduction }} <span
34
- @click="lookAttach(item.url, item)" class="aci-view">查看原文 ></span>
34
+ @click="lookAttach(item.url, item, $event)" class="aci-view">查看原文 ></span>
35
35
  </div>
36
36
  <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
37
37
  <div v-if="false" class="alc-content-info">
@@ -135,8 +135,10 @@ export default {
135
135
  },
136
136
  methods: {
137
137
  //预览图片
138
- lookAttach(url, item) {
139
- window.top.postMessage({
138
+ lookAttach(url, item, event) {
139
+ event.preventDefault();
140
+ console.log('111111111');
141
+ window.parent.postMessage({
140
142
  data: "bot_preview",
141
143
  item: JSON.stringify(item),
142
144
  url: url
@@ -242,6 +244,7 @@ export default {
242
244
  }
243
245
  .alc-title-from {
244
246
  line-height: 22px;
247
+ word-break: break-all !important;
245
248
  text-align: left;
246
249
  flex: auto;
247
250
  display: flex;
@@ -120,25 +120,40 @@ export default {
120
120
  text: "女职工生育享受98天产假,其中产前可以休假15天",
121
121
  type: 0, // 0 确定答案 1 推荐 list
122
122
  list:[// 文档列表
123
- {
124
- format: "PDF", // 格式 例如 PDF,DOC 等
125
- from: "员工手册", // 出自 例如 《员工手册》
126
- updateTime: "2023-01-12 12:00:27", // 最后更新时间
127
- introduction: "女职工生育享受98天产假,其中产前可以休假15天,难产的或者生育多 胞胎的,可以增加产假时间。女职工在休产假期间", // 简介
128
- owner: "管理员", // 所有者
129
- enterprise: "果然智汇", // 所属企业
130
- source: "LOCAL_FILE", // 文件来源 例如 企业微信微盘
131
- url: "https://www.baidu.com/",
132
- },{
133
- format: "TXT", // 格式 例如 PDF,DOC 等
134
- from: "员工手册", // 出自 例如 《员工手册》
135
- updateTime: "2023-01-12 12:00:27", // 最后更新时间
136
- introduction: "女职工生育享受98天产假,其中产前可以休假15天,难产的或者生育多 胞胎的,可以增加产假时间。女职工在休产假期间", // 简介
137
- owner: "管理员", // 所有者
138
- enterprise: "果然智汇", // 所属企业
139
- source: "CREATED_BY_ONESELF", // 文件来源 例如 企业微信微盘
140
- url: "https://www.baidu.com/",
141
- }
123
+ {
124
+ "knowledgeId": "642b9bbb81c8a21e5731b4f1",
125
+ "format": "doc",
126
+ "knowledgePartId": "SSn0SocBEQNDH10eWtys",
127
+ "srcContentId": "cef70fde2c4ffad46935b890b8a17210",
128
+ "from": "(完整版)金蝶EAS财务系统操作手册.doc",
129
+ "updateTime": "2023-04-04 14:29:00",
130
+ "source": "LOCAL_FILE",
131
+ "introduction": "核算项目组合,",
132
+ "srcContent": "核算项目组合,",
133
+ "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/7a33258fdc184b0784952ef06b5840e8/2023/04/04/11/38/7858d9346132c8ea1dd91d345723f77b/(完整版)金蝶EAS财务系统操作手册.doc"
134
+ },
135
+ { "knowledgeId": "642b8cf6c032845e0e392b60",
136
+ "format": "html",
137
+ "knowledgePartId": "8CxXSocBWM9clVECdbQc",
138
+ "srcContentId": "28ec24dbd8d41e4850b2a86f87c00489",
139
+ "from": "基础设置",
140
+ "updateTime": "2023-04-04 11:37:38",
141
+ "source": "CREATED_BY_ONESELF",
142
+ "introduction": "写点什么吗,输入/或者、使用AI生存内容",
143
+ "srcContent": "写点什么吗,输入/或者、使用AI生存内容",
144
+ "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/7a33258fdc184b0784952ef06b5840e8/2023/04/04/11/37/c27858d9346132c8ea1dd91d345723f7/1680579454619.html"
145
+ },
146
+ { "knowledgeId": "642bc11ae673ad064bdb655a",
147
+ "format": "html",
148
+ "knowledgePartId": "DinqSocBEQNDH10eYNyg",
149
+ "srcContentId": "270b5c49b974f123b3316e9f9771f7f8",
150
+ "from": "但是龙口粉丝",
151
+ "updateTime": "2023-04-04 14:18:06",
152
+ "source": "CREATED_BY_ONESELF",
153
+ "introduction": "但是龙口粉丝",
154
+ "srcContent": "但是龙口粉丝",
155
+ "url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/7a33258fdc184b0784952ef06b5840e8/2023/04/04/14/18/1b395264bd4c85f45429f393679d617c/1680589083221.html"
156
+ }
142
157
  ]
143
158
  },
144
159
  },