vue2-client 1.14.26 → 1.14.28

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/jest.config.js CHANGED
@@ -1,22 +1,22 @@
1
- const path = require('path')
2
- require('dotenv').config({ path: path.resolve(__dirname, '.env') })
3
-
4
- module.exports = {
5
- setupFiles: ['<rootDir>/jest.setup.js'],
6
- moduleNameMapper: {
7
- '^@vue2-client/(.*)$': '<rootDir>/src/$1',
8
- '^@/(.*)$': '<rootDir>/src/$1',
9
- '\\.(css|less)$': 'identity-obj-proxy',
10
- },
11
- moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'vue'],
12
- testEnvironment: 'jsdom',
13
- transform: {
14
- '^.+\\.js$': 'babel-jest',
15
- '^.+\\.vue$': 'vue-jest',
16
- '^.+\\.less$': 'jest-transform-stub',
17
- },
18
- transformIgnorePatterns: [
19
- '/node_modules/(?!ant-design-vue)',
20
- ]
21
- // 其他 Jest 配置项...
22
- }
1
+ const path = require('path')
2
+ require('dotenv').config({ path: path.resolve(__dirname, '.env') })
3
+
4
+ module.exports = {
5
+ setupFiles: ['<rootDir>/jest.setup.js'],
6
+ moduleNameMapper: {
7
+ '^@vue2-client/(.*)$': '<rootDir>/src/$1',
8
+ '^@/(.*)$': '<rootDir>/src/$1',
9
+ '\\.(css|less)$': 'identity-obj-proxy',
10
+ },
11
+ moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'vue'],
12
+ testEnvironment: 'jsdom',
13
+ transform: {
14
+ '^.+\\.js$': 'babel-jest',
15
+ '^.+\\.vue$': 'vue-jest',
16
+ '^.+\\.less$': 'jest-transform-stub',
17
+ },
18
+ transformIgnorePatterns: [
19
+ '/node_modules/(?!ant-design-vue)',
20
+ ]
21
+ // 其他 Jest 配置项...
22
+ }
package/package.json CHANGED
@@ -1,108 +1,108 @@
1
- {
2
- "name": "vue2-client",
3
- "version": "1.14.26",
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
- "mac-serve": "vue-cli-service serve --no-eslint --mode his",
15
- "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
16
- "test:unit": "vue-cli-service test:unit",
17
- "lint": "vue-cli-service lint",
18
- "build:preview": "vue-cli-service build --mode preview",
19
- "lint:nofix": "vue-cli-service lint --no-fix",
20
- "test": "jest"
21
- },
22
- "dependencies": {
23
- "@afwenming123/vue-easy-tree": "^1.0.1",
24
- "@afwenming123/vue-plugin-hiprint": "^0.0.70",
25
- "@amap/amap-jsapi-loader": "^1.0.1",
26
- "@antv/data-set": "^0.11.8",
27
- "@antv/g2plot": "^2.4.31",
28
- "@hufe921/canvas-editor": "^0.9.49",
29
- "@microsoft/fetch-event-source": "^2.0.1",
30
- "@vue/babel-preset-jsx": "^1.4.0",
31
- "animate.css": "^4.1.1",
32
- "ant-design-vue": "^1.7.8",
33
- "axios": "^0.27.2",
34
- "clipboard": "^2.0.11",
35
- "core-js": "^3.33.0",
36
- "crypto-js": "^4.1.1",
37
- "date-fns": "^2.29.3",
38
- "default-passive-events": "^2.0.0",
39
- "dotenv": "^16.3.1",
40
- "echarts": "^5.5.0",
41
- "enquire.js": "^2.1.6",
42
- "file-saver": "^2.0.5",
43
- "highlight.js": "^11.7.0",
44
- "html2canvas": "^1.4.1",
45
- "js-base64": "^3.7.5",
46
- "js-cookie": "^2.2.1",
47
- "jsencrypt": "^3.3.2",
48
- "jspdf": "^2.5.1",
49
- "lodash.clonedeep": "^4.5.0",
50
- "lodash.debounce": "^4",
51
- "lodash.get": "^4.4.2",
52
- "marked": "^4",
53
- "mockjs": "^1.1.0",
54
- "nprogress": "^0.2.0",
55
- "qs": "^6.11.2",
56
- "regenerator-runtime": "^0.14.0",
57
- "videojs-contrib-hls": "^5.15.0",
58
- "viser-vue": "^2.4.8",
59
- "vue": "^2.7.14",
60
- "vue-codemirror": "4.0.6",
61
- "vue-draggable-resizable": "^2",
62
- "vue-i18n": "^8.28.2",
63
- "vue-json-viewer": "^2.2.22",
64
- "vue-router": "^3.6.5",
65
- "vue-video-player": "^5.0.2",
66
- "vue-virtual-scroller": "^1.1.2",
67
- "vuedraggable": "^2.24.3",
68
- "vuex": "^3.6.2",
69
- "xlsx": "0.18.5"
70
- },
71
- "devDependencies": {
72
- "@ant-design/colors": "^7.0.0",
73
- "@babel/core": "^7.22.20",
74
- "@babel/eslint-parser": "^7.22.15",
75
- "@babel/preset-env": "^7.22.20",
76
- "@vue/cli-plugin-babel": "^5.0.8",
77
- "@vue/cli-plugin-eslint": "^5.0.8",
78
- "@vue/cli-service": "^5.0.8",
79
- "@vue/eslint-config-standard": "^8.0.1",
80
- "@vue/test-utils": "^1.3.6",
81
- "babel-plugin-transform-remove-console": "^6.9.4",
82
- "compression-webpack-plugin": "^10.0.0",
83
- "css-minimizer-webpack-plugin": "^5.0.1",
84
- "deepmerge": "^4.3.1",
85
- "eslint": "^8.51.0",
86
- "eslint-plugin-vue": "^9.17.0",
87
- "fast-deep-equal": "^3.1.3",
88
- "ignore-loader": "^0.1.2",
89
- "jest": "^29.7.0",
90
- "jest-environment-jsdom": "^29.7.0",
91
- "jest-transform-stub": "^2.0.0",
92
- "less-loader": "^6.2.0",
93
- "script-loader": "^0.7.2",
94
- "style-resources-loader": "^1.5.0",
95
- "vue-cli-plugin-style-resources-loader": "^0.1.5",
96
- "vue-jest": "^4.0.1",
97
- "vue-template-compiler": "^2.7.14",
98
- "webpack": "^5.88.2",
99
- "webpack-theme-color-replacer": "^1.4.7",
100
- "whatwg-fetch": "^3.6.19"
101
- },
102
- "browserslist": [
103
- "> 1%",
104
- "last 2 versions",
105
- "not dead",
106
- "not ie 11"
107
- ]
108
- }
1
+ {
2
+ "name": "vue2-client",
3
+ "version": "1.14.28",
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
+ "mac-serve": "vue-cli-service serve --no-eslint --mode his",
15
+ "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
16
+ "test:unit": "vue-cli-service test:unit",
17
+ "lint": "vue-cli-service lint",
18
+ "build:preview": "vue-cli-service build --mode preview",
19
+ "lint:nofix": "vue-cli-service lint --no-fix",
20
+ "test": "jest"
21
+ },
22
+ "dependencies": {
23
+ "@afwenming123/vue-easy-tree": "^1.0.1",
24
+ "@afwenming123/vue-plugin-hiprint": "^0.0.70",
25
+ "@amap/amap-jsapi-loader": "^1.0.1",
26
+ "@antv/data-set": "^0.11.8",
27
+ "@antv/g2plot": "^2.4.31",
28
+ "@hufe921/canvas-editor": "^0.9.49",
29
+ "@microsoft/fetch-event-source": "^2.0.1",
30
+ "@vue/babel-preset-jsx": "^1.4.0",
31
+ "animate.css": "^4.1.1",
32
+ "ant-design-vue": "^1.7.8",
33
+ "axios": "^0.27.2",
34
+ "clipboard": "^2.0.11",
35
+ "core-js": "^3.33.0",
36
+ "crypto-js": "^4.1.1",
37
+ "date-fns": "^2.29.3",
38
+ "default-passive-events": "^2.0.0",
39
+ "dotenv": "^16.3.1",
40
+ "echarts": "^5.5.0",
41
+ "enquire.js": "^2.1.6",
42
+ "file-saver": "^2.0.5",
43
+ "highlight.js": "^11.7.0",
44
+ "html2canvas": "^1.4.1",
45
+ "js-base64": "^3.7.5",
46
+ "js-cookie": "^2.2.1",
47
+ "jsencrypt": "^3.3.2",
48
+ "jspdf": "^2.5.1",
49
+ "lodash.clonedeep": "^4.5.0",
50
+ "lodash.debounce": "^4",
51
+ "lodash.get": "^4.4.2",
52
+ "marked": "^4",
53
+ "mockjs": "^1.1.0",
54
+ "nprogress": "^0.2.0",
55
+ "qs": "^6.11.2",
56
+ "regenerator-runtime": "^0.14.0",
57
+ "videojs-contrib-hls": "^5.15.0",
58
+ "viser-vue": "^2.4.8",
59
+ "vue": "^2.7.14",
60
+ "vue-codemirror": "4.0.6",
61
+ "vue-draggable-resizable": "^2",
62
+ "vue-i18n": "^8.28.2",
63
+ "vue-json-viewer": "^2.2.22",
64
+ "vue-router": "^3.6.5",
65
+ "vue-video-player": "^5.0.2",
66
+ "vue-virtual-scroller": "^1.1.2",
67
+ "vuedraggable": "^2.24.3",
68
+ "vuex": "^3.6.2",
69
+ "xlsx": "0.18.5"
70
+ },
71
+ "devDependencies": {
72
+ "@ant-design/colors": "^7.0.0",
73
+ "@babel/core": "^7.22.20",
74
+ "@babel/eslint-parser": "^7.22.15",
75
+ "@babel/preset-env": "^7.22.20",
76
+ "@vue/cli-plugin-babel": "^5.0.8",
77
+ "@vue/cli-plugin-eslint": "^5.0.8",
78
+ "@vue/cli-service": "^5.0.8",
79
+ "@vue/eslint-config-standard": "^8.0.1",
80
+ "@vue/test-utils": "^1.3.6",
81
+ "babel-plugin-transform-remove-console": "^6.9.4",
82
+ "compression-webpack-plugin": "^10.0.0",
83
+ "css-minimizer-webpack-plugin": "^5.0.1",
84
+ "deepmerge": "^4.3.1",
85
+ "eslint": "^8.51.0",
86
+ "eslint-plugin-vue": "^9.17.0",
87
+ "fast-deep-equal": "^3.1.3",
88
+ "ignore-loader": "^0.1.2",
89
+ "jest": "^29.7.0",
90
+ "jest-environment-jsdom": "^29.7.0",
91
+ "jest-transform-stub": "^2.0.0",
92
+ "less-loader": "^6.2.0",
93
+ "script-loader": "^0.7.2",
94
+ "style-resources-loader": "^1.5.0",
95
+ "vue-cli-plugin-style-resources-loader": "^0.1.5",
96
+ "vue-jest": "^4.0.1",
97
+ "vue-template-compiler": "^2.7.14",
98
+ "webpack": "^5.88.2",
99
+ "webpack-theme-color-replacer": "^1.4.7",
100
+ "whatwg-fetch": "^3.6.19"
101
+ },
102
+ "browserslist": [
103
+ "> 1%",
104
+ "last 2 versions",
105
+ "not dead",
106
+ "not ie 11"
107
+ ]
108
+ }
@@ -1,3 +1,3 @@
1
- import AmapPointRendering from './AmapPointRendering'
2
-
3
- export default AmapPointRendering
1
+ import AmapPointRendering from './AmapPointRendering'
2
+
3
+ export default AmapPointRendering
@@ -232,6 +232,7 @@ export default {
232
232
  this.$emit('setFiles', this.uploadedFileList.filter(item => item.status === 'done'), this.outerContainerIndex)
233
233
  } else {
234
234
  this.$emit('setFiles', this.uploadedFileList.filter(item => item.status === 'done').map(item => item.id))
235
+ this.$emit('setFilesAllInfo', this.uploadedFileList.filter(item => item.status === 'done').map(item => item))
235
236
  }
