bi-element-ui 1.6.3-beta.17 → 1.6.3-beta.19

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bi-element-ui",
3
- "version": "1.6.3-beta.17",
3
+ "version": "1.6.3-beta.19",
4
4
  "private": false,
5
5
  "description": "基于 bi-eleme 编写的企业级 Vue 2 UI 组件库",
6
6
  "main": "lib/bi-element-ui-externals.common.js",
@@ -130,6 +130,7 @@
130
130
 
131
131
  <script>
132
132
  import axios from 'axios'
133
+ import request from '../../utils/request/index.js'
133
134
  export default {
134
135
  name: 'BiHomeData',
135
136
  props: {
@@ -220,7 +221,12 @@ export default {
220
221
  },
221
222
 
222
223
  async getMessage() {
223
- const res = await axios.post(this.url + '/home/notify/list', this.searchData)
224
+ const res = await request({
225
+ env: this.$BI.env,
226
+ system: 'applause',
227
+ api: '/home/notify/list',
228
+ data: this.searchData
229
+ })
224
230
  if (res.data.status_code === 1) {
225
231
  this.messageData = res.data.data.data
226
232
  this.searchData.page = res.data.data.page_info.page
@@ -228,13 +234,23 @@ export default {
228
234
  }
229
235
  },
230
236
  async getSwiper() {
231
- const res = await axios.post(this.url + '/home/carousel/list', { uid: this.uid })
237
+ const res = await request({
238
+ env: this.$BI.env,
239
+ system: 'applause',
240
+ api: '/home/carousel/list',
241
+ data: { uid: this.uid }
242
+ })
232
243
  if (res.data.status_code === 1) {
233
244
  this.swiperData = res.data.data.data
234
245
  }
235
246
  },
236
247
  async Searchcondition() {
237
- const res = await axios.post(this.url + '/home/Searchcondition/index', { uid: this.uid, notify_category: 1 })
248
+ const res = await request({
249
+ env: this.$BI.env,
250
+ system: 'applause',
251
+ api: '/home/Searchcondition/index',
252
+ data: { uid: this.uid, notify_category: 1 }
253
+ })
238
254
  if (res.data.status_code === 1) {
239
255
  this.options.buttonList = res.data.data.notify_category
240
256
  }
@@ -273,14 +289,24 @@ export default {
273
289
  },
274
290
  // 数据已读
275
291
  async sendRaed(data) {
276
- const res = await axios.post(this.url + '/home/notify/read', { uid: this.uid, notify_id: data.id })
292
+ const res = await request({
293
+ env: this.$BI.env,
294
+ system: 'applause',
295
+ api: '/home/notify/read',
296
+ data: { uid: this.uid, notify_id: data.id }
297
+ })
277
298
  if (res.data.status_code === 1) {
278
299
  data.is_read = true
279
300
  }
280
301
  },
281
302
  // 数据详情
282
303
  async getDetail(uid, notify_id) {
283
- const res = await axios.post(this.url + '/home/notify/detail', { uid, notify_id })
304
+ const res = await request({
305
+ env: this.$BI.env,
306
+ system: 'applause',
307
+ api: '/home/notify/detail',
308
+ data: { uid, notify_id }
309
+ })
284
310
  if (res.data.status_code === 1) {
285
311
  this.dataDetail.data = res.data.data.data
286
312
  this.dataDetail.isShow = true