eoss-mobiles 0.2.11 → 0.2.13

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/lib/action-sheet.js +2 -2
  3. package/lib/button-group.js +2 -2
  4. package/lib/button.js +2 -2
  5. package/lib/calendar.js +2 -2
  6. package/lib/cascader.js +2 -2
  7. package/lib/cell.js +2 -2
  8. package/lib/checkbox.js +112 -112
  9. package/lib/circle.js +2 -2
  10. package/lib/count-down.js +2 -2
  11. package/lib/date.js +38 -4
  12. package/lib/empty.js +2 -2
  13. package/lib/eoss-mobile.common.js +291 -105
  14. package/lib/esign.js +2 -2
  15. package/lib/field.js +2 -2
  16. package/lib/flow.js +133 -159
  17. package/lib/form.js +5 -5
  18. package/lib/grid-item.js +2 -2
  19. package/lib/grid.js +2 -2
  20. package/lib/image-preview.js +2 -2
  21. package/lib/image.js +2 -2
  22. package/lib/index.js +1 -1
  23. package/lib/list.js +2 -2
  24. package/lib/loading.js +2 -2
  25. package/lib/nav-bar.js +2 -2
  26. package/lib/notice-bar.js +273 -0
  27. package/lib/pagination.js +2 -2
  28. package/lib/picker.js +111 -111
  29. package/lib/popover.js +2 -2
  30. package/lib/popup.js +2 -2
  31. package/lib/pull-refresh.js +2 -2
  32. package/lib/radio.js +111 -111
  33. package/lib/rate.js +2 -2
  34. package/lib/search.js +2 -2
  35. package/lib/selector.js +112 -112
  36. package/lib/skeleton.js +2 -2
  37. package/lib/stepper.js +2 -2
  38. package/lib/swipe.js +2 -2
  39. package/lib/switch.js +2 -2
  40. package/lib/tab.js +2 -2
  41. package/lib/table-column.js +687 -147
  42. package/lib/table.js +114 -115
  43. package/lib/tabs.js +2 -2
  44. package/lib/tag.js +2 -2
  45. package/lib/theme-chalk/flow.css +1 -1
  46. package/lib/theme-chalk/fonts/iconfont.scss +7 -3
  47. package/lib/theme-chalk/index.css +1 -1
  48. package/lib/theme-chalk/notice-bar.css +0 -0
  49. package/lib/theme-chalk/selector.css +1 -1
  50. package/lib/uploader.js +2 -2
  51. package/package.json +1 -1
  52. package/packages/date/src/main.vue +14 -0
  53. package/packages/flow/src/components/Handle.vue +3 -3
  54. package/packages/flow/src/components/Opinion.vue +3 -3
  55. package/packages/form/src/main.vue +1 -1
  56. package/packages/notice-bar/index.js +5 -0
  57. package/packages/notice-bar/src/main.vue +15 -0
  58. package/packages/table/src/main.vue +0 -1
  59. package/packages/table-column/src/main.vue +272 -199
  60. package/packages/theme-chalk/lib/flow.css +1 -1
  61. package/packages/theme-chalk/lib/fonts/iconfont.scss +7 -3
  62. package/packages/theme-chalk/lib/index.css +1 -1
  63. package/packages/theme-chalk/lib/notice-bar.css +0 -0
  64. package/packages/theme-chalk/lib/selector.css +1 -1
  65. package/packages/theme-chalk/src/flow.scss +9 -1
  66. package/packages/theme-chalk/src/fonts/iconfont.scss +7 -3
  67. package/packages/theme-chalk/src/index.scss +1 -0
  68. package/packages/theme-chalk/src/notice-bar.scss +0 -0
  69. package/src/index.js +7 -4
@@ -90,111 +90,7 @@ module.exports =
90
90
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
91
 
92
92
  "use strict";
