vue2-client 1.7.0 → 1.7.1

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 (126) hide show
  1. package/.env +15 -15
  2. package/CHANGELOG.md +31 -1
  3. package/Components.md +60 -0
  4. package/index.js +39 -30
  5. package/package.json +4 -2
  6. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +316 -316
  7. package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
  8. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -667
  9. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +735 -733
  10. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +466 -468
  11. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +510 -508
  12. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +144 -146
  13. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  14. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  15. package/src/base-client/components/common/Upload/Upload.vue +168 -168
  16. package/src/base-client/components/common/XAddForm/XAddForm.vue +72 -325
  17. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +365 -279
  18. package/src/base-client/components/common/XAddNativeForm/index.md +96 -56
  19. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  20. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -0
  21. package/src/base-client/components/common/XDataDrawer/index.js +3 -0
  22. package/src/base-client/components/common/XDataDrawer/index.md +41 -0
  23. package/src/base-client/components/common/XForm/XForm.vue +178 -180
  24. package/src/base-client/components/common/XForm/XFormItem.vue +521 -513
  25. package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -184
  26. package/src/base-client/components/common/XFormCol/XFormCol.vue +38 -38
  27. package/src/base-client/components/common/XFormTable/XFormTable.vue +356 -344
  28. package/src/base-client/components/common/XFormTable/index.md +97 -97
  29. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +132 -132
  30. package/src/base-client/components/common/XTable/XTable.vue +519 -506
  31. package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
  32. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +231 -231
  33. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  34. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  35. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  36. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  37. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  38. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  39. package/src/base-client/plugins/AppData.js +76 -76
  40. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  41. package/src/base-client/plugins/PagedList.js +177 -177
  42. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  43. package/src/base-client/plugins/i18n-extend.js +32 -32
  44. package/src/components/Ellipsis/Ellipsis.vue +65 -65
  45. package/src/components/Ellipsis/index.md +38 -38
  46. package/src/components/NumberInfo/index.md +43 -43
  47. package/src/components/STable/README.md +341 -341
  48. package/src/components/STable/index.js +318 -318
  49. package/src/components/Trend/index.md +45 -45
  50. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  51. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  52. package/src/components/exception/ExceptionPage.vue +70 -70
  53. package/src/components/form/FormRow.vue +52 -52
  54. package/src/components/index.js +36 -36
  55. package/src/components/menu/SideMenu.vue +62 -62
  56. package/src/components/menu/menu.js +273 -273
  57. package/src/components/page/header/index.less +40 -40
  58. package/src/components/setting/Setting.vue +235 -235
  59. package/src/components/table/StandardTable.vue +141 -141
  60. package/src/components/table/advance/ActionColumns.vue +158 -158
  61. package/src/components/table/advance/SearchArea.vue +355 -355
  62. package/src/components/tool/AStepItem.vue +60 -60
  63. package/src/components/tool/AvatarList.vue +68 -68
  64. package/src/components/tool/Drawer.vue +142 -142
  65. package/src/components/tool/TagSelect.vue +83 -83
  66. package/src/components/transition/PageToggleTransition.vue +97 -97
  67. package/src/config/CreateQueryConfig.js +307 -307
  68. package/src/config/default/admin.config.js +18 -18
  69. package/src/config/default/setting.config.js +3 -1
  70. package/src/config/replacer/resolve.config.js +67 -67
  71. package/src/layouts/CommonLayout.vue +42 -42
  72. package/src/layouts/ComponentLayoutOne.vue +47 -47
  73. package/src/layouts/PageLayout.vue +151 -151
  74. package/src/layouts/SinglePageView.vue +116 -116
  75. package/src/layouts/footer/PageFooter.vue +49 -49
  76. package/src/layouts/header/AdminHeader.vue +134 -134
  77. package/src/layouts/header/HeaderAvatar.vue +64 -64
  78. package/src/layouts/header/HeaderNotice.vue +176 -176
  79. package/src/layouts/header/HeaderSearch.vue +67 -67
  80. package/src/layouts/header/InstitutionDetail.vue +181 -181
  81. package/src/layouts/header/index.less +92 -92
  82. package/src/layouts/tabs/TabsHead.vue +190 -190
  83. package/src/layouts/tabs/TabsView.vue +379 -379
  84. package/src/mock/goods/index.js +108 -108
  85. package/src/pages/CreateQueryPage.vue +84 -84
  86. package/src/pages/login/Login.vue +369 -369
  87. package/src/pages/report/ReportTable.js +124 -124
  88. package/src/pages/report/ReportTableHome.vue +28 -28
  89. package/src/pages/resourceManage/orgListManage.vue +98 -98
  90. package/src/pages/system/dictionary/index.vue +43 -43
  91. package/src/pages/system/file/index.vue +317 -317
  92. package/src/pages/system/monitor/loginInfor/index.vue +36 -36
  93. package/src/pages/system/monitor/operLog/index.vue +36 -36
  94. package/src/pages/system/settings/index.vue +126 -126
  95. package/src/pages/system/settings/modifyPassword.vue +109 -109
  96. package/src/router/async/config.async.js +28 -28
  97. package/src/router/async/router.map.js +66 -66
  98. package/src/router/guards.js +52 -12
  99. package/src/router/index.js +27 -27
  100. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  101. package/src/services/api/LogDetailsViewApi.js +10 -10
  102. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  103. package/src/services/api/TicketDetailsViewApi.js +34 -34
  104. package/src/services/api/cas.js +79 -79
  105. package/src/services/api/common.js +137 -137
  106. package/src/services/api/commonTempTable.js +10 -10
  107. package/src/services/api/index.js +17 -17
  108. package/src/services/api/logininfor/index.js +6 -6
  109. package/src/services/api/manage.js +8 -8
  110. package/src/services/apiService.js +14 -14
  111. package/src/services/user.js +67 -67
  112. package/src/store/modules/index.js +4 -4
  113. package/src/theme/default/nprogress.less +76 -76
  114. package/src/theme/default/style.less +58 -58
  115. package/src/utils/EncryptUtil.js +53 -53
  116. package/src/utils/colors.js +107 -107
  117. package/src/utils/excel/Blob.js +180 -180
  118. package/src/utils/excel/Export2Excel.js +141 -141
  119. package/src/utils/formatter.js +68 -68
  120. package/src/utils/i18n.js +80 -80
  121. package/src/utils/login.js +138 -0
  122. package/src/utils/map-utils.js +37 -37
  123. package/src/utils/theme-color-replacer-extend.js +91 -91
  124. package/src/utils/themeUtil.js +100 -100
  125. package/src/utils/util.js +230 -230
  126. package/vue.config.js +106 -106