236
237
  this.$message.success('上传成功!')
237
238
  } else {
@@ -1,3 +1,3 @@
1
- import XDetailsView from './XDetailsView'
2
-
3
- export default XDetailsView
1
+ import XDetailsView from './XDetailsView'
2
+
3
+ export default XDetailsView
@@ -1,105 +1,105 @@
1
- <template>
2
- <div class="demo-container">
3
- <h2>XFormItem Demo</h2>
4
-
5
- <!-- 查询模式演示 -->
6
- <div class="demo-section">
7
- <h3>查询模式</h3>
8
- <x-form-item
9
- :attr="queryAttr"
10
- :form="queryForm"
11
- mode="查询"
12
- :showLabel="true"
13
- />
14
- <div class="value-display">
15
- 当前值: {{ queryForm.rate || '未选择' }}
16
- </div>
17
- </div>
18
-
19
- <!-- 新增模式演示 -->
20
- <div class="demo-section">
21
- <h3>新增模式</h3>
22
- <x-form-item
23
- :attr="addAttr"
24
- :form="addForm"
25
- mode="新增/修改"
26
- :showLabel="true"
27
- />
28
- <div class="value-display">
29
- 当前值: {{ addForm.rate || '未评分' }}
30
- </div>
31
- </div>
32
- </div>
33
- </template>
34
-
35
- <script>
36
- import XFormItem from './XFormItem.vue'
37
-
38
- export default {
39
- name: 'XFormItemDemo',
40
- components: {
41
- XFormItem
42
- },
43
- data () {
44
- return {
45
- // 查询表单配置
46
- queryAttr: {
47
- type: 'rate',
48
- name: '评分查询',
49
- queryType: 'IN',
50
- model: 'rate',
51
- placeholder: '请选择评分',
52
- allowHalf: true,
53
- maxCount: 5
54
- },
55
- queryForm: {
56
- },
57
-
58
- // 新增表单配置
59
- addAttr: {
60
- type: 'rate',
61
- name: '评分',
62
- model: 'rate',
63
- allowHalf: true,
64
- maxCount: 10
65
- },
66
- addForm: {
67
- rate: 3
68
- }
69
- }
70
- }
71
- }
72
- </script>
73
-
74
- <style lang="less" scoped>
75
- .demo-container {
76
- padding: 20px;
77
- max-width: 800px;
78
- margin: 0 auto;
79
- background-color: #f5f5f5;
80
-
81
- h2 {
82
- margin-bottom: 20px;
83
- color: #1890ff;
84
- }
85
-
86
- .demo-section {
87
- margin-bottom: 30px;
88
- padding: 20px;
89
- border: 1px solid #e8e8e8;
90
- border-radius: 4px;
91
-
92
- h3 {
93
- margin-bottom: 16px;
94
- color: #333;
95
- }
96
-
97
- .value-display {
98
- margin-top: 16px;
99
- padding: 8px;
100
- background-color: #f5f5f5;
101
- border-radius: 4px;
102
- }
103
- }
104
- }
105
- </style>
1
+ <template>
2
+ <div class="demo-container">
3
+ <h2>XFormItem Demo</h2>
4
+
5
+ <!-- 查询模式演示 -->
6
+ <div class="demo-section">
7
+ <h3>查询模式</h3>
8
+ <x-form-item
9
+ :attr="queryAttr"
10
+ :form="queryForm"
11
+ mode="查询"
12
+ :showLabel="true"
13
+ />
14
+ <div class="value-display">
15
+ 当前值: {{ queryForm.rate || '未选择' }}
16
+ </div>
17
+ </div>
18
+
19
+ <!-- 新增模式演示 -->
20
+ <div class="demo-section">
21
+ <h3>新增模式</h3>
22
+ <x-form-item
23
+ :attr="addAttr"
24
+ :form="addForm"
25
+ mode="新增/修改"
26
+ :showLabel="true"
27
+ />
28
+ <div class="value-display">
29
+ 当前值: {{ addForm.rate || '未评分' }}
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </template>
34
+
35
+ <script>
36
+ import XFormItem from './XFormItem.vue'
37
+
38
+ export default {
39
+ name: 'XFormItemDemo',
40
+ components: {
41
+ XFormItem
42
+ },
43
+ data () {
44
+ return {
45
+ // 查询表单配置
46
+ queryAttr: {
47
+ type: 'rate',
48
+ name: '评分查询',
49
+ queryType: 'IN',
50
+ model: 'rate',
51
+ placeholder: '请选择评分',
52
+ allowHalf: true,
53
+ maxCount: 5
54
+ },
55
+ queryForm: {
56
+ },
57
+
58
+ // 新增表单配置
59
+ addAttr: {
60
+ type: 'rate',
61
+ name: '评分',
62
+ model: 'rate',
63
+ allowHalf: true,
64
+ maxCount: 10
65
+ },
66
+ addForm: {
67
+ rate: 3
68
+ }
69
+ }
70
+ }
71
+ }
72
+ </script>
73
+
74
+ <style lang="less" scoped>
75
+ .demo-container {
76
+ padding: 20px;
77
+ max-width: 800px;
78
+ margin: 0 auto;
79
+ background-color: #f5f5f5;
80
+
81
+ h2 {
82
+ margin-bottom: 20px;
83
+ color: #1890ff;
84
+ }
85
+
86
+ .demo-section {
87
+ margin-bottom: 30px;
88
+ padding: 20px;
89
+ border: 1px solid #e8e8e8;
90
+ border-radius: 4px;
91
+
92
+ h3 {
93
+ margin-bottom: 16px;
94
+ color: #333;
95
+ }
96
+
97
+ .value-display {
98
+ margin-top: 16px;
99
+ padding: 8px;
100
+ background-color: #f5f5f5;
101
+ border-radius: 4px;
102
+ }
103
+ }
104
+ }
105
+ </style>
@@ -1,3 +1,3 @@
1
- import XFormGroupDetails from './XFormGroupDetails'
2
-
3
- export default XFormGroupDetails
1
+ import XFormGroupDetails from './XFormGroupDetails'
2
+
3
+ export default XFormGroupDetails