93
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
94
- /* globals __VUE_SSR_CONTEXT__ */
95
-
96
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
97
- // This module is a runtime utility for cleaner component module output and will
98
- // be included in the final webpack user bundle.
99
-
100
- function normalizeComponent(
101
- scriptExports,
102
- render,
103
- staticRenderFns,
104
- functionalTemplate,
105
- injectStyles,
106
- scopeId,
107
- moduleIdentifier /* server only */,
108
- shadowMode /* vue-cli only */
109
- ) {
110
- // Vue.extend constructor export interop
111
- var options =
112
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
113
-
114
- // render functions
115
- if (render) {
116
- options.render = render
117
- options.staticRenderFns = staticRenderFns
118
- options._compiled = true
119
- }
120
-
121
- // functional template
122
- if (functionalTemplate) {
123
- options.functional = true
124
- }
125
-
126
- // scopedId
127
- if (scopeId) {
128
- options._scopeId = 'data-v-' + scopeId
129
- }
130
-
131
- var hook
132
- if (moduleIdentifier) {
133
- // server build
134
- hook = function (context) {
135
- // 2.3 injection
136
- context =
137
- context || // cached call
138
- (this.$vnode && this.$vnode.ssrContext) || // stateful
139
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
140
- // 2.2 with runInNewContext: true
141
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
142
- context = __VUE_SSR_CONTEXT__
143
- }
144
- // inject component styles
145
- if (injectStyles) {
146
- injectStyles.call(this, context)
147
- }
148
- // register component module identifier for async chunk inferrence
149
- if (context && context._registeredComponents) {
150
- context._registeredComponents.add(moduleIdentifier)
151
- }
152
- }
153
- // used by ssr in case component is cached and beforeCreate
154
- // never gets called
155
- options._ssrRegister = hook
156
- } else if (injectStyles) {
157
- hook = shadowMode
158
- ? function () {
159
- injectStyles.call(
160
- this,
161
- (options.functional ? this.parent : this).$root.$options.shadowRoot
162
- )
163
- }
164
- : injectStyles
165
- }
166
-
167
- if (hook) {
168
- if (options.functional) {
169
- // for template-only hot-reload because in that case the render fn doesn't
170
- // go through the normalizer
171
- options._injectStyles = hook
172
- // register for functional component in vue file
173
- var originalRender = options.render
174
- options.render = function renderWithStyleInjection(h, context) {
175
- hook.call(context)
176
- return originalRender(h, context)
177
- }
178
- } else {
179
- // inject component registration as beforeCreate hook
180
- var existing = options.beforeCreate
181
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
182
- }
183
- }
184
-
185
- return {
186
- exports: scriptExports,
187
- options: options
188
- }
189
- }
190
-
191
-
192
- /***/ }),
193
- /* 1 */
194
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
195
-
196
- "use strict";
197
- /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
93
+ /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
198
94
  /* harmony import */ var _eoss_design_color__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_eoss_design_color__WEBPACK_IMPORTED_MODULE_0__);
199
95
  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; };
200
96
 
@@ -1509,17 +1405,543 @@ var exclAttribute = function exclAttribute(_ref4) {
1509
1405
  });
1510
1406
 
1511
1407
  /***/ }),
