vue2-client 1.6.48 → 1.6.49

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 (111) hide show
  1. package/CHANGELOG.md +625 -622
  2. package/index.js +30 -30
  3. package/package.json +81 -81
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +316 -316
  5. package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
  6. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +733 -733
  7. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +508 -508
  8. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +140 -140
  9. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  10. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  11. package/src/base-client/components/common/Upload/Upload.vue +168 -168
  12. package/src/base-client/components/common/XAddForm/XAddForm.vue +325 -325
  13. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +279 -279
  14. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  15. package/src/base-client/components/common/XForm/XForm.vue +180 -180
  16. package/src/base-client/components/common/XForm/XFormItem.vue +513 -513
  17. package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -184
  18. package/src/base-client/components/common/XFormCol/XFormCol.vue +38 -38
  19. package/src/base-client/components/common/XFormTable/XFormTable.vue +336 -336
  20. package/src/base-client/components/common/XFormTable/index.md +97 -97
  21. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +132 -132
  22. package/src/base-client/components/common/XTable/XTable.vue +6 -5
  23. package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
  24. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  25. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  26. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  27. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  28. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  29. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  30. package/src/base-client/plugins/AppData.js +76 -76
  31. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  32. package/src/base-client/plugins/PagedList.js +177 -177
  33. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  34. package/src/base-client/plugins/i18n-extend.js +32 -32
  35. package/src/components/Ellipsis/Ellipsis.vue +65 -65
  36. package/src/components/Ellipsis/index.md +38 -38
  37. package/src/components/NumberInfo/index.md +43 -43
  38. package/src/components/STable/README.md +341 -341
  39. package/src/components/STable/index.js +318 -318
  40. package/src/components/Trend/index.md +45 -45
  41. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  42. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  43. package/src/components/exception/ExceptionPage.vue +70 -70
  44. package/src/components/form/FormRow.vue +52 -52
  45. package/src/components/index.js +36 -36
  46. package/src/components/menu/SideMenu.vue +62 -62
  47. package/src/components/menu/menu.js +273 -273
  48. package/src/components/page/header/index.less +40 -40
  49. package/src/components/setting/Setting.vue +235 -235
  50. package/src/components/table/StandardTable.vue +141 -141
  51. package/src/components/table/advance/ActionColumns.vue +158 -158
  52. package/src/components/table/advance/SearchArea.vue +355 -355
  53. package/src/components/tool/AStepItem.vue +60 -60
  54. package/src/components/tool/AvatarList.vue +68 -68
  55. package/src/components/tool/Drawer.vue +142 -142
  56. package/src/components/tool/TagSelect.vue +83 -83
  57. package/src/components/transition/PageToggleTransition.vue +97 -97
  58. package/src/config/CreateQueryConfig.js +307 -307
  59. package/src/config/default/admin.config.js +18 -18
  60. package/src/config/default/setting.config.js +46 -46
  61. package/src/config/replacer/resolve.config.js +67 -67
  62. package/src/layouts/CommonLayout.vue +42 -42
  63. package/src/layouts/ComponentLayoutOne.vue +47 -47
  64. package/src/layouts/PageLayout.vue +151 -151
  65. package/src/layouts/SinglePageView.vue +116 -116
  66. package/src/layouts/footer/PageFooter.vue +49 -49
  67. package/src/layouts/header/AdminHeader.vue +134 -134
  68. package/src/layouts/header/HeaderAvatar.vue +64 -64
  69. package/src/layouts/header/HeaderNotice.vue +176 -176
  70. package/src/layouts/header/HeaderSearch.vue +67 -67
  71. package/src/layouts/header/InstitutionDetail.vue +181 -181
  72. package/src/layouts/header/index.less +92 -92
  73. package/src/layouts/tabs/TabsHead.vue +190 -190
  74. package/src/layouts/tabs/TabsView.vue +379 -379
  75. package/src/mock/goods/index.js +108 -108
  76. package/src/pages/login/Login.vue +369 -366
  77. package/src/pages/report/ReportTable.js +124 -124
  78. package/src/pages/report/ReportTableHome.vue +28 -28
  79. package/src/pages/resourceManage/orgListManage.vue +98 -98
  80. package/src/pages/system/file/index.vue +317 -317
  81. package/src/pages/system/settings/index.vue +126 -126
  82. package/src/pages/system/settings/modifyPassword.vue +109 -109
  83. package/src/router/async/config.async.js +28 -28
  84. package/src/router/async/router.map.js +68 -68
  85. package/src/router/index.js +27 -27
  86. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  87. package/src/services/api/LogDetailsViewApi.js +10 -10
  88. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  89. package/src/services/api/TicketDetailsViewApi.js +34 -34
  90. package/src/services/api/cas.js +79 -79
  91. package/src/services/api/common.js +9 -0
  92. package/src/services/api/commonTempTable.js +10 -10
  93. package/src/services/api/index.js +17 -17
  94. package/src/services/api/logininfor/index.js +6 -6
  95. package/src/services/api/manage.js +8 -8
  96. package/src/services/apiService.js +14 -14
  97. package/src/services/user.js +67 -67
  98. package/src/store/modules/index.js +4 -4
  99. package/src/theme/default/nprogress.less +76 -76
  100. package/src/theme/default/style.less +58 -58
  101. package/src/utils/EncryptUtil.js +53 -53
  102. package/src/utils/colors.js +107 -107
  103. package/src/utils/excel/Blob.js +180 -180
  104. package/src/utils/excel/Export2Excel.js +141 -141
  105. package/src/utils/formatter.js +68 -68
  106. package/src/utils/i18n.js +80 -80
  107. package/src/utils/map-utils.js +37 -37
  108. package/src/utils/theme-color-replacer-extend.js +91 -91
  109. package/src/utils/themeUtil.js +100 -100
  110. package/src/utils/util.js +230 -230
  111. package/vue.config.js +106 -106
