cloud-web-corejs 1.0.54-dev.744 → 1.0.54-dev.746

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 (53) hide show
  1. package/package.json +192 -192
  2. package/src/App.vue +73 -71
  3. package/src/components/baseArea/index.vue +1628 -1628
  4. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
  5. package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
  6. package/src/components/fileLibrary/index.vue +1109 -1110
  7. package/src/components/fileLibrary/propertiesDialog.vue +190 -190
  8. package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
  9. package/src/components/wf/mixins/setCandidateDialog.js +217 -217
  10. package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
  11. package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
  12. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
  13. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +408 -0
  14. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
  15. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
  16. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
  17. package/src/components/xform/form-designer/index.vue +195 -195
  18. package/src/components/xform/form-designer/indexMixin.js +848 -848
  19. package/src/components/xform/form-designer/setting-panel/index.vue +313 -314
  20. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
  21. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
  22. package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
  23. package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
  24. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
  25. package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
  26. package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
  27. package/src/components/xform/form-render/indexMixin.js +5061 -5078
  28. package/src/components/xform/lang/en-US.js +457 -457
  29. package/src/components/xform/lang/zh-CN.js +628 -628
  30. package/src/components/xform/utils/formHttp.js +162 -0
  31. package/src/components/xform/utils/util.js +1585 -1554
  32. package/src/index.js +344 -230
  33. package/src/layout/components/AppMain.vue +122 -122
  34. package/src/layout/components/extractedCode/viewDialog.vue +207 -207
  35. package/src/layout/components/langTool.vue +128 -123
  36. package/src/layout/defaultLayout.vue +164 -158
  37. package/src/permission.js +185 -135
  38. package/src/store/config/index.js +667 -669
  39. package/src/store/modules/micro.js +46 -0
  40. package/src/store/modules/permission.js +461 -373
  41. package/src/store/modules/user.js +419 -415
  42. package/src/utils/auth.js +27 -1
  43. package/src/utils/index.js +579 -6
  44. package/src/utils/keepAlive.js +4 -0
  45. package/src/utils/menuAdapter.js +183 -0
  46. package/src/utils/request.js +417 -28
  47. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -491
  48. package/src/views/bd/setting/form_script/form_list.vue +174 -174
  49. package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
  50. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
  51. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
  52. package/src/views/user/menuFallback/index.vue +123 -0
  53. package/src/views/user/wf/wfReport/index.vue +625 -619