1512
- /* 2 */,
1513
- /* 3 */,
1514
- /* 4 */,
1408
+ /* 1 */
1409
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1410
+
1411
+ "use strict";
1412
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
1413
+ /* globals __VUE_SSR_CONTEXT__ */
1414
+
1415
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1416
+ // This module is a runtime utility for cleaner component module output and will
1417
+ // be included in the final webpack user bundle.
1418
+
1419
+ function normalizeComponent(
1420
+ scriptExports,
1421
+ render,
1422
+ staticRenderFns,
1423
+ functionalTemplate,
1424
+ injectStyles,
1425
+ scopeId,
1426
+ moduleIdentifier /* server only */,
1427
+ shadowMode /* vue-cli only */
1428
+ ) {
1429
+ // Vue.extend constructor export interop
1430
+ var options =
1431
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1432
+
1433
+ // render functions
1434
+ if (render) {
1435
+ options.render = render
1436
+ options.staticRenderFns = staticRenderFns
1437
+ options._compiled = true
1438
+ }
1439
+
1440
+ // functional template
1441
+ if (functionalTemplate) {
1442
+ options.functional = true
1443
+ }
1444
+
1445
+ // scopedId
1446
+ if (scopeId) {
1447
+ options._scopeId = 'data-v-' + scopeId
1448
+ }
1449
+
1450
+ var hook
1451
+ if (moduleIdentifier) {
1452
+ // server build
1453
+ hook = function (context) {
1454
+ // 2.3 injection
1455
+ context =
1456
+ context || // cached call
1457
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1458
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1459
+ // 2.2 with runInNewContext: true
1460
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1461
+ context = __VUE_SSR_CONTEXT__
1462
+ }
1463
+ // inject component styles
1464
+ if (injectStyles) {
1465
+ injectStyles.call(this, context)
1466
+ }
1467
+ // register component module identifier for async chunk inferrence
1468
+ if (context && context._registeredComponents) {
1469
+ context._registeredComponents.add(moduleIdentifier)
1470
+ }
1471
+ }
1472
+ // used by ssr in case component is cached and beforeCreate
1473
+ // never gets called
1474
+ options._ssrRegister = hook
1475
+ } else if (injectStyles) {
1476
+ hook = shadowMode
1477
+ ? function () {
1478
+ injectStyles.call(
1479
+ this,
1480
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1481
+ )
1482
+ }
1483
+ : injectStyles
1484
+ }
1485
+
1486
+ if (hook) {
1487
+ if (options.functional) {
1488
+ // for template-only hot-reload because in that case the render fn doesn't
1489
+ // go through the normalizer
1490
+ options._injectStyles = hook
1491
+ // register for functional component in vue file
1492
+ var originalRender = options.render
1493
+ options.render = function renderWithStyleInjection(h, context) {
1494
+ hook.call(context)
1495
+ return originalRender(h, context)
1496
+ }
1497
+ } else {
1498
+ // inject component registration as beforeCreate hook
1499
+ var existing = options.beforeCreate
1500
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1501
+ }
1502
+ }
1503
+
1504
+ return {
1505
+ exports: scriptExports,
1506
+ options: options
1507
+ }
1508
+ }
1509
+
1510
+
1511
+ /***/ }),
1512
+ /* 2 */
1513
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1514
+
1515
+ "use strict";
1516
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return selectObject; });
1517
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return findSysCode; });
1518
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return commonOpion; });
1519
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getHandleInfoHtml; });
1520
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getNodeInfoHtml; });
1521
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return taskHandleHtml; });
1522
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return taskHandleHtmlImg; });
1523
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return registerNew; });
1524
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getNodeInfo; });
1525
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toStartFlow; });
1526
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return taskRejectHtml; });
1527
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return toTaskRejectHtml; });
1528
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return handleTaskRead; });
1529
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return taskReadHtml; });
1530
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return toStartTaskRead; });
1531
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return toStartTaskReadHtml; });
1532
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return toTaskTransferIndex; });
1533
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return findSysCodes; });
1534
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getNotificationMsg; });
1535
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return toTaskUnionExamine; });
1536
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return taskUnionExamine; });
1537
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return toTaskTakeAdvice; });
1538
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return taskTakeAdvice; });
1539
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return toTaskStartDraft; });
1540
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return taskStartDraft; });
1541
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return toTaskUnionSeal; });
1542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return taskUnionSeal; });
1543
+ /* unused harmony export toTwoOfficesDispatch */
1544
+ /* unused harmony export twoOfficesDispatch */
1545
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isCanStartSubFlow; });
1546
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1547
+
1548
+ var activiti = '/bpm';
1549
+ var pending = '/bpm';
1550
+ var mecp = _utils_util__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].getStorage('flowPath') || '';
1551
+ // 获取机构/用户/角色/群组等选择器
1552
+ var selectObject = '/api/v1/mecpSys/selectObject.json';
1553
+ // // 获取代码表数据
1554
+ // export const findSysCode = '/api/v1/mecpSys/findSysCode.json';
1555
+ // 获取代码表数据
1556
+ var findSysCode = activiti + mecp + '/bpmCommon/findCodeValues';
1557
+ // 获取常用意见
1558
+ // export const commonOpion = '/api/v1/mecpIpending/commonOpion.json';
1559
+ // 获取常用意见
1560
+ var commonOpion = activiti + mecp + '/commonOpinionsManager/list';
1561
+ // 获取审核页面信息
1562
+ // export const getHandleInfoHtml = '/api/mecp/v1/mecpItask/getHandleInfoHtml.json';
1563
+ var getHandleInfoHtml = activiti + mecp + '/bpmBackend/toTaskHandleIndex.dhtml';
1564
+ // 获取节点信息(获取节点属性及办理人,审核)
1565
+ // export const getNodeInfoHtml = '/api/mecp/v1/mecpItask/getNodeInfoHtml.json';
1566
+ var getNodeInfoHtml = pending + '/task/taskHandle/getNodeInfo.dhtml';
1567
+ // 提交办理(为H5提供接口)
1568
+ // export const taskHandleHtml = '/api/mecp/v1/mecpItask/taskHandleHtml.json';
1569
+ var taskHandleHtml = pending + '/task/taskHandle/taskHandle.dhtml';
1570
+ var taskHandleHtmlImg = pending + '/task/taskHandle/taskHandleWithHandwrittenOpinion.dhtml';
1571
+
1572
+ // 发起流程
1573
+ var registerNew = '/api/v1/mecpItask/registerNew.json';
1574
+ // 获取节点信息(获取节点属性及办理人,发起)
1575
+ var getNodeInfo = '/api/mecp/v1/mecpItask/getNodeInfo.json';
1576
+ // 获取发起流程信息
1577
+ // export const toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
1578
+ var toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
1579
+ // export const toStartFlow = activiti + mecp + '/bpmBackend/toStartFlowIndex';
1580
+
1581
+ // 驳回(为H5提供接口)
1582
+ // export const taskRejectHtml = '/api/mecp/v1/mecpItask/taskRejectHtml.json';
1583
+ var taskRejectHtml = activiti + mecp + '/bpmBackend/taskReject';
1584
+ // 获取驳回页面信息
1585
+ // export const toTaskRejectHtml = '/api/mecp/v1/mecpItask/toTaskRejectHtml.json';
1586
+ var toTaskRejectHtml = activiti + mecp + '/bpmBackend/toTaskReject';
1587
+ // 分阅阅结(为H5提供接口)
1588
+ var handleTaskRead = '/api/mecp/v1/mecpItask/handleTaskRead.json';
1589
+ // 分阅(为H5提供接口)
1590
+ // export const taskReadHtml = '/api/mecp/v1/mecpItask/taskReadHtml.json';
1591
+ var taskReadHtml = activiti + '/task/taskHandle/taskRead.dhtml';
1592
+ // 获取分阅页面信息
1593
+ // export const toStartTaskReadHtml = '/api/mecp/v1/mecpItask/toStartTaskReadHtml.json';
1594
+ // 获取分阅信息
1595
+ var toStartTaskRead = activiti + mecp + '/bpmBackend/toStartTaskRead';
1596
+ var toStartTaskReadHtml = activiti + mecp + '/bpmBackend/toTaskReadIndex';
1597
+ // 获取转办页面数据
1598
+ var toTaskTransferIndex = activiti + mecp + '/bpmBackend/toTaskTransferIndex';
1599
+ // 获取默认通知消息
1600
+ var findSysCodes = pending + '/task/taskHandle/getDefaultNotificationType.dhtml';
1601
+ // 获取通知消息
1602
+ var getNotificationMsg = pending + '/task/taskHandle/getNotificationMsg.dhtml';
1603
+ // 联合审核
1604
+ var toTaskUnionExamine = activiti + mecp + '/bpmBackend/toTaskUnionExamine';
1605
+ // 联合审核提交
1606
+ var taskUnionExamine = activiti + '/task/taskHandle/taskUnionExamine.dhtml';
1607
+ // 征求意见
1608
+ var toTaskTakeAdvice = activiti + mecp + '/bpmBackend/toTaskTakeAdvice';
1609
+ // 征求意见提交
1610
+ var taskTakeAdvice = activiti + '/task/taskHandle/taskTakeAdvice.dhtml';
1611
+ // 稿件递送
1612
+ var toTaskStartDraft = activiti + mecp + '/bpmBackend/totaskStartDraft';
1613
+
1614
+ // 稿件递送提交接口
1615
+ // export const taskStartDraft = '/oa/task/taskHandle/taskStartDraft.dhtml';
1616
+ var taskStartDraft = '/archives/task/taskHandle/taskStartDraft.dhtml';
1617
+ // 联合用印
1618
+ var toTaskUnionSeal = activiti + mecp + '/bpmBackend/toTaskUnionSeal';
1619
+ // 联合用印提交
1620
+ var taskUnionSeal = activiti + '/task/taskHandle/taskUnionSeal.dhtml'; // 报送两办
1621
+ var toTwoOfficesDispatch = activiti + mecp + '/bpmBackend/toTwoOfficesDispatch';
1622
+ // 报送两办提交
1623
+ var twoOfficesDispatch = activiti + '/task/taskHandle/twoOfficesDispatch.dhtml';
1624
+ // 是否允许启动子流程(必经节点)
1625
+ var isCanStartSubFlow = activiti + '/task/taskHandle/isCanStartSubFlow.dhtml';
1626
+
1627
+ /***/ }),
1628
+ /* 3 */
1629
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1630
+
1631
+ "use strict";
1632
+
1633
+ // EXTERNAL MODULE: external "axios"
1634
+ var external_axios_ = __webpack_require__(7);
1635
+ var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
1636
+
1637
+ // EXTERNAL MODULE: external "eoss-mobile-vant"
1638
+ var external_eoss_mobile_vant_ = __webpack_require__(5);
1639
+
1640
+ // EXTERNAL MODULE: ./src/utils/util.js
1641
+ var util = __webpack_require__(0);
1642
+
1643
+ // EXTERNAL MODULE: external "qs"
1644
+ var external_qs_ = __webpack_require__(4);
1645
+ var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
1646
+
1647
+ // CONCATENATED MODULE: ./src/utils/axios.js
1648
+
1649
+ // import Vue from 'vue';
1650
+
1651
+
1652
+
1653
+ var apiUrl = util["a" /* default */].getStorage('host');
1654
+ var http = external_axios_default.a.create({
1655
+ baseURL: apiUrl,
1656
+ timeout: 60000,
1657
+ headers: {
1658
+ // clientKey: 'csjk'
1659
+ },
1660
+ withCredentials: false
1661
+ });
1662
+ http.interceptors.request.use(function (config) {
1663
+ var data = {};
1664
+ if (config.method === 'post') {
1665
+ // 特殊处理在线考试接口1
1666
+ if (config.url.search('HGtest') !== -1) {
1667
+ config.headers['Content-Type'] = 'application/json;';
1668
+ // config.data = qs.stringify(data);
1669
+ Object.assign(data, config.data);
1670
+ } else if (config.url.search('/outsidedirector/business/update') !== -1) {
1671
+ delete config.data.userId;
1672
+ } else if (config.url.indexOf('decisionSuperviseMeet') !== -1) {
1673
+ config.headers['Content-Type'] = 'application/x-www-form-urlencoded';
1674
+ Object.assign(data, config.data);
1675
+ config.data = external_qs_default.a.stringify(data);
1676
+ } else {
1677
+ config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1678
+ if (Object.prototype.toString.call(config.data).slice(8, -1).toLowerCase() !== 'formdata') {
1679
+ Object.assign(data, config.data);
1680
+ config.data = external_qs_default.a.stringify(data);
1681
+ }
1682
+ }
1683
+ } else {
1684
+ Object.assign(config.params, data);
1685
+ config.headers['Content-Type'] = 'application/json;';
1686
+ }
1687
+ if (util["a" /* default */].getStorage('token')) {
1688
+ config.headers.Authorization = util["a" /* default */].getStorage('token');
1689
+ }
1690
+ if (util["a" /* default */].getStorage('deviceId')) {
1691
+ config.headers.deviceId = util["a" /* default */].getStorage('deviceId');
1692
+ }
1693
+
1694
+ var a = '/config/';
1695
+
1696
+ if (config.url.search(a) !== -1 && config.url.search('appInfo') === -1) {
1697
+ config.headers.clientKey = util["a" /* default */].getStorage('clientKey') || 'csjk2';
1698
+ }
1699
+ if (config.url.search('api/financePhone/') !== -1) {
1700
+ config.baseURL = 'https://release.cdgzjg.cn/';
1701
+ }
1702
+ if (config.url.search('affairs/getHandleInfosnew.json') !== -1) {
1703
+ config.headers = {
1704
+ token: sessionStorage.getItem('token'),
1705
+ oueside_token: sessionStorage.getItem('token'),
1706
+ deviceId: '432a320f99793e39',
1707
+ Authorization: sessionStorage.getItem('token')
1708
+ };
1709
+ }
1710
+ if (config.url.search('/getmyAccount.json') !== -1) {
1711
+ delete config.params.userId;
1712
+ }
1713
+ if (config.url.search('/sso2/authCenter') !== -1) {
1714
+ delete config.headers.clientKey;
1715
+ delete config.headers.deviceId;
1716
+ }
1717
+ if (config.url.search('/appInfo') !== -1) {
1718
+ config.headers.deviceId = util["a" /* default */].getStorage('deviceId');
1719
+ delete config.headers.clientKey;
1720
+ }
1721
+ if (config.url.search('getPresetCustomInfo') !== -1 || config.url.search('registerNew') !== -1) {
1722
+ // config.baseURL = "/api";
1723
+ config.headers.token = util["a" /* default */].getStorage('token');
1724
+ }
1725
+ if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1726
+ delete config.headers.deviceId;
1727
+ }
1728
+ // if(config.url.search('getVehicleMaintenanceInfoForAPP') !== -1 ) {
1729
+ // delete config.headers.deviceId
1730
+ // delete config.headers.Authorization
1731
+ // delete config.headers.clientKey
1732
+ // }
1733
+ if (config.url.search('/bpm') !== -1) {
1734
+ // config.baseURL = "/api";
1735
+ // config.headers.Authorization = $.getStorage('token');
1736
+ // config.headers.Deviceunique = $.getStorage('deviceunique');
1737
+ // config.headers.Ssid = $.getStorage('ssid');
1738
+ // delete config.headers.deviceId;
1739
+ // delete config.headers.clientKey;
1740
+ }
1741
+ return config;
1742
+ }, function (error) {
1743
+ return Promise.error(error);
1744
+ });
1745
+ // 响应拦截器
1746
+ http.interceptors.response.use(function (response) {
1747
+ if (response.status === 200) {
1748
+ if (response.data.rCode === 64 || response.data.rCode === 27) {
1749
+ util["a" /* default */].H5TokenInvalid();
1750
+ } else {
1751
+ return Promise.resolve(response.data);
1752
+ }
1753
+ } else {
1754
+ return Promise.reject(response);
1755
+ }
1756
+ }, function (error) {
1757
+ if (error && error.response) {
1758
+ if (error.response.status) {
1759
+ switch (error.response.status) {
1760
+ case 400:
1761
+ error.message = '错误请求';
1762
+ break;
1763
+ case 401:
1764
+ error.message = '未授权,请重新登录';
1765
+ break;
1766
+ case 403:
1767
+ error.message = '登录过期,请重新登录';
1768
+ util["a" /* default */].removeStorage('userId');
1769
+ break;
1770
+ case 404:
1771
+ error.message = '网络请求不存在';
1772
+ break;
1773
+ case 405:
1774
+ error.message = '请求方法错误';
1775
+ break;
1776
+ case 408:
1777
+ error.message = '请求超时';
1778
+ break;
1779
+ case 500:
1780
+ error.message = '服务器端出错';
1781
+ break;
1782
+ case 501:
1783
+ error.message = '网络未实现';
1784
+ break;
1785
+ case 502:
1786
+ error.message = '网络错误';
1787
+ break;
1788
+ case 503:
1789
+ error.message = '服务不可用';
1790
+ break;
1791
+ case 504:
1792
+ error.message = '网络超时';
1793
+ break;
1794
+ case 505:
1795
+ error.message = 'http版本不支持该请求';
1796
+ break;
1797
+ default:
1798
+ error.message = '\u8FDE\u63A5\u9519\u8BEF' + error.response.status;
1799
+ }
1800
+ } else {
1801
+ error.message = '接口出现问题,无法请求';
1802
+ }
1803
+ }
1804
+ Object(external_eoss_mobile_vant_["Toast"])({
1805
+ message: error.message,
1806
+ duration: 1500,
1807
+ forbidClick: true
1808
+ });
1809
+ return Promise.reject(error);
1810
+ });
1811
+
1812
+ var base = {
1813
+ get: function get(url) {
1814
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1815
+
1816
+ if (params.params && url.search('registerNew') === -1) {
1817
+ params.params.userId = params.params.userId ? params.params.userId : util["a" /* default */].getStorage('userId');
1818
+ } else if (url.search('registerNew') === -1) {
1819
+ params.userId = params.userId ? params.userId : util["a" /* default */].getStorage('userId');
1820
+ }
1821
+ if (url.search('mecpSys/login') !== -1) {
1822
+ delete params.userId;
1823
+ }
1824
+ if (url.search('mecp.invest') !== -1) {
1825
+ if (params.params) {
1826
+ params.params.userId = 'u1b9f3ce4731649e0b665af015d74c19b';
1827
+ } else {
1828
+ params.userId = 'u1b9f3ce4731649e0b665af015d74c19b';
1829
+ }
1830
+ }
1831
+ return http.get(url, {
1832
+ params: params
1833
+ });
1834
+ },
1835
+ post: function post(url) {
1836
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1837
+
1838
+ if (params.params) {
1839
+ params.params.userId = params.params.userId || util["a" /* default */].getStorage('userId');
1840
+ } else {
1841
+ params.userId = params.userId || util["a" /* default */].getStorage('userId');
1842
+ }
1843
+ return http.post(url, params);
1844
+ }
1845
+ };
1846
+ /* harmony default export */ var axios = (base);
1847
+ // CONCATENATED MODULE: ./src/utils/http.js
1848
+
1849
+ var http_request = function request(options) {
1850
+ var fn = void 0;
1851
+ switch (options.type) {
1852
+ case 'post':
1853
+ fn = axios.post(options.url, options.params);
1854
+ break;
1855
+ case 'POST':
1856
+ fn = axios.post(options.url, options.params);
1857
+ break;
1858
+ case 'get':
1859
+ fn = axios.get(options.url, options.params);
1860
+ break;
1861
+ case 'GET':
1862
+ fn = axios.get(options.url, options.params);
1863
+ break;
1864
+ default:
1865
+ fn = axios.get(options.url, options.params);
1866
+ }
1867
+ return fn;
1868
+ };
1869
+ /* harmony default export */ var utils_http = __webpack_exports__["a"] = (http_request);
1870
+
1871
+ // // 封装请求参数
1872
+ // import qs from 'qs';
1873
+ // import http from './axios.js';
1874
+ // import $ from './util.js';
1875
+
1876
+ // function request({
1877
+ // method = 'get',
1878
+ // url,
1879
+ // data = {},
1880
+ // params = {},
1881
+ // headers = {},
1882
+ // format = true,
1883
+ // mix = true
1884
+ // }) {
1885
+ // if (
1886
+ // method.toLowerCase() === 'post' &&
1887
+ // !Object.prototype.hasOwnProperty.call(data, 'userId') &&
1888
+ // $.getStorage('userId')
1889
+ // ) {
1890
+ // data.userId = $.getStorage('userId');
1891
+ // }
1892
+ // if (
1893
+ // (method === 'get' || method === 'GET') &&
1894
+ // !Object.prototype.hasOwnProperty.call(params, 'userId') &&
1895
+ // $.getStorage('userId')
1896
+ // ) {
1897
+ // params.userId = $.getStorage('userId');
1898
+ // }
1899
+ // if (format && (method === 'post' || method === 'POST')) {
1900
+ // data = qs.stringify(data);
1901
+ // headers['content-type'] = 'application/x-www-form-urlencoded';
1902
+ // }
1903
+ // if (!mix && (method === 'get' || method === 'GET')) {
1904
+ // data = {};
1905
+ // }
1906
+ // if (!mix && (method === 'post' || method === 'POST')) {
1907
+ // params = {};
1908
+ // }
1909
+ // return http({
1910
+ // method,
1911
+ // url,
1912
+ // data,
1913
+ // params,
1914
+ // headers
1915
+ // });
1916
+ // }
1917
+
1918
+ // export default request;
1919
+
1920
+ /***/ }),
1921
+ /* 4 */
1922
+ /***/ (function(module, exports) {
1923
+
1924
+ module.exports = require("qs");
1925
+
1926
+ /***/ }),
1515
1927
  /* 5 */
