mcrm-mobile 1.9.2 → 1.9.5
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/es/http/index.js +221 -186
- package/es/index.js +1 -1
- package/es/menu-jump/index.js +18 -6
- package/es/utils/http.js +0 -6
- package/es/utils/index.js +2 -1
- package/lib/http/index.js +221 -186
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +264 -222
- package/lib/mcrm-mobile.min.js +2 -2
- package/lib/menu-jump/index.js +18 -6
- package/lib/utils/http.js +0 -6
- package/lib/utils/index.js +2 -1
- package/package.json +1 -1
- package/vetur/attributes.json +233 -233
- package/vetur/tags.json +81 -81
- package/vetur/web-types.json +929 -929
package/es/http/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Created by Heath on 2019/11/21.
|
|
4
|
+
/**
|
|
5
|
+
* Created by Heath on 2019/11/21.
|
|
6
6
|
*/
|
|
7
7
|
import Vue from "vue";
|
|
8
8
|
import { post } from "../utils/http";
|
|
@@ -10,33 +10,33 @@ import { json } from "../utils/create-request-body/json";
|
|
|
10
10
|
import mcrm from "mcrm-jsapi";
|
|
11
11
|
import Session from "../session";
|
|
12
12
|
import { customerTypeFilter } from "../utils/filter/index";
|
|
13
|
-
/**
|
|
14
|
-
* 创建外部订单流水入参
|
|
15
|
-
* @typedef AddOutFormParams
|
|
16
|
-
* @property {string} billId 用户手机号
|
|
17
|
-
* @property {string} syscode 系统编号
|
|
18
|
-
* @property {string} sysName 系统名称
|
|
19
|
-
* @property {string} ordertype 业务类型 00 - 自助受理;01 - 营销案;02 - 终端;03 - 宽带新装;04 - 宽带续费;05 - 套卡激活
|
|
20
|
-
* @property {string} publishType 推送类型 0:不推送;1:按操作员推送;2.按组织推送;3:推送至客户
|
|
21
|
-
* @property {string} title 标题
|
|
22
|
-
* @property {string} content 内容
|
|
23
|
-
* @property {string} outOrderId 外部订单号 第三方传入的流水号
|
|
24
|
-
* @property {string} qrId 二维码 id
|
|
25
|
-
* @property {string} sourceCode 来源编码 生成规则:发起调用方的 pageCode + "_" + 要打开页面的 pageCode
|
|
26
|
-
* @property {OrderInfo} orderInfo 订单信息
|
|
13
|
+
/**
|
|
14
|
+
* 创建外部订单流水入参
|
|
15
|
+
* @typedef AddOutFormParams
|
|
16
|
+
* @property {string} billId 用户手机号
|
|
17
|
+
* @property {string} syscode 系统编号
|
|
18
|
+
* @property {string} sysName 系统名称
|
|
19
|
+
* @property {string} ordertype 业务类型 00 - 自助受理;01 - 营销案;02 - 终端;03 - 宽带新装;04 - 宽带续费;05 - 套卡激活
|
|
20
|
+
* @property {string} publishType 推送类型 0:不推送;1:按操作员推送;2.按组织推送;3:推送至客户
|
|
21
|
+
* @property {string} title 标题
|
|
22
|
+
* @property {string} content 内容
|
|
23
|
+
* @property {string} outOrderId 外部订单号 第三方传入的流水号
|
|
24
|
+
* @property {string} qrId 二维码 id
|
|
25
|
+
* @property {string} sourceCode 来源编码 生成规则:发起调用方的 pageCode + "_" + 要打开页面的 pageCode
|
|
26
|
+
* @property {OrderInfo} orderInfo 订单信息
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* @typedef OrderInfo
|
|
31
|
-
* @property {string} kindId 档次 ID
|
|
32
|
-
* @property {string} verifyLogId 认证流水 认证流水号
|
|
33
|
-
* @property {string} printId 无纸化单号 无纸化单号
|
|
34
|
-
* @property {string} infoNo 免填单号 免填单号
|
|
29
|
+
/**
|
|
30
|
+
* @typedef OrderInfo
|
|
31
|
+
* @property {string} kindId 档次 ID
|
|
32
|
+
* @property {string} verifyLogId 认证流水 认证流水号
|
|
33
|
+
* @property {string} printId 无纸化单号 无纸化单号
|
|
34
|
+
* @property {string} infoNo 免填单号 免填单号
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
|
-
/**
|
|
38
|
-
* 创建外部订单流水
|
|
39
|
-
* @param {AddOutFormParams} body 入参
|
|
37
|
+
/**
|
|
38
|
+
* 创建外部订单流水
|
|
39
|
+
* @param {AddOutFormParams} body 入参
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
var addOutForm = /*#__PURE__*/function () {
|
|
@@ -65,24 +65,24 @@ var addOutForm = /*#__PURE__*/function () {
|
|
|
65
65
|
return _ref.apply(this, arguments);
|
|
66
66
|
};
|
|
67
67
|
}();
|
|
68
|
-
/**
|
|
69
|
-
* 菜单页面打开接口Body参数
|
|
70
|
-
* @typedef MenuPageOpenBody
|
|
71
|
-
* @property {string} funcId 认证编号
|
|
72
|
-
* @property {string} funcType 认证类型
|
|
73
|
-
* @property {string} verifyLogId 认证流水号
|
|
74
|
-
* @property {string} billId 用户号码
|
|
75
|
-
* @property {string} opVerifyLogId 操作员认证流水
|
|
76
|
-
* @property {string} opSys 操作系统 引流使用字段
|
|
77
|
-
* @property {string} appVersion APP版本号 引流使用字段
|
|
78
|
-
* @property {string} menuCode 菜单编号 地市专区不用传
|
|
79
|
-
* @property {string} pageCode 页面编号
|
|
80
|
-
* @property {string} pageType 页面类型 不传默认是外部页面,传cityZone是地市专区
|
|
68
|
+
/**
|
|
69
|
+
* 菜单页面打开接口Body参数
|
|
70
|
+
* @typedef MenuPageOpenBody
|
|
71
|
+
* @property {string} funcId 认证编号
|
|
72
|
+
* @property {string} funcType 认证类型
|
|
73
|
+
* @property {string} verifyLogId 认证流水号
|
|
74
|
+
* @property {string} billId 用户号码
|
|
75
|
+
* @property {string} opVerifyLogId 操作员认证流水
|
|
76
|
+
* @property {string} opSys 操作系统 引流使用字段
|
|
77
|
+
* @property {string} appVersion APP版本号 引流使用字段
|
|
78
|
+
* @property {string} menuCode 菜单编号 地市专区不用传
|
|
79
|
+
* @property {string} pageCode 页面编号
|
|
80
|
+
* @property {string} pageType 页面类型 不传默认是外部页面,传cityZone是地市专区
|
|
81
81
|
*/
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* 菜单页面打开接口
|
|
85
|
-
* @param {MenuPageOpenBody} body 入参
|
|
83
|
+
/**
|
|
84
|
+
* 菜单页面打开接口
|
|
85
|
+
* @param {MenuPageOpenBody} body 入参
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
88
|
|
|
@@ -112,10 +112,10 @@ var menuPageOpen = /*#__PURE__*/function () {
|
|
|
112
112
|
return _ref2.apply(this, arguments);
|
|
113
113
|
};
|
|
114
114
|
}();
|
|
115
|
-
/**
|
|
116
|
-
* 菜单页面查询接口
|
|
117
|
-
* @param {string} pageCode 页面编号
|
|
118
|
-
* @param {string} pageType 页面类型
|
|
115
|
+
/**
|
|
116
|
+
* 菜单页面查询接口
|
|
117
|
+
* @param {string} pageCode 页面编号
|
|
118
|
+
* @param {string} pageType 页面类型
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
121
|
|
|
@@ -148,10 +148,10 @@ var menuPageQuery = /*#__PURE__*/function () {
|
|
|
148
148
|
return _ref3.apply(this, arguments);
|
|
149
149
|
};
|
|
150
150
|
}();
|
|
151
|
-
/**
|
|
152
|
-
* 登录前菜单页面查询接口
|
|
153
|
-
* @param {string} pageCode 页面编号
|
|
154
|
-
* @param {string} pageType 页面类型
|
|
151
|
+
/**
|
|
152
|
+
* 登录前菜单页面查询接口
|
|
153
|
+
* @param {string} pageCode 页面编号
|
|
154
|
+
* @param {string} pageType 页面类型
|
|
155
155
|
*/
|
|
156
156
|
|
|
157
157
|
|
|
@@ -184,39 +184,27 @@ var authMenuPageQuery = /*#__PURE__*/function () {
|
|
|
184
184
|
return _ref4.apply(this, arguments);
|
|
185
185
|
};
|
|
186
186
|
}();
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @
|
|
190
|
-
* @property {string} funcId 认证编号
|
|
191
|
-
* @property {string} funcType 认证类型
|
|
192
|
-
* @property {string} verifyLogId 认证流水号
|
|
193
|
-
* @property {string} custUniqueId 客户唯一标识
|
|
194
|
-
* @property {string} billId 用户号码
|
|
195
|
-
* @property {string} opVerifyLogId 操作员认证流水
|
|
196
|
-
* @property {string} opSys 操作系统 引流使用字段
|
|
197
|
-
* @property {string} appVersion APP版本号 引流使用字段
|
|
198
|
-
* @property {string} menuCode 菜单编号 地市专区不用传
|
|
199
|
-
*/
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* 菜单权限校验接口
|
|
203
|
-
* @param {MenuPageVerifyBody} body 菜单权限校验接口Body参数
|
|
187
|
+
/**
|
|
188
|
+
* 登录前菜单页面查询接口
|
|
189
|
+
* @param {string} menuCode 页面编号
|
|
204
190
|
*/
|
|
205
191
|
|
|
206
192
|
|
|
207
|
-
var
|
|
208
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(
|
|
193
|
+
var menuPositionCheck = /*#__PURE__*/function () {
|
|
194
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(menuCode) {
|
|
209
195
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
210
196
|
while (1) {
|
|
211
197
|
switch (_context5.prev = _context5.next) {
|
|
212
198
|
case 0:
|
|
213
199
|
_context5.t0 = post;
|
|
214
200
|
_context5.next = 3;
|
|
215
|
-
return json(
|
|
201
|
+
return json({
|
|
202
|
+
menuCode: menuCode
|
|
203
|
+
}, []);
|
|
216
204
|
|
|
217
205
|
case 3:
|
|
218
206
|
_context5.t1 = _context5.sent;
|
|
219
|
-
return _context5.abrupt("return", (0, _context5.t0)("/core/menu/
|
|
207
|
+
return _context5.abrupt("return", (0, _context5.t0)("/core/menu/position/check/config/query", _context5.t1));
|
|
220
208
|
|
|
221
209
|
case 5:
|
|
222
210
|
case "end":
|
|
@@ -226,33 +214,43 @@ var menuPageVerify = /*#__PURE__*/function () {
|
|
|
226
214
|
}, _callee5);
|
|
227
215
|
}));
|
|
228
216
|
|
|
229
|
-
return function
|
|
217
|
+
return function menuPositionCheck(_x7) {
|
|
230
218
|
return _ref5.apply(this, arguments);
|
|
231
219
|
};
|
|
232
220
|
}();
|
|
233
|
-
/**
|
|
234
|
-
*
|
|
235
|
-
* @
|
|
236
|
-
* @
|
|
221
|
+
/**
|
|
222
|
+
* 菜单权限校验接口Body参数
|
|
223
|
+
* @typedef MenuPageVerifyBody
|
|
224
|
+
* @property {string} funcId 认证编号
|
|
225
|
+
* @property {string} funcType 认证类型
|
|
226
|
+
* @property {string} verifyLogId 认证流水号
|
|
227
|
+
* @property {string} custUniqueId 客户唯一标识
|
|
228
|
+
* @property {string} billId 用户号码
|
|
229
|
+
* @property {string} opVerifyLogId 操作员认证流水
|
|
230
|
+
* @property {string} opSys 操作系统 引流使用字段
|
|
231
|
+
* @property {string} appVersion APP版本号 引流使用字段
|
|
232
|
+
* @property {string} menuCode 菜单编号 地市专区不用传
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* 菜单权限校验接口
|
|
237
|
+
* @param {MenuPageVerifyBody} body 菜单权限校验接口Body参数
|
|
237
238
|
*/
|
|
238
239
|
|
|
239
240
|
|
|
240
|
-
var
|
|
241
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(
|
|
241
|
+
var menuPageVerify = /*#__PURE__*/function () {
|
|
242
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(body) {
|
|
242
243
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
243
244
|
while (1) {
|
|
244
245
|
switch (_context6.prev = _context6.next) {
|
|
245
246
|
case 0:
|
|
246
247
|
_context6.t0 = post;
|
|
247
248
|
_context6.next = 3;
|
|
248
|
-
return json(
|
|
249
|
-
menuCode: menuCode,
|
|
250
|
-
sourceSyscode: sourceSyscode
|
|
251
|
-
}, ["opId"]);
|
|
249
|
+
return json(body, ["opId", "orgId", "cityCode"]);
|
|
252
250
|
|
|
253
251
|
case 3:
|
|
254
252
|
_context6.t1 = _context6.sent;
|
|
255
|
-
return _context6.abrupt("return", (0, _context6.t0)("/core/menu/
|
|
253
|
+
return _context6.abrupt("return", (0, _context6.t0)("/core/menu/page/verify", _context6.t1));
|
|
256
254
|
|
|
257
255
|
case 5:
|
|
258
256
|
case "end":
|
|
@@ -262,20 +260,19 @@ var menuCanaryRedirect = /*#__PURE__*/function () {
|
|
|
262
260
|
}, _callee6);
|
|
263
261
|
}));
|
|
264
262
|
|
|
265
|
-
return function
|
|
263
|
+
return function menuPageVerify(_x8) {
|
|
266
264
|
return _ref6.apply(this, arguments);
|
|
267
265
|
};
|
|
268
266
|
}();
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
* @param {string}
|
|
272
|
-
* @param {string}
|
|
273
|
-
* @param {string} appVersion 应用版本号
|
|
267
|
+
/**
|
|
268
|
+
* 引流菜单校验接口
|
|
269
|
+
* @param {string} menuCode 菜单编号
|
|
270
|
+
* @param {string} sourceSyscode 系统编号
|
|
274
271
|
*/
|
|
275
272
|
|
|
276
273
|
|
|
277
|
-
var
|
|
278
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(
|
|
274
|
+
var menuCanaryRedirect = /*#__PURE__*/function () {
|
|
275
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(menuCode, sourceSyscode) {
|
|
279
276
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
280
277
|
while (1) {
|
|
281
278
|
switch (_context7.prev = _context7.next) {
|
|
@@ -283,14 +280,13 @@ var coreCanaryRedirect = /*#__PURE__*/function () {
|
|
|
283
280
|
_context7.t0 = post;
|
|
284
281
|
_context7.next = 3;
|
|
285
282
|
return json({
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}, ["opId", "orgId", "cityCode"]);
|
|
283
|
+
menuCode: menuCode,
|
|
284
|
+
sourceSyscode: sourceSyscode
|
|
285
|
+
}, ["opId"]);
|
|
290
286
|
|
|
291
287
|
case 3:
|
|
292
288
|
_context7.t1 = _context7.sent;
|
|
293
|
-
return _context7.abrupt("return", (0, _context7.t0)("/core/
|
|
289
|
+
return _context7.abrupt("return", (0, _context7.t0)("/core/menu/redirect", _context7.t1));
|
|
294
290
|
|
|
295
291
|
case 5:
|
|
296
292
|
case "end":
|
|
@@ -300,56 +296,35 @@ var coreCanaryRedirect = /*#__PURE__*/function () {
|
|
|
300
296
|
}, _callee7);
|
|
301
297
|
}));
|
|
302
298
|
|
|
303
|
-
return function
|
|
299
|
+
return function menuCanaryRedirect(_x9, _x10) {
|
|
304
300
|
return _ref7.apply(this, arguments);
|
|
305
301
|
};
|
|
306
302
|
}();
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* @
|
|
310
|
-
* @
|
|
311
|
-
* @
|
|
312
|
-
* @property {string} internetState 手机所用网络
|
|
313
|
-
* @property {string} loginSessionId 登入session
|
|
314
|
-
* @property {string} opName 操作人
|
|
315
|
-
* @property {string} pageDesc 页面描述
|
|
316
|
-
* @property {string} pageID 页面ID
|
|
317
|
-
* @property {string} pagePath 页面路径
|
|
318
|
-
* @property {string} phoneKernel 手机内核
|
|
319
|
-
* @property {string} phoneOpVersion 手机操作系统版本
|
|
320
|
-
* @property {string} phonePlatformVersion 手机平台版本
|
|
321
|
-
* @property {string} phoneSwitched 设备名称
|
|
322
|
-
* @property {string} menuCode 菜单编码
|
|
323
|
-
* @property {string} date 时间戳
|
|
324
|
-
* @property {string} year 日期--年份
|
|
325
|
-
* @property {string} month 日期--月份
|
|
326
|
-
* @property {string} day 日期--天
|
|
327
|
-
* @property {string} source 数据来源
|
|
328
|
-
* @property {string} type 数据类型
|
|
329
|
-
* @property {string} serviceName 业务名称
|
|
330
|
-
* @property {string} yddStatus 移动盾连接状态
|
|
331
|
-
* @property {string} fivegStatus 5g网络状态
|
|
332
|
-
*/
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* 埋点日志接口
|
|
336
|
-
* @param {BuryingSaveLogBody} body 埋点日志接口body参数
|
|
303
|
+
/**
|
|
304
|
+
* 引流地址查询接口
|
|
305
|
+
* @param {string} envTag 环境标识
|
|
306
|
+
* @param {string} opSys 操作系统
|
|
307
|
+
* @param {string} appVersion 应用版本号
|
|
337
308
|
*/
|
|
338
309
|
|
|
339
310
|
|
|
340
|
-
var
|
|
341
|
-
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(
|
|
311
|
+
var coreCanaryRedirect = /*#__PURE__*/function () {
|
|
312
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(envTag, opSys, appVersion) {
|
|
342
313
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
343
314
|
while (1) {
|
|
344
315
|
switch (_context8.prev = _context8.next) {
|
|
345
316
|
case 0:
|
|
346
317
|
_context8.t0 = post;
|
|
347
318
|
_context8.next = 3;
|
|
348
|
-
return json(
|
|
319
|
+
return json({
|
|
320
|
+
envTag: envTag,
|
|
321
|
+
opSys: opSys,
|
|
322
|
+
appVersion: appVersion
|
|
323
|
+
}, ["opId", "orgId", "cityCode"]);
|
|
349
324
|
|
|
350
325
|
case 3:
|
|
351
326
|
_context8.t1 = _context8.sent;
|
|
352
|
-
return _context8.abrupt("return", (0, _context8.t0)("/
|
|
327
|
+
return _context8.abrupt("return", (0, _context8.t0)("/core/canary/redirect", _context8.t1));
|
|
353
328
|
|
|
354
329
|
case 5:
|
|
355
330
|
case "end":
|
|
@@ -359,37 +334,96 @@ var buryingSaveLog = /*#__PURE__*/function () {
|
|
|
359
334
|
}, _callee8);
|
|
360
335
|
}));
|
|
361
336
|
|
|
362
|
-
return function
|
|
337
|
+
return function coreCanaryRedirect(_x11, _x12, _x13) {
|
|
363
338
|
return _ref8.apply(this, arguments);
|
|
364
339
|
};
|
|
365
340
|
}();
|
|
341
|
+
/**
|
|
342
|
+
* @typedef BuryingSaveLogBody 埋点日志接口body参数
|
|
343
|
+
* @property {string} appVersion App版本
|
|
344
|
+
* @property {string} areaCode 地区编码
|
|
345
|
+
* @property {string} cityCode 地市编码
|
|
346
|
+
* @property {string} internetState 手机所用网络
|
|
347
|
+
* @property {string} loginSessionId 登入session
|
|
348
|
+
* @property {string} opName 操作人
|
|
349
|
+
* @property {string} pageDesc 页面描述
|
|
350
|
+
* @property {string} pageID 页面ID
|
|
351
|
+
* @property {string} pagePath 页面路径
|
|
352
|
+
* @property {string} phoneKernel 手机内核
|
|
353
|
+
* @property {string} phoneOpVersion 手机操作系统版本
|
|
354
|
+
* @property {string} phonePlatformVersion 手机平台版本
|
|
355
|
+
* @property {string} phoneSwitched 设备名称
|
|
356
|
+
* @property {string} menuCode 菜单编码
|
|
357
|
+
* @property {string} date 时间戳
|
|
358
|
+
* @property {string} year 日期--年份
|
|
359
|
+
* @property {string} month 日期--月份
|
|
360
|
+
* @property {string} day 日期--天
|
|
361
|
+
* @property {string} source 数据来源
|
|
362
|
+
* @property {string} type 数据类型
|
|
363
|
+
* @property {string} serviceName 业务名称
|
|
364
|
+
* @property {string} yddStatus 移动盾连接状态
|
|
365
|
+
* @property {string} fivegStatus 5g网络状态
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* 埋点日志接口
|
|
370
|
+
* @param {BuryingSaveLogBody} body 埋点日志接口body参数
|
|
371
|
+
*/
|
|
366
372
|
|
|
367
|
-
var operationSaveLog = /*#__PURE__*/function () {
|
|
368
|
-
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(body) {
|
|
369
|
-
var params, _ref10, SESSIONNEED, _ref10$mainAcct, mainAcct, _ref10$resAcct, resAcct, _ref10$switchNames, switchNames, _body$operationTypeNa, operationTypeName, _body$operationTypeCo, operationTypeCode, _body$moduleNo, moduleNo, _body$moduleName, moduleName, _body$operationResult, operationResult, setLog, invokeSessionId;
|
|
370
373
|
|
|
374
|
+
var buryingSaveLog = /*#__PURE__*/function () {
|
|
375
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(body) {
|
|
371
376
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
372
377
|
while (1) {
|
|
373
378
|
switch (_context9.prev = _context9.next) {
|
|
379
|
+
case 0:
|
|
380
|
+
_context9.t0 = post;
|
|
381
|
+
_context9.next = 3;
|
|
382
|
+
return json(body, ["opId", "orgId"]);
|
|
383
|
+
|
|
384
|
+
case 3:
|
|
385
|
+
_context9.t1 = _context9.sent;
|
|
386
|
+
return _context9.abrupt("return", (0, _context9.t0)("/logstash/burying/saveLog", _context9.t1));
|
|
387
|
+
|
|
388
|
+
case 5:
|
|
389
|
+
case "end":
|
|
390
|
+
return _context9.stop();
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}, _callee9);
|
|
394
|
+
}));
|
|
395
|
+
|
|
396
|
+
return function buryingSaveLog(_x14) {
|
|
397
|
+
return _ref9.apply(this, arguments);
|
|
398
|
+
};
|
|
399
|
+
}();
|
|
400
|
+
|
|
401
|
+
var operationSaveLog = /*#__PURE__*/function () {
|
|
402
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(body) {
|
|
403
|
+
var params, _ref11, SESSIONNEED, _ref11$mainAcct, mainAcct, _ref11$resAcct, resAcct, _ref11$switchNames, switchNames, _body$operationTypeNa, operationTypeName, _body$operationTypeCo, operationTypeCode, _body$moduleNo, moduleNo, _body$moduleName, moduleName, _body$operationResult, operationResult, setLog, invokeSessionId;
|
|
404
|
+
|
|
405
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
406
|
+
while (1) {
|
|
407
|
+
switch (_context10.prev = _context10.next) {
|
|
374
408
|
case 0:
|
|
375
409
|
params = {};
|
|
376
|
-
|
|
410
|
+
_ref11 = Session.get("mmExpInfo") || {}, SESSIONNEED = _ref11.SESSIONNEED, _ref11$mainAcct = _ref11.mainAcct, mainAcct = _ref11$mainAcct === void 0 ? "" : _ref11$mainAcct, _ref11$resAcct = _ref11.resAcct, resAcct = _ref11$resAcct === void 0 ? "" : _ref11$resAcct, _ref11$switchNames = _ref11.switchNames, switchNames = _ref11$switchNames === void 0 ? {} : _ref11$switchNames;
|
|
377
411
|
|
|
378
412
|
if (!(!SESSIONNEED || SESSIONNEED === "")) {
|
|
379
|
-
|
|
413
|
+
_context10.next = 4;
|
|
380
414
|
break;
|
|
381
415
|
}
|
|
382
416
|
|
|
383
|
-
return
|
|
417
|
+
return _context10.abrupt("return", false);
|
|
384
418
|
|
|
385
419
|
case 4:
|
|
386
420
|
if (!switchNames.OPERATION_LOG_SWITCH) {
|
|
387
|
-
|
|
421
|
+
_context10.next = 43;
|
|
388
422
|
break;
|
|
389
423
|
}
|
|
390
424
|
|
|
391
425
|
_body$operationTypeNa = body.operationTypeName, operationTypeName = _body$operationTypeNa === void 0 ? "" : _body$operationTypeNa, _body$operationTypeCo = body.operationTypeCode, operationTypeCode = _body$operationTypeCo === void 0 ? "" : _body$operationTypeCo, _body$moduleNo = body.moduleNo, moduleNo = _body$moduleNo === void 0 ? "" : _body$moduleNo, _body$moduleName = body.moduleName, moduleName = _body$moduleName === void 0 ? "" : _body$moduleName, _body$operationResult = body.operationResult, operationResult = _body$operationResult === void 0 ? 0 : _body$operationResult;
|
|
392
|
-
|
|
426
|
+
_context10.next = 8;
|
|
393
427
|
return mcrm.util.common({
|
|
394
428
|
action: "getIPAddress",
|
|
395
429
|
onSuccess: function onSuccess(data) {
|
|
@@ -401,7 +435,7 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
401
435
|
});
|
|
402
436
|
|
|
403
437
|
case 8:
|
|
404
|
-
|
|
438
|
+
_context10.next = 10;
|
|
405
439
|
return mcrm.base.getCache({
|
|
406
440
|
type: "1",
|
|
407
441
|
// 必传,根据setCache API,存储时使用type
|
|
@@ -415,7 +449,7 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
415
449
|
});
|
|
416
450
|
|
|
417
451
|
case 10:
|
|
418
|
-
|
|
452
|
+
_context10.next = 12;
|
|
419
453
|
return mcrm.base.getCache({
|
|
420
454
|
type: "1",
|
|
421
455
|
// 必传,根据setCache API,存储时使用type
|
|
@@ -439,33 +473,33 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
439
473
|
params.mainAccount = mainAcct;
|
|
440
474
|
params.resourceSubAccount = resAcct;
|
|
441
475
|
params.operationResult = operationResult;
|
|
442
|
-
|
|
443
|
-
|
|
476
|
+
_context10.t0 = operationTypeCode;
|
|
477
|
+
_context10.next = _context10.t0 === "openMenu" ? 25 : _context10.t0 === "logIn" ? 27 : _context10.t0 === "logOut" ? 29 : _context10.t0 === "query" ? 31 : _context10.t0 === "handle" ? 33 : 35;
|
|
444
478
|
break;
|
|
445
479
|
|
|
446
480
|
case 25:
|
|
447
481
|
params.operationContent = mainAcct + operationTypeName + moduleName;
|
|
448
|
-
return
|
|
482
|
+
return _context10.abrupt("break", 37);
|
|
449
483
|
|
|
450
484
|
case 27:
|
|
451
485
|
params.operationContent = mainAcct + operationTypeName;
|
|
452
|
-
return
|
|
486
|
+
return _context10.abrupt("break", 37);
|
|
453
487
|
|
|
454
488
|
case 29:
|
|
455
489
|
params.operationContent = mainAcct + operationTypeName;
|
|
456
|
-
return
|
|
490
|
+
return _context10.abrupt("break", 37);
|
|
457
491
|
|
|
458
492
|
case 31:
|
|
459
493
|
params.operationContent = mainAcct + "查询了" + moduleName;
|
|
460
|
-
return
|
|
494
|
+
return _context10.abrupt("break", 37);
|
|
461
495
|
|
|
462
496
|
case 33:
|
|
463
497
|
params.operationContent = mainAcct + "办理了" + moduleName;
|
|
464
|
-
return
|
|
498
|
+
return _context10.abrupt("break", 37);
|
|
465
499
|
|
|
466
500
|
case 35:
|
|
467
501
|
params.operationContent = "";
|
|
468
|
-
return
|
|
502
|
+
return _context10.abrupt("break", 37);
|
|
469
503
|
|
|
470
504
|
case 37:
|
|
471
505
|
if (window.secureOptLog) {
|
|
@@ -489,72 +523,72 @@ var operationSaveLog = /*#__PURE__*/function () {
|
|
|
489
523
|
params.invokeSessionId = invokeSessionId;
|
|
490
524
|
}
|
|
491
525
|
|
|
492
|
-
|
|
493
|
-
|
|
526
|
+
_context10.t1 = post;
|
|
527
|
+
_context10.next = 41;
|
|
494
528
|
return json(params);
|
|
495
529
|
|
|
496
530
|
case 41:
|
|
497
|
-
|
|
498
|
-
return
|
|
531
|
+
_context10.t2 = _context10.sent;
|
|
532
|
+
return _context10.abrupt("return", (0, _context10.t1)("/expension/log/addMenuBuryingPoint", _context10.t2));
|
|
499
533
|
|
|
500
534
|
case 43:
|
|
501
535
|
case "end":
|
|
502
|
-
return
|
|
536
|
+
return _context10.stop();
|
|
503
537
|
}
|
|
504
538
|
}
|
|
505
|
-
},
|
|
539
|
+
}, _callee10);
|
|
506
540
|
}));
|
|
507
541
|
|
|
508
|
-
return function operationSaveLog(
|
|
509
|
-
return
|
|
542
|
+
return function operationSaveLog(_x15) {
|
|
543
|
+
return _ref10.apply(this, arguments);
|
|
510
544
|
};
|
|
511
545
|
}();
|
|
512
|
-
/**
|
|
513
|
-
* @typedef GroupBusinessPointBody 数字员工日志接口参数
|
|
514
|
-
* @property {string} uniqueId 业务办理ID
|
|
515
|
-
* @property {string} operType 操作类型
|
|
516
|
-
* @property {string} operDesc 操作描述
|
|
517
|
-
* @property {string} menuCode 菜单编号
|
|
518
|
-
* @property {string} menuName 菜单名称
|
|
519
|
-
* @property {string} moduleName 菜单二级页面
|
|
520
|
-
* @property {string} funcName 功能名称
|
|
521
|
-
* @property {string} subFuncName 子功能名称
|
|
522
|
-
* @property {string} appVersion 网格通APP版本
|
|
523
|
-
* @property {string} isDigitalEmployee 是否可定义为数字员工功能
|
|
524
|
-
* @property {string} digitalEmployeeCategoryCode 数字员工分类编码
|
|
525
|
-
* @property {number} operTime 时间戳
|
|
546
|
+
/**
|
|
547
|
+
* @typedef GroupBusinessPointBody 数字员工日志接口参数
|
|
548
|
+
* @property {string} uniqueId 业务办理ID
|
|
549
|
+
* @property {string} operType 操作类型
|
|
550
|
+
* @property {string} operDesc 操作描述
|
|
551
|
+
* @property {string} menuCode 菜单编号
|
|
552
|
+
* @property {string} menuName 菜单名称
|
|
553
|
+
* @property {string} moduleName 菜单二级页面
|
|
554
|
+
* @property {string} funcName 功能名称
|
|
555
|
+
* @property {string} subFuncName 子功能名称
|
|
556
|
+
* @property {string} appVersion 网格通APP版本
|
|
557
|
+
* @property {string} isDigitalEmployee 是否可定义为数字员工功能
|
|
558
|
+
* @property {string} digitalEmployeeCategoryCode 数字员工分类编码
|
|
559
|
+
* @property {number} operTime 时间戳
|
|
526
560
|
*/
|
|
527
561
|
|
|
528
|
-
/**
|
|
529
|
-
* 数字员工添加日志
|
|
530
|
-
* @param {GroupBusinessPointBody} body 数字员工日志接口参数
|
|
562
|
+
/**
|
|
563
|
+
* 数字员工添加日志
|
|
564
|
+
* @param {GroupBusinessPointBody} body 数字员工日志接口参数
|
|
531
565
|
*/
|
|
532
566
|
|
|
533
567
|
|
|
534
568
|
var addGroupBusinessPoint = /*#__PURE__*/function () {
|
|
535
|
-
var
|
|
536
|
-
return _regeneratorRuntime.wrap(function
|
|
569
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(body) {
|
|
570
|
+
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
537
571
|
while (1) {
|
|
538
|
-
switch (
|
|
572
|
+
switch (_context11.prev = _context11.next) {
|
|
539
573
|
case 0:
|
|
540
|
-
|
|
541
|
-
|
|
574
|
+
_context11.t0 = post;
|
|
575
|
+
_context11.next = 3;
|
|
542
576
|
return json(body, ["opId", "orgId", "cityCode", "opName"]);
|
|
543
577
|
|
|
544
578
|
case 3:
|
|
545
|
-
|
|
546
|
-
return
|
|
579
|
+
_context11.t1 = _context11.sent;
|
|
580
|
+
return _context11.abrupt("return", (0, _context11.t0)("/expension/group/business", _context11.t1));
|
|
547
581
|
|
|
548
582
|
case 5:
|
|
549
583
|
case "end":
|
|
550
|
-
return
|
|
584
|
+
return _context11.stop();
|
|
551
585
|
}
|
|
552
586
|
}
|
|
553
|
-
},
|
|
587
|
+
}, _callee11);
|
|
554
588
|
}));
|
|
555
589
|
|
|
556
|
-
return function addGroupBusinessPoint(
|
|
557
|
-
return
|
|
590
|
+
return function addGroupBusinessPoint(_x16) {
|
|
591
|
+
return _ref12.apply(this, arguments);
|
|
558
592
|
};
|
|
559
593
|
}();
|
|
560
594
|
|
|
@@ -568,7 +602,8 @@ var Http = {
|
|
|
568
602
|
authMenuPageQuery: authMenuPageQuery,
|
|
569
603
|
menuCanaryRedirect: menuCanaryRedirect,
|
|
570
604
|
operationSaveLog: operationSaveLog,
|
|
571
|
-
addGroupBusinessPoint: addGroupBusinessPoint
|
|
605
|
+
addGroupBusinessPoint: addGroupBusinessPoint,
|
|
606
|
+
menuPositionCheck: menuPositionCheck
|
|
572
607
|
};
|
|
573
608
|
Vue.prototype.$Http = Http;
|
|
574
609
|
export default Http;
|
package/es/index.js
CHANGED
|
@@ -92,7 +92,7 @@ import Tag from './tag';
|
|
|
92
92
|
import Toast from './toast';
|
|
93
93
|
import TreeSelect from './tree-select';
|
|
94
94
|
import Uploader from './uploader';
|
|
95
|
-
var version = '1.9.
|
|
95
|
+
var version = '1.9.5';
|
|
96
96
|
var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, System, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
|
|
97
97
|
|
|
98
98
|
var install = function install(Vue) {
|