vue2-client 1.4.41 → 1.4.43
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/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
> 所有关于本项目的变化都在该文档里。
|
|
3
3
|
|
|
4
|
-
**1.4.37 - 1.4.
|
|
4
|
+
**1.4.37 - 1.4.43 -2022-10-28 @苗艳强**
|
|
5
5
|
- 功能修改:
|
|
6
6
|
- 新增文件列表展示组件
|
|
7
7
|
- 新增图片列表展示组件
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
- XFormTable可指定id进行修改操作
|
|
12
12
|
- 查询表单日期改为区间
|
|
13
13
|
- 日期选择器可设置时分秒
|
|
14
|
+
- 修复表单校验错误不能提交的问题
|
|
15
|
+
- 新增修改请求加入操作人信息
|
|
14
16
|
|
|
15
17
|
**1.4.36 -2022-10-18 @江超**
|
|
16
18
|
- 功能修改:
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"private": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "vue-cli-service serve",
|
|
7
|
-
"build": "vue-cli-service build",
|
|
8
|
-
"test:unit": "vue-cli-service test:unit",
|
|
9
|
-
"lint": "vue-cli-service lint",
|
|
10
|
-
"build:preview": "vue-cli-service build --mode preview",
|
|
11
|
-
"lint:nofix": "vue-cli-service lint --no-fix"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
15
|
-
"@antv/g2plot": "^2.4.20",
|
|
16
|
-
"lodash.get": "^4.4.2",
|
|
17
|
-
"js-base64": "^3.7.2",
|
|
18
|
-
"jsencrypt": "^3.2.1",
|
|
19
|
-
"vue-json-viewer": "^2.2.22",
|
|
20
|
-
"xlsx": "0.18.5",
|
|
21
|
-
"file-saver": "^2.0.5",
|
|
22
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
23
|
-
"@antv/data-set": "^0.11.8",
|
|
24
|
-
"animate.css": "^4.1.1",
|
|
25
|
-
"ant-design-vue": "^1.7.8",
|
|
26
|
-
"axios": "^0.27.2",
|
|
27
|
-
"clipboard": "^2.0.11",
|
|
28
|
-
"core-js": "^3.23.5",
|
|
29
|
-
"date-fns": "^2.28.0",
|
|
30
|
-
"default-passive-events": "^2.0.0",
|
|
31
|
-
"enquire.js": "^2.1.6",
|
|
32
|
-
"highlight.js": "^10.7.3",
|
|
33
|
-
"js-cookie": "^2.2.1",
|
|
34
|
-
"mockjs": "^1.1.0",
|
|
35
|
-
"nprogress": "^0.2.0",
|
|
36
|
-
"viser-vue": "^2.4.8",
|
|
37
|
-
"vue": "2.6.14",
|
|
38
|
-
"vue-i18n": "^8.27.2",
|
|
39
|
-
"vue-router": "^3.5.4",
|
|
40
|
-
"vuedraggable": "^2.24.3",
|
|
41
|
-
"vuex": "^3.6.2"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"script-loader": "^0.7.2",
|
|
45
|
-
"@ant-design/colors": "^6.0.0",
|
|
46
|
-
"@babel/core": "^7.18.10",
|
|
47
|
-
"@vue/cli-plugin-babel": "^4.5.19",
|
|
48
|
-
"@vue/cli-plugin-eslint": "^4.5.19",
|
|
49
|
-
"@vue/cli-service": "^4.5.19",
|
|
50
|
-
"@vue/eslint-config-standard": "^4.0.0",
|
|
51
|
-
"@vuepress/plugin-back-to-top": "^1.9.7",
|
|
52
|
-
"babel-eslint": "^10.1.0",
|
|
53
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
54
|
-
"babel-polyfill": "^6.26.0",
|
|
55
|
-
"compression-webpack-plugin": "^4.0.1",
|
|
56
|
-
"deepmerge": "^4.2.2",
|
|
57
|
-
"eslint": "^6.8.0",
|
|
58
|
-
"eslint-plugin-import": "^2.26.0",
|
|
59
|
-
"eslint-plugin-node": "^11.1.0",
|
|
60
|
-
"eslint-plugin-vue": "^6.2.2",
|
|
61
|
-
"eslint-plugin-promise": "^4.3.1",
|
|
62
|
-
"eslint-plugin-standard": "^4.1.0",
|
|
63
|
-
"fast-deep-equal": "^3.1.3",
|
|
64
|
-
"less-loader": "^6.2.0",
|
|
65
|
-
"style-resources-loader": "^1.5.0",
|
|
66
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
67
|
-
"vue-template-compiler": "2.6.14",
|
|
68
|
-
"vuepress": "^1.9.7",
|
|
69
|
-
"webpack": "^4.46.0",
|
|
70
|
-
"webpack-theme-color-replacer": "1.4.1",
|
|
71
|
-
"whatwg-fetch": "^3.6.2"
|
|
72
|
-
},
|
|
73
|
-
"browserslist": [
|
|
74
|
-
"> 1%",
|
|
75
|
-
"last 2 versions",
|
|
76
|
-
"not ie <= 10"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.4.43",
|
|
4
|
+
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "vue-cli-service serve",
|
|
7
|
+
"build": "vue-cli-service build",
|
|
8
|
+
"test:unit": "vue-cli-service test:unit",
|
|
9
|
+
"lint": "vue-cli-service lint",
|
|
10
|
+
"build:preview": "vue-cli-service build --mode preview",
|
|
11
|
+
"lint:nofix": "vue-cli-service lint --no-fix"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
15
|
+
"@antv/g2plot": "^2.4.20",
|
|
16
|
+
"lodash.get": "^4.4.2",
|
|
17
|
+
"js-base64": "^3.7.2",
|
|
18
|
+
"jsencrypt": "^3.2.1",
|
|
19
|
+
"vue-json-viewer": "^2.2.22",
|
|
20
|
+
"xlsx": "0.18.5",
|
|
21
|
+
"file-saver": "^2.0.5",
|
|
22
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
23
|
+
"@antv/data-set": "^0.11.8",
|
|
24
|
+
"animate.css": "^4.1.1",
|
|
25
|
+
"ant-design-vue": "^1.7.8",
|
|
26
|
+
"axios": "^0.27.2",
|
|
27
|
+
"clipboard": "^2.0.11",
|
|
28
|
+
"core-js": "^3.23.5",
|
|
29
|
+
"date-fns": "^2.28.0",
|
|
30
|
+
"default-passive-events": "^2.0.0",
|
|
31
|
+
"enquire.js": "^2.1.6",
|
|
32
|
+
"highlight.js": "^10.7.3",
|
|
33
|
+
"js-cookie": "^2.2.1",
|
|
34
|
+
"mockjs": "^1.1.0",
|
|
35
|
+
"nprogress": "^0.2.0",
|
|
36
|
+
"viser-vue": "^2.4.8",
|
|
37
|
+
"vue": "2.6.14",
|
|
38
|
+
"vue-i18n": "^8.27.2",
|
|
39
|
+
"vue-router": "^3.5.4",
|
|
40
|
+
"vuedraggable": "^2.24.3",
|
|
41
|
+
"vuex": "^3.6.2"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"script-loader": "^0.7.2",
|
|
45
|
+
"@ant-design/colors": "^6.0.0",
|
|
46
|
+
"@babel/core": "^7.18.10",
|
|
47
|
+
"@vue/cli-plugin-babel": "^4.5.19",
|
|
48
|
+
"@vue/cli-plugin-eslint": "^4.5.19",
|
|
49
|
+
"@vue/cli-service": "^4.5.19",
|
|
50
|
+
"@vue/eslint-config-standard": "^4.0.0",
|
|
51
|
+
"@vuepress/plugin-back-to-top": "^1.9.7",
|
|
52
|
+
"babel-eslint": "^10.1.0",
|
|
53
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
54
|
+
"babel-polyfill": "^6.26.0",
|
|
55
|
+
"compression-webpack-plugin": "^4.0.1",
|
|
56
|
+
"deepmerge": "^4.2.2",
|
|
57
|
+
"eslint": "^6.8.0",
|
|
58
|
+
"eslint-plugin-import": "^2.26.0",
|
|
59
|
+
"eslint-plugin-node": "^11.1.0",
|
|
60
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
61
|
+
"eslint-plugin-promise": "^4.3.1",
|
|
62
|
+
"eslint-plugin-standard": "^4.1.0",
|
|
63
|
+
"fast-deep-equal": "^3.1.3",
|
|
64
|
+
"less-loader": "^6.2.0",
|
|
65
|
+
"style-resources-loader": "^1.5.0",
|
|
66
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
67
|
+
"vue-template-compiler": "2.6.14",
|
|
68
|
+
"vuepress": "^1.9.7",
|
|
69
|
+
"webpack": "^4.46.0",
|
|
70
|
+
"webpack-theme-color-replacer": "1.4.1",
|
|
71
|
+
"whatwg-fetch": "^3.6.2"
|
|
72
|
+
},
|
|
73
|
+
"browserslist": [
|
|
74
|
+
"> 1%",
|
|
75
|
+
"last 2 versions",
|
|
76
|
+
"not ie <= 10"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -72,8 +72,8 @@ export default {
|
|
|
72
72
|
computed: {
|
|
73
73
|
// 过滤出用于新增/修改场景的表单项
|
|
74
74
|
realJsonData: function () {
|
|
75
|
-
return this.jsonData.filter(
|
|
76
|
-
return item.addOrEdit && item.addOrEdit !== 'no' && item.addOrEdit !== 'silenceAdd' && item.addOrEdit !== 'version'
|
|
75
|
+
return this.jsonData.filter((item) => {
|
|
76
|
+
return item.addOrEdit && item.addOrEdit !== 'no' && item.addOrEdit !== 'silenceAdd' && item.addOrEdit !== 'version' && !this.itemDisabled(item)
|
|
77
77
|
})
|
|
78
78
|
},
|
|
79
79
|
// 过滤出用于静默新增场景的表单项
|
|
@@ -149,6 +149,7 @@ export default {
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
computed: {
|
|
152
|
+
...mapState('account', { currUser: 'user' }),
|
|
152
153
|
...mapState('setting', ['isMobile']),
|
|
153
154
|
businessTitle () {
|
|
154
155
|
return this.businessType + this.title
|
|
@@ -302,7 +303,8 @@ export default {
|
|
|
302
303
|
const requestParameters = {
|
|
303
304
|
queryParamsName: this.queryParamsName,
|
|
304
305
|
form: {},
|
|
305
|
-
businessType: this.businessType
|
|
306
|
+
businessType: this.businessType,
|
|
307
|
+
operator: this.currUser.name
|
|
306
308
|
}
|
|
307
309
|
if (this.businessType === '修改') {
|
|
308
310
|
// 将更新需要的主键值加入到表单中
|