1516
1928
  /***/ (function(module, exports) {
1517
1929
 
1930
+ module.exports = require("eoss-mobile-vant");
1931
+
1932
+ /***/ }),
1933
+ /* 6 */
1934
+ /***/ (function(module, exports) {
1935
+
1518
1936
  module.exports = require("@eoss-design/color");
1519
1937
 
1520
1938
  /***/ }),
1521
- /* 6 */,
1522
- /* 7 */,
1939
+ /* 7 */
1940
+ /***/ (function(module, exports) {
1941
+
1942
+ module.exports = require("axios");
1943
+
1944
+ /***/ }),
1523
1945
  /* 8 */
1524
1946
  /***/ (function(module, exports) {
1525
1947
 
@@ -1543,7 +1965,7 @@ module.exports = require("element-ui");
1543
1965
  // ESM COMPAT FLAG
1544
1966
  __webpack_require__.r(__webpack_exports__);
1545
1967
 
1546
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=template&id=1ced7a5e&
1968
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=template&id=8d262a50&
1547
1969
  var render = function () {
1548
1970
  var _vm = this
1549
1971
  var _h = _vm.$createElement
@@ -1620,9 +2042,16 @@ var render = function () {
1620
2042
  _vm._b(
1621
2043
  {
1622
2044
  attrs: {
2045
+ valueKey: "cciValue",
2046
+ labelKey: "shortName",
1623
2047
  sysAppCode:
1624
2048
  _vm.item.sysAppCode &&
1625
- scope.$index == 0
2049
+ scope.$index == 0 &&
2050
+ !_vm.optionList[
2051
+ _vm.item.name ||
2052
+ _vm.item.field ||
2053
+ _vm.item.prop
2054
+ ]
1626
2055
  ? _vm.item.sysAppCode
1627
2056
  : "",
1628
2057
  url:
@@ -1632,10 +2061,20 @@ var render = function () {
1632
2061
  isTable: "",
1633
2062
  hideLabel: "",
1634
2063
  ajax: false,
1635
- columns: _vm.item.optionData
1636
- ? scope.row[_vm.item.optionData]
2064
+ columns: _vm.optionList[
2065
+ _vm.item.name ||
2066
+ _vm.item.field ||
2067
+ _vm.item.prop
2068
+ ]
2069
+ ? _vm.optionList[
2070
+ _vm.item.name ||
2071
+ _vm.item.field ||
2072
+ _vm.item.prop
2073
+ ]
1637
2074
  : _vm.newOptionData[
1638
- _vm.item.field || _vm.item.prop
2075
+ _vm.item.name ||
2076
+ _vm.item.field ||
2077
+ _vm.item.prop
1639
2078
  ],
1640
2079
  },
1641
2080
  on: {
@@ -1655,21 +2094,29 @@ var render = function () {
1655
2094
  },
1656
2095
  },
1657
2096
  model: {
1658
- value: scope.row[_vm.item.field],
2097
+ value:
2098
+ scope.row[
2099
+ _vm.item.name ||
2100
+ _vm.item.field ||
2101
+ _vm.item.prop
2102
+ ],
1659
2103
  callback: function ($$v) {
1660
2104
  _vm.$set(
1661
2105
  scope.row,
1662
- _vm.item.field,
2106
+ _vm.item.name ||
2107
+ _vm.item.field ||
2108
+ _vm.item.prop,
1663
2109
  $$v
1664
2110
  )
1665
2111
  },
1666
- expression: "scope.row[item.field]",
2112
+ expression:
2113
+ "scope.row[item.name || item.field || item.prop]",
1667
2114
  },
1668
2115
  },
1669
2116
  "em-picker",
1670
2117
  _vm.exclAttribute({
1671
2118
  data: _vm.item,
1672
- attrs: "width",
2119
+ attrs: ["width", "sysAppCode"],
1673
2120
  }),
1674
2121
  false
1675
2122
  )
@@ -2173,16 +2620,18 @@ var render = function () {
2173
2620
  },
2174
2621
  })
2175
2622
  : [
2176
- _vm._v(
2177
- _vm._s(
2178
- _vm.item.formatDate
2179
- ? _vm.formatDate(
2180
- scope.row[_vm.item.field || _vm.item.prop],
2181
- _vm.item.formatDate
2182
- )
2183
- : _vm.getValue(scope.row)
2184
- )
2185
- ),
2623
+ _c("div", {
2624
+ domProps: {
2625
+ innerHTML: _vm._s(
2626
+ _vm.item.formatDate
2627
+ ? _vm.formatDate(
2628
+ scope.row[_vm.item.field || _vm.item.prop],
2629
+ _vm.item.formatDate
2630
+ )
2631
+ : _vm.getValue(scope.row)
2632
+ ),
2633
+ },
2634
+ }),
2186
2635
  ],
2187
2636
  ]
2188
2637
  },
@@ -2198,13 +2647,16 @@ var staticRenderFns = []
2198
2647
  render._withStripped = true
2199
2648
 
2200
2649
 
2201
- // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=template&id=1ced7a5e&
2650
+ // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=template&id=8d262a50&
2202
2651
 
2203
2652
  // EXTERNAL MODULE: external "element-ui"
2204
2653
  var external_element_ui_ = __webpack_require__(9);
2205
2654
 
2206
2655
  // EXTERNAL MODULE: ./src/utils/util.js
2207
- var util = __webpack_require__(1);
2656
+ var util = __webpack_require__(0);
2657
+
2658
+ // EXTERNAL MODULE: ./src/config/api.js
2659
+ var api = __webpack_require__(2);
2208
2660
 
2209
2661
  // CONCATENATED MODULE: ./packages/table-column/src/mixins/table.js
2210
2662
  /* harmony default export */ var table = ({
@@ -2217,11 +2669,26 @@ var util = __webpack_require__(1);
2217
2669
  }
2218
2670
  }
2219
2671
  });
