eoss-mobiles 0.2.13 → 0.2.15
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/lib/checkbox.js +260 -199
- package/lib/config/api.js +4 -1
- package/lib/date.js +3 -3
- package/lib/eoss-mobile.common.js +746 -249
- package/lib/flow.js +362 -277
- package/lib/index.js +1 -1
- package/lib/notice-bar.js +2 -2
- package/lib/picker.js +260 -199
- package/lib/pull-refresh.js +2 -2
- package/lib/radio.js +260 -199
- package/lib/retrial-auth.js +2457 -0
- package/lib/selector.js +294 -233
- package/lib/table-column.js +260 -199
- package/lib/table.js +227 -172
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/retrial-auth.css +1 -0
- package/lib/utils/axios.js +140 -154
- package/lib/utils/http.js +5 -5
- package/lib/utils/util.js +71 -2
- package/package.json +1 -1
- package/packages/date/src/main.vue +1 -1
- package/packages/flow/src/components/Handle.vue +4 -1
- package/packages/flow/src/components/Opinion.vue +39 -3
- package/packages/flow/src/components/StartFlow.vue +3 -3
- package/packages/flow/src/main.vue +6 -0
- package/packages/retrial-auth/index.js +5 -0
- package/packages/retrial-auth/src/main.vue +257 -0
- package/packages/selector/src/selector-tree.vue +1 -1
- package/packages/selector/src/tree.vue +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/src/index.scss +1 -0
- package/packages/theme-chalk/src/retrial-auth.scss +28 -0
- package/src/config/api.js +3 -0
- package/src/index.js +4 -1
- package/src/utils/axios.js +156 -174
- package/src/utils/http.js +15 -5
- package/src/utils/util.js +164 -84
package/lib/checkbox.js
CHANGED
|
@@ -91,16 +91,50 @@ module.exports =
|
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
94
|
-
/* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
94
|
+
/* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
95
95
|
/* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_eoss_design_color__WEBPACK_IMPORTED_MODULE_0__);
|
|
96
96
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
97
97
|
|
|
98
98
|
/* eslint-disable indent */
|
|
99
99
|
// import { authCenter } from '../config/api';
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
// import CryptoJS from 'crypto-js'
|
|
102
102
|
var sm2 = __webpack_require__(8).sm2;
|
|
103
|
-
|
|
103
|
+
// /**
|
|
104
|
+
// * esEncrypt
|
|
105
|
+
// * @desc:sm2加密
|
|
106
|
+
// * @author huangbo
|
|
107
|
+
// * @date 2022年5月7日
|
|
108
|
+
// * @param {string} [data] - 被加密的字符串
|
|
109
|
+
// * @param {string} [key] - 公钥
|
|
110
|
+
// **/
|
|
111
|
+
// const encryptDes = (message, key) => {
|
|
112
|
+
// const keyHex = CryptoJS.enc.Utf8.parse(key);
|
|
113
|
+
// const encrypted = CryptoJS.DES.encrypt(message, keyHex, {
|
|
114
|
+
// mode: CryptoJS.mode.ECB,
|
|
115
|
+
// padding: CryptoJS.pad.Pkcs7
|
|
116
|
+
// });
|
|
117
|
+
// return encrypted.toString();
|
|
118
|
+
// }
|
|
119
|
+
// /**
|
|
120
|
+
// * esEncrypt
|
|
121
|
+
// * @desc:sm2加密
|
|
122
|
+
// * @author huangbo
|
|
123
|
+
// * @date 2022年5月7日
|
|
124
|
+
// * @param {string} [data] - 被加密的字符串
|
|
125
|
+
// * @param {string} [key] - 公钥
|
|
126
|
+
// **/
|
|
127
|
+
// const decryptDes = (ciphertext, key) => {
|
|
128
|
+
// const keyHex = CryptoJS.enc.Utf8.parse(key);
|
|
129
|
+
// // direct decrypt ciphertext
|
|
130
|
+
// const decrypted = CryptoJS.DES.decrypt({
|
|
131
|
+
// ciphertext: CryptoJS.enc.Base64.parse(ciphertext)
|
|
132
|
+
// }, keyHex, {
|
|
133
|
+
// mode: CryptoJS.mode.ECB,
|
|
134
|
+
// padding: CryptoJS.pad.Pkcs7
|
|
135
|
+
// });
|
|
136
|
+
// return decrypted.toString(CryptoJS.enc.Utf8);
|
|
137
|
+
// }
|
|
104
138
|
/**
|
|
105
139
|
* esEncrypt
|
|
106
140
|
* @desc:sm2加密
|
|
@@ -1302,6 +1336,23 @@ var openAttachment = function openAttachment(data) {
|
|
|
1302
1336
|
}
|
|
1303
1337
|
}
|
|
1304
1338
|
};
|
|
1339
|
+
/**
|
|
1340
|
+
* jsGoPayrollIndexAct
|
|
1341
|
+
* @desc:原生app打开工资条页面
|
|
1342
|
+
* @date 2024年1月11日
|
|
1343
|
+
* @author liufan
|
|
1344
|
+
*/
|
|
1345
|
+
var jsGoPayrollIndexAct = function jsGoPayrollIndexAct(id) {
|
|
1346
|
+
var u = navigator.userAgent;
|
|
1347
|
+
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端
|
|
1348
|
+
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // ios终端
|
|
1349
|
+
if (isAndroid) {
|
|
1350
|
+
window.AndroidWebView.jsGoPayrollIndexAct(id);
|
|
1351
|
+
} else if (isiOS) {
|
|
1352
|
+
window.webkit.messageHandlers.jsGoPayrollIndexAct.postMessage(id);
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1305
1356
|
/**
|
|
1306
1357
|
* deepClone
|
|
1307
1358
|
* @desc:深拷贝
|
|
@@ -1359,6 +1410,21 @@ var exclAttribute = function exclAttribute(_ref4) {
|
|
|
1359
1410
|
}
|
|
1360
1411
|
return obj;
|
|
1361
1412
|
};
|
|
1413
|
+
/**
|
|
1414
|
+
* 获取UUID
|
|
1415
|
+
* @desc:generateUUID
|
|
1416
|
+
* @author liufan
|
|
1417
|
+
* @date 2024年1月12日
|
|
1418
|
+
**/
|
|
1419
|
+
var generateUUID = function generateUUID() {
|
|
1420
|
+
var d = new Date().getTime();
|
|
1421
|
+
var uuid = 'xxxxxxxxxxxxxxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
1422
|
+
var r = (d + Math.random() * 16) % 16 | 0;
|
|
1423
|
+
d = Math.floor(d / 16);
|
|
1424
|
+
return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
|
|
1425
|
+
});
|
|
1426
|
+
return uuid;
|
|
1427
|
+
};
|
|
1362
1428
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1363
1429
|
esEncrypt: esEncrypt,
|
|
1364
1430
|
esDecode: esDecode,
|
|
@@ -1402,7 +1468,9 @@ var exclAttribute = function exclAttribute(_ref4) {
|
|
|
1402
1468
|
getTypeName: getTypeName,
|
|
1403
1469
|
replenish: replenish,
|
|
1404
1470
|
identical: identical,
|
|
1405
|
-
|
|
1471
|
+
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1472
|
+
exportXls: exportXls,
|
|
1473
|
+
generateUUID: generateUUID
|
|
1406
1474
|
});
|
|
1407
1475
|
|
|
1408
1476
|
/***/ }),
|
|
@@ -1516,41 +1584,47 @@ function normalizeComponent(
|
|
|
1516
1584
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1517
1585
|
|
|
1518
1586
|
"use strict";
|
|
1519
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return
|
|
1520
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1521
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return
|
|
1522
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1523
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1524
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1525
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1526
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1527
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1528
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1529
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1530
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1531
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1532
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1533
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1534
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1535
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1536
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1537
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1538
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1539
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1540
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1541
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1542
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1543
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1544
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1545
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1587
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return initRetrialAuth; });
|
|
1588
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getRetrialAuthCode; });
|
|
1589
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return codeRetrialAuth; });
|
|
1590
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return selectObject; });
|
|
1591
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return findSysCode; });
|
|
1592
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return commonOpion; });
|
|
1593
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getHandleInfoHtml; });
|
|
1594
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getNodeInfoHtml; });
|
|
1595
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return taskHandleHtml; });
|
|
1596
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return taskHandleHtmlImg; });
|
|
1597
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return registerNew; });
|
|
1598
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getNodeInfo; });
|
|
1599
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return toStartFlow; });
|
|
1600
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return taskRejectHtml; });
|
|
1601
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return toTaskRejectHtml; });
|
|
1602
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return handleTaskRead; });
|
|
1603
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return taskReadHtml; });
|
|
1604
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return toStartTaskRead; });
|
|
1605
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return toStartTaskReadHtml; });
|
|
1606
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return toTaskTransferIndex; });
|
|
1607
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return findSysCodes; });
|
|
1608
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getNotificationMsg; });
|
|
1609
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return toTaskUnionExamine; });
|
|
1610
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return taskUnionExamine; });
|
|
1611
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return toTaskTakeAdvice; });
|
|
1612
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return taskTakeAdvice; });
|
|
1613
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return toTaskStartDraft; });
|
|
1614
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return taskStartDraft; });
|
|
1615
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return toTaskUnionSeal; });
|
|
1616
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return taskUnionSeal; });
|
|
1546
1617
|
/* unused harmony export toTwoOfficesDispatch */
|
|
1547
1618
|
/* unused harmony export twoOfficesDispatch */
|
|
1548
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
1619
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isCanStartSubFlow; });
|
|
1549
1620
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1550
1621
|
|
|
1551
1622
|
var activiti = '/bpm';
|
|
1552
1623
|
var pending = '/bpm';
|
|
1553
1624
|
var mecp = _utils_util__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].getStorage('flowPath') || '';
|
|
1625
|
+
var initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化二级身份权限验证页面
|
|
1626
|
+
var getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
|
|
1627
|
+
var codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth'; // 二级身份验证-验证码验证
|
|
1554
1628
|
// 获取机构/用户/角色/群组等选择器
|
|
1555
1629
|
var selectObject = '/api/v1/mecpSys/selectObject.json';
|
|
1556
1630
|
// // 获取代码表数据
|
|
@@ -1635,187 +1709,176 @@ var isCanStartSubFlow = activiti + '/task/taskHandle/isCanStartSubFlow.dhtml';
|
|
|
1635
1709
|
"use strict";
|
|
1636
1710
|
|
|
1637
1711
|
// EXTERNAL MODULE: external "axios"
|
|
1638
|
-
var external_axios_ = __webpack_require__(
|
|
1712
|
+
var external_axios_ = __webpack_require__(6);
|
|
1639
1713
|
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
1640
1714
|
|
|
1641
1715
|
// EXTERNAL MODULE: external "eoss-mobile-vant"
|
|
1642
|
-
var external_eoss_mobile_vant_ = __webpack_require__(
|
|
1716
|
+
var external_eoss_mobile_vant_ = __webpack_require__(4);
|
|
1643
1717
|
|
|
1644
1718
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
1645
1719
|
var util = __webpack_require__(0);
|
|
1646
1720
|
|
|
1647
1721
|
// EXTERNAL MODULE: external "qs"
|
|
1648
|
-
var external_qs_ = __webpack_require__(
|
|
1722
|
+
var external_qs_ = __webpack_require__(7);
|
|
1649
1723
|
var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
|
|
1650
1724
|
|
|
1651
1725
|
// CONCATENATED MODULE: ./src/utils/axios.js
|
|
1652
1726
|
|
|
1653
|
-
// import Vue from 'vue';
|
|
1654
1727
|
|
|
1655
1728
|
|
|
1656
1729
|
|
|
1657
1730
|
var apiUrl = util["a" /* default */].getStorage('host');
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
headers: {
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
config.data = external_qs_default.a.stringify(data);
|
|
1731
|
+
|
|
1732
|
+
var axios_ajax = function ajax(url) {
|
|
1733
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1734
|
+
var headers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1735
|
+
var format = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
1736
|
+
var type = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'get';
|
|
1737
|
+
|
|
1738
|
+
var http = external_axios_default.a.create({
|
|
1739
|
+
baseURL: apiUrl,
|
|
1740
|
+
timeout: 60000,
|
|
1741
|
+
headers: {
|
|
1742
|
+
// clientKey: 'csjk'
|
|
1743
|
+
},
|
|
1744
|
+
withCredentials: false
|
|
1745
|
+
});
|
|
1746
|
+
http.interceptors.request.use(function (config) {
|
|
1747
|
+
if (type === 'post' && format) {
|
|
1748
|
+
config.data = external_qs_default.a.stringify(params);
|
|
1749
|
+
if (!config.headers['content-type'] && !headers['Content-Type']) {
|
|
1750
|
+
config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
|
|
1751
|
+
}
|
|
1680
1752
|
} else {
|
|
1681
|
-
config.headers['
|
|
1682
|
-
|
|
1683
|
-
Object.assign(data, config.data);
|
|
1684
|
-
config.data = external_qs_default.a.stringify(data);
|
|
1753
|
+
if (!config.headers['content-type'] && !headers['Content-Type']) {
|
|
1754
|
+
config.headers['content-type'] = 'application/json;charset=UTF-8';
|
|
1685
1755
|
}
|
|
1756
|
+
config.data = params;
|
|
1686
1757
|
}
|
|
1687
|
-
} else {
|
|
1688
|
-
Object.assign(config.params, data);
|
|
1689
|
-
config.headers['Content-Type'] = 'application/json;';
|
|
1690
|
-
}
|
|
1691
|
-
if (util["a" /* default */].getStorage('token')) {
|
|
1692
|
-
config.headers.Authorization = util["a" /* default */].getStorage('token');
|
|
1693
|
-
}
|
|
1694
|
-
if (util["a" /* default */].getStorage('deviceId')) {
|
|
1695
|
-
config.headers.deviceId = util["a" /* default */].getStorage('deviceId');
|
|
1696
|
-
}
|
|
1697
1758
|
|
|
1698
|
-
|
|
1759
|
+
if (util["a" /* default */].getStorage('token')) {
|
|
1760
|
+
config.headers.Authorization = util["a" /* default */].getStorage('token');
|
|
1761
|
+
}
|
|
1762
|
+
if (util["a" /* default */].getStorage('deviceId')) {
|
|
1763
|
+
config.headers.deviceId = util["a" /* default */].getStorage('deviceId');
|
|
1764
|
+
}
|
|
1699
1765
|
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
config.baseURL = 'https://release.cdgzjg.cn/';
|
|
1705
|
-
}
|
|
1706
|
-
if (config.url.search('affairs/getHandleInfosnew.json') !== -1) {
|
|
1707
|
-
config.headers = {
|
|
1708
|
-
token: sessionStorage.getItem('token'),
|
|
1709
|
-
oueside_token: sessionStorage.getItem('token'),
|
|
1710
|
-
deviceId: '432a320f99793e39',
|
|
1711
|
-
Authorization: sessionStorage.getItem('token')
|
|
1712
|
-
};
|
|
1713
|
-
}
|
|
1714
|
-
if (config.url.search('/getmyAccount.json') !== -1) {
|
|
1715
|
-
delete config.params.userId;
|
|
1716
|
-
}
|
|
1717
|
-
if (config.url.search('/sso2/authCenter') !== -1) {
|
|
1718
|
-
delete config.headers.clientKey;
|
|
1719
|
-
delete config.headers.deviceId;
|
|
1720
|
-
}
|
|
1721
|
-
if (config.url.search('/appInfo') !== -1) {
|
|
1722
|
-
config.headers.deviceId = util["a" /* default */].getStorage('deviceId');
|
|
1723
|
-
delete config.headers.clientKey;
|
|
1724
|
-
}
|
|
1725
|
-
if (config.url.search('getPresetCustomInfo') !== -1 || config.url.search('registerNew') !== -1) {
|
|
1726
|
-
// config.baseURL = "/api";
|
|
1727
|
-
config.headers.token = util["a" /* default */].getStorage('token');
|
|
1728
|
-
}
|
|
1729
|
-
if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
|
|
1730
|
-
delete config.headers.deviceId;
|
|
1731
|
-
}
|
|
1732
|
-
// if(config.url.search('getVehicleMaintenanceInfoForAPP') !== -1 ) {
|
|
1733
|
-
// delete config.headers.deviceId
|
|
1734
|
-
// delete config.headers.Authorization
|
|
1735
|
-
// delete config.headers.clientKey
|
|
1736
|
-
// }
|
|
1737
|
-
if (config.url.search('/bpm') !== -1) {
|
|
1738
|
-
// config.baseURL = "/api";
|
|
1739
|
-
// config.headers.Authorization = $.getStorage('token');
|
|
1740
|
-
// config.headers.Deviceunique = $.getStorage('deviceunique');
|
|
1741
|
-
// config.headers.Ssid = $.getStorage('ssid');
|
|
1742
|
-
// delete config.headers.deviceId;
|
|
1743
|
-
// delete config.headers.clientKey;
|
|
1744
|
-
}
|
|
1745
|
-
return config;
|
|
1746
|
-
}, function (error) {
|
|
1747
|
-
return Promise.error(error);
|
|
1748
|
-
});
|
|
1749
|
-
// 响应拦截器
|
|
1750
|
-
http.interceptors.response.use(function (response) {
|
|
1751
|
-
if (response.status === 200) {
|
|
1752
|
-
if (response.data.rCode === 64 || response.data.rCode === 27) {
|
|
1753
|
-
util["a" /* default */].H5TokenInvalid();
|
|
1754
|
-
} else {
|
|
1755
|
-
return Promise.resolve(response.data);
|
|
1766
|
+
var a = '/config/';
|
|
1767
|
+
|
|
1768
|
+
if (config.url.search(a) !== -1 && config.url.search('appInfo') === -1) {
|
|
1769
|
+
config.headers.clientKey = util["a" /* default */].getStorage('clientKey') || 'csjk2';
|
|
1756
1770
|
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
case 504:
|
|
1796
|
-
error.message = '网络超时';
|
|
1797
|
-
break;
|
|
1798
|
-
case 505:
|
|
1799
|
-
error.message = 'http版本不支持该请求';
|
|
1800
|
-
break;
|
|
1801
|
-
default:
|
|
1802
|
-
error.message = '\u8FDE\u63A5\u9519\u8BEF' + error.response.status;
|
|
1771
|
+
if (config.url.search('api/financePhone/') !== -1) {
|
|
1772
|
+
config.baseURL = 'https://release.cdgzjg.cn/';
|
|
1773
|
+
}
|
|
1774
|
+
if (config.url.search('affairs/getHandleInfosnew.json') !== -1) {
|
|
1775
|
+
config.headers = {
|
|
1776
|
+
token: sessionStorage.getItem('token'),
|
|
1777
|
+
oueside_token: sessionStorage.getItem('token'),
|
|
1778
|
+
deviceId: '432a320f99793e39',
|
|
1779
|
+
Authorization: sessionStorage.getItem('token')
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
if (config.url.search('/getmyAccount.json') !== -1) {
|
|
1783
|
+
delete config.params.userId;
|
|
1784
|
+
}
|
|
1785
|
+
if (config.url.search('/sso2/authCenter') !== -1) {
|
|
1786
|
+
delete config.headers.clientKey;
|
|
1787
|
+
delete config.headers.deviceId;
|
|
1788
|
+
}
|
|
1789
|
+
if (config.url.search('/appInfo') !== -1) {
|
|
1790
|
+
config.headers.deviceId = util["a" /* default */].getStorage('deviceId');
|
|
1791
|
+
delete config.headers.clientKey;
|
|
1792
|
+
}
|
|
1793
|
+
if (config.url.search('getPresetCustomInfo') !== -1 || config.url.search('registerNew') !== -1) {
|
|
1794
|
+
config.headers.token = util["a" /* default */].getStorage('token');
|
|
1795
|
+
}
|
|
1796
|
+
if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
|
|
1797
|
+
delete config.headers.deviceId;
|
|
1798
|
+
}
|
|
1799
|
+
return config;
|
|
1800
|
+
}, function (error) {
|
|
1801
|
+
return Promise.error(error);
|
|
1802
|
+
});
|
|
1803
|
+
http.interceptors.response.use(function (response) {
|
|
1804
|
+
if (response.status === 200) {
|
|
1805
|
+
if (response.data.rCode === 64 || response.data.rCode === 27) {
|
|
1806
|
+
util["a" /* default */].H5TokenInvalid();
|
|
1807
|
+
} else {
|
|
1808
|
+
return Promise.resolve(response.data);
|
|
1803
1809
|
}
|
|
1804
1810
|
} else {
|
|
1805
|
-
|
|
1811
|
+
return Promise.reject(response.data);
|
|
1806
1812
|
}
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1813
|
+
}, function (error) {
|
|
1814
|
+
if (error && error.response) {
|
|
1815
|
+
if (error.response.status) {
|
|
1816
|
+
switch (error.response.status) {
|
|
1817
|
+
case 400:
|
|
1818
|
+
error.message = '错误请求';
|
|
1819
|
+
break;
|
|
1820
|
+
case 401:
|
|
1821
|
+
error.message = '未授权,请重新登录';
|
|
1822
|
+
break;
|
|
1823
|
+
case 403:
|
|
1824
|
+
error.message = '登录过期,请重新登录';
|
|
1825
|
+
util["a" /* default */].removeStorage('userId');
|
|
1826
|
+
break;
|
|
1827
|
+
case 404:
|
|
1828
|
+
error.message = '网络请求不存在';
|
|
1829
|
+
break;
|
|
1830
|
+
case 405:
|
|
1831
|
+
error.message = '请求方法错误';
|
|
1832
|
+
break;
|
|
1833
|
+
case 408:
|
|
1834
|
+
error.message = '请求超时';
|
|
1835
|
+
break;
|
|
1836
|
+
case 500:
|
|
1837
|
+
error.message = '服务器端出错';
|
|
1838
|
+
break;
|
|
1839
|
+
case 501:
|
|
1840
|
+
error.message = '网络未实现';
|
|
1841
|
+
break;
|
|
1842
|
+
case 502:
|
|
1843
|
+
error.message = '网络错误';
|
|
1844
|
+
break;
|
|
1845
|
+
case 503:
|
|
1846
|
+
error.message = '服务不可用';
|
|
1847
|
+
break;
|
|
1848
|
+
case 504:
|
|
1849
|
+
error.message = '网络超时';
|
|
1850
|
+
break;
|
|
1851
|
+
case 505:
|
|
1852
|
+
error.message = 'http版本不支持该请求';
|
|
1853
|
+
break;
|
|
1854
|
+
default:
|
|
1855
|
+
error.message = '\u8FDE\u63A5\u9519\u8BEF' + error.response.status;
|
|
1856
|
+
}
|
|
1857
|
+
} else {
|
|
1858
|
+
error.message = '接口出现问题,无法请求';
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
Object(external_eoss_mobile_vant_["Toast"])({
|
|
1862
|
+
message: error.message,
|
|
1863
|
+
duration: 1500,
|
|
1864
|
+
forbidClick: true
|
|
1865
|
+
});
|
|
1866
|
+
return Promise.reject(error);
|
|
1812
1867
|
});
|
|
1813
|
-
|
|
1814
|
-
|
|
1868
|
+
if (type === 'get' || type === 'GET') {
|
|
1869
|
+
return http.get(url, params, headers, format);
|
|
1870
|
+
} else {
|
|
1871
|
+
return http.post(url, params, headers, format);
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
// 响应拦截器
|
|
1815
1876
|
|
|
1816
1877
|
var base = {
|
|
1817
1878
|
get: function get(url) {
|
|
1818
1879
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1880
|
+
var headers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1881
|
+
var format = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
1819
1882
|
|
|
1820
1883
|
if (params.params && url.search('registerNew') === -1) {
|
|
1821
1884
|
params.params.userId = params.params.userId ? params.params.userId : util["a" /* default */].getStorage('userId');
|
|
@@ -1832,19 +1895,17 @@ var base = {
|
|
|
1832
1895
|
params.userId = 'u1b9f3ce4731649e0b665af015d74c19b';
|
|
1833
1896
|
}
|
|
1834
1897
|
}
|
|
1835
|
-
return
|
|
1898
|
+
return axios_ajax(url, {
|
|
1836
1899
|
params: params
|
|
1837
|
-
});
|
|
1900
|
+
}, headers, format);
|
|
1838
1901
|
},
|
|
1839
|
-
post: function post(url) {
|
|
1840
|
-
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1841
|
-
|
|
1902
|
+
post: function post(url, params, headers, format) {
|
|
1842
1903
|
if (params.params) {
|
|
1843
1904
|
params.params.userId = params.params.userId || util["a" /* default */].getStorage('userId');
|
|
1844
1905
|
} else {
|
|
1845
1906
|
params.userId = params.userId || util["a" /* default */].getStorage('userId');
|
|
1846
1907
|
}
|
|
1847
|
-
return
|
|
1908
|
+
return axios_ajax(url, params, headers, format, 'post');
|
|
1848
1909
|
}
|
|
1849
1910
|
};
|
|
1850
1911
|
/* harmony default export */ var axios = (base);
|
|
@@ -1854,19 +1915,19 @@ var http_request = function request(options) {
|
|
|
1854
1915
|
var fn = void 0;
|
|
1855
1916
|
switch (options.type) {
|
|
1856
1917
|
case 'post':
|
|
1857
|
-
fn = axios.post(options.url, options.params);
|
|
1918
|
+
fn = axios.post(options.url, options.params, options.headers, options.format);
|
|
1858
1919
|
break;
|
|
1859
1920
|
case 'POST':
|
|
1860
|
-
fn = axios.post(options.url, options.params);
|
|
1921
|
+
fn = axios.post(options.url, options.params, options.headers, options.format);
|
|
1861
1922
|
break;
|
|
1862
1923
|
case 'get':
|
|
1863
|
-
fn = axios.get(options.url, options.params);
|
|
1924
|
+
fn = axios.get(options.url, options.params, options.headers = {});
|
|
1864
1925
|
break;
|
|
1865
1926
|
case 'GET':
|
|
1866
|
-
fn = axios.get(options.url, options.params);
|
|
1927
|
+
fn = axios.get(options.url, options.params, options.headers = {});
|
|
1867
1928
|
break;
|
|
1868
1929
|
default:
|
|
1869
|
-
fn = axios.get(options.url, options.params);
|
|
1930
|
+
fn = axios.get(options.url, options.params, options.headers = {});
|
|
1870
1931
|
}
|
|
1871
1932
|
return fn;
|
|
1872
1933
|
};
|
|
@@ -2177,7 +2238,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
2177
2238
|
param = this.param;
|
|
2178
2239
|
|
|
2179
2240
|
var params = {
|
|
2180
|
-
url: this.baseUrl ? this.baseUrl + (url || api["
|
|
2241
|
+
url: this.baseUrl ? this.baseUrl + (url || api["c" /* findSysCode */]) : url || api["c" /* findSysCode */],
|
|
2181
2242
|
type: method,
|
|
2182
2243
|
params: _extends({
|
|
2183
2244
|
ccCode: sysAppCode
|
|
@@ -2244,28 +2305,28 @@ main.install = function (Vue) {
|
|
|
2244
2305
|
/***/ 4:
|
|
2245
2306
|
/***/ (function(module, exports) {
|
|
2246
2307
|
|
|
2247
|
-
module.exports = require("
|
|
2308
|
+
module.exports = require("eoss-mobile-vant");
|
|
2248
2309
|
|
|
2249
2310
|
/***/ }),
|
|
2250
2311
|
|
|
2251
2312
|
/***/ 5:
|
|
2252
2313
|
/***/ (function(module, exports) {
|
|
2253
2314
|
|
|
2254
|
-
module.exports = require("eoss-
|
|
2315
|
+
module.exports = require("@eoss-design/color");
|
|
2255
2316
|
|
|
2256
2317
|
/***/ }),
|
|
2257
2318
|
|
|
2258
2319
|
/***/ 6:
|
|
2259
2320
|
/***/ (function(module, exports) {
|
|
2260
2321
|
|
|
2261
|
-
module.exports = require("
|
|
2322
|
+
module.exports = require("axios");
|
|
2262
2323
|
|
|
2263
2324
|
/***/ }),
|
|
2264
2325
|
|
|
2265
2326
|
/***/ 7:
|
|
2266
2327
|
/***/ (function(module, exports) {
|
|
2267
2328
|
|
|
2268
|
-
module.exports = require("
|
|
2329
|
+
module.exports = require("qs");
|
|
2269
2330
|
|
|
2270
2331
|
/***/ }),
|
|
2271
2332
|
|
package/lib/config/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.isCanStartSubFlow = exports.twoOfficesDispatch = exports.toTwoOfficesDispatch = exports.taskUnionSeal = exports.toTaskUnionSeal = exports.taskStartDraft = exports.toTaskStartDraft = exports.taskTakeAdvice = exports.toTaskTakeAdvice = exports.taskUnionExamine = exports.toTaskUnionExamine = exports.getNotificationMsg = exports.findSysCodes = exports.toTaskTransferIndex = exports.toStartTaskReadHtml = exports.toStartTaskRead = exports.taskReadHtml = exports.handleTaskRead = exports.toTaskRejectHtml = exports.taskRejectHtml = exports.toStartFlow = exports.getNodeInfo = exports.registerNew = exports.taskHandleHtmlImg = exports.taskHandleHtml = exports.getNodeInfoHtml = exports.getHandleInfoHtml = exports.commonOpion = exports.findSysCode = exports.selectObject = undefined;
|
|
4
|
+
exports.isCanStartSubFlow = exports.twoOfficesDispatch = exports.toTwoOfficesDispatch = exports.taskUnionSeal = exports.toTaskUnionSeal = exports.taskStartDraft = exports.toTaskStartDraft = exports.taskTakeAdvice = exports.toTaskTakeAdvice = exports.taskUnionExamine = exports.toTaskUnionExamine = exports.getNotificationMsg = exports.findSysCodes = exports.toTaskTransferIndex = exports.toStartTaskReadHtml = exports.toStartTaskRead = exports.taskReadHtml = exports.handleTaskRead = exports.toTaskRejectHtml = exports.taskRejectHtml = exports.toStartFlow = exports.getNodeInfo = exports.registerNew = exports.taskHandleHtmlImg = exports.taskHandleHtml = exports.getNodeInfoHtml = exports.getHandleInfoHtml = exports.commonOpion = exports.findSysCode = exports.selectObject = exports.codeRetrialAuth = exports.getRetrialAuthCode = exports.initRetrialAuth = undefined;
|
|
5
5
|
|
|
6
6
|
var _util = require('../utils/util');
|
|
7
7
|
|
|
@@ -12,6 +12,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
var activiti = '/bpm';
|
|
13
13
|
var pending = '/bpm';
|
|
14
14
|
var mecp = _util2.default.getStorage('flowPath') || '';
|
|
15
|
+
var initRetrialAuth = exports.initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化二级身份权限验证页面
|
|
16
|
+
var getRetrialAuthCode = exports.getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
|
|
17
|
+
var codeRetrialAuth = exports.codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth'; // 二级身份验证-验证码验证
|
|
15
18
|
// 获取机构/用户/角色/群组等选择器
|
|
16
19
|
var selectObject = exports.selectObject = '/api/v1/mecpSys/selectObject.json';
|
|
17
20
|
// // 获取代码表数据
|