vue2-client 1.8.22 → 1.8.23

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,92 +1,92 @@
1
- {
2
- "name": "vue2-client",
3
- "version": "1.8.22",
4
- "private": false,
5
- "scripts": {
6
- "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
- "mac-serve": "vue-cli-service serve --no-eslint --mode mac",
8
- "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
9
- "test:unit": "vue-cli-service test:unit",
10
- "lint": "vue-cli-service lint",
11
- "build:preview": "vue-cli-service build --mode preview",
12
- "lint:nofix": "vue-cli-service lint --no-fix",
13
- "test": "jest"
14
- },
15
- "dependencies": {
16
- "@amap/amap-jsapi-loader": "^1.0.1",
17
- "@antv/data-set": "^0.11.8",
18
- "@antv/g2plot": "^2.4.29",
19
- "@vue/babel-preset-jsx": "^1.4.0",
20
- "amis": "^3.4.3",
21
- "animate.css": "^4.1.1",
22
- "ant-design-vue": "^1.7.8",
23
- "axios": "^0.27.2",
24
- "clipboard": "^2.0.11",
25
- "core-js": "^3.33.0",
26
- "crypto-js": "^4.1.1",
27
- "date-fns": "^2.29.3",
28
- "default-passive-events": "^2.0.0",
29
- "dotenv": "^16.3.1",
30
- "enquire.js": "^2.1.6",
31
- "file-saver": "^2.0.5",
32
- "highlight.js": "^11.7.0",
33
- "js-base64": "^3.7.5",
34
- "js-cookie": "^2.2.1",
35
- "jsencrypt": "^3.3.2",
36
- "lodash.clonedeep": "^4.5.0",
37
- "lodash.get": "^4.4.2",
38
- "mockjs": "^1.1.0",
39
- "nprogress": "^0.2.0",
40
- "qs": "^6.11.2",
41
- "regenerator-runtime": "^0.14.0",
42
- "videojs-contrib-hls": "^5.15.0",
43
- "viser-vue": "^2.4.8",
44
- "vue": "^2.7.14",
45
- "vue-i18n": "^8.28.2",
46
- "vue-json-viewer": "^2.2.22",
47
- "vue-router": "^3.6.5",
48
- "vue-video-player": "^5.0.2",
49
- "vuedraggable": "^2.24.3",
50
- "vuex": "^3.6.2",
51
- "xlsx": "0.18.5"
52
- },
53
- "devDependencies": {
54
- "@ant-design/colors": "^7.0.0",
55
- "@babel/core": "^7.22.20",
56
- "@babel/eslint-parser": "^7.22.15",
57
- "@babel/preset-env": "^7.22.20",
58
- "@vue/cli-plugin-babel": "^5.0.8",
59
- "@vue/cli-plugin-eslint": "^5.0.8",
60
- "@vue/cli-service": "^5.0.8",
61
- "@vue/eslint-config-standard": "^8.0.1",
62
- "@vue/test-utils": "^1.3.6",
63
- "babel-jest": "^26.6.3",
64
- "babel-plugin-transform-remove-console": "^6.9.4",
65
- "compression-webpack-plugin": "^10.0.0",
66
- "copy-webpack-plugin": "^11.0.0",
67
- "css-minimizer-webpack-plugin": "^5.0.1",
68
- "deepmerge": "^4.3.1",
69
- "eslint": "^8.51.0",
70
- "eslint-plugin-vue": "^9.17.0",
71
- "fast-deep-equal": "^3.1.3",
72
- "jest": "^26.6.3",
73
- "jest-environment-jsdom": "^26.6.2",
74
- "jest-transform-stub": "^2.0.0",
75
- "less-loader": "^6.2.0",
76
- "script-loader": "^0.7.2",
77
- "ignore-loader": "^0.1.2",
78
- "style-resources-loader": "^1.5.0",
79
- "vue-cli-plugin-style-resources-loader": "^0.1.5",
80
- "vue-jest": "^4.0.1",
81
- "vue-template-compiler": "^2.7.14",
82
- "webpack": "^5.88.2",
83
- "webpack-theme-color-replacer": "^1.4.7",
84
- "whatwg-fetch": "^3.6.19"
85
- },
86
- "browserslist": [
87
- "> 1%",
88
- "last 2 versions",
89
- "not dead",
90
- "not ie 11"
91
- ]
92
- }
1
+ {
2
+ "name": "vue2-client",
3
+ "version": "1.8.23",
4
+ "private": false,
5
+ "scripts": {
6
+ "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
+ "mac-serve": "vue-cli-service serve --no-eslint --mode mac",
8
+ "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
9
+ "test:unit": "vue-cli-service test:unit",
10
+ "lint": "vue-cli-service lint",
11
+ "build:preview": "vue-cli-service build --mode preview",
12
+ "lint:nofix": "vue-cli-service lint --no-fix",
13
+ "test": "jest"
14
+ },
15
+ "dependencies": {
16
+ "@amap/amap-jsapi-loader": "^1.0.1",
17
+ "@antv/data-set": "^0.11.8",
18
+ "@antv/g2plot": "^2.4.29",
19
+ "@vue/babel-preset-jsx": "^1.4.0",
20
+ "amis": "^3.4.3",
21
+ "animate.css": "^4.1.1",
22
+ "ant-design-vue": "^1.7.8",
23
+ "axios": "^0.27.2",
24
+ "clipboard": "^2.0.11",
25
+ "core-js": "^3.33.0",
26
+ "crypto-js": "^4.1.1",
27
+ "date-fns": "^2.29.3",
28
+ "default-passive-events": "^2.0.0",
29
+ "dotenv": "^16.3.1",
30
+ "enquire.js": "^2.1.6",
31
+ "file-saver": "^2.0.5",
32
+ "highlight.js": "^11.7.0",
33
+ "js-base64": "^3.7.5",
34
+ "js-cookie": "^2.2.1",
35
+ "jsencrypt": "^3.3.2",
36
+ "lodash.clonedeep": "^4.5.0",
37
+ "lodash.get": "^4.4.2",
38
+ "mockjs": "^1.1.0",
39
+ "nprogress": "^0.2.0",
40
+ "qs": "^6.11.2",
41
+ "regenerator-runtime": "^0.14.0",
42
+ "videojs-contrib-hls": "^5.15.0",
43
+ "viser-vue": "^2.4.8",
44
+ "vue": "^2.7.14",
45
+ "vue-i18n": "^8.28.2",
46
+ "vue-json-viewer": "^2.2.22",
47
+ "vue-router": "^3.6.5",
48
+ "vue-video-player": "^5.0.2",
49
+ "vuedraggable": "^2.24.3",
50
+ "vuex": "^3.6.2",
51
+ "xlsx": "0.18.5"
52
+ },
53
+ "devDependencies": {
54
+ "@ant-design/colors": "^7.0.0",
55
+ "@babel/core": "^7.22.20",
56
+ "@babel/eslint-parser": "^7.22.15",
57
+ "@babel/preset-env": "^7.22.20",
58
+ "@vue/cli-plugin-babel": "^5.0.8",
59
+ "@vue/cli-plugin-eslint": "^5.0.8",
60
+ "@vue/cli-service": "^5.0.8",
61
+ "@vue/eslint-config-standard": "^8.0.1",
62
+ "@vue/test-utils": "^1.3.6",
63
+ "babel-jest": "^26.6.3",
64
+ "babel-plugin-transform-remove-console": "^6.9.4",
65
+ "compression-webpack-plugin": "^10.0.0",
66
+ "copy-webpack-plugin": "^11.0.0",
67
+ "css-minimizer-webpack-plugin": "^5.0.1",
68
+ "deepmerge": "^4.3.1",
69
+ "eslint": "^8.51.0",
70
+ "eslint-plugin-vue": "^9.17.0",
71
+ "fast-deep-equal": "^3.1.3",
72
+ "jest": "^26.6.3",
73
+ "jest-environment-jsdom": "^26.6.2",
74
+ "jest-transform-stub": "^2.0.0",
75
+ "less-loader": "^6.2.0",
76
+ "script-loader": "^0.7.2",
77
+ "ignore-loader": "^0.1.2",
78
+ "style-resources-loader": "^1.5.0",
79
+ "vue-cli-plugin-style-resources-loader": "^0.1.5",
80
+ "vue-jest": "^4.0.1",
81
+ "vue-template-compiler": "^2.7.14",
82
+ "webpack": "^5.88.2",
83
+ "webpack-theme-color-replacer": "^1.4.7",
84
+ "whatwg-fetch": "^3.6.19"
85
+ },
86
+ "browserslist": [
87
+ "> 1%",
88
+ "last 2 versions",
89
+ "not dead",
90
+ "not ie 11"
91
+ ]
92
+ }
@@ -1,131 +1,131 @@
1
- <template>
2
- <a-modal
3
- title="数据导入"
4
- :visible="open"
5
- :zIndex="1001"
6
- :confirm-loading="uploading"
7
- @cancel="importExcelHandleCancel"
8
- @ok="importExcelHandleChange"
9
- >
10
- <a-spin tip="上传中..." :spinning="uploading">
11
- <a-upload-dragger
12
- name="file"
13
- accept=".xlsx, .xls"
14
- :file-list="fileList"
15
- :multiple="false"
16
- :remove="handleRemove"
17
- :before-upload="beforeUpload"
18
- >
19
- <p class="ant-upload-drag-icon">
20
- <a-icon type="inbox" />
21
- </p>
22
- <p class="ant-upload-text">
23
- 请将文件拖拽到此处上传
24
- </p>
25
- <p class="ant-upload-hint">
26
- 支持单个上传,也可以点击后选择文件上传
27
- </p>
28
- </a-upload-dragger>
29
- <a-divider/>
30
- <a v-if="queryParamsName !== 'none'" @click="importTemplate">下载导入模板</a>
31
- </a-spin>
32
- </a-modal>
33
- </template>
34
-
35
- <script>
36
-
37
- import { importData, downloadImportExcel } from '@vue2-client/services/api/common'
38
-
39
- export default {
40
- name: 'XImportExcel',
41
- props: {
42
- serviceName: {
43
- type: String,
44
- default: undefined
45
- },
46
- queryParamsName: {
47
- type: String,
48
- default: 'none'
49
- },
50
- // 业务名称
51
- title: {
52
- type: String,
53
- default: ''
54
- }
55
- },
56
- components: {
57
- },
58
- data () {
59
- return {
60
- open: false,
61
- uploadStatus: '',
62
- fileList: [],
63
- // 是否禁用上传
64
- uploading: false
65
- }
66
- },
67
- filters: {
68
- },
69
- created () {
70
- },
71
- computed: {
72
- },
73
- watch: {
74
- },
75
- methods: {
76
- /** 导入excel窗体关闭 */
77
- importExcelHandleCancel (e) {
78
- this.open = false
79
- this.fileList = []
80
- // 关闭后刷新列表
81
- this.$emit('ok')
82
- },
83
- /** 下载模板操作 */
84
- importTemplate () {
85
- downloadImportExcel({
86
- queryParamsName: this.queryParamsName
87
- }, this.serviceName).then(res => {
88
- if (!res || !res.value) {
89
- this.$message.warn('导入模板不存在,请检查配置')
90
- return
91
- }
92
- window.open('/res/excel/export/' + res.value)
93
- })
94
- },
95
- /** 导入excel窗体开启 */
96
- importExcelHandleOpen (e) {
97
- this.open = true
98
- },
99
- beforeUpload (file) {
100
- this.fileList = [file]
101
- return false
102
- },
103
- /** 导入excel */
104
- importExcelHandleChange () {
105
- const { fileList } = this
106
- const formData = new FormData()
107
- if (!fileList[0]) {
108
- this.$message.warn('请选择需要上传的文件')
109
- return
110
- }
111
- this.uploading = true
112
- formData.append('file', fileList[0])
113
- formData.append('queryParamsName', this.queryParamsName)
114
- importData(formData).then(res => {
115
- this.fileList = []
116
- this.$message.success(res.value)
117
- this.open = false
118
- this.$emit('ok')
119
- }).catch(e => {
120
- this.$message.error(e)
121
- }).finally(() => {
122
- this.uploading = false
123
- })
124
- },
125
- handleRemove () {
126
- this.fileList = []
127
- this.uploading = false
128
- }
129
- }
130
- }
131
- </script>
1
+ <template>
2
+ <a-modal
3
+ title="数据导入"
4
+ :visible="open"
5
+ :zIndex="1001"
6
+ :confirm-loading="uploading"
7
+ @cancel="importExcelHandleCancel"
8
+ @ok="importExcelHandleChange"
9
+ >
10
+ <a-spin tip="上传中..." :spinning="uploading">
11
+ <a-upload-dragger
12
+ name="file"
13
+ accept=".xlsx, .xls"
14
+ :file-list="fileList"
15
+ :multiple="false"
16
+ :remove="handleRemove"
17
+ :before-upload="beforeUpload"
18
+ >
19
+ <p class="ant-upload-drag-icon">
20
+ <a-icon type="inbox" />
21
+ </p>
22
+ <p class="ant-upload-text">
23
+ 请将文件拖拽到此处上传
24
+ </p>
25
+ <p class="ant-upload-hint">
26
+ 支持单个上传,也可以点击后选择文件上传
27
+ </p>
28
+ </a-upload-dragger>
29
+ <a-divider/>
30
+ <a v-if="queryParamsName !== 'none'" @click="importTemplate">下载导入模板</a>
31
+ </a-spin>
32
+ </a-modal>
33
+ </template>
34
+
35
+ <script>
36
+
37
+ import { importData, downloadImportExcel } from '@vue2-client/services/api/common'
38
+
39
+ export default {
40
+ name: 'XImportExcel',
41
+ props: {
42
+ serviceName: {
43
+ type: String,
44
+ default: undefined
45
+ },
46
+ queryParamsName: {
47
+ type: String,
48
+ default: 'none'
49
+ },
50
+ // 业务名称
51
+ title: {
52
+ type: String,
53
+ default: ''
54
+ }
55
+ },
56
+ components: {
57
+ },
58
+ data () {
59
+ return {
60
+ open: false,
61
+ uploadStatus: '',
62
+ fileList: [],
63
+ // 是否禁用上传
64
+ uploading: false
65
+ }
66
+ },
67
+ filters: {
68
+ },
69
+ created () {
70
+ },
71
+ computed: {
72
+ },
73
+ watch: {
74
+ },
75
+ methods: {
76
+ /** 导入excel窗体关闭 */
77
+ importExcelHandleCancel (e) {
78
+ this.open = false
79
+ this.fileList = []
80
+ // 关闭后刷新列表
81
+ this.$emit('ok')
82
+ },
83
+ /** 下载模板操作 */
84
+ importTemplate () {
85
+ downloadImportExcel({
86
+ queryParamsName: this.queryParamsName
87
+ }, this.serviceName).then(res => {
88
+ if (!res || !res.value) {
89
+ this.$message.warn('导入模板不存在,请检查配置')
90
+ return
91
+ }
92
+ window.open('/res/excel/export/' + res.value)
93
+ })
94
+ },
95
+ /** 导入excel窗体开启 */
96
+ importExcelHandleOpen (e) {
97
+ this.open = true
98
+ },
99
+ beforeUpload (file) {
100
+ this.fileList = [file]
101
+ return false
102
+ },
103
+ /** 导入excel */
104
+ importExcelHandleChange () {
105
+ const { fileList } = this
106
+ const formData = new FormData()
107
+ if (!fileList[0]) {
108
+ this.$message.warn('请选择需要上传的文件')
109
+ return
110
+ }
111
+ this.uploading = true
112
+ formData.append('file', fileList[0])
113
+ formData.append('queryParamsName', this.queryParamsName)
114
+ importData(formData).then(res => {
115
+ this.fileList = []
116
+ this.$message.success(res.value)
117
+ this.open = false
118
+ this.$emit('ok')
119
+ }).catch(e => {
120
+ this.$message.error(e)
121
+ }).finally(() => {
122
+ this.uploading = false
123
+ })
124
+ },
125
+ handleRemove () {
126
+ this.fileList = []
127
+ this.uploading = false
128
+ }
129
+ }
130
+ }
131
+ </script>