2672
+ // EXTERNAL MODULE: ./src/utils/http.js + 1 modules
2673
+ var http = __webpack_require__(3);
2674
+
2220
2675
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table-column/src/main.vue?vue&type=script&lang=js&
2221
2676
  var _methods;
2222
2677
 
2223
2678
  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; };
2224
2679
 
2680
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
2681
+
2682
+ //
2683
+ //
2684
+ //
2685
+ //
2686
+ //
2687
+ //
2688
+ //
2689
+ //
2690
+ //
2691
+ //
2225
2692
  //
2226
2693
  //
2227
2694
  //
@@ -2809,6 +3276,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2809
3276
  //
2810
3277
  //
2811
3278
  //
3279
+ //
3280
+ //
3281
+
3282
+
2812
3283
 
2813
3284
 
2814
3285
 
@@ -2840,10 +3311,29 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2840
3311
  },
2841
3312
  data: function data() {
2842
3313
  return {
2843
- show: true
3314
+ show: true,
3315
+ isSelect: false,
3316
+ selectStr: '',
3317
+ optionList: {}
2844
3318
  };
2845
3319
  },
2846
-
3320
+ mounted: function mounted() {
3321
+ var _item = this.item,
3322
+ field = _item.field,
3323
+ prop = _item.prop,
3324
+ name = _item.name,
3325
+ labelKey = _item.labelKey,
3326
+ valueKey = _item.valueKey,
3327
+ sysAppCode = _item.sysAppCode;
3328
+
3329
+ this.selectStr.indexOf(sysAppCode) != -1 && (this.isSelect = false);
3330
+ if (sysAppCode && !this.isSelect) {
3331
+ this.optionList[name || field || prop] = [];
3332
+ this.getSelectValue(this.item);
3333
+ this.selectStr += sysAppCode;
3334
+ this.isSelect = true;
3335
+ }
3336
+ },
2847
3337
 