@@ -1,83 +1,83 @@
1
- <template>
2
- <div class="tag-select">
3
- <tag-select-option @click="toggleCheck">全部</tag-select-option>
4
- <slot></slot>
5
- <a v-show="showTrigger" ref="trigger" class="trigger" @click="toggle">展开<a-icon :type="collapsed ? 'down' : 'up'" style="margin-left: 5px"/></a>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- import TagSelectOption from './TagSelectOption'
11
-
12
- export default {
13
- name: 'TagSelect',
14
- Option: TagSelectOption,
15
- components: { TagSelectOption },
16
- data () {
17
- return {
18
- showTrigger: false,
19
- collapsed: true,
20
- screenWidth: document.body.clientWidth,
21
- checkAll: false
22
- }
23
- },
24
- watch: {
25
- screenWidth: function () {
26
- this.showTrigger = this.needTrigger()
27
- },
28
- collapsed: function (val) {
29
- this.$el.style.maxHeight = val ? '39px' : '78px'
30
- }
31
- },
32
- mounted () {
33
- const _this = this
34
- // 此处延迟执行,是为解决mouted未完全完成情况下引发的trigger显示bug
35
- setTimeout(() => {
36
- _this.showTrigger = _this.needTrigger()
37
- _this.$refs.trigger.style.display = _this.showTrigger ? 'inline' : 'none'
38
- }, 1)
39
- window.onresize = () => {
40
- return (() => {
41
- window.screenWidth = document.body.clientWidth
42
- _this.screenWidth = window.screenWidth
43
- })()
44
- }
45
- },
46
- methods: {
47
- needTrigger () {
48
- return this.$el.clientHeight < this.$el.scrollHeight || this.$el.scrollHeight > 39
49
- },
50
- toggle () {
51
- this.collapsed = !this.collapsed
52
- },
53
- getAllTags () {
54
- return this.$children.filter((item) => {
55
- return item.isTagSelectOption
56
- })
57
- },
58
- toggleCheck () {
59
- this.checkAll = !this.checkAll
60
- const tagList = this.getAllTags()
61
- tagList.forEach((item) => {
62
- item.checked = this.checkAll
63
- })
64
- }
65
- }
66
- }
67
- </script>
68
-
69
- <style lang="less" scoped>
70
- .tag-select{
71
- user-select: none;
72
- position: relative;
73
- overflow: hidden;
74
- max-height: 39px;
75
- padding-right: 50px;
76
- display: inline-block;
77
- }
78
- .trigger{
79
- position: absolute;
80
- top: 0;
81
- right: 0;
82
- }
83
- </style>
1
+ <template>
2
+ <div class="tag-select">
3
+ <tag-select-option @click="toggleCheck">全部</tag-select-option>
4
+ <slot></slot>
5
+ <a v-show="showTrigger" ref="trigger" class="trigger" @click="toggle">展开<a-icon :type="collapsed ? 'down' : 'up'" style="margin-left: 5px"/></a>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ import TagSelectOption from './TagSelectOption'
11
+
12
+ export default {
13
+ name: 'TagSelect',
14
+ Option: TagSelectOption,
15
+ components: { TagSelectOption },
16
+ data () {
17
+ return {
18
+ showTrigger: false,
19
+ collapsed: true,
20
+ screenWidth: document.body.clientWidth,
21
+ checkAll: false
22
+ }
23
+ },
24
+ watch: {
25
+ screenWidth: function () {
26
+ this.showTrigger = this.needTrigger()
27
+ },
28
+ collapsed: function (val) {
29
+ this.$el.style.maxHeight = val ? '39px' : '78px'
30
+ }
31
+ },
32
+ mounted () {
33
+ const _this = this
34
+ // 此处延迟执行,是为解决mouted未完全完成情况下引发的trigger显示bug
35
+ setTimeout(() => {
36
+ _this.showTrigger = _this.needTrigger()
37
+ _this.$refs.trigger.style.display = _this.showTrigger ? 'inline' : 'none'
38
+ }, 1)
39
+ window.onresize = () => {
40
+ return (() => {
41
+ window.screenWidth = document.body.clientWidth
42
+ _this.screenWidth = window.screenWidth
43
+ })()
44
+ }
45
+ },
46
+ methods: {
47
+ needTrigger () {
48
+ return this.$el.clientHeight < this.$el.scrollHeight || this.$el.scrollHeight > 39
49
+ },
50
+ toggle () {
51
+ this.collapsed = !this.collapsed
52
+ },
53
+ getAllTags () {
54
+ return this.$children.filter((item) => {
55
+ return item.isTagSelectOption
56
+ })
57
+ },
58
+ toggleCheck () {
59
+ this.checkAll = !this.checkAll
60
+ const tagList = this.getAllTags()
61
+ tagList.forEach((item) => {
62
+ item.checked = this.checkAll
63
+ })
64
+ }
65
+ }
66
+ }
67
+ </script>
68
+
69
+ <style lang="less" scoped>
70
+ .tag-select{
71
+ user-select: none;
72
+ position: relative;
73
+ overflow: hidden;
74
+ max-height: 39px;
75
+ padding-right: 50px;
76
+ display: inline-block;
77
+ }
78
+ .trigger{
79
+ position: absolute;
80
+ top: 0;
81
+ right: 0;
82
+ }
83
+ </style>
@@ -1,97 +1,97 @@
1
- <template>
2
- <transition
3
- v-if="!disabled"
4
- :enter-active-class="`animated ${enterAnimate} page-toggle-enter-active`"
5
- :leave-active-class="`animated ${leaveAnimate} page-toggle-leave-active`"
6
- >
7
- <slot></slot>
8
- </transition>
9
- <div v-else><slot></slot></div>
10
- </template>
11
-
12
- <script>
13
- import { preset as animates } from '@vue2-client/config/default/animate.config'
14
-
15
- export default {
16
- name: 'PageToggleTransition',
17
- props: {
18
- disabled: {
19
- type: Boolean,
20
- default: false
21
- },
22
- animate: {
23
- type: String,
24
- validator (value) {
25
- return animates.findIndex(item => item.name === value) !== -1
26
- },
27
- default: 'bounce'
28
- },
29
- // eslint-disable-next-line vue/require-default-prop
30
- direction: {
31
- type: String,
32
- validator (value) {
33
- return ['x', 'y', 'left', 'right', 'up', 'down', 'downLeft', 'upRight', 'downRight', 'upLeft', 'downBig',
34
- 'upBig', 'downLeft', 'downRight', 'topRight', 'bottomLeft', 'topLeft', 'bottomRight', 'default'].indexOf(value) > -1
35
- }
36
- },
37
- reverse: {
38
- type: Boolean,
39
- default: true
40
- }
41
- },
42
- computed: {
43
- enterAnimate () {
44
- return this.activeClass(false)
45
- },
46
- leaveAnimate () {
47
- return this.activeClass(true)
48
- }
49
- },
50
- methods: {
51
- activeClass (isLeave) {
52
- const animate = animates.find(item => this.animate === item.name)
53
- if (animate === undefined) {
54
- return ''
55
- }
56
- let direction = ''
57
- if (this.direction === undefined) {
58
- direction = animate.directions[0]
59
- } else {
60
- direction = animate.directions.find(item => item === this.direction)
61
- }
62
- direction = (direction === undefined || direction === 'default') ? '' : direction
63
- if (direction !== '') {
64
- direction = isLeave && this.reverse ? this.reversePosition(direction, animate.directions) : direction
65
- direction = direction[0].toUpperCase() + direction.substring(1)
66
- }
67
- const t = isLeave ? 'Out' : 'In'
68
- return animate.name + t + direction
69
- },
70
- reversePosition (direction, directions) {
71
- if (direction.length === 0 || direction === 'x' || direction === 'y') {
72
- return direction
73
- }
74
- let index = directions.indexOf(direction)
75
- index = (index % 2 === 1) ? index - 1 : index + 1
76
- return directions[index]
77
- }
78
- }
79
- }
80
- </script>
81
-
82
- <style lang="less">
83
- .page-toggle-enter-active{
84
- position: absolute !important;
85
- animation-duration: 0.8s !important;
86
- width: calc(100%) !important;
87
- }
88
- .page-toggle-leave-active{
89
- position: absolute !important;
90
- animation-duration: 0.8s !important;
91
- width: calc(100%) !important;
92
- }
93
- .page-toggle-enter{
94
- }
95
- .page-toggle-leave-to{
96
- }
97
- </style>
1
+ <template>
2
+ <transition
3
+ v-if="!disabled"
4
+ :enter-active-class="`animated ${enterAnimate} page-toggle-enter-active`"
5
+ :leave-active-class="`animated ${leaveAnimate} page-toggle-leave-active`"
6
+ >
7
+ <slot></slot>
8
+ </transition>
9
+ <div v-else><slot></slot></div>
10
+ </template>
11
+
12
+ <script>
13
+ import { preset as animates } from '@vue2-client/config/default/animate.config'
14
+
15
+ export default {
16
+ name: 'PageToggleTransition',
17
+ props: {
18
+ disabled: {
19
+ type: Boolean,
20
+ default: false
21
+ },
22
+ animate: {
23
+ type: String,
24
+ validator (value) {
25
+ return animates.findIndex(item => item.name === value) !== -1
26
+ },
27
+ default: 'bounce'
28
+ },
29
+ // eslint-disable-next-line vue/require-default-prop
30
+ direction: {
31
+ type: String,
32
+ validator (value) {
33
+ return ['x', 'y', 'left', 'right', 'up', 'down', 'downLeft', 'upRight', 'downRight', 'upLeft', 'downBig',
34
+ 'upBig', 'downLeft', 'downRight', 'topRight', 'bottomLeft', 'topLeft', 'bottomRight', 'default'].indexOf(value) > -1
35
+ }
36
+ },
37
+ reverse: {
38
+ type: Boolean,
39
+ default: true
40
+ }
41
+ },
42
+ computed: {
43
+ enterAnimate () {
44
+ return this.activeClass(false)
45
+ },
46
+ leaveAnimate () {
47
+ return this.activeClass(true)
48
+ }
49
+ },
50
+ methods: {
51
+ activeClass (isLeave) {
52
+ const animate = animates.find(item => this.animate === item.name)
53
+ if (animate === undefined) {
54
+ return ''
55
+ }
56
+ let direction = ''
57
+ if (this.direction === undefined) {
58
+ direction = animate.directions[0]
59
+ } else {
60
+ direction = animate.directions.find(item => item === this.direction)
61
+ }
62
+ direction = (direction === undefined || direction === 'default') ? '' : direction
63
+ if (direction !== '') {
64
+ direction = isLeave && this.reverse ? this.reversePosition(direction, animate.directions) : direction
65
+ direction = direction[0].toUpperCase() + direction.substring(1)
66
+ }
67
+ const t = isLeave ? 'Out' : 'In'
68
+ return animate.name + t + direction
69
+ },
70
+ reversePosition (direction, directions) {
71
+ if (direction.length === 0 || direction === 'x' || direction === 'y') {
72
+ return direction
73
+ }
74
+ let index = directions.indexOf(direction)
75
+ index = (index % 2 === 1) ? index - 1 : index + 1
76
+ return directions[index]
77
+ }
78
+ }
79
+ }
80
+ </script>
81
+
82
+ <style lang="less">
83
+ .page-toggle-enter-active{
84
+ position: absolute !important;
85
+ animation-duration: 0.8s !important;
86
+ width: calc(100%) !important;
87
+ }
88
+ .page-toggle-leave-active{
89
+ position: absolute !important;
90
+ animation-duration: 0.8s !important;
91
+ width: calc(100%) !important;
92
+ }
93
+ .page-toggle-enter{
94
+ }
95
+ .page-toggle-leave-to{
96
+ }
97
+ </style>