sks-plugin-el-erp 1.0.4-beta.9 → 1.0.6

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 (66) hide show
  1. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  2. package/.idea/modules.xml +7 -7
  3. package/.idea/sks-plugin-el-erp.iml +11 -11
  4. package/.idea/vcs.xml +5 -5
  5. package/LICENSE +20 -20
  6. package/README.md +115 -115
  7. package/babel.config.js +12 -12
  8. package/index.js +189 -136
  9. package/lib/clipboard.js +36 -36
  10. package/lib/core.js +1232 -1484
  11. package/lib/dialog-form.js +252 -252
  12. package/lib/modal.js +32 -32
  13. package/lib/print-dialog-form.js +176 -176
  14. package/lib/ref.js +7 -7
  15. package/lib/scroll-to.js +58 -58
  16. package/lib/sks-app-utils.js +465 -125
  17. package/lib/sks-mock-utils.js +82 -0
  18. package/lib/sks-mock.js +90 -89
  19. package/lib/sks-model-utils.js +131 -129
  20. package/lib/sks-number-utils.js +23 -23
  21. package/lib/sks-page.js +297 -297
  22. package/lib/sksConfig.js +15 -9
  23. package/lib/style/element-ui.css +79 -56
  24. package/lib/style/element-ui.css.map +1 -1
  25. package/lib/style/sks-main.css +13 -13
  26. package/lib/style-sass/element-ui.scss +87 -64
  27. package/lib/ui/core/sks-table-prop-table.vue +129 -129
  28. package/lib/ui/filter-param/sks-filter-param-date-range/index.js +8 -0
  29. package/lib/ui/filter-param/sks-filter-param-date-range/src/main.vue +169 -0
  30. package/lib/ui/filter-param/sks-filter-param-dict-select/index.js +8 -0
  31. package/lib/ui/filter-param/sks-filter-param-dict-select/src/main.vue +95 -0
  32. package/lib/ui/filter-param/sks-filter-param-input/index.js +8 -0
  33. package/lib/ui/filter-param/sks-filter-param-input/src/main.vue +83 -0
  34. package/lib/ui/sks-button/index.vue +130 -130
  35. package/lib/ui/sks-checkbox/index.js +8 -0
  36. package/lib/ui/sks-checkbox/src/main.vue +96 -0
  37. package/lib/ui/sks-date/index.js +8 -0
  38. package/lib/ui/sks-date/src/main.vue +127 -0
  39. package/lib/ui/sks-date-ymd-range/index.vue +123 -123
  40. package/lib/ui/sks-dict-label-tag/index.js +8 -8
  41. package/lib/ui/sks-dict-label-tag/src/index.vue +25 -25
  42. package/lib/ui/sks-image-use-img-url/index.js +8 -8
  43. package/lib/ui/sks-image-use-img-url/src/index.vue +44 -44
  44. package/lib/ui/sks-pagination/index.js +8 -8
  45. package/lib/ui/sks-pagination/src/main.vue +102 -102
  46. package/lib/ui/sks-right-toolbar/index.js +8 -8
  47. package/lib/ui/sks-right-toolbar/src/index.vue +99 -99
  48. package/lib/ui/sks-select-multiple-by-lookup-controller/index.js +8 -0
  49. package/lib/ui/sks-select-multiple-by-lookup-controller/src/main.vue +440 -0
  50. package/lib/ui/sks-select-single-by-lookup-controller/index.js +8 -0
  51. package/lib/ui/sks-select-single-by-lookup-controller/src/main.vue +463 -0
  52. package/lib/ui/sks-status-select/index.js +8 -0
  53. package/lib/ui/sks-status-select/src/main.vue +202 -0
  54. package/lib/ui/sks-table/index.js +8 -8
  55. package/lib/ui/sks-table/src/SksTable.vue +425 -425
  56. package/lib/ui/sks-table-query-form-el/index.js +8 -0
  57. package/lib/ui/sks-table-query-form-el/src/main.vue +396 -0
  58. package/lib/validate.js +83 -83
  59. package/package-lock.bak.json +16097 -16097
  60. package/package-lock.mint.bak.json +14379 -14379
  61. package/package.bak.json +31 -31
  62. package/package.json +39 -39
  63. package/serverless.yml.bak +19 -19
  64. package/vue.config.js +50 -50
  65. package/.idea/watcherTasks.xml +0 -25
  66. package/libout/clipboard.js +0 -36
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
package/.idea/modules.xml CHANGED
@@ -1,8 +1,8 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/sks-plugin-el-erp.iml" filepath="$PROJECT_DIR$/.idea/sks-plugin-el-erp.iml" />
6
- </modules>
7
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/sks-plugin-el-erp.iml" filepath="$PROJECT_DIR$/.idea/sks-plugin-el-erp.iml" />
6
+ </modules>
7
+ </component>
8
8
  </project>
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/temp" />
6
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
12
  </module>
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
6
  </project>
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 Ruoyi Autumn
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Ruoyi Autumn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,115 +1,115 @@
1
- # element用于erp的扩展
2
-
3
- # 发布新版本
4
- ## 正式版
5
- ```shell
6
- npm publish
7
- ```
8
-
9
- ## 测试版
10
-
11
- ```json
12
- {
13
- "version": "1.0.4-beta.2",
14
- "package.json": "发布时文件中的版本号,下个测试版最后面的版本号+1,例如 1.0.4-beta.3"
15
- }
16
- ```
17
- ### 发布测试版
18
- ```shell
19
- npm publish --tag beta1
20
- ```
21
- ### 按照测试版
22
- ```shell
23
- npm install sks-plugin-el-erp@beta1
24
- ```
25
-
26
- ## 撤销发布包
27
- 千万不要使用
28
- 即使你撤销了发布的包,发包的时候也不能再和被撤销的包的名称和版本重复了
29
- ```shell
30
- #npm unpublish
31
- ```
32
-
33
- ## 依赖说明
34
-
35
- ```
36
- npm版本 6.14.12
37
- nodejs版本 v10.24.1
38
- ```
39
-
40
- ## win笔记本使用
41
- 能够编译成静态
42
- ```
43
- nodejs版本 v14.17.3
44
- npm版本 6.14.13
45
- ```
46
-
47
- ## linux mint使用
48
- 能够编译成静态
49
- ```
50
- nodejs版本 v14.17.3
51
- npm版本 6.14.13
52
- ```
53
-
54
-
55
- ## nginx配置
56
- ### 开发配置
57
-
58
- ```nginx
59
- server {
60
- listen 38088;
61
- server_name location;
62
-
63
- location /{
64
- proxy_set_header Host $http_host;
65
- proxy_set_header X-Real-IP $remote_addr;
66
- proxy_set_header REMOTE-HOST $remote_addr;
67
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
68
- proxy_pass http://127.0.0.1:28088/;
69
- }
70
-
71
- location /sks-plugin-el-erp/ {
72
- #location 路径不能改,实际目录为 /home/shoukaiseki/gitwork/sks-plugin-el-erp;
73
- #否则无法正确映射到实际路径
74
- root /home/shoukaiseki/gitwork;
75
- autoindex on; #开启目录浏览功能;
76
- autoindex_exact_size off; #关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b;
77
- autoindex_localtime on; #开启以服务器本地时区显示文件修改日期!
78
- }
79
- }
80
-
81
- ```
82
- ### 正式配置
83
-
84
- ```nginx
85
- server {
86
- #fastcgi_intercept_errors on;
87
- listen 80;
88
- server_name www.shoukaiseki.top;
89
-
90
- location /{
91
-
92
- proxy_set_header Host $http_host;
93
- proxy_set_header X-Real-IP $remote_addr;
94
- proxy_set_header REMOTE-HOST $remote_addr;
95
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
96
- proxy_pass http://127.0.0.1:81/syntaxhighlighter/;
97
- }
98
-
99
- location /sks-plugin-el-erp/ {
100
- #location 路径不能改,实际目录为 D:/gitproject/sks-plugin-el-erp;
101
- #否则无法正确映射到实际路径
102
- root D:/gitproject/;
103
- autoindex on; #开启目录浏览功能;
104
- autoindex_exact_size off; #关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b;
105
- autoindex_localtime on; #开启以服务器本地时区显示文件修改日期!
106
- }
107
-
108
- error_page 500 502 503 504 /50x.html;
109
- location = /50x.html {
110
- root html;
111
- }
112
- }
113
-
114
-
115
- ```
1
+ # element用于erp的扩展
2
+
3
+ # 发布新版本
4
+ ## 正式版
5
+ ```shell
6
+ npm publish
7
+ ```
8
+
9
+ ## 测试版
10
+
11
+ ```json
12
+ {
13
+ "version": "1.0.4-beta.2",
14
+ "package.json": "发布时文件中的版本号,下个测试版最后面的版本号+1,例如 1.0.4-beta.3"
15
+ }
16
+ ```
17
+ ### 发布测试版
18
+ ```shell
19
+ npm publish --tag beta1
20
+ ```
21
+ ### 按照测试版
22
+ ```shell
23
+ npm install sks-plugin-el-erp@beta1
24
+ ```
25
+
26
+ ## 撤销发布包
27
+ 千万不要使用
28
+ 即使你撤销了发布的包,发包的时候也不能再和被撤销的包的名称和版本重复了
29
+ ```shell
30
+ #npm unpublish
31
+ ```
32
+
33
+ ## 依赖说明
34
+
35
+ ```
36
+ npm版本 6.14.12
37
+ nodejs版本 v10.24.1
38
+ ```
39
+
40
+ ## win笔记本使用
41
+ 能够编译成静态
42
+ ```
43
+ nodejs版本 v14.17.3
44
+ npm版本 6.14.13
45
+ ```
46
+
47
+ ## linux mint使用
48
+ 能够编译成静态
49
+ ```
50
+ nodejs版本 v14.17.3
51
+ npm版本 6.14.13
52
+ ```
53
+
54
+
55
+ ## nginx配置
56
+ ### 开发配置
57
+
58
+ ```nginx
59
+ server {
60
+ listen 38088;
61
+ server_name location;
62
+
63
+ location /{
64
+ proxy_set_header Host $http_host;
65
+ proxy_set_header X-Real-IP $remote_addr;
66
+ proxy_set_header REMOTE-HOST $remote_addr;
67
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
68
+ proxy_pass http://127.0.0.1:28088/;
69
+ }
70
+
71
+ location /sks-plugin-el-erp/ {
72
+ #location 路径不能改,实际目录为 /home/shoukaiseki/gitwork/sks-plugin-el-erp;
73
+ #否则无法正确映射到实际路径
74
+ root /home/shoukaiseki/gitwork;
75
+ autoindex on; #开启目录浏览功能;
76
+ autoindex_exact_size off; #关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b;
77
+ autoindex_localtime on; #开启以服务器本地时区显示文件修改日期!
78
+ }
79
+ }
80
+
81
+ ```
82
+ ### 正式配置
83
+
84
+ ```nginx
85
+ server {
86
+ #fastcgi_intercept_errors on;
87
+ listen 80;
88
+ server_name www.shoukaiseki.top;
89
+
90
+ location /{
91
+
92
+ proxy_set_header Host $http_host;
93
+ proxy_set_header X-Real-IP $remote_addr;
94
+ proxy_set_header REMOTE-HOST $remote_addr;
95
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
96
+ proxy_pass http://127.0.0.1:81/syntaxhighlighter/;
97
+ }
98
+
99
+ location /sks-plugin-el-erp/ {
100
+ #location 路径不能改,实际目录为 D:/gitproject/sks-plugin-el-erp;
101
+ #否则无法正确映射到实际路径
102
+ root D:/gitproject/;
103
+ autoindex on; #开启目录浏览功能;
104
+ autoindex_exact_size off; #关闭详细文件大小统计,让文件大小显示MB,GB单位,默认为b;
105
+ autoindex_localtime on; #开启以服务器本地时区显示文件修改日期!
106
+ }
107
+
108
+ error_page 500 502 503 504 /50x.html;
109
+ location = /50x.html {
110
+ root html;
111
+ }
112
+ }
113
+
114
+
115
+ ```
package/babel.config.js CHANGED
@@ -1,13 +1,13 @@
1
- module.exports = {
2
- presets: [
3
- // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
4
- '@vue/cli-plugin-babel/preset'
5
- ],
6
- 'env': {
7
- 'development': {
8
- // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
9
- // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
10
- 'plugins': ['dynamic-import-node']
11
- }
12
- }
1
+ module.exports = {
2
+ presets: [
3
+ // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
4
+ '@vue/cli-plugin-babel/preset'
5
+ ],
6
+ 'env': {
7
+ 'development': {
8
+ // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
9
+ // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
10
+ 'plugins': ['dynamic-import-node']
11
+ }
12
+ }
13
13
  }