package/vue.config.js CHANGED
@@ -1,106 +1,106 @@
1
- const path = require('path')
2
- const webpack = require('webpack')
3
- const ThemeColorReplacer = require('webpack-theme-color-replacer')
4
- const { getThemeColors, modifyVars } = require('./src/utils/themeUtil')
5
- const { resolveCss } = require('./src/utils/theme-color-replacer-extend')
6
- const CompressionWebpackPlugin = require('compression-webpack-plugin')
7
-
8
- const productionGzipExtensions = ['js', 'css']
9
- const isProd = process.env.NODE_ENV === 'production'
10
-
11
- const server = 'http://61.134.55.234:8405'
12
- // const local = 'http://localhost:8445/webmeter'
13
- const local = 'http://61.134.55.234:8456/webmeter'
14
- // const local = 'http://localhost:8080'
15
-
16
- module.exports = {
17
- devServer: {
18
- // development server port 8000
19
- port: 8001,
20
- // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
21
- proxy: {
22
- '/rs': {
23
- target: server,
24
- ws: false,
25
- changeOrigin: true
26
- },
27
- '/auth': {
28
- pathRewrite: { '^/auth/': '/rs/auth/' },
29
- target: local,
30
- changeOrigin: true
31
- },
32
- '/api': {
33
- pathRewrite: { '^/api/af-system/': '/rs/' },
34
- // pathRewrite: { '^/api': '/' },
35
- target: local,
36
- changeOrigin: true
37
- },
38
- '/resource': {
39
- pathRewrite: { '^/resource': '/' },
40
- target: 'http://127.0.0.1:4789',
41
- changeOrigin: true
42
- }
43
- }
44
- },
45
- pluginOptions: {
46
- 'style-resources-loader': {
47
- preProcessor: 'less',
48
- patterns: [path.resolve(__dirname, './src/theme/theme.less')]
49
- }
50
- },
51
- configureWebpack: config => {
52
- config.entry.app = ['babel-polyfill', 'whatwg-fetch', './src/main.js']
53
- config.performance = {
54
- hints: false
55
- }
56
- config.plugins.push(
57
- new ThemeColorReplacer({
58
- fileName: 'css/theme-colors-[contenthash:8].css',
59
- matchColors: getThemeColors(),
60
- injectCss: true,
61
- resolveCss
62
- })
63
- )
64
- // Ignore all locale files of moment.js
65
- config.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/))
66
- // 生产环境下将资源压缩成gzip格式
67
- if (isProd) {
68
- // add `CompressionWebpack` plugin to webpack plugins
69
- config.plugins.push(new CompressionWebpackPlugin({
70
- algorithm: 'gzip',
71
- test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
72
- threshold: 10240,
73
- minRatio: 0.8
74
- }))
75
- }
76
- // if prod, add externals
77
- // if (isProd) {
78
- // config.externals = assetsCDN.externals
79
- // }
80
- },
81
- chainWebpack: config => {
82
- // 生产环境下关闭css压缩的 colormin 项,因为此项优化与主题色替换功能冲突
83
- if (isProd) {
84
- config.plugin('optimize-css')
85
- .tap(args => {
86
- args[0].cssnanoOptions.preset[1].colormin = false
87
- return args
88
- })
89
- }
90
- config.resolve.alias.set('@vue2-client', path.resolve(__dirname, 'src'))
91
- },
92
- css: {
93
- loaderOptions: {
94
- less: {
95
- lessOptions: {
96
- modifyVars: modifyVars(),
97
- javascriptEnabled: true
98
- }
99
- }
100
- }
101
- },
102
- publicPath: process.env.VUE_APP_PUBLIC_PATH,
103
- outputDir: 'dist',
104
- assetsDir: 'static',
105
- productionSourceMap: false
106
- }
1
+ const path = require('path')
2
+ const webpack = require('webpack')
3
+ const ThemeColorReplacer = require('webpack-theme-color-replacer')
4
+ const { getThemeColors, modifyVars } = require('./src/utils/themeUtil')
5
+ const { resolveCss } = require('./src/utils/theme-color-replacer-extend')
6
+ const CompressionWebpackPlugin = require('compression-webpack-plugin')
7
+
8
+ const productionGzipExtensions = ['js', 'css']
9
+ const isProd = process.env.NODE_ENV === 'production'
10
+
11
+ const server = 'http://61.134.55.234:8405'
12
+ // const local = 'http://localhost:8445/webmeter'
13
+ const local = 'http://61.134.55.234:8456/webmeter'
14
+ // const local = 'http://localhost:8080'
15
+
16
+ module.exports = {
17
+ devServer: {
18
+ // development server port 8000
19
+ port: 8001,
20
+ // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
21
+ proxy: {
22
+ '/rs': {
23
+ target: server,
24
+ ws: false,
25
+ changeOrigin: true
26
+ },
27
+ '/auth': {
28
+ pathRewrite: { '^/auth/': '/rs/auth/' },
29
+ target: local,
30
+ changeOrigin: true
31
+ },
32
+ '/api': {
33
+ pathRewrite: { '^/api/af-system/': '/rs/' },
34
+ // pathRewrite: { '^/api': '/' },
35
+ target: local,
36
+ changeOrigin: true
37
+ },
38
+ '/resource': {
39
+ pathRewrite: { '^/resource': '/' },
40
+ target: 'http://127.0.0.1:4789',
41
+ changeOrigin: true
42
+ }
43
+ }
44
+ },
45
+ pluginOptions: {
46
+ 'style-resources-loader': {
47
+ preProcessor: 'less',
48
+ patterns: [path.resolve(__dirname, './src/theme/theme.less')]
49
+ }
50
+ },
51
+ configureWebpack: config => {
52
+ config.entry.app = ['babel-polyfill', 'whatwg-fetch', './src/main.js']
53
+ config.performance = {
54
+ hints: false
55
+ }
56
+ config.plugins.push(
57
+ new ThemeColorReplacer({
58
+ fileName: 'css/theme-colors-[contenthash:8].css',
59
+ matchColors: getThemeColors(),
60
+ injectCss: true,
61
+ resolveCss
62
+ })
63
+ )
64
+ // Ignore all locale files of moment.js
65
+ config.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/))
66
+ // 生产环境下将资源压缩成gzip格式
67
+ if (isProd) {
68
+ // add `CompressionWebpack` plugin to webpack plugins
69
+ config.plugins.push(new CompressionWebpackPlugin({
70
+ algorithm: 'gzip',
71
+ test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
72
+ threshold: 10240,
73
+ minRatio: 0.8
74
+ }))
75
+ }
76
+ // if prod, add externals
77
+ // if (isProd) {
78
+ // config.externals = assetsCDN.externals
79
+ // }
80
+ },
81
+ chainWebpack: config => {
82
+ // 生产环境下关闭css压缩的 colormin 项,因为此项优化与主题色替换功能冲突
83
+ if (isProd) {
84
+ config.plugin('optimize-css')
85
+ .tap(args => {
86
+ args[0].cssnanoOptions.preset[1].colormin = false
87
+ return args
88
+ })
89
+ }
90
+ config.resolve.alias.set('@vue2-client', path.resolve(__dirname, 'src'))
91
+ },
92
+ css: {
93
+ loaderOptions: {
94
+ less: {
95
+ lessOptions: {
96
+ modifyVars: modifyVars(),
97
+ javascriptEnabled: true
98
+ }
99
+ }
100
+ }
101
+ },
102
+ publicPath: process.env.VUE_APP_PUBLIC_PATH,
103
+ outputDir: 'dist',
104
+ assetsDir: 'static',
105
+ productionSourceMap: false
106
+ }