cloud-web-corejs 1.1.0-dev.60 → 1.1.0-dev.62
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/package.json
CHANGED
|
@@ -1,228 +1,232 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cloud-web-corejs",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.1.0-dev.
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build:ace-resources": "node build/build-ace-resources.js",
|
|
7
|
-
"build:tinymce-resources": "node build/build-tinymce-resources.js",
|
|
8
|
-
"build:luckysheet-resources": "node build/build-luckysheet-resources.js",
|
|
9
|
-
"build:activiti-resources": "node build/build-activiti-resources.js",
|
|
10
|
-
"check:resource-tools": "node --test tests/resources/*.test.js",
|
|
11
|
-
"check:package-size": "node build/check-package-size.js",
|
|
12
|
-
"create:child": "node bin/create-child-app.js",
|
|
13
|
-
"check:child-app": "node build/check-child-app.js",
|
|
14
|
-
"check:child-browser": "node build/check-child-browser.js",
|
|
15
|
-
"dev": "vue-cli-service serve",
|
|
16
|
-
"dev:micro": "vue-cli-service serve --port 17527",
|
|
17
|
-
"check:package-resources": "node build/check-package-resources.js",
|
|
18
|
-
"check:minimal-consumer": "node build/check-minimal-consumer-build.js",
|
|
19
|
-
"lint": "eslint --ext .js,.vue src",
|
|
20
|
-
"
|
|
21
|
-
"build:
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"test:
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"vue
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@vue/
|
|
93
|
-
"@vue/
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"webpack-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
},
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"src/components/
|
|
149
|
-
"src/components/
|
|
150
|
-
"src/components/
|
|
151
|
-
"src/components/
|
|
152
|
-
"src/components/
|
|
153
|
-
"src/components/
|
|
154
|
-
"src/components/
|
|
155
|
-
"src/components/
|
|
156
|
-
"src/components/
|
|
157
|
-
"src/components/
|
|
158
|
-
"src/components/
|
|
159
|
-
"src/components/
|
|
160
|
-
"src/components/
|
|
161
|
-
"src/components/
|
|
162
|
-
"src/components/
|
|
163
|
-
"src/components/
|
|
164
|
-
"src/components/
|
|
165
|
-
"src/components/
|
|
166
|
-
"src/components/
|
|
167
|
-
"src/components/
|
|
168
|
-
"src/components/
|
|
169
|
-
"src/components/
|
|
170
|
-
"src/components/
|
|
171
|
-
"src/components/
|
|
172
|
-
"src/components/
|
|
173
|
-
"src/components/
|
|
174
|
-
"src/components/
|
|
175
|
-
"src/components/
|
|
176
|
-
"src/components/
|
|
177
|
-
"src/components/
|
|
178
|
-
"src/components/
|
|
179
|
-
"src/components/
|
|
180
|
-
"src/components/
|
|
181
|
-
"src/components/
|
|
182
|
-
"src/components/
|
|
183
|
-
"src/components/
|
|
184
|
-
"src/components/
|
|
185
|
-
"src/components/
|
|
186
|
-
"src/components/
|
|
187
|
-
"src/components/
|
|
188
|
-
"src/components/
|
|
189
|
-
"src/components/
|
|
190
|
-
"src/components/
|
|
191
|
-
"src/components/
|
|
192
|
-
"src/components/
|
|
193
|
-
"src/components/
|
|
194
|
-
"src/
|
|
195
|
-
"src/
|
|
196
|
-
"src/
|
|
197
|
-
"src/
|
|
198
|
-
"src/
|
|
199
|
-
"src/
|
|
200
|
-
"src/
|
|
201
|
-
"src/
|
|
202
|
-
"src/
|
|
203
|
-
"src/
|
|
204
|
-
"src/
|
|
205
|
-
"src/
|
|
206
|
-
"src/
|
|
207
|
-
"src/
|
|
208
|
-
"src/
|
|
209
|
-
"src/
|
|
210
|
-
"src/
|
|
211
|
-
"src/
|
|
212
|
-
"src/
|
|
213
|
-
"src/
|
|
214
|
-
"src/
|
|
215
|
-
"src/
|
|
216
|
-
"src/
|
|
217
|
-
"src/
|
|
218
|
-
"src/
|
|
219
|
-
"src/
|
|
220
|
-
"src/
|
|
221
|
-
"src/
|
|
222
|
-
"src/
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "cloud-web-corejs",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.1.0-dev.62",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build:ace-resources": "node build/build-ace-resources.js",
|
|
7
|
+
"build:tinymce-resources": "node build/build-tinymce-resources.js",
|
|
8
|
+
"build:luckysheet-resources": "node build/build-luckysheet-resources.js",
|
|
9
|
+
"build:activiti-resources": "node build/build-activiti-resources.js",
|
|
10
|
+
"check:resource-tools": "node --test tests/resources/*.test.js",
|
|
11
|
+
"check:package-size": "node build/check-package-size.js",
|
|
12
|
+
"create:child": "node bin/create-child-app.js",
|
|
13
|
+
"check:child-app": "node build/check-child-app.js",
|
|
14
|
+
"check:child-browser": "node build/check-child-browser.js",
|
|
15
|
+
"dev": "vue-cli-service serve",
|
|
16
|
+
"dev:micro": "vue-cli-service serve --port 17527",
|
|
17
|
+
"check:package-resources": "node build/check-package-resources.js",
|
|
18
|
+
"check:minimal-consumer": "node build/check-minimal-consumer-build.js",
|
|
19
|
+
"lint": "eslint --ext .js,.vue src",
|
|
20
|
+
"lint:haier": "eslint --no-ignore --ext .js,.vue src/views/haier",
|
|
21
|
+
"build:prod": "vue-cli-service build",
|
|
22
|
+
"build:stage": "vue-cli-service build --mode staging",
|
|
23
|
+
"analyze": "vue-cli-service build --report",
|
|
24
|
+
"preview": "node build/index.js --preview",
|
|
25
|
+
"new": "plop",
|
|
26
|
+
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
|
|
27
|
+
"test:unit": "jest --clearCache && vue-cli-service test:unit",
|
|
28
|
+
"test:haier": "jest --runInBand --testPathPattern=haier",
|
|
29
|
+
"haier:capabilities": "node build/haier-migration-capabilities.js",
|
|
30
|
+
"check:haier-capabilities": "node tests/haier-migration/capabilities.test.js",
|
|
31
|
+
"test:ci": "npm run check:resource-tools && npm run check:package-resources && npm run check:package-size && npm run check:minimal-consumer && npm run lint && npm run lint:haier && npm run test:unit",
|
|
32
|
+
"updateCorejs": "npm install cloud-web-corejs --registry https://registry.npmjs.org",
|
|
33
|
+
"publishDev": "npm publish --tag dev"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@claviska/jquery-minicolors": "2.3.6",
|
|
37
|
+
"@codemirror/lang-javascript": "^6.1.9",
|
|
38
|
+
"@codemirror/state": "^6.5.4",
|
|
39
|
+
"@codemirror/view": "^6.39.13",
|
|
40
|
+
"@formulajs/formulajs": "^4.3.1",
|
|
41
|
+
"@vue/composition-api": "1.0.5",
|
|
42
|
+
"ace-builds": "1.11.0",
|
|
43
|
+
"axios": "0.18.1",
|
|
44
|
+
"canvg": "3.0.10",
|
|
45
|
+
"clipboard": "2.0.8",
|
|
46
|
+
"codemirror": "^6.0.1",
|
|
47
|
+
"concurrent-tasks": "1.0.7",
|
|
48
|
+
"core-js": "^3.8.3",
|
|
49
|
+
"crypto-js": "^4.2.0",
|
|
50
|
+
"dhtmlx-gantt": "^9.1.1",
|
|
51
|
+
"dompurify": "^3.3.1",
|
|
52
|
+
"echarts": "5.1.2",
|
|
53
|
+
"element-ui": "^2.15.14",
|
|
54
|
+
"esdk-obs-browserjs": "^3.25.6",
|
|
55
|
+
"exceljs": "^4.4.0",
|
|
56
|
+
"file-saver": "2.0.5",
|
|
57
|
+
"html2canvas": "^1.4.1",
|
|
58
|
+
"jquery": "3.6.0",
|
|
59
|
+
"js-base64": "^3.7.7",
|
|
60
|
+
"js-cookie": "2.2.0",
|
|
61
|
+
"jsbarcode": "3.11.5",
|
|
62
|
+
"jspdf": "^3.0.1",
|
|
63
|
+
"jsqr": "^1.4.0",
|
|
64
|
+
"lodash": "4.17.21",
|
|
65
|
+
"luckyexcel": "^1.0.1",
|
|
66
|
+
"moment": "2.29.4",
|
|
67
|
+
"normalize.css": "7.0.0",
|
|
68
|
+
"nprogress": "0.2.0",
|
|
69
|
+
"nzh": "1.0.8",
|
|
70
|
+
"qiankun": "^2.10.16",
|
|
71
|
+
"qrcode": "^1.5.1",
|
|
72
|
+
"qs": "6.10.3",
|
|
73
|
+
"socket.io-client": "4.5.1",
|
|
74
|
+
"sortablejs": "^1.8.4",
|
|
75
|
+
"spark-md5": "^3.0.1",
|
|
76
|
+
"swiper": "4.0.7",
|
|
77
|
+
"vue": "2.6.12",
|
|
78
|
+
"vue-echarts": "6.0.0",
|
|
79
|
+
"vue-i18n": "^8.22.2",
|
|
80
|
+
"vue-ls": "^4.2.0",
|
|
81
|
+
"vue-router": "3.0.2",
|
|
82
|
+
"vuedraggable": "2.24.3",
|
|
83
|
+
"vuex": "3.1.0",
|
|
84
|
+
"vxe-table": "3.5.9",
|
|
85
|
+
"xe-utils": "3.5.2",
|
|
86
|
+
"xlsx": "^0.14.1"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@babel/core": "^7.12.16",
|
|
90
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
91
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
92
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
93
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
94
|
+
"@vue/cli-plugin-unit-jest": "~5.0.9",
|
|
95
|
+
"@vue/cli-service": "~5.0.0",
|
|
96
|
+
"@vue/test-utils": "^1.3.6",
|
|
97
|
+
"@vue/vue2-jest": "^27.0.0",
|
|
98
|
+
"autoprefixer": "9.5.1",
|
|
99
|
+
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
100
|
+
"chalk": "2.4.2",
|
|
101
|
+
"compression-webpack-plugin": "5.0.2",
|
|
102
|
+
"connect": "3.6.6",
|
|
103
|
+
"eslint": "^7.32.0",
|
|
104
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
105
|
+
"html-webpack-plugin": "~5.0.0",
|
|
106
|
+
"husky": "1.3.1",
|
|
107
|
+
"lint-staged": "8.1.5",
|
|
108
|
+
"node-polyfill-webpack-plugin": "^4.0.0",
|
|
109
|
+
"plop": "2.3.0",
|
|
110
|
+
"postcss": "^8.2.8",
|
|
111
|
+
"postcss-loader": "^4.0.4",
|
|
112
|
+
"runjs": "4.4.2",
|
|
113
|
+
"sass": "^1.32.7",
|
|
114
|
+
"sass-loader": "^12.0.0",
|
|
115
|
+
"serve-static": "1.13.2",
|
|
116
|
+
"speed-measure-webpack-plugin": "^1.5.0",
|
|
117
|
+
"svg-sprite-loader": "^6.0.11",
|
|
118
|
+
"svgo": "1.2.0",
|
|
119
|
+
"vue-template-compiler": "2.6.12",
|
|
120
|
+
"webpack-bundle-analyzer": "^4.9.1"
|
|
121
|
+
},
|
|
122
|
+
"eslintConfig": {
|
|
123
|
+
"root": true,
|
|
124
|
+
"env": {
|
|
125
|
+
"node": true
|
|
126
|
+
},
|
|
127
|
+
"extends": [
|
|
128
|
+
"plugin:vue/essential",
|
|
129
|
+
"eslint:recommended"
|
|
130
|
+
],
|
|
131
|
+
"parserOptions": {
|
|
132
|
+
"parser": "@babel/eslint-parser"
|
|
133
|
+
},
|
|
134
|
+
"rules": {}
|
|
135
|
+
},
|
|
136
|
+
"engines": {
|
|
137
|
+
"node": ">=8.9",
|
|
138
|
+
"npm": ">= 3.0.0"
|
|
139
|
+
},
|
|
140
|
+
"files": [
|
|
141
|
+
"bin/core-resources.js",
|
|
142
|
+
"resource-tools",
|
|
143
|
+
"bin/create-child-app.js",
|
|
144
|
+
"templates/child-app",
|
|
145
|
+
"docs/child-app",
|
|
146
|
+
"docs/qiankun接入协议.md",
|
|
147
|
+
"docs/qiankun详情承载子应用对接清单.md",
|
|
148
|
+
"src/components/advancedSearchDialog",
|
|
149
|
+
"src/components/baseAlert",
|
|
150
|
+
"src/components/baseAttachment",
|
|
151
|
+
"src/components/baseArea",
|
|
152
|
+
"src/components/baseInputBatch",
|
|
153
|
+
"src/components/baseInputExport",
|
|
154
|
+
"src/components/baseInputNumber",
|
|
155
|
+
"src/components/baseInputPrint",
|
|
156
|
+
"src/components/baseTabs",
|
|
157
|
+
"src/components/base-textarea",
|
|
158
|
+
"src/components/cnPrint",
|
|
159
|
+
"src/components/code-editor",
|
|
160
|
+
"src/components/confirmDialog",
|
|
161
|
+
"src/components/errorMsg",
|
|
162
|
+
"src/components/excelExport",
|
|
163
|
+
"src/components/excelImport",
|
|
164
|
+
"src/components/extendedProperties",
|
|
165
|
+
"src/components/fileLibrary",
|
|
166
|
+
"src/components/formOplog",
|
|
167
|
+
"src/components/hiprint",
|
|
168
|
+
"src/components/jdPrint",
|
|
169
|
+
"src/components/jsonImport",
|
|
170
|
+
"src/components/langImport",
|
|
171
|
+
"src/components/micro-view-host",
|
|
172
|
+
"src/components/mobile",
|
|
173
|
+
"src/components/onlineTalk",
|
|
174
|
+
"src/components/oplogTable",
|
|
175
|
+
"src/components/pddPrint",
|
|
176
|
+
"src/components/projectTag",
|
|
177
|
+
"src/components/Qrcode",
|
|
178
|
+
"src/components/scriptDescription",
|
|
179
|
+
"src/components/scriptTest",
|
|
180
|
+
"src/components/statusTag",
|
|
181
|
+
"src/components/SvgIcon",
|
|
182
|
+
"src/components/table",
|
|
183
|
+
"src/components/tempStorage",
|
|
184
|
+
"src/components/Tinymce",
|
|
185
|
+
"src/components/luckysheet",
|
|
186
|
+
"src/components/obsUpload",
|
|
187
|
+
"src/components/VabUpload",
|
|
188
|
+
"src/components/vb-tabs",
|
|
189
|
+
"src/components/video",
|
|
190
|
+
"src/components/vipPrint",
|
|
191
|
+
"src/components/wf",
|
|
192
|
+
"src/components/xform",
|
|
193
|
+
"src/components/xhsPrint",
|
|
194
|
+
"src/components/langTag",
|
|
195
|
+
"src/components/formDialog",
|
|
196
|
+
"src/components/formDrawer",
|
|
197
|
+
"src/components/bizTab",
|
|
198
|
+
"src/api",
|
|
199
|
+
"src/views/bd",
|
|
200
|
+
"src/views/support",
|
|
201
|
+
"src/views/user",
|
|
202
|
+
"src/views/mobile/user",
|
|
203
|
+
"src/utils",
|
|
204
|
+
"src/mixins",
|
|
205
|
+
"src/directive",
|
|
206
|
+
"src/store",
|
|
207
|
+
"src/core-resources",
|
|
208
|
+
"src/styles",
|
|
209
|
+
"src/icons",
|
|
210
|
+
"src/lang/index.js",
|
|
211
|
+
"src/lang/locale/en/login.js",
|
|
212
|
+
"src/lang/locale/zh/login.js",
|
|
213
|
+
"src/layout",
|
|
214
|
+
"src/filters",
|
|
215
|
+
"src/router",
|
|
216
|
+
"src/permission.js",
|
|
217
|
+
"src/index.js",
|
|
218
|
+
"src/index.next.js",
|
|
219
|
+
"src/index.sync.js",
|
|
220
|
+
"src/boot-assets.legacy.js",
|
|
221
|
+
"src/boot-assets.next.js",
|
|
222
|
+
"src/app-bootstrap.js",
|
|
223
|
+
"src/app-bootstrap.sync.js",
|
|
224
|
+
"src/public-path.js",
|
|
225
|
+
"src/microRouter",
|
|
226
|
+
"src/App.vue"
|
|
227
|
+
],
|
|
228
|
+
"publishConfig": {
|
|
229
|
+
"access": "public",
|
|
230
|
+
"registry": "https://registry.npmjs.org/"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -1,88 +1,160 @@
|
|
|
1
|
-
export const constantRoutes = [
|
|
2
|
-
/*{
|
|
3
|
-
// 呼叫中心(CC)专用入口:只带 appid/appkey/account/callNo,
|
|
4
|
-
// 先换取 tp 再 replace 到 /form_outLinkView
|
|
5
|
-
path: "/cc_form_outLinkView",
|
|
6
|
-
component: () => import("@base/views/user/outLink/cc_form_view"),
|
|
7
|
-
meta: {
|
|
8
|
-
checkToken: false,
|
|
9
|
-
},
|
|
10
|
-
hidden: true,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
path: "",
|
|
14
|
-
component: () => import("@/layout/index"),
|
|
15
|
-
children: [
|
|
16
|
-
{
|
|
17
|
-
path: "/basic/wf/wf_manage/list2",
|
|
18
|
-
component: () => import("@base/views/user/wf/wf_manage/list2"),
|
|
19
|
-
name: "wf_manage:list2",
|
|
20
|
-
meta: {
|
|
21
|
-
title: "流程待办",
|
|
22
|
-
icon: "dashboard",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
// bizTab 示例 A:手写接口版(前端 mock,无流程,不吃后台前置条件)
|
|
27
|
-
path: "/demo/bizTab/simple",
|
|
28
|
-
component: () => import("@base/views/demo/bizTab/simple/list"),
|
|
29
|
-
name: "demoBizTabSimple",
|
|
30
|
-
meta: {
|
|
31
|
-
title: "bizTab 示例(手写接口)",
|
|
32
|
-
icon: "dashboard",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
// bizTab 示例 B:formCode + 通用 bd_api(照 stdxx 的产品变更申请页)
|
|
37
|
-
path: "/demo/bizTab/bill",
|
|
38
|
-
component: () => import("@base/views/demo/bizTab/bill/list"),
|
|
39
|
-
name: "demoBizTabBill",
|
|
40
|
-
meta: {
|
|
41
|
-
title: "bizTab 示例(formCode+流程)",
|
|
42
|
-
icon: "dashboard",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
// bizTab 示例 C:自定义控制器 + 流程(照 std / 本仓库 pmd/price/ladderPrice 页)
|
|
47
|
-
path: "/demo/bizTab/wf",
|
|
48
|
-
component: () => import("@base/views/demo/bizTab/wf/list"),
|
|
49
|
-
name: "demoBizTabWf",
|
|
50
|
-
meta: {
|
|
51
|
-
title: "bizTab 示例(自定义接口+流程)",
|
|
52
|
-
icon: "dashboard",
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
// bizTab 示例 D:独立模式(不在页签里,待办直开走的路径),复用示例 C 的详情
|
|
57
|
-
path: "/demo/bizTab/standalone",
|
|
58
|
-
component: () => import("@base/views/demo/bizTab/standalone/index.vue"),
|
|
59
|
-
name: "demoBizTabStandalone",
|
|
60
|
-
meta: {
|
|
61
|
-
title: "bizTab 示例(独立模式)",
|
|
62
|
-
icon: "dashboard",
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
path: "/support/form-dialog-demo",
|
|
67
|
-
component: () => import("@/views/support/form-dialog-demo/index.vue"),
|
|
68
|
-
name: "formDialogDemo",
|
|
69
|
-
meta: {
|
|
70
|
-
title: "formDialog 示例",
|
|
71
|
-
icon: "dashboard",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},*/
|
|
76
|
-
{
|
|
77
|
-
path: "",
|
|
78
|
-
component: () => import("@/layout/index"),
|
|
79
|
-
children: [
|
|
80
|
-
|
|
81
|
-
path: "/haier/system/salesman/list",
|
|
82
|
-
component: () => import("@/views/haier/system/salesman/list.vue"),
|
|
83
|
-
name: "haierSalesmanPilot",
|
|
84
|
-
meta: { title: "业务员", icon: "user" },
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
export const constantRoutes = [
|
|
2
|
+
/*{
|
|
3
|
+
// 呼叫中心(CC)专用入口:只带 appid/appkey/account/callNo,
|
|
4
|
+
// 先换取 tp 再 replace 到 /form_outLinkView
|
|
5
|
+
path: "/cc_form_outLinkView",
|
|
6
|
+
component: () => import("@base/views/user/outLink/cc_form_view"),
|
|
7
|
+
meta: {
|
|
8
|
+
checkToken: false,
|
|
9
|
+
},
|
|
10
|
+
hidden: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
path: "",
|
|
14
|
+
component: () => import("@/layout/index"),
|
|
15
|
+
children: [
|
|
16
|
+
{
|
|
17
|
+
path: "/basic/wf/wf_manage/list2",
|
|
18
|
+
component: () => import("@base/views/user/wf/wf_manage/list2"),
|
|
19
|
+
name: "wf_manage:list2",
|
|
20
|
+
meta: {
|
|
21
|
+
title: "流程待办",
|
|
22
|
+
icon: "dashboard",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
// bizTab 示例 A:手写接口版(前端 mock,无流程,不吃后台前置条件)
|
|
27
|
+
path: "/demo/bizTab/simple",
|
|
28
|
+
component: () => import("@base/views/demo/bizTab/simple/list"),
|
|
29
|
+
name: "demoBizTabSimple",
|
|
30
|
+
meta: {
|
|
31
|
+
title: "bizTab 示例(手写接口)",
|
|
32
|
+
icon: "dashboard",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
// bizTab 示例 B:formCode + 通用 bd_api(照 stdxx 的产品变更申请页)
|
|
37
|
+
path: "/demo/bizTab/bill",
|
|
38
|
+
component: () => import("@base/views/demo/bizTab/bill/list"),
|
|
39
|
+
name: "demoBizTabBill",
|
|
40
|
+
meta: {
|
|
41
|
+
title: "bizTab 示例(formCode+流程)",
|
|
42
|
+
icon: "dashboard",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
// bizTab 示例 C:自定义控制器 + 流程(照 std / 本仓库 pmd/price/ladderPrice 页)
|
|
47
|
+
path: "/demo/bizTab/wf",
|
|
48
|
+
component: () => import("@base/views/demo/bizTab/wf/list"),
|
|
49
|
+
name: "demoBizTabWf",
|
|
50
|
+
meta: {
|
|
51
|
+
title: "bizTab 示例(自定义接口+流程)",
|
|
52
|
+
icon: "dashboard",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
// bizTab 示例 D:独立模式(不在页签里,待办直开走的路径),复用示例 C 的详情
|
|
57
|
+
path: "/demo/bizTab/standalone",
|
|
58
|
+
component: () => import("@base/views/demo/bizTab/standalone/index.vue"),
|
|
59
|
+
name: "demoBizTabStandalone",
|
|
60
|
+
meta: {
|
|
61
|
+
title: "bizTab 示例(独立模式)",
|
|
62
|
+
icon: "dashboard",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
path: "/support/form-dialog-demo",
|
|
67
|
+
component: () => import("@/views/support/form-dialog-demo/index.vue"),
|
|
68
|
+
name: "formDialogDemo",
|
|
69
|
+
meta: {
|
|
70
|
+
title: "formDialog 示例",
|
|
71
|
+
icon: "dashboard",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},*/
|
|
76
|
+
...(process.env.NODE_ENV === "development" ? [{
|
|
77
|
+
path: "",
|
|
78
|
+
component: () => import("@/layout/index"),
|
|
79
|
+
children: [
|
|
80
|
+
{
|
|
81
|
+
path: "/haier/system/salesman/list",
|
|
82
|
+
component: () => import("@/views/haier/system/salesman/list.vue"),
|
|
83
|
+
name: "haierSalesmanPilot",
|
|
84
|
+
meta: { title: "业务员", icon: "user" },
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
path: "/haier/base/currency/list",
|
|
88
|
+
component: () => import("@/views/haier/base/currency/list.vue"),
|
|
89
|
+
name: "haierCurrencyPilot",
|
|
90
|
+
meta: { title: "币种", icon: "user" },
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
path: "/haier/system/user-industry/list",
|
|
94
|
+
component: () => import("@/views/haier/system/user-industry/list.vue"),
|
|
95
|
+
name: "haierUserIndustryPilot",
|
|
96
|
+
meta: { title: "用户产业", icon: "user" },
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
path: "/haier/system/user-app-operation-log/list",
|
|
100
|
+
component: () => import("@/views/haier/system/user-app-operation-log/list.vue"),
|
|
101
|
+
name: "haierUserAppOperationLogPilot",
|
|
102
|
+
meta: { title: "用户APP操作记录", icon: "user" },
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
path: "/haier/system/user-category/list",
|
|
106
|
+
component: () => import("@/views/haier/system/user-category/list.vue"),
|
|
107
|
+
name: "haierUserCategoryPilot",
|
|
108
|
+
meta: { title: "用户分类", icon: "user" },
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "/haier/base/cabinet-type/list",
|
|
112
|
+
component: () => import("@/views/haier/base/cabinet-type/list.vue"),
|
|
113
|
+
name: "haierCabinetTypePilot",
|
|
114
|
+
meta: { title: "柜型", icon: "user" },
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "/haier/base/bank-rate/list",
|
|
118
|
+
component: () => import("@/views/haier/base/bank-rate/list.vue"),
|
|
119
|
+
name: "haierBankRatePilot",
|
|
120
|
+
meta: { title: "银行利率", icon: "user" },
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: "/haier/base/credit-premium-rate/list",
|
|
124
|
+
component: () => import("@/views/haier/base/credit-premium-rate/list.vue"),
|
|
125
|
+
name: "haierCreditPremiumRatePilot",
|
|
126
|
+
meta: { title: "信保费率", icon: "user" },
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
path: "/haier/base/company/list",
|
|
130
|
+
component: () => import("@/views/haier/base/company/list.vue"),
|
|
131
|
+
name: "haierCompanyPilot",
|
|
132
|
+
meta: { title: "公司", icon: "user" },
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
path: "/haier/base/payment-term/list",
|
|
136
|
+
component: () => import("@/views/haier/base/payment-term/list.vue"),
|
|
137
|
+
name: "haierPaymentTermPilot",
|
|
138
|
+
meta: { title: "付款条件", icon: "user" },
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
path: "/haier/base/country/list",
|
|
142
|
+
component: () => import("@/views/haier/base/country/list.vue"),
|
|
143
|
+
name: "haierCountryPilot",
|
|
144
|
+
meta: { title: "国家/地区", icon: "user" },
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
path: "/haier/product/category/list",
|
|
148
|
+
component: () => import("@/views/haier/product/category/list.vue"),
|
|
149
|
+
name: "haierCategoryPilot",
|
|
150
|
+
meta: { title: "产品分类", icon: "user" },
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
path: "/haier/product/series/list",
|
|
154
|
+
component: () => import("@/views/haier/product/series/list.vue"),
|
|
155
|
+
name: "haierSeriesPilot",
|
|
156
|
+
meta: { title: "产品系列", icon: "user" },
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
}] : []),
|
|
160
|
+
];
|
package/src/utils/request.js
CHANGED
|
@@ -35,6 +35,37 @@ service = axios.create({
|
|
|
35
35
|
//timeout: 5000 // request timeout
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
+
function isBinaryRequestBody(data) {
|
|
39
|
+
if (typeof FormData !== "undefined" && data instanceof FormData) return true;
|
|
40
|
+
if (typeof Blob !== "undefined" && data instanceof Blob) return true;
|
|
41
|
+
if (typeof ArrayBuffer !== "undefined" && data instanceof ArrayBuffer) return true;
|
|
42
|
+
return typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView(data);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 调用方已经 stringify 成对象或数组文本时直接加密,避免再包一层字符串。
|
|
46
|
+
function aesPlainText(data, useEmptyObject) {
|
|
47
|
+
if (typeof data === "string") {
|
|
48
|
+
try {
|
|
49
|
+
const parsed = JSON.parse(data);
|
|
50
|
+
if (parsed !== null && typeof parsed === "object") {
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
} catch (e) {
|
|
54
|
+
// 普通字符串继续序列化
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (data === undefined && useEmptyObject) {
|
|
58
|
+
return JSON.stringify({});
|
|
59
|
+
}
|
|
60
|
+
return JSON.stringify(data);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function wrapAesBody(data, useEmptyObject) {
|
|
64
|
+
return {
|
|
65
|
+
_aeenboda: encrypt(aesPlainText(data, useEmptyObject)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
38
69
|
// request interceptor
|
|
39
70
|
service.interceptors.request.use(
|
|
40
71
|
(config) => {
|
|
@@ -57,7 +88,11 @@ service.interceptors.request.use(
|
|
|
57
88
|
config.filterConfig
|
|
58
89
|
);
|
|
59
90
|
}
|
|
60
|
-
|
|
91
|
+
const canEncryptBody = !isBinaryRequestBody(config.data);
|
|
92
|
+
if (settingConfig.requestAesEnabled === true && canEncryptBody) {
|
|
93
|
+
config.data = wrapAesBody(config.data, true);
|
|
94
|
+
config.headers["Content-Type"] = "application/json;charset=UTF-8";
|
|
95
|
+
} else if (
|
|
61
96
|
(config.headers["Content-Type"] === "application/x-www-form-urlencoded" ||
|
|
62
97
|
config.headers["Content-Type"] ===
|
|
63
98
|
"application/x-www-form-urlencoded;charset=UTF-8") &&
|
|
@@ -66,13 +101,14 @@ service.interceptors.request.use(
|
|
|
66
101
|
) {
|
|
67
102
|
config.data = qs.stringify(config.data);
|
|
68
103
|
} else if (
|
|
104
|
+
canEncryptBody &&
|
|
69
105
|
settingConfig.base64Urls &&
|
|
70
106
|
settingConfig.base64Urls.includes(config.url)
|
|
71
107
|
) {
|
|
72
108
|
// config.data = {"_baenboda": encode(JSON.stringify(config.data))};
|
|
73
|
-
config.data =
|
|
74
|
-
} else if (config.aes) {
|
|
75
|
-
config.data =
|
|
109
|
+
config.data = wrapAesBody(config.data);
|
|
110
|
+
} else if (canEncryptBody && config.aes) {
|
|
111
|
+
config.data = wrapAesBody(config.data);
|
|
76
112
|
}
|
|
77
113
|
|
|
78
114
|
if (config.modal !== false && config.loadingTarget) {
|
|
@@ -13,7 +13,8 @@ module.exports = {
|
|
|
13
13
|
defaultHomePage: "/demo/list.vue",
|
|
14
14
|
privateProfileCode: "private_profile",
|
|
15
15
|
uploadFileSize: 200,
|
|
16
|
-
|
|
16
|
+
requestAesEnabled: false, //全局请求体 AES 加密开关,默认关闭
|
|
17
|
+
base64Urls: [
|
|
17
18
|
"/user/common_script/save", "/user/common_script/update",
|
|
18
19
|
"/user/api_request/save", "/user/api_request/update",
|
|
19
20
|
"/user/export_template/save", "/user/export_template/update",
|