vue2-client 1.4.36 → 1.4.38

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 (97) hide show
  1. package/CHANGELOG.md +442 -434
  2. package/index.js +30 -30
  3. package/package.json +78 -78
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  5. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
  6. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  7. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  8. package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
  9. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
  10. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  11. package/src/base-client/components/common/XForm/XForm.vue +274 -274
  12. package/src/base-client/components/common/XFormTable/index.md +96 -96
  13. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  14. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  15. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  16. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  17. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  18. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  19. package/src/base-client/plugins/AppData.js +73 -73
  20. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  21. package/src/base-client/plugins/PagedList.js +177 -177
  22. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  23. package/src/base-client/plugins/i18n-extend.js +32 -32
  24. package/src/components/Ellipsis/index.md +38 -38
  25. package/src/components/FileImageItem/FileItem.vue +60 -0
  26. package/src/components/FileImageItem/ImageItem.vue +78 -0
  27. package/src/components/FileImageItem/index.js +4 -0
  28. package/src/components/FilePreview/FilePreview.vue +110 -0
  29. package/src/components/FilePreview/index.js +3 -0
  30. package/src/components/NumberInfo/index.md +43 -43
  31. package/src/components/STable/README.md +341 -341
  32. package/src/components/STable/index.js +318 -318
  33. package/src/components/Trend/index.md +45 -45
  34. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  35. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  36. package/src/components/form/FormRow.vue +52 -52
  37. package/src/components/index.js +36 -36
  38. package/src/components/menu/SideMenu.vue +62 -62
  39. package/src/components/menu/menu.js +273 -273
  40. package/src/components/page/header/index.less +40 -40
  41. package/src/components/setting/Setting.vue +235 -235
  42. package/src/components/table/StandardTable.vue +141 -141
  43. package/src/components/table/advance/ActionColumns.vue +158 -158
  44. package/src/components/table/advance/SearchArea.vue +355 -355
  45. package/src/components/tool/AStepItem.vue +60 -60
  46. package/src/components/tool/AvatarList.vue +68 -68
  47. package/src/components/tool/Drawer.vue +142 -142
  48. package/src/components/tool/TagSelect.vue +83 -83
  49. package/src/components/transition/PageToggleTransition.vue +97 -97
  50. package/src/config/replacer/resolve.config.js +67 -67
  51. package/src/layouts/AdminLayout.vue +174 -174
  52. package/src/layouts/PageLayout.vue +151 -151
  53. package/src/layouts/SinglePageView.vue +105 -105
  54. package/src/layouts/header/AdminHeader.vue +104 -104
  55. package/src/layouts/header/HeaderNotice.vue +167 -167
  56. package/src/layouts/header/HeaderSearch.vue +67 -67
  57. package/src/layouts/header/InstitutionDetail.vue +181 -181
  58. package/src/layouts/header/index.less +92 -92
  59. package/src/layouts/tabs/TabsHead.vue +190 -190
  60. package/src/layouts/tabs/TabsView.vue +379 -379
  61. package/src/mock/goods/index.js +108 -108
  62. package/src/pages/CreateQueryPage.vue +65 -65
  63. package/src/pages/login/Login.vue +345 -345
  64. package/src/pages/report/ReportTable.js +124 -124
  65. package/src/pages/report/ReportTableHome.vue +28 -28
  66. package/src/pages/resourceManage/orgListManage.vue +98 -98
  67. package/src/pages/system/dictionary/index.vue +43 -43
  68. package/src/pages/system/file/index.vue +317 -317
  69. package/src/pages/system/monitor/loginInfor/index.vue +36 -36
  70. package/src/pages/system/monitor/operLog/index.vue +36 -36
  71. package/src/pages/system/queryParams/index.vue +43 -43
  72. package/src/pages/system/ticket/submitTicketSuccess.vue +46 -3
  73. package/src/router/async/config.async.js +27 -27
  74. package/src/router/async/router.map.js +65 -65
  75. package/src/router/index.js +27 -27
  76. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  77. package/src/services/api/LogDetailsViewApi.js +10 -10
  78. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  79. package/src/services/api/TicketDetailsViewApi.js +34 -34
  80. package/src/services/api/cas.js +79 -79
  81. package/src/services/api/commonTempTable.js +10 -10
  82. package/src/services/api/index.js +17 -17
  83. package/src/services/api/manage.js +8 -8
  84. package/src/services/apiService.js +13 -13
  85. package/src/services/user.js +53 -53
  86. package/src/store/modules/index.js +4 -4
  87. package/src/theme/default/nprogress.less +76 -76
  88. package/src/theme/default/style.less +47 -47
  89. package/src/utils/colors.js +103 -103
  90. package/src/utils/excel/Blob.js +180 -180
  91. package/src/utils/excel/Export2Excel.js +141 -141
  92. package/src/utils/formatter.js +68 -68
  93. package/src/utils/i18n.js +80 -80
  94. package/src/utils/routerUtil.js +364 -364
  95. package/src/utils/theme-color-replacer-extend.js +91 -91
  96. package/src/utils/themeUtil.js +100 -100
  97. package/src/utils/util.js +230 -230