package/package.json CHANGED
@@ -1,192 +1,192 @@
1
- {
2
- "name": "cloud-web-corejs",
3
- "private": false,
4
- "version": "1.0.54-dev.744",
5
- "scripts": {
6
- "dev": "vue-cli-service serve",
7
- "lint": "eslint --ext .js,.vue src",
8
- "build:prod": "vue-cli-service build",
9
- "build:stage": "vue-cli-service build --mode staging",
10
- "preview": "node build/index.js --preview",
11
- "new": "plop",
12
- "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
13
- "test:unit": "jest --clearCache && vue-cli-service test:unit",
14
- "test:ci": "npm run lint && npm run test:unit",
15
- "updateCorejs": "npm install cloud-web-corejs --registry https://registry.npmjs.org",
16
- "publishDev": "npm publish --tag dev"
17
- },
18
- "dependencies": {
19
- "@codemirror/lang-javascript": "^6.1.9",
20
- "@formulajs/formulajs": "^4.3.1",
21
- "@vue/preload-webpack-plugin": "^2.0.0",
22
- "axios": "0.18.1",
23
- "codemirror": "^6.0.1",
24
- "concurrent-tasks": "1.0.7",
25
- "copy-webpack-plugin": "5.1.2",
26
- "core-js": "^3.8.3",
27
- "dhtmlx-gantt": "^9.1.1",
28
- "dompurify": "^3.3.1",
29
- "element-ui": "^2.15.14",
30
- "esdk-obs-browserjs": "^3.25.6",
31
- "exceljs": "^4.4.0",
32
- "FileSaver": "^0.10.0",
33
- "html2canvas": "^1.4.1",
34
- "js-base64": "^3.7.7",
35
- "js-cookie": "2.2.0",
36
- "jspdf": "^3.0.1",
37
- "jsqr": "^1.4.0",
38
- "lodash": "4.17.21",
39
- "luckyexcel": "^1.0.1",
40
- "moment": "2.29.4",
41
- "node-polyfill-webpack-plugin": "^4.0.0",
42
- "normalize.css": "7.0.0",
43
- "nprogress": "0.2.0",
44
- "qiankun": "^2.10.16",
45
- "qrcode": "^1.5.1",
46
- "qs": "6.10.3",
47
- "sortablejs": "^1.8.4",
48
- "spark-md5": "^3.0.1",
49
- "swiper": "4.0.7",
50
- "vue": "2.6.12",
51
- "vue-i18n": "^8.22.2",
52
- "vue-ls": "^4.2.0",
53
- "vue-router": "3.0.2",
54
- "vuex": "3.1.0",
55
- "vxe-table": "3.5.9",
56
- "xlsx": "^0.14.1"
57
- },
58
- "devDependencies": {
59
- "@babel/core": "^7.12.16",
60
- "@babel/eslint-parser": "^7.12.16",
61
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
62
- "@claviska/jquery-minicolors": "2.3.6",
63
- "@vue/cli-plugin-babel": "~5.0.0",
64
- "@vue/cli-plugin-eslint": "~5.0.0",
65
- "@vue/cli-service": "~5.0.0",
66
- "@vue/composition-api": "1.0.5",
67
- "ace-builds": "1.11.0",
68
- "autoprefixer": "9.5.1",
69
- "babel-plugin-dynamic-import-node": "2.3.3",
70
- "canvg": "3.0.10",
71
- "chalk": "2.4.2",
72
- "clipboard": "2.0.8",
73
- "compression-webpack-plugin": "5.0.2",
74
- "connect": "3.6.6",
75
- "crypto-js": "^4.2.0",
76
- "echarts": "5.1.2",
77
- "eslint": "^7.32.0",
78
- "eslint-plugin-vue": "^8.0.3",
79
- "file-saver": "2.0.5",
80
- "html-webpack-plugin": "~5.0.0",
81
- "husky": "1.3.1",
82
- "jquery": "3.6.0",
83
- "jsbarcode": "3.11.5",
84
- "lint-staged": "8.1.5",
85
- "nzh": "1.0.8",
86
- "plop": "2.3.0",
87
- "postcss": "^8.2.8",
88
- "postcss-loader": "^4.0.4",
89
- "runjs": "4.4.2",
90
- "sass": "^1.32.7",
91
- "sass-loader": "^12.0.0",
92
- "serve-static": "1.13.2",
93
- "socket.io-client": "4.5.1",
94
- "speed-measure-webpack-plugin": "^1.5.0",
95
- "svg-sprite-loader": "^6.0.11",
96
- "svgo": "1.2.0",
97
- "vue-echarts": "6.0.0",
98
- "vue-template-compiler": "2.6.12",
99
- "vuedraggable": "2.24.3",
100
- "webpack-bundle-analyzer": "^4.9.1",
101
- "xe-utils": "3.5.2"
102
- },
103
- "eslintConfig": {
104
- "root": true,
105
- "env": {
106
- "node": true
107
- },
108
- "extends": [
109
- "plugin:vue/essential",
110
- "eslint:recommended"
111
- ],
112
- "parserOptions": {
113
- "parser": "@babel/eslint-parser"
114
- },
115
- "rules": {}
116
- },
117
- "engines": {
118
- "node": ">=8.9",
119
- "npm": ">= 3.0.0"
120
- },
121
- "files": [
122
- "src/components/advancedSearchDialog",
123
- "src/components/baseAlert",
124
- "src/components/baseAttachment",
125
- "src/components/baseArea",
126
- "src/components/baseInputBatch",
127
- "src/components/baseInputExport",
128
- "src/components/baseInputNumber",
129
- "src/components/baseInputPrint",
130
- "src/components/baseTabs",
131
- "src/components/base-textarea",
132
- "src/components/cnPrint",
133
- "src/components/code-editor",
134
- "src/components/confirmDialog",
135
- "src/components/errorMsg",
136
- "src/components/excelExport",
137
- "src/components/excelImport",
138
- "src/components/extendedProperties",
139
- "src/components/fileLibrary",
140
- "src/components/formOplog",
141
- "src/components/hiprint",
142
- "src/components/jdPrint",
143
- "src/components/jsonImport",
144
- "src/components/langImport",
145
- "src/components/mobile",
146
- "src/components/onlineTalk",
147
- "src/components/oplogTable",
148
- "src/components/pddPrint",
149
- "src/components/projectTag",
150
- "src/components/Qrcode",
151
- "src/components/scriptDescription",
152
- "src/components/scriptTest",
153
- "src/components/statusTag",
154
- "src/components/SvgIcon",
155
- "src/components/table",
156
- "src/components/tempStorage",
157
- "src/components/Tinymce",
158
- "src/components/luckysheet",
159
- "src/components/obsUpload",
160
- "src/components/VabUpload",
161
- "src/components/vb-tabs",
162
- "src/components/video",
163
- "src/components/vipPrint",
164
- "src/components/wf",
165
- "src/components/xform",
166
- "src/components/xhsPrint",
167
- "src/components/langTag",
168
- "src/api",
169
- "src/views/bd",
170
- "src/views/support",
171
- "src/views/user",
172
- "src/views/mobile/user",
173
- "src/utils",
174
- "src/mixins",
175
- "src/directive",
176
- "src/store",
177
- "src/resources/js",
178
- "src/lang/index.js",
179
- "src/lang/locale/en/login.js",
180
- "src/lang/locale/zh/login.js",
181
- "src/layout",
182
- "src/filters",
183
- "src/router",
184
- "src/permission.js",
185
- "src/index.js",
186
- "src/App.vue"
187
- ],
188
- "publishConfig": {
189
- "access": "public",
190
- "registry": "https://registry.npmjs.org/"
191
- }
192
- }
1
+ {
2
+ "name": "cloud-web-corejs",
3
+ "private": false,
4
+ "version": "1.0.54-dev.746",
5
+ "scripts": {
6
+ "dev": "vue-cli-service serve",
7
+ "lint": "eslint --ext .js,.vue src",
8
+ "build:prod": "vue-cli-service build",
9
+ "build:stage": "vue-cli-service build --mode staging",
10
+ "preview": "node build/index.js --preview",
11
+ "new": "plop",
12
+ "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
13
+ "test:unit": "jest --clearCache && vue-cli-service test:unit",
14
+ "test:ci": "npm run lint && npm run test:unit",
15
+ "updateCorejs": "npm install cloud-web-corejs --registry https://registry.npmjs.org",
16
+ "publishDev": "npm publish --tag dev"
17
+ },
18
+ "dependencies": {
19
+ "@codemirror/lang-javascript": "^6.1.9",
20
+ "@formulajs/formulajs": "^4.3.1",
21
+ "@vue/preload-webpack-plugin": "^2.0.0",
22
+ "axios": "0.18.1",
23
+ "codemirror": "^6.0.1",
24
+ "concurrent-tasks": "1.0.7",
25
+ "copy-webpack-plugin": "5.1.2",
26
+ "core-js": "^3.8.3",
27
+ "dhtmlx-gantt": "^9.1.1",
28
+ "dompurify": "^3.3.1",
29
+ "element-ui": "^2.15.14",
30
+ "esdk-obs-browserjs": "^3.25.6",
31
+ "exceljs": "^4.4.0",
32
+ "FileSaver": "^0.10.0",
33
+ "html2canvas": "^1.4.1",
34
+ "js-base64": "^3.7.7",
35
+ "js-cookie": "2.2.0",
36
+ "jspdf": "^3.0.1",
37
+ "jsqr": "^1.4.0",
38
+ "lodash": "4.17.21",
39
+ "luckyexcel": "^1.0.1",
40
+ "moment": "2.29.4",
41
+ "node-polyfill-webpack-plugin": "^4.0.0",
42
+ "normalize.css": "7.0.0",
43
+ "nprogress": "0.2.0",
44
+ "qiankun": "^2.10.16",
45
+ "qrcode": "^1.5.1",
46
+ "qs": "6.10.3",
47
+ "sortablejs": "^1.8.4",
48
+ "spark-md5": "^3.0.1",
49
+ "swiper": "4.0.7",
50
+ "vue": "2.6.12",
51
+ "vue-i18n": "^8.22.2",
52
+ "vue-ls": "^4.2.0",
53
+ "vue-router": "3.0.2",
54
+ "vuex": "3.1.0",
55
+ "vxe-table": "3.5.9",
56
+ "xlsx": "^0.14.1"
57
+ },
58
+ "devDependencies": {
59
+ "@babel/core": "^7.12.16",
60
+ "@babel/eslint-parser": "^7.12.16",
61
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
62
+ "@claviska/jquery-minicolors": "2.3.6",
63
+ "@vue/cli-plugin-babel": "~5.0.0",
64
+ "@vue/cli-plugin-eslint": "~5.0.0",
65
+ "@vue/cli-service": "~5.0.0",
66
+ "@vue/composition-api": "1.0.5",
67
+ "ace-builds": "1.11.0",
68
+ "autoprefixer": "9.5.1",
69
+ "babel-plugin-dynamic-import-node": "2.3.3",
70
+ "canvg": "3.0.10",
71
+ "chalk": "2.4.2",
72
+ "clipboard": "2.0.8",
73
+ "compression-webpack-plugin": "5.0.2",
74
+ "connect": "3.6.6",
75
+ "crypto-js": "^4.2.0",
76
+ "echarts": "5.1.2",
77
+ "eslint": "^7.32.0",
78
+ "eslint-plugin-vue": "^8.0.3",
79
+ "file-saver": "2.0.5",
80
+ "html-webpack-plugin": "~5.0.0",
81
+ "husky": "1.3.1",
82
+ "jquery": "3.6.0",
83
+ "jsbarcode": "3.11.5",
84
+ "lint-staged": "8.1.5",
85
+ "nzh": "1.0.8",
86
+ "plop": "2.3.0",
87
+ "postcss": "^8.2.8",
88
+ "postcss-loader": "^4.0.4",
89
+ "runjs": "4.4.2",
90
+ "sass": "^1.32.7",
91
+ "sass-loader": "^12.0.0",
92
+ "serve-static": "1.13.2",
93
+ "socket.io-client": "4.5.1",
94
+ "speed-measure-webpack-plugin": "^1.5.0",
95
+ "svg-sprite-loader": "^6.0.11",
96
+ "svgo": "1.2.0",
97
+ "vue-echarts": "6.0.0",
98
+ "vue-template-compiler": "2.6.12",
99
+ "vuedraggable": "2.24.3",
100
+ "webpack-bundle-analyzer": "^4.9.1",
101
+ "xe-utils": "3.5.2"
102
+ },
103
+ "eslintConfig": {
104
+ "root": true,
105
+ "env": {
106
+ "node": true
107
+ },
108
+ "extends": [
109
+ "plugin:vue/essential",
110
+ "eslint:recommended"
111
+ ],
112
+ "parserOptions": {
113
+ "parser": "@babel/eslint-parser"
114
+ },
115
+ "rules": {}
116
+ },
117
+ "engines": {
118
+ "node": ">=8.9",
119
+ "npm": ">= 3.0.0"
120
+ },
121
+ "files": [
122
+ "src/components/advancedSearchDialog",
123
+ "src/components/baseAlert",
124
+ "src/components/baseAttachment",
125
+ "src/components/baseArea",
126
+ "src/components/baseInputBatch",
127
+ "src/components/baseInputExport",
128
+ "src/components/baseInputNumber",
129
+ "src/components/baseInputPrint",
130
+ "src/components/baseTabs",
131
+ "src/components/base-textarea",
132
+ "src/components/cnPrint",
133
+ "src/components/code-editor",
134
+ "src/components/confirmDialog",
135
+ "src/components/errorMsg",
136
+ "src/components/excelExport",
137
+ "src/components/excelImport",
138
+ "src/components/extendedProperties",
139
+ "src/components/fileLibrary",
140
+ "src/components/formOplog",
141
+ "src/components/hiprint",
142
+ "src/components/jdPrint",
143
+ "src/components/jsonImport",
144
+ "src/components/langImport",
145
+ "src/components/mobile",
146
+ "src/components/onlineTalk",
147
+ "src/components/oplogTable",
148
+ "src/components/pddPrint",
149
+ "src/components/projectTag",
150
+ "src/components/Qrcode",
151
+ "src/components/scriptDescription",
152
+ "src/components/scriptTest",
153
+ "src/components/statusTag",
154
+ "src/components/SvgIcon",
155
+ "src/components/table",
156
+ "src/components/tempStorage",
157
+ "src/components/Tinymce",
158
+ "src/components/luckysheet",
159
+ "src/components/obsUpload",
160
+ "src/components/VabUpload",
161
+ "src/components/vb-tabs",
162
+ "src/components/video",
163
+ "src/components/vipPrint",
164
+ "src/components/wf",
165
+ "src/components/xform",
166
+ "src/components/xhsPrint",
167
+ "src/components/langTag",
168
+ "src/api",
169
+ "src/views/bd",
170
+ "src/views/support",
171
+ "src/views/user",
172
+ "src/views/mobile/user",
173
+ "src/utils",
174
+ "src/mixins",
175
+ "src/directive",
176
+ "src/store",
177
+ "src/resources/js",
178
+ "src/lang/index.js",
179
+ "src/lang/locale/en/login.js",
180
+ "src/lang/locale/zh/login.js",
181
+ "src/layout",
182
+ "src/filters",
183
+ "src/router",
184
+ "src/permission.js",
185
+ "src/index.js",
186
+ "src/App.vue"
187
+ ],
188
+ "publishConfig": {
189
+ "access": "public",
190
+ "registry": "https://registry.npmjs.org/"
191
+ }
192
+ }
package/src/App.vue CHANGED
@@ -1,71 +1,73 @@
1
- <template>
2
- <div id="app" :class="{ mobileApp: isMobile }">
3
- <router-view />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import settting from "@/settings.js";
9
-
10
- export default {
11
- name: "App",
12
- data() {
13
- let isMobile = this.getIsMobile();
14
- return {
15
- isMobile: isMobile,
16
- };
17
- },
18
- created() {
19
- if (settting.reflushRouter!== true && process.env.NODE_ENV !== "development") {
20
- window.addEventListener(
21
- "hashchange",
22
- (event) => {
23
- var currentPath = window.location.hash.slice(1).split("?")[0]; // 获取输入的路由
24
- if (
25
- currentPath != "/404" &&
26
- currentPath != "/login" &&
27
- this.$router.path !== currentPath
28
- ) {
29
- this.$store.dispatch("tagsView/delAllViews").then((visitedViews) => {
30
- this.$router.replace({ path: "/redirect" + "/home" });
31
- });
32
- }
33
- },
34
- false
35
- );
36
-
37
- window.addEventListener("beforeunload", async (event) => {
38
- // 如果按下的键是 F5,则执行相应的操作
39
- var currentPath = window.location.hash.slice(1).split("?")[0]; // 获取输入的路由
40
- if (
41
- currentPath != "/home" &&
42
- currentPath != "/" &&
43
- currentPath != "/login" &&
44
- currentPath != "/404"
45
- ) {
46
- sessionStorage.setItem("toHome", "1");
47
- }
48
- });
49
- }
50
-
51
- document.title = settting.title;
52
- },
53
- mounted() {},
54
- methods: {
55
- getIsMobile() {
56
- const userAgent = navigator.userAgent;
57
- const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i;
58
- return mobileRegex.test(userAgent);
59
- },
60
- },
61
- };
62
- </script>
63
- <style>
64
- .inner-dialog .el-dialog__wrapper {
65
- top: 0;
66
- }
67
-
68
- /* #app .el-submenu .el-menu {
69
- height: 500px;
70
- } */
71
- </style>
1
+ <template>
2
+ <div id="app" :class="{ mobileApp: isMobile }">
3
+ <router-view />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import settting from "@/settings.js";
9
+
10
+ export default {
11
+ name: "App",
12
+ data() {
13
+ let isMobile = this.getIsMobile();
14
+ return {
15
+ isMobile: isMobile,
16
+ };
17
+ },
18
+ created() {
19
+ // qiankun 子应用模式跳过:hashchange 事件在真实 window 派发,子应用的处理器会
20
+ // 干扰主应用导航;sessionStorage.toHome 同域共享,子应用写入会污染主应用
21
+ if (settting.reflushRouter!== true && process.env.NODE_ENV !== "development" && !window.__POWERED_BY_QIANKUN__) {
22
+ window.addEventListener(
23
+ "hashchange",
24
+ (event) => {
25
+ var currentPath = window.location.hash.slice(1).split("?")[0]; // 获取输入的路由
26
+ if (
27
+ currentPath != "/404" &&
28
+ currentPath != "/login" &&
29
+ this.$router.path !== currentPath
30
+ ) {
31
+ this.$store.dispatch("tagsView/delAllViews").then((visitedViews) => {
32
+ this.$router.replace({ path: "/redirect" + "/home" });
33
+ });
34
+ }
35
+ },
36
+ false
37
+ );
38
+
39
+ window.addEventListener("beforeunload", async (event) => {
40
+ // 如果按下的键是 F5,则执行相应的操作
41
+ var currentPath = window.location.hash.slice(1).split("?")[0]; // 获取输入的路由
42
+ if (
43
+ currentPath != "/home" &&
44
+ currentPath != "/" &&
45
+ currentPath != "/login" &&
46
+ currentPath != "/404"
47
+ ) {
48
+ sessionStorage.setItem("toHome", "1");
49
+ }
50
+ });
51
+ }
52
+
53
+ document.title = settting.title;
54
+ },
55
+ mounted() {},
56
+ methods: {
57
+ getIsMobile() {
58
+ const userAgent = navigator.userAgent;
59
+ const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i;
60
+ return mobileRegex.test(userAgent);
61
+ },
62
+ },
63
+ };
64
+ </script>
65
+ <style>
66
+ .inner-dialog .el-dialog__wrapper {
67
+ top: 0;
68
+ }
69
+
70
+ /* #app .el-submenu .el-menu {
71
+ height: 500px;
72
+ } */
73
+ </style>