bi-element-ui 1.6.3-beta.16 → 1.6.3-beta.18

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.16",
3
+ "version": "1.6.3-beta.18",
4
4
  "private": false,
5
5
  "description": "基于 bi-eleme 编写的企业级 Vue 2 UI 组件库",
6
6
  "main": "lib/bi-element-ui-externals.common.js",
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var accessReport_1 = require("../utils/request/defaultRequest");
3
+ var defaultRequest_1 = require("../utils/request/defaultRequest");
4
+ var index_js_1 = require("../config/index.js");
4
5
  var AccessReport = /** @class */ (function () {
5
6
  function AccessReport(_a) {
6
7
  var _b = _a.system, system = _b === void 0 ? '' : _b, _c = _a.authorization, authorization = _c === void 0 ? '' : _c, _d = _a.env, env = _d === void 0 ? 'production' : _d;
@@ -9,12 +10,7 @@ var AccessReport = /** @class */ (function () {
9
10
  this.baseUrl = 'https://zq.wozhangwan.com/api';
10
11
  this.systemName = system;
11
12
  this.authorization = authorization;
12
- if (env === 'development') {
13
- this.baseUrl = '/zhangquan-dev';
14
- }
15
- if (env === 'staging') {
16
- this.baseUrl = 'https://zq.zwwlkj03.top/api';
17
- }
13
+ this.baseUrl = (0, index_js_1.getServiceURL)('', env);
18
14
  }
19
15
  AccessReport.prototype.report = function (router, page) {
20
16
  var params = {
@@ -27,7 +23,7 @@ var AccessReport = /** @class */ (function () {
27
23
  };
28
24
  AccessReport.prototype.loginReport = function () { };
29
25
  AccessReport.prototype.accessReportSavev = function (data) {
30
- return (0, accessReport_1.default)({
26
+ return (0, defaultRequest_1.default)({
31
27
  url: this.baseUrl + '/api/access_log/record',
32
28
  method: 'post',
33
29
  headers: {
@@ -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,11 @@ 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
+ system: 'applause',
226
+ api: '/home/notify/list',
227
+ data: this.searchData
228
+ })
224
229
  if (res.data.status_code === 1) {
225
230
  this.messageData = res.data.data.data
226
231
  this.searchData.page = res.data.data.page_info.page
@@ -228,13 +233,21 @@ export default {
228
233
  }
229
234
  },
230
235
  async getSwiper() {
231
- const res = await axios.post(this.url + '/home/carousel/list', { uid: this.uid })
236
+ const res = await request({
237
+ system: 'applause',
238
+ api: '/home/carousel/list',
239
+ data: { uid: this.uid }
240
+ })
232
241
  if (res.data.status_code === 1) {
233
242
  this.swiperData = res.data.data.data
234
243
  }
235
244
  },
236
245
  async Searchcondition() {
237
- const res = await axios.post(this.url + '/home/Searchcondition/index', { uid: this.uid, notify_category: 1 })
246
+ const res = await request({
247
+ system: 'applause',
248
+ api: '/home/Searchcondition/index',
249
+ data: { uid: this.uid, notify_category: 1 }
250
+ })
238
251
  if (res.data.status_code === 1) {
239
252
  this.options.buttonList = res.data.data.notify_category
240
253
  }
@@ -273,14 +286,22 @@ export default {
273
286
  },
274
287
  // 数据已读
275
288
  async sendRaed(data) {
276
- const res = await axios.post(this.url + '/home/notify/read', { uid: this.uid, notify_id: data.id })
289
+ const res = await request({
290
+ system: 'applause',
291
+ api: '/home/notify/read',
292
+ data: { uid: this.uid, notify_id: data.id }
293
+ })
277
294
  if (res.data.status_code === 1) {
278
295
  data.is_read = true
279
296
  }
280
297
  },
281
298
  // 数据详情
282
299
  async getDetail(uid, notify_id) {
283
- const res = await axios.post(this.url + '/home/notify/detail', { uid, notify_id })
300
+ const res = await request({
301
+ system: 'applause',
302
+ api: '/home/notify/detail',
303
+ data: { uid, notify_id }
304
+ })
284
305
  if (res.data.status_code === 1) {
285
306
  this.dataDetail.data = res.data.data.data
286
307
  this.dataDetail.isShow = true