eoss-mobiles 0.1.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.
- package/CHANGELOG.md +55 -0
- package/README.md +28 -0
- package/lib/action-sheet.js +313 -0
- package/lib/button-group.js +421 -0
- package/lib/button.js +278 -0
- package/lib/calendar.js +301 -0
- package/lib/cascader.js +336 -0
- package/lib/cell.js +366 -0
- package/lib/checkbox.js +2170 -0
- package/lib/circle.js +299 -0
- package/lib/config/api.js +31 -0
- package/lib/count-down.js +299 -0
- package/lib/date.js +956 -0
- package/lib/empty.js +274 -0
- package/lib/eoss-mobile.common.js +15072 -0
- package/lib/field.js +440 -0
- package/lib/flow.js +5664 -0
- package/lib/form.js +714 -0
- package/lib/grid-item.js +274 -0
- package/lib/grid.js +317 -0
- package/lib/image-preview.js +325 -0
- package/lib/index.js +1 -0
- package/lib/list.js +315 -0
- package/lib/loading.js +279 -0
- package/lib/nav-bar.js +283 -0
- package/lib/pagination.js +323 -0
- package/lib/picker.js +2714 -0
- package/lib/popover.js +306 -0
- package/lib/popup.js +297 -0
- package/lib/radio.js +2137 -0
- package/lib/rate.js +300 -0
- package/lib/search.js +316 -0
- package/lib/selector.js +3496 -0
- package/lib/skeleton.js +277 -0
- package/lib/stepper.js +300 -0
- package/lib/switch.js +304 -0
- package/lib/tab.js +274 -0
- package/lib/table-column.js +2991 -0
- package/lib/table.js +2652 -0
- package/lib/tabs.js +315 -0
- package/lib/tag.js +281 -0
- package/lib/theme-chalk/action-sheet.css +0 -0
- package/lib/theme-chalk/base.css +1 -0
- package/lib/theme-chalk/button-group.css +1 -0
- package/lib/theme-chalk/button.css +1 -0
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/cell.css +1 -0
- package/lib/theme-chalk/checkbox.css +1 -0
- package/lib/theme-chalk/circle.css +1 -0
- package/lib/theme-chalk/count-down.css +0 -0
- package/lib/theme-chalk/date.css +0 -0
- package/lib/theme-chalk/empty.css +0 -0
- package/lib/theme-chalk/field.css +1 -0
- package/lib/theme-chalk/flow.css +1 -0
- package/lib/theme-chalk/fonts/iconfont.scss +530 -0
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/form.css +0 -0
- package/lib/theme-chalk/grid-item.css +1 -0
- package/lib/theme-chalk/grid.css +0 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/image-preview.css +0 -0
- package/lib/theme-chalk/index.css +1 -0
- package/lib/theme-chalk/list.css +0 -0
- package/lib/theme-chalk/loading.css +0 -0
- package/lib/theme-chalk/nav-bar.css +0 -0
- package/lib/theme-chalk/navbar.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/picker.css +1 -0
- package/lib/theme-chalk/popover.css +0 -0
- package/lib/theme-chalk/popup.css +0 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/rate.css +0 -0
- package/lib/theme-chalk/search.css +0 -0
- package/lib/theme-chalk/selector.css +1 -0
- package/lib/theme-chalk/skeleton.css +0 -0
- package/lib/theme-chalk/stepper.css +1 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/tab.css +0 -0
- package/lib/theme-chalk/table-column.css +0 -0
- package/lib/theme-chalk/table.css +1 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tag.css +1 -0
- package/lib/theme-chalk/theme.css +0 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/uploader.css +0 -0
- package/lib/uploader.js +307 -0
- package/lib/utils/axios.js +199 -0
- package/lib/utils/date-util.js +320 -0
- package/lib/utils/http.js +74 -0
- package/lib/utils/rules.js +21 -0
- package/lib/utils/store.js +24 -0
- package/lib/utils/util.js +1315 -0
- package/package.json +153 -0
- package/packages/action-sheet/index.js +5 -0
- package/packages/action-sheet/src/main.vue +32 -0
- package/packages/button/index.js +5 -0
- package/packages/button/src/main.vue +15 -0
- package/packages/button-group/index.js +5 -0
- package/packages/button-group/src/main.vue +80 -0
- package/packages/calendar/index.js +5 -0
- package/packages/calendar/src/main.vue +34 -0
- package/packages/cascader/index.js +5 -0
- package/packages/cascader/src/main.vue +40 -0
- package/packages/cell/index.js +5 -0
- package/packages/cell/src/main.vue +72 -0
- package/packages/checkbox/index.js +5 -0
- package/packages/checkbox/src/main.vue +149 -0
- package/packages/circle/index.js +5 -0
- package/packages/circle/src/main.vue +27 -0
- package/packages/count-down/index.js +5 -0
- package/packages/count-down/src/main.vue +27 -0
- package/packages/date/index.js +5 -0
- package/packages/date/src/date-time.vue +290 -0
- package/packages/date/src/main.vue +319 -0
- package/packages/empty/index.js +5 -0
- package/packages/empty/src/main.vue +16 -0
- package/packages/field/index.js +5 -0
- package/packages/field/src/main.vue +130 -0
- package/packages/flow/index.js +5 -0
- package/packages/flow/src/components/Handle.vue +1031 -0
- package/packages/flow/src/components/Message.vue +96 -0
- package/packages/flow/src/components/Opinion.vue +112 -0
- package/packages/flow/src/components/Reject.vue +202 -0
- package/packages/flow/src/components/StartFlow.vue +440 -0
- package/packages/flow/src/components/TaskRead.vue +237 -0
- package/packages/flow/src/main.vue +43 -0
- package/packages/form/index.js +5 -0
- package/packages/form/src/main.vue +158 -0
- package/packages/grid/index.js +5 -0
- package/packages/grid/src/main.vue +28 -0
- package/packages/grid-item/index.js +5 -0
- package/packages/grid-item/src/main.vue +16 -0
- package/packages/image-preview/index.js +5 -0
- package/packages/image-preview/src/main.vue +34 -0
- package/packages/list/index.js +5 -0
- package/packages/list/src/main.vue +32 -0
- package/packages/loading/index.js +5 -0
- package/packages/loading/src/main.vue +20 -0
- package/packages/nav-bar/index.js +5 -0
- package/packages/nav-bar/src/main.vue +16 -0
- package/packages/pagination/index.js +5 -0
- package/packages/pagination/src/main.vue +29 -0
- package/packages/picker/index.js +5 -0
- package/packages/picker/src/main.vue +500 -0
- package/packages/popover/index.js +5 -0
- package/packages/popover/src/main.vue +32 -0
- package/packages/popup/index.js +5 -0
- package/packages/popup/src/main.vue +27 -0
- package/packages/radio/index.js +5 -0
- package/packages/radio/src/main.vue +147 -0
- package/packages/rate/index.js +5 -0
- package/packages/rate/src/main.vue +27 -0
- package/packages/search/index.js +5 -0
- package/packages/search/src/main.vue +39 -0
- package/packages/selector/index.js +5 -0
- package/packages/selector/src/main.vue +77 -0
- package/packages/selector/src/selector-field.vue +225 -0
- package/packages/selector/src/selector-tree.vue +472 -0
- package/packages/selector/src/tree.vue +179 -0
- package/packages/skeleton/index.js +5 -0
- package/packages/skeleton/src/main.vue +17 -0
- package/packages/stepper/index.js +5 -0
- package/packages/stepper/src/main.vue +25 -0
- package/packages/switch/index.js +5 -0
- package/packages/switch/src/main.vue +29 -0
- package/packages/tab/index.js +5 -0
- package/packages/tab/src/main.vue +16 -0
- package/packages/table/index.js +5 -0
- package/packages/table/src/main.vue +830 -0
- package/packages/table-column/index.js +5 -0
- package/packages/table-column/src/main.vue +742 -0
- package/packages/table-column/src/mixins/table.js +12 -0
- package/packages/tabs/index.js +5 -0
- package/packages/tabs/src/main.vue +34 -0
- package/packages/tag/index.js +5 -0
- package/packages/tag/src/main.vue +16 -0
- package/packages/theme-chalk/README.md +33 -0
- package/packages/theme-chalk/lib/action-sheet.css +0 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +1 -0
- package/packages/theme-chalk/lib/calendar.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +1 -0
- package/packages/theme-chalk/lib/cell.css +1 -0
- package/packages/theme-chalk/lib/checkbox.css +1 -0
- package/packages/theme-chalk/lib/circle.css +1 -0
- package/packages/theme-chalk/lib/count-down.css +0 -0
- package/packages/theme-chalk/lib/date.css +0 -0
- package/packages/theme-chalk/lib/empty.css +0 -0
- package/packages/theme-chalk/lib/field.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.scss +530 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +0 -0
- package/packages/theme-chalk/lib/grid-item.css +1 -0
- package/packages/theme-chalk/lib/grid.css +0 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/image-preview.css +0 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/list.css +0 -0
- package/packages/theme-chalk/lib/loading.css +0 -0
- package/packages/theme-chalk/lib/nav-bar.css +0 -0
- package/packages/theme-chalk/lib/navbar.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/picker.css +1 -0
- package/packages/theme-chalk/lib/popover.css +0 -0
- package/packages/theme-chalk/lib/popup.css +0 -0
- package/packages/theme-chalk/lib/radio.css +1 -0
- package/packages/theme-chalk/lib/rate.css +0 -0
- package/packages/theme-chalk/lib/search.css +0 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/skeleton.css +0 -0
- package/packages/theme-chalk/lib/stepper.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/tab.css +0 -0
- package/packages/theme-chalk/lib/table-column.css +0 -0
- package/packages/theme-chalk/lib/table.css +1 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tag.css +1 -0
- package/packages/theme-chalk/lib/theme.css +0 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/uploader.css +0 -0
- package/packages/theme-chalk/package.json +35 -0
- package/packages/theme-chalk/src/action-sheet.scss +0 -0
- package/packages/theme-chalk/src/base.scss +182 -0
- package/packages/theme-chalk/src/button-group.scss +26 -0
- package/packages/theme-chalk/src/button.scss +3 -0
- package/packages/theme-chalk/src/calendar.scss +12 -0
- package/packages/theme-chalk/src/cascader.scss +12 -0
- package/packages/theme-chalk/src/cell.scss +14 -0
- package/packages/theme-chalk/src/checkbox.scss +10 -0
- package/packages/theme-chalk/src/circle.scss +7 -0
- package/packages/theme-chalk/src/common/var.scss +1525 -0
- package/packages/theme-chalk/src/count-down.scss +0 -0
- package/packages/theme-chalk/src/date.scss +0 -0
- package/packages/theme-chalk/src/empty.scss +0 -0
- package/packages/theme-chalk/src/field.scss +28 -0
- package/packages/theme-chalk/src/flow.scss +542 -0
- package/packages/theme-chalk/src/fonts/iconfont.scss +530 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/form.scss +15 -0
- package/packages/theme-chalk/src/grid-item.scss +8 -0
- package/packages/theme-chalk/src/grid.scss +0 -0
- package/packages/theme-chalk/src/icon.scss +1661 -0
- package/packages/theme-chalk/src/image-preview.scss +0 -0
- package/packages/theme-chalk/src/index.scss +38 -0
- package/packages/theme-chalk/src/list.scss +0 -0
- package/packages/theme-chalk/src/loading.scss +0 -0
- package/packages/theme-chalk/src/mixins/color.scss +117 -0
- package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
- package/packages/theme-chalk/src/nav-bar.scss +0 -0
- package/packages/theme-chalk/src/navbar.scss +6 -0
- package/packages/theme-chalk/src/pagination.scss +10 -0
- package/packages/theme-chalk/src/picker.scss +27 -0
- package/packages/theme-chalk/src/popover.scss +0 -0
- package/packages/theme-chalk/src/popup.scss +0 -0
- package/packages/theme-chalk/src/radio.scss +7 -0
- package/packages/theme-chalk/src/rate.scss +0 -0
- package/packages/theme-chalk/src/search.scss +0 -0
- package/packages/theme-chalk/src/selector.scss +218 -0
- package/packages/theme-chalk/src/skeleton.scss +0 -0
- package/packages/theme-chalk/src/stepper.scss +10 -0
- package/packages/theme-chalk/src/switch.scss +6 -0
- package/packages/theme-chalk/src/tab.scss +0 -0
- package/packages/theme-chalk/src/table-column.scss +0 -0
- package/packages/theme-chalk/src/table.scss +42 -0
- package/packages/theme-chalk/src/tabs.scss +21 -0
- package/packages/theme-chalk/src/tag.scss +13 -0
- package/packages/theme-chalk/src/theme.scss +2 -0
- package/packages/theme-chalk/src/tree.scss +115 -0
- package/packages/theme-chalk/src/uploader.scss +0 -0
- package/packages/uploader/index.js +5 -0
- package/packages/uploader/src/main.vue +31 -0
- package/src/config/api.js +29 -0
- package/src/index.js +130 -0
- package/src/utils/axios.js +198 -0
- package/src/utils/date-util.js +312 -0
- package/src/utils/http.js +66 -0
- package/src/utils/rules.js +18 -0
- package/src/utils/store.js +21 -0
- package/src/utils/util.js +1346 -0
package/lib/uploader.js
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
module.exports =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "/dist/";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 24);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 0:
|
|
91
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
"use strict";
|
|
94
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
|
+
|
|
97
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
98
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
+
// be included in the final webpack user bundle.
|
|
100
|
+
|
|
101
|
+
function normalizeComponent(
|
|
102
|
+
scriptExports,
|
|
103
|
+
render,
|
|
104
|
+
staticRenderFns,
|
|
105
|
+
functionalTemplate,
|
|
106
|
+
injectStyles,
|
|
107
|
+
scopeId,
|
|
108
|
+
moduleIdentifier /* server only */,
|
|
109
|
+
shadowMode /* vue-cli only */
|
|
110
|
+
) {
|
|
111
|
+
// Vue.extend constructor export interop
|
|
112
|
+
var options =
|
|
113
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
114
|
+
|
|
115
|
+
// render functions
|
|
116
|
+
if (render) {
|
|
117
|
+
options.render = render
|
|
118
|
+
options.staticRenderFns = staticRenderFns
|
|
119
|
+
options._compiled = true
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// functional template
|
|
123
|
+
if (functionalTemplate) {
|
|
124
|
+
options.functional = true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// scopedId
|
|
128
|
+
if (scopeId) {
|
|
129
|
+
options._scopeId = 'data-v-' + scopeId
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
var hook
|
|
133
|
+
if (moduleIdentifier) {
|
|
134
|
+
// server build
|
|
135
|
+
hook = function (context) {
|
|
136
|
+
// 2.3 injection
|
|
137
|
+
context =
|
|
138
|
+
context || // cached call
|
|
139
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
140
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
141
|
+
// 2.2 with runInNewContext: true
|
|
142
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
143
|
+
context = __VUE_SSR_CONTEXT__
|
|
144
|
+
}
|
|
145
|
+
// inject component styles
|
|
146
|
+
if (injectStyles) {
|
|
147
|
+
injectStyles.call(this, context)
|
|
148
|
+
}
|
|
149
|
+
// register component module identifier for async chunk inferrence
|
|
150
|
+
if (context && context._registeredComponents) {
|
|
151
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// used by ssr in case component is cached and beforeCreate
|
|
155
|
+
// never gets called
|
|
156
|
+
options._ssrRegister = hook
|
|
157
|
+
} else if (injectStyles) {
|
|
158
|
+
hook = shadowMode
|
|
159
|
+
? function () {
|
|
160
|
+
injectStyles.call(
|
|
161
|
+
this,
|
|
162
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
: injectStyles
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (hook) {
|
|
169
|
+
if (options.functional) {
|
|
170
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
171
|
+
// go through the normalizer
|
|
172
|
+
options._injectStyles = hook
|
|
173
|
+
// register for functional component in vue file
|
|
174
|
+
var originalRender = options.render
|
|
175
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
176
|
+
hook.call(context)
|
|
177
|
+
return originalRender(h, context)
|
|
178
|
+
}
|
|
179
|
+
} else {
|
|
180
|
+
// inject component registration as beforeCreate hook
|
|
181
|
+
var existing = options.beforeCreate
|
|
182
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return {
|
|
187
|
+
exports: scriptExports,
|
|
188
|
+
options: options
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/***/ }),
|
|
194
|
+
|
|
195
|
+
/***/ 24:
|
|
196
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
|
+
|
|
198
|
+
"use strict";
|
|
199
|
+
// ESM COMPAT FLAG
|
|
200
|
+
__webpack_require__.r(__webpack_exports__);
|
|
201
|
+
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/uploader/src/main.vue?vue&type=template&id=6704a82d&
|
|
203
|
+
var render = function () {
|
|
204
|
+
var _vm = this
|
|
205
|
+
var _h = _vm.$createElement
|
|
206
|
+
var _c = _vm._self._c || _h
|
|
207
|
+
return _c(
|
|
208
|
+
"van-uploader",
|
|
209
|
+
_vm._g(
|
|
210
|
+
_vm._b(
|
|
211
|
+
{
|
|
212
|
+
model: {
|
|
213
|
+
value: _vm.newValue,
|
|
214
|
+
callback: function ($$v) {
|
|
215
|
+
_vm.newValue = $$v
|
|
216
|
+
},
|
|
217
|
+
expression: "newValue",
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
"van-uploader",
|
|
221
|
+
_vm.$attrs,
|
|
222
|
+
false
|
|
223
|
+
),
|
|
224
|
+
_vm.$listeners
|
|
225
|
+
),
|
|
226
|
+
[
|
|
227
|
+
_vm._l(_vm.$slots, function (index, name) {
|
|
228
|
+
return _c("template", { slot: name }, [_vm._t(name)], 2)
|
|
229
|
+
}),
|
|
230
|
+
],
|
|
231
|
+
2
|
|
232
|
+
)
|
|
233
|
+
}
|
|
234
|
+
var staticRenderFns = []
|
|
235
|
+
render._withStripped = true
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
// CONCATENATED MODULE: ./packages/uploader/src/main.vue?vue&type=template&id=6704a82d&
|
|
239
|
+
|
|
240
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/uploader/src/main.vue?vue&type=script&lang=js&
|
|
241
|
+
//
|
|
242
|
+
//
|
|
243
|
+
//
|
|
244
|
+
//
|
|
245
|
+
//
|
|
246
|
+
//
|
|
247
|
+
//
|
|
248
|
+
//
|
|
249
|
+
|
|
250
|
+
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
251
|
+
name: 'EmUploader',
|
|
252
|
+
props: {
|
|
253
|
+
value: {
|
|
254
|
+
type: Array,
|
|
255
|
+
default: function _default() {
|
|
256
|
+
return [];
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
computed: {
|
|
261
|
+
newValue: {
|
|
262
|
+
get: function get() {
|
|
263
|
+
return this.value;
|
|
264
|
+
},
|
|
265
|
+
set: function set(val) {
|
|
266
|
+
return val;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
// CONCATENATED MODULE: ./packages/uploader/src/main.vue?vue&type=script&lang=js&
|
|
272
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
273
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
274
|
+
var componentNormalizer = __webpack_require__(0);
|
|
275
|
+
|
|
276
|
+
// CONCATENATED MODULE: ./packages/uploader/src/main.vue
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
/* normalize component */
|
|
283
|
+
|
|
284
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
285
|
+
src_mainvue_type_script_lang_js_,
|
|
286
|
+
render,
|
|
287
|
+
staticRenderFns,
|
|
288
|
+
false,
|
|
289
|
+
null,
|
|
290
|
+
null,
|
|
291
|
+
null
|
|
292
|
+
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
/* harmony default export */ var main = (component.exports);
|
|
296
|
+
// CONCATENATED MODULE: ./packages/uploader/index.js
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
main.install = function (Vue) {
|
|
300
|
+
return Vue.component(main.name, main);
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/* harmony default export */ var uploader = __webpack_exports__["default"] = (main);
|
|
304
|
+
|
|
305
|
+
/***/ })
|
|
306
|
+
|
|
307
|
+
/******/ });
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
|
|
5
|
+
var _axios = require('axios');
|
|
6
|
+
|
|
7
|
+
var _axios2 = _interopRequireDefault(_axios);
|
|
8
|
+
|
|
9
|
+
var _eossMobileVant = require('eoss-mobile-vant');
|
|
10
|
+
|
|
11
|
+
var _util = require('./util');
|
|
12
|
+
|
|
13
|
+
var _util2 = _interopRequireDefault(_util);
|
|
14
|
+
|
|
15
|
+
var _qs = require('qs');
|
|
16
|
+
|
|
17
|
+
var _qs2 = _interopRequireDefault(_qs);
|
|
18
|
+
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
|
|
21
|
+
var apiUrl = _util2.default.getStorage('host');
|
|
22
|
+
// import Vue from 'vue';
|
|
23
|
+
|
|
24
|
+
var http = _axios2.default.create({
|
|
25
|
+
headers: {
|
|
26
|
+
clientKey: _util2.default.getStorage('clientKey') || 'csjk'
|
|
27
|
+
},
|
|
28
|
+
baseURL: apiUrl,
|
|
29
|
+
timeout: 60000,
|
|
30
|
+
withCredentials: false
|
|
31
|
+
});
|
|
32
|
+
http.interceptors.request.use(function (config) {
|
|
33
|
+
var data = {};
|
|
34
|
+
if (config.method === 'post') {
|
|
35
|
+
// 特殊处理在线考试接口1
|
|
36
|
+
if (config.url.search('HGtest') !== -1) {
|
|
37
|
+
config.headers['Content-Type'] = 'application/json;';
|
|
38
|
+
// config.data = qs.stringify(data);
|
|
39
|
+
Object.assign(data, config.data);
|
|
40
|
+
} else if (config.url.search('/outsidedirector/business/update') !== -1) {
|
|
41
|
+
|
|
42
|
+
delete config.data.userId;
|
|
43
|
+
} else if (config.url.indexOf('decisionSuperviseMeet') !== -1) {
|
|
44
|
+
config.headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
45
|
+
Object.assign(data, config.data);
|
|
46
|
+
config.data = _qs2.default.stringify(data);
|
|
47
|
+
} else {
|
|
48
|
+
config.headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
49
|
+
Object.assign(data, config.data);
|
|
50
|
+
config.data = _qs2.default.stringify(data);
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
Object.assign(config.params, data);
|
|
54
|
+
config.headers['Content-Type'] = 'application/json;';
|
|
55
|
+
}
|
|
56
|
+
if (_util2.default.getStorage('token')) {
|
|
57
|
+
config.headers.Authorization = _util2.default.getStorage('token');
|
|
58
|
+
}
|
|
59
|
+
if (_util2.default.getStorage('deviceId')) {
|
|
60
|
+
config.headers.deviceId = _util2.default.getStorage('deviceId');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var a = '/config/';
|
|
64
|
+
|
|
65
|
+
if (config.url.search(a) !== -1 && config.url.search('appInfo') === -1) {
|
|
66
|
+
config.headers.clientKey = _util2.default.getStorage('clientKey') || 'csjk2';
|
|
67
|
+
}
|
|
68
|
+
if (config.url.search('api/financePhone/') !== -1) {
|
|
69
|
+
config.baseURL = 'https://release.cdgzjg.cn/';
|
|
70
|
+
}
|
|
71
|
+
if (config.url.search('/getmyAccount.json') !== -1) {
|
|
72
|
+
delete config.params.userId;
|
|
73
|
+
}
|
|
74
|
+
if (config.url.search('/sso2/authCenter') !== -1) {
|
|
75
|
+
delete config.headers.clientKey;
|
|
76
|
+
delete config.headers.deviceId;
|
|
77
|
+
}
|
|
78
|
+
if (config.url.search('/appInfo') !== -1) {
|
|
79
|
+
config.headers.deviceId = _util2.default.getStorage('deviceId');
|
|
80
|
+
delete config.headers.clientKey;
|
|
81
|
+
}
|
|
82
|
+
if (config.url.search('getPresetCustomInfo') !== -1 || config.url.search('registerNew') !== -1) {
|
|
83
|
+
// config.baseURL = "/api";
|
|
84
|
+
config.headers.token = _util2.default.getStorage('token');
|
|
85
|
+
}
|
|
86
|
+
if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
|
|
87
|
+
delete config.headers.deviceId;
|
|
88
|
+
}
|
|
89
|
+
// if(config.url.search('getVehicleMaintenanceInfoForAPP') !== -1 ) {
|
|
90
|
+
// delete config.headers.deviceId
|
|
91
|
+
// delete config.headers.Authorization
|
|
92
|
+
// delete config.headers.clientKey
|
|
93
|
+
// }
|
|
94
|
+
return config;
|
|
95
|
+
}, function (error) {
|
|
96
|
+
return Promise.error(error);
|
|
97
|
+
});
|
|
98
|
+
// 响应拦截器
|
|
99
|
+
http.interceptors.response.use(function (response) {
|
|
100
|
+
if (response.status === 200) {
|
|
101
|
+
if (response.data.rCode === 64 || response.data.rCode === 27) {
|
|
102
|
+
_util2.default.H5TokenInvalid();
|
|
103
|
+
} else {
|
|
104
|
+
return Promise.resolve(response.data);
|
|
105
|
+
}
|
|
106
|
+
} else {
|
|
107
|
+
return Promise.reject(response);
|
|
108
|
+
}
|
|
109
|
+
}, function (error) {
|
|
110
|
+
if (error && error.response) {
|
|
111
|
+
if (error.response.status) {
|
|
112
|
+
switch (error.response.status) {
|
|
113
|
+
case 400:
|
|
114
|
+
error.message = '错误请求';
|
|
115
|
+
break;
|
|
116
|
+
case 401:
|
|
117
|
+
error.message = '未授权,请重新登录';
|
|
118
|
+
break;
|
|
119
|
+
case 403:
|
|
120
|
+
error.message = '登录过期,请重新登录';
|
|
121
|
+
_util2.default.removeStorage('userId');
|
|
122
|
+
break;
|
|
123
|
+
case 404:
|
|
124
|
+
error.message = '网络请求不存在';
|
|
125
|
+
break;
|
|
126
|
+
case 405:
|
|
127
|
+
error.message = '请求方法错误';
|
|
128
|
+
break;
|
|
129
|
+
case 408:
|
|
130
|
+
error.message = '请求超时';
|
|
131
|
+
break;
|
|
132
|
+
case 500:
|
|
133
|
+
error.message = '服务器端出错';
|
|
134
|
+
break;
|
|
135
|
+
case 501:
|
|
136
|
+
error.message = '网络未实现';
|
|
137
|
+
break;
|
|
138
|
+
case 502:
|
|
139
|
+
error.message = '网络错误';
|
|
140
|
+
break;
|
|
141
|
+
case 503:
|
|
142
|
+
error.message = '服务不可用';
|
|
143
|
+
break;
|
|
144
|
+
case 504:
|
|
145
|
+
error.message = '网络超时';
|
|
146
|
+
break;
|
|
147
|
+
case 505:
|
|
148
|
+
error.message = 'http版本不支持该请求';
|
|
149
|
+
break;
|
|
150
|
+
default:
|
|
151
|
+
error.message = '\u8FDE\u63A5\u9519\u8BEF' + error.response.status;
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
error.message = '接口出现问题,无法请求';
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
(0, _eossMobileVant.Toast)({
|
|
158
|
+
message: error.message,
|
|
159
|
+
duration: 1500,
|
|
160
|
+
forbidClick: true
|
|
161
|
+
});
|
|
162
|
+
return Promise.reject(error);
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
var base = {
|
|
166
|
+
get: function get(url) {
|
|
167
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
168
|
+
|
|
169
|
+
if (params.params && url.search('registerNew') === -1) {
|
|
170
|
+
params.params.userId = params.params.userId ? params.params.userId : _util2.default.getStorage('userId');
|
|
171
|
+
} else if (url.search('registerNew') === -1) {
|
|
172
|
+
params.userId = params.userId ? params.userId : _util2.default.getStorage('userId');
|
|
173
|
+
}
|
|
174
|
+
if (url.search('mecpSys/login') !== -1) {
|
|
175
|
+
delete params.userId;
|
|
176
|
+
}
|
|
177
|
+
if (url.search('mecp.invest') !== -1) {
|
|
178
|
+
if (params.params) {
|
|
179
|
+
params.params.userId = 'u1b9f3ce4731649e0b665af015d74c19b';
|
|
180
|
+
} else {
|
|
181
|
+
params.userId = 'u1b9f3ce4731649e0b665af015d74c19b';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return http.get(url, {
|
|
185
|
+
params: params
|
|
186
|
+
});
|
|
187
|
+
},
|
|
188
|
+
post: function post(url) {
|
|
189
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
190
|
+
|
|
191
|
+
if (params.params) {
|
|
192
|
+
params.params.userId = _util2.default.getStorage('userId');
|
|
193
|
+
} else {
|
|
194
|
+
params.userId = _util2.default.getStorage('userId');
|
|
195
|
+
}
|
|
196
|
+
return http.post(url, params);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
exports.default = base;
|