vue2-client 1.19.3 → 1.19.5

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,113 +1,113 @@
1
- {
2
- "name": "vue2-client",
3
- "version": "1.19.3",
4
- "private": false,
5
- "scripts": {
6
- "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
- "serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
8
- "serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
9
- "serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
10
- "serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
11
- "serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
12
- "serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
13
- "serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
14
- "serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
15
- "serve:apply": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode apply",
16
- "mac-serve": "vue-cli-service serve --no-eslint --mode his",
17
- "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
18
- "test:unit": "vue-cli-service test:unit",
19
- "lint": "vue-cli-service lint",
20
- "build:preview": "vue-cli-service build --mode preview",
21
- "lint:nofix": "vue-cli-service lint --no-fix",
22
- "test": "jest"
23
- },
24
- "dependencies": {
25
- "@afwenming123/vue-easy-tree": "^1.0.1",
26
- "@afwenming123/vue-plugin-hiprint": "^0.0.70",
27
- "@amap/amap-jsapi-loader": "^1.0.1",
28
- "@antv/data-set": "^0.11.8",
29
- "@antv/g2plot": "^2.4.31",
30
- "@hufe921/canvas-editor": "^0.9.49",
31
- "@microsoft/fetch-event-source": "^2.0.1",
32
- "@vue/babel-preset-jsx": "^1.4.0",
33
- "animate.css": "^4.1.1",
34
- "ant-design-vue": "^1.7.8",
35
- "axios": "^0.27.2",
36
- "clipboard": "^2.0.11",
37
- "core-js": "^3.33.0",
38
- "crypto-js": "^4.1.1",
39
- "date-fns": "^2.29.3",
40
- "default-passive-events": "^2.0.0",
41
- "dotenv": "^16.3.1",
42
- "echarts": "^5.5.0",
43
- "enquire.js": "^2.1.6",
44
- "file-saver": "^2.0.5",
45
- "highlight.js": "^11.7.0",
46
- "html2canvas": "^1.4.1",
47
- "js-base64": "^3.7.5",
48
- "js-cookie": "^2.2.1",
49
- "jsencrypt": "^3.3.2",
50
- "jspdf": "^2.5.1",
51
- "lodash.clonedeep": "^4.5.0",
52
- "lodash.debounce": "^4",
53
- "lodash.get": "^4.4.2",
54
- "marked": "^4",
55
- "mockjs": "^1.1.0",
56
- "nprogress": "^0.2.0",
57
- "qs": "^6.11.2",
58
- "regenerator-runtime": "^0.14.0",
59
- "splitpanes": "^2.4.1",
60
- "videojs-contrib-hls": "^5.15.0",
61
- "viser-vue": "^2.4.8",
62
- "vue": "^2.7.14",
63
- "vue-codemirror": "4.0.6",
64
- "vue-color": "2.7.0",
65
- "vue-draggable-resizable": "^2.3.0",
66
- "vue-i18n": "^8.28.2",
67
- "vue-json-viewer": "^2.2.22",
68
- "vue-router": "^3.6.5",
69
- "vue-video-player": "^5.0.2",
70
- "vue-virtual-scroller": "^1.1.2",
71
- "vuedraggable": "^2.24.3",
72
- "vuex": "^3.6.2",
73
- "xlsx": "0.18.5"
74
- },
75
- "devDependencies": {
76
- "@ant-design/colors": "^7.0.0",
77
- "@babel/core": "^7.22.20",
78
- "@babel/eslint-parser": "^7.22.15",
79
- "@babel/preset-env": "^7.22.20",
80
- "@vue/cli-plugin-babel": "^5.0.8",
81
- "@vue/cli-plugin-eslint": "^5.0.8",
82
- "@vue/cli-service": "^5.0.8",
83
- "@vue/eslint-config-standard": "^8.0.1",
84
- "@vue/test-utils": "^1.3.6",
85
- "babel-plugin-transform-remove-console": "^6.9.4",
86
- "compression-webpack-plugin": "^10.0.0",
87
- "css-minimizer-webpack-plugin": "^5.0.1",
88
- "deepmerge": "^4.3.1",
89
- "eslint": "^8.51.0",
90
- "eslint-config-prettier": "^10.1.8",
91
- "eslint-plugin-vue": "^9.17.0",
92
- "fast-deep-equal": "^3.1.3",
93
- "ignore-loader": "^0.1.2",
94
- "jest": "^29.7.0",
95
- "jest-environment-jsdom": "^29.7.0",
96
- "jest-transform-stub": "^2.0.0",
97
- "less-loader": "^6.2.0",
98
- "script-loader": "^0.7.2",
99
- "style-resources-loader": "^1.5.0",
100
- "vue-cli-plugin-style-resources-loader": "^0.1.5",
101
- "vue-jest": "^4.0.1",
102
- "vue-template-compiler": "^2.7.14",
103
- "webpack": "^5.88.2",
104
- "webpack-theme-color-replacer": "^1.4.7",
105
- "whatwg-fetch": "^3.6.19"
106
- },
107
- "browserslist": [
108
- "> 1%",
109
- "last 2 versions",
110
- "not dead",
111
- "not ie 11"
112
- ]
113
- }
1
+ {
2
+ "name": "vue2-client",
3
+ "version": "1.19.5",
4
+ "private": false,
5
+ "scripts": {
6
+ "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
+ "serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
8
+ "serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
9
+ "serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
10
+ "serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
11
+ "serve:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
12
+ "serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
13
+ "serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
14
+ "serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
15
+ "serve:apply": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode apply",
16
+ "mac-serve": "vue-cli-service serve --no-eslint --mode his",
17
+ "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
18
+ "test:unit": "vue-cli-service test:unit",
19
+ "lint": "vue-cli-service lint",
20
+ "build:preview": "vue-cli-service build --mode preview",
21
+ "lint:nofix": "vue-cli-service lint --no-fix",
22
+ "test": "jest"
23
+ },
24
+ "dependencies": {
25
+ "@afwenming123/vue-easy-tree": "^1.0.1",
26
+ "@afwenming123/vue-plugin-hiprint": "^0.0.70",
27
+ "@amap/amap-jsapi-loader": "^1.0.1",
28
+ "@antv/data-set": "^0.11.8",
29
+ "@antv/g2plot": "^2.4.31",
30
+ "@hufe921/canvas-editor": "^0.9.49",
31
+ "@microsoft/fetch-event-source": "^2.0.1",
32
+ "@vue/babel-preset-jsx": "^1.4.0",
33
+ "animate.css": "^4.1.1",
34
+ "ant-design-vue": "^1.7.8",
35
+ "axios": "^0.27.2",
36
+ "clipboard": "^2.0.11",
37
+ "core-js": "^3.33.0",
38
+ "crypto-js": "^4.1.1",
39
+ "date-fns": "^2.29.3",
40
+ "default-passive-events": "^2.0.0",
41
+ "dotenv": "^16.3.1",
42
+ "echarts": "^5.5.0",
43
+ "enquire.js": "^2.1.6",
44
+ "file-saver": "^2.0.5",
45
+ "highlight.js": "^11.7.0",
46
+ "html2canvas": "^1.4.1",
47
+ "js-base64": "^3.7.5",
48
+ "js-cookie": "^2.2.1",
49
+ "jsencrypt": "^3.3.2",
50
+ "jspdf": "^2.5.1",
51
+ "lodash.clonedeep": "^4.5.0",
52
+ "lodash.debounce": "^4",
53
+ "lodash.get": "^4.4.2",
54
+ "marked": "^4",
55
+ "mockjs": "^1.1.0",
56
+ "nprogress": "^0.2.0",
57
+ "qs": "^6.11.2",
58
+ "regenerator-runtime": "^0.14.0",
59
+ "splitpanes": "^2.4.1",
60
+ "videojs-contrib-hls": "^5.15.0",
61
+ "viser-vue": "^2.4.8",
62
+ "vue": "^2.7.14",
63
+ "vue-codemirror": "4.0.6",
64
+ "vue-color": "2.7.0",
65
+ "vue-draggable-resizable": "^2.3.0",
66
+ "vue-i18n": "^8.28.2",
67
+ "vue-json-viewer": "^2.2.22",
68
+ "vue-router": "^3.6.5",
69
+ "vue-video-player": "^5.0.2",
70
+ "vue-virtual-scroller": "^1.1.2",
71
+ "vuedraggable": "^2.24.3",
72
+ "vuex": "^3.6.2",
73
+ "xlsx": "0.18.5"
74
+ },
75
+ "devDependencies": {
76
+ "@ant-design/colors": "^7.0.0",
77
+ "@babel/core": "^7.22.20",
78
+ "@babel/eslint-parser": "^7.22.15",
79
+ "@babel/preset-env": "^7.22.20",
80
+ "@vue/cli-plugin-babel": "^5.0.8",
81
+ "@vue/cli-plugin-eslint": "^5.0.8",
82
+ "@vue/cli-service": "^5.0.8",
83
+ "@vue/eslint-config-standard": "^8.0.1",
84
+ "@vue/test-utils": "^1.3.6",
85
+ "babel-plugin-transform-remove-console": "^6.9.4",
86
+ "compression-webpack-plugin": "^10.0.0",
87
+ "css-minimizer-webpack-plugin": "^5.0.1",
88
+ "deepmerge": "^4.3.1",
89
+ "eslint": "^8.51.0",
90
+ "eslint-config-prettier": "^10.1.8",
91
+ "eslint-plugin-vue": "^9.17.0",
92
+ "fast-deep-equal": "^3.1.3",
93
+ "ignore-loader": "^0.1.2",
94
+ "jest": "^29.7.0",
95
+ "jest-environment-jsdom": "^29.7.0",
96
+ "jest-transform-stub": "^2.0.0",
97
+ "less-loader": "^6.2.0",
98
+ "script-loader": "^0.7.2",
99
+ "style-resources-loader": "^1.5.0",
100
+ "vue-cli-plugin-style-resources-loader": "^0.1.5",
101
+ "vue-jest": "^4.0.1",
102
+ "vue-template-compiler": "^2.7.14",
103
+ "webpack": "^5.88.2",
104
+ "webpack-theme-color-replacer": "^1.4.7",
105
+ "whatwg-fetch": "^3.6.19"
106
+ },
107
+ "browserslist": [
108
+ "> 1%",
109
+ "last 2 versions",
110
+ "not dead",
111
+ "not ie 11"
112
+ ]
113
+ }
@@ -136,7 +136,21 @@ export default {
136
136
  console.warn(`Config '${configName}' did not return a valid 'value' array for options. Result:`, res)
137
137
  }
138
138
  } else {
139
- // 移除对旧字典的解析
139
+ // 全局字典
140
+ if (this.$appdata && typeof this.$appdata.getDictByKeyAsync === 'function') {
141
+ const dictionaryList = await this.$appdata.getDictByKeyAsync(item.keyName)
142
+ if (Array.isArray(dictionaryList)) {
143
+ fetchedOptions = dictionaryList.map(opt => ({
144
+ label: opt.label,
145
+ value: opt.value + '',
146
+ ...opt // 将所有原始属性也添加到选项中
147
+ }))
148
+ } else {
149
+ console.warn(`Global dictionary '${item.keyName}' did not return an array. Result:`, dictionaryList)
150
+ }
151
+ } else {
152
+ console.error('$appdata.getDictionaryList is not available. Please ensure it\'s globally provided.')
153
+ }
140
154
  }
141
155
  } catch (error) {
142
156
  console.error(`Error fetching options for item '${item.key}':`, error)