2848
3338
  computed: {
2849
3339
  newOptionData: function newOptionData(field) {
@@ -2854,18 +3344,38 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2854
3344
  }
2855
3345
  },
2856
3346
  methods: (_methods = {
2857
- handleFailed: function handleFailed(val) {
2858
- console.log(this.$refs.emInput, 'Failed');
2859
- console.log(this.$refs, 'Failed');
3347
+ getSelectValue: function getSelectValue(item) {
3348
+ var _this = this;
3349
+
3350
+ var params = {
3351
+ url: item.url || api["b" /* findSysCode */],
3352
+ type: item.method || 'get',
3353
+ params: _extends({
3354
+ ccCode: item.sysAppCode,
3355
+ pageIndex: 1
3356
+ }, item.param)
3357
+ };
3358
+ Object(http["a" /* default */])(params).then(function (res) {
3359
+ var data = res.data,
3360
+ status = res.status;
3361
+
3362
+ if (status === 'success') {
3363
+ _this.optionList[item.name || item.field || item.prop] = data;
3364
+ _this.show = false;
3365
+ setTimeout(function () {
3366
+ _this.show = true;
3367
+ }, 0);
3368
+ }
3369
+ });
2860
3370
  },
2861
3371
  getValue: function getValue(row) {
2862
3372
  var str = void 0;
2863
- var _item = this.item,
2864
- field = _item.field,
2865
- prop = _item.prop,
2866
- valueKey = _item.valueKey,
2867
- labelKey = _item.labelKey,
2868
- type = _item.type;
3373
+ var _item2 = this.item,
3374
+ field = _item2.field,
3375
+ prop = _item2.prop,
3376
+ valueKey = _item2.valueKey,
3377
+ labelKey = _item2.labelKey,
3378
+ type = _item2.type;
2869
3379
 
2870
3380
  if (this.newOptionData[field || prop]) {
2871
3381
  if (Array.isArray(row[field || prop])) {
@@ -2892,6 +3402,36 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2892
3402
  str = _val[0][labelKey || 'name'];
2893
3403
  }
2894
3404
  }
3405
+ } else if (type === 'select') {
3406
+ var _item3 = this.item,
3407
+ name = _item3.name,
3408
+ _labelKey = _item3.labelKey,
3409
+ _field = _item3.field,
3410
+ _prop = _item3.prop,
3411
+ _valueKey = _item3.valueKey,
3412
+ optionData = _item3.optionData;
3413
+
3414
+ if (this.optionList[name || _field || _prop]) {
3415
+ var value = this.optionList[name || _field || _prop].filter(function (x) {
3416
+ return x[_valueKey || 'cciValue'] === row[name || _field || _prop];
3417
+ });
3418
+ if (value.length > 0) {
3419
+ str = value[0][_labelKey || 'shortName'];
3420
+ } else {
3421
+ str = '-';
3422
+ }
3423
+ } else if (optionData) {
3424
+ var _value = optionData.filter(function (x) {
3425
+ return x[_valueKey || 'cciValue'] === row[name || _field || _prop];
3426
+ });
3427
+ if (_value.length > 0) {
3428
+ str = _value[0][_labelKey || 'shortName'];
3429
+ } else {
3430
+ str = '-';
3431
+ }
3432
+ } else {
3433
+ str = row[name || _field || _prop];
3434
+ }
2895
3435
  } else if (typeof row[field || prop] == 'string') {
2896
3436
  str = row[field || prop];
2897
3437
  } else if (type == 'number') {
@@ -2900,8 +3440,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2900
3440
  if (Array.isArray(row[field || prop]) && row[field || prop].length == 0) {
2901
3441
  str = '';
2902
3442
  } else {
2903
- str = row[field || prop];
2904
- // str = row[field || prop] ? '是' : '否';
3443
+ // str = row[field || prop];
3444
+ str = row[field || prop] ? '是' : '否';
2905
3445
  }
2906
3446
  }
2907
3447
  return str;
@@ -2910,13 +3450,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2910
3450
  return util["a" /* default */].formatDate(date, fmt);
2911
3451
  },
2912
3452
  getTableColumns: function getTableColumns(info, name) {
2913
- var _this = this;
3453
+ var _this2 = this;
2914
3454
 
2915
3455
  if (this.newOptionData[name]) return;
2916
3456
  this.show = false;
2917
3457
  this.newOptionData[name] = info;
2918
3458
  setTimeout(function () {
2919
- _this.show = true;
3459
+ _this2.show = true;
2920
3460
  }, 0);
2921
3461
  },
2922
3462
  handleBlur: function handleBlur(data) {
@@ -2967,7 +3507,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2967
3507
  // CONCATENATED MODULE: ./packages/table-column/src/main.vue?vue&type=script&lang=js&
2968
3508
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
2969
3509
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2970
- var componentNormalizer = __webpack_require__(0);
3510
+ var componentNormalizer = __webpack_require__(1);
2971
3511
 
2972
3512
  // CONCATENATED MODULE: ./packages/table-column/src/main.vue
2973
3513