@@ -0,0 +1,110 @@
1
+ <template>
2
+ <div v-if="!pathError">
3
+ <!-- 文件 -->
4
+ <div v-if="!showImagePreview" class="preview-doc-container">
5
+ <a-spin size="large" :spinning="previewDocLoading" />
6
+ <iframe
7
+ v-show="!previewDocLoading"
8
+ :src="previewDocUrl"
9
+ width="100%"
10
+ height="100%"
11
+ frameborder="0"
12
+ @load="previewDocLoading = false" />
13
+ </div>
14
+ <!-- 图片 -->
15
+ <div v-else style="text-align: center">
16
+ <img :src="previewImageSrc" alt="image" class="preview-image">
17
+ </div>
18
+ </div>
19
+ <a-empty v-else description="文件路径为空" />
20
+ </template>
21
+
22
+ <script>
23
+ import { Base64 } from 'js-base64'
24
+
25
+ export default {
26
+ name: 'FilePreview',
27
+ props: {
28
+ path: {
29
+ type: String,
30
+ required: true
31
+ },
32
+ // 文件服务器
33
+ fileServer: {
34
+ type: String,
35
+ default: 'http://123.60.214.109:8406'
36
+ },
37
+ // 文档预览服务 API
38
+ previewDocService: {
39
+ type: String,
40
+ default: 'http://123.60.214.109:8012/onlinePreview?url='
41
+ }
42
+ },
43
+ data () {
44
+ return {
45
+ // 文档预览
46
+ previewDocLoading: true,
47
+ previewDocUrl: '',
48
+ // 图片预览
49
+ showImagePreview: false,
50
+ previewImageSrc: '',
51
+ // 路径是否为空
52
+ pathError: false
53
+ }
54
+ },
55
+ watch: {
56
+ // 路径改变时刷新预览
57
+ path: function () {
58
+ this.preview()
59
+ }
60
+ },
61
+ mounted () {
62
+ this.preview()
63
+ },
64
+ methods: {
65
+ preview () {
66
+ if (!this.path) {
67
+ this.pathError = true
68
+ return
69
+ }
70
+ this.pathError = false
71
+ if (this.isImage()) {
72
+ this.previewImageSrc = this.path
73
+ this.showImagePreview = true
74
+ } else {
75
+ const previewDocUrl = this.previewDocService + encodeURIComponent(Base64.encode(this.fileServer + this.path))
76
+ if (this.previewDocUrl !== previewDocUrl) {
77
+ this.previewDocLoading = true
78
+ this.previewDocUrl = previewDocUrl
79
+ }
80
+ this.showImagePreview = false
81
+ }
82
+ },
83
+ // 判断是否为图片
84
+ isImage () {
85
+ const index = this.path.lastIndexOf('.')
86
+ if (index === -1) {
87
+ return false
88
+ }
89
+ const suffix = this.path.substr(index + 1)
90
+ if (!suffix || !IMAGE_SUFFIX_ARRAY.includes(suffix)) {
91
+ return false
92
+ }
93
+ return true
94
+ }
95
+ }
96
+ }
97
+ // 图片后缀
98
+ const IMAGE_SUFFIX_ARRAY = ['xbm', 'tif', 'pjp', 'svgz', 'jpg', 'jpeg', 'ico', 'tiff', 'gif', 'svg', 'jfif', 'webp', 'png', 'bmp', 'pjpeg', 'avif']
99
+ </script>
100
+
101
+ <style>
102
+ .preview-doc-container {
103
+ height: calc(100vh - 60px);
104
+ padding-top: 20px;
105
+ }
106
+ .preview-image {
107
+ max-width: 100%;
108
+ max-height: 100vh;
109
+ }
110
+ </style>
@@ -0,0 +1,3 @@
1
+ import FilePreview from '@vue2-client/components/FilePreview/FilePreview'
2
+
3
+ export default FilePreview
@@ -1,43 +1,43 @@
1
- # NumberInfo 数据文本
2
-
3
- 常用在数据卡片中,用于突出展示某个业务数据。
4
-
5
-
6
-
7
- 引用方式:
8
-
9
- ```javascript
10
- import NumberInfo from '@vue2-client/components/NumberInfo'
11
-
12
- export default {
13
- components: {
14
- NumberInfo
15
- }
16
- }
17
- ```
18
-
19
-
20
-
21
- ## 代码演示 [demo](https://pro.loacg.com/test/home)
22
-
23
- ```html
24
- <number-info
25
- :sub-title="() => { return 'Visits this week' }"
26
- :total="12321"
27
- status="up"
28
- :sub-total="17.1"></number-info>
29
- ```
30
-
31
-
32
-
33
- ## API
34
-
35
- | 参数 | 说明 | 类型 | 默认值 |
36
- |----------|------------------|------------|---------|
37
- | title | 标题 | ReactNode\ | string | -
38
- | subTitle | 子标题 | ReactNode\ | string | -
39
- | total | 总量 | ReactNode\ | string | -
40
- | subTotal | 子总量 | ReactNode\ | string | -
41
- | status | 增加状态 | 'up \ | down' | -
42
- | theme | 状态样式 | string | 'light' |
43
- | gap | 设置数字和描述之间的间距(像素) | number | 8 |
1
+ # NumberInfo 数据文本
2
+
3
+ 常用在数据卡片中,用于突出展示某个业务数据。
4
+
5
+
6
+
7
+ 引用方式:
8
+
9
+ ```javascript
10
+ import NumberInfo from '@vue2-client/components/NumberInfo'
11
+
12
+ export default {
13
+ components: {
14
+ NumberInfo
15
+ }
16
+ }
17
+ ```
18
+
19
+
20
+
21
+ ## 代码演示 [demo](https://pro.loacg.com/test/home)
22
+
23
+ ```html
24
+ <number-info
25
+ :sub-title="() => { return 'Visits this week' }"
26
+ :total="12321"
27
+ status="up"
28
+ :sub-total="17.1"></number-info>
29
+ ```
30
+
31
+
32
+
33
+ ## API
34
+
35
+ | 参数 | 说明 | 类型 | 默认值 |
36
+ |----------|------------------|------------|---------|
37
+ | title | 标题 | ReactNode\ | string | -
38
+ | subTitle | 子标题 | ReactNode\ | string | -
39
+ | total | 总量 | ReactNode\ | string | -
40
+ | subTotal | 子总量 | ReactNode\ | string | -
41
+ | status | 增加状态 | 'up \ | down' | -
42
+ | theme | 状态样式 | string | 'light' |
43
+ | gap | 设置数字和描述之间的间距(像素) | number | 8 |