vue2-client 1.4.11 → 1.4.13

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 (96) hide show
  1. package/CHANGELOG.md +366 -362
  2. package/index.js +30 -30
  3. package/package.json +78 -78
  4. package/src/App.vue +4 -2
  5. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  6. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
  7. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
  8. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  9. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  10. package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
  11. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
  12. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  13. package/src/base-client/components/common/XForm/XForm.vue +274 -274
  14. package/src/base-client/components/common/XForm/XFormItem.vue +389 -389
  15. package/src/base-client/components/common/XFormTable/index.md +96 -96
  16. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  17. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  18. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  19. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  20. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  21. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  22. package/src/base-client/plugins/AppData.js +69 -69
  23. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  24. package/src/base-client/plugins/PagedList.js +177 -177
  25. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  26. package/src/base-client/plugins/i18n-extend.js +32 -32
  27. package/src/components/Ellipsis/index.md +38 -38
  28. package/src/components/NumberInfo/index.md +43 -43
  29. package/src/components/STable/README.md +341 -341
  30. package/src/components/STable/index.js +318 -318
  31. package/src/components/Trend/index.md +45 -45
  32. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  33. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  34. package/src/components/exception/ExceptionPage.vue +2 -2
  35. package/src/components/form/FormRow.vue +52 -52
  36. package/src/components/index.js +36 -36
  37. package/src/components/menu/SideMenu.vue +62 -62
  38. package/src/components/menu/menu.js +273 -273
  39. package/src/components/setting/Setting.vue +235 -235
  40. package/src/components/table/StandardTable.vue +141 -141
  41. package/src/components/table/advance/ActionColumns.vue +158 -158
  42. package/src/components/table/advance/SearchArea.vue +355 -355
  43. package/src/components/tool/AStepItem.vue +60 -60
  44. package/src/components/tool/AvatarList.vue +68 -68
  45. package/src/components/tool/Drawer.vue +142 -142
  46. package/src/components/tool/TagSelect.vue +83 -83
  47. package/src/components/transition/PageToggleTransition.vue +97 -97
  48. package/src/config/default/setting.config.js +1 -1
  49. package/src/config/replacer/resolve.config.js +67 -67
  50. package/src/layouts/AdminLayout.vue +174 -174
  51. package/src/layouts/header/AdminHeader.vue +104 -104
  52. package/src/layouts/header/HeaderNotice.vue +167 -167
  53. package/src/layouts/header/HeaderSearch.vue +67 -67
  54. package/src/layouts/header/InstitutionDetail.vue +181 -181
  55. package/src/layouts/tabs/TabsHead.vue +190 -190
  56. package/src/layouts/tabs/TabsView.vue +379 -379
  57. package/src/mock/goods/index.js +108 -108
  58. package/src/pages/CreateQueryPage.vue +65 -65
  59. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -0
  60. package/src/pages/dashboard/workplace/i18n.js +40 -0
  61. package/src/pages/dashboard/workplace/index.js +2 -0
  62. package/src/pages/dashboard/workplace/index.less +59 -0
  63. package/src/pages/login/Login.vue +27 -41
  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/queryParams/index.vue +43 -43
  70. package/src/router/async/config.async.js +27 -27
  71. package/src/router/async/router.map.js +5 -0
  72. package/src/router/index.js +27 -27
  73. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  74. package/src/services/api/LogDetailsViewApi.js +10 -10
  75. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  76. package/src/services/api/TicketDetailsViewApi.js +34 -34
  77. package/src/services/api/commonTempTable.js +10 -10
  78. package/src/services/api/index.js +17 -17
  79. package/src/services/api/manage.js +8 -8
  80. package/src/services/apiService.js +1 -0
  81. package/src/services/user.js +13 -5
  82. package/src/store/modules/index.js +4 -4
  83. package/src/store/mutation-types.js +1 -0
  84. package/src/theme/default/nprogress.less +76 -76
  85. package/src/theme/default/style.less +47 -47
  86. package/src/utils/colors.js +103 -103
  87. package/src/utils/excel/Blob.js +180 -180
  88. package/src/utils/excel/Export2Excel.js +141 -141
  89. package/src/utils/formatter.js +68 -68
  90. package/src/utils/i18n.js +80 -80
  91. package/src/utils/request.js +109 -33
  92. package/src/utils/routerUtil.js +364 -364
  93. package/src/utils/theme-color-replacer-extend.js +91 -91
  94. package/src/utils/themeUtil.js +100 -100
  95. package/src/utils/util.js +230 -230
  96. package/vue.config.js +7 -0
@@ -1,45 +1,45 @@
1
- # Trend 趋势标记
2
-
3
- 趋势符号,标记上升和下降趋势。通常用绿色代表“好”,红色代表“不好”,股票涨跌场景除外。
4
-
5
-
6
-
7
- 引用方式:
8
-
9
- ```javascript
10
- import Trend from '@vue2-client/components/Trend'
11
-
12
- export default {
13
- components: {
14
- Trend
15
- }
16
- }
17
- ```
18
-
19
-
20
-
21
- ## 代码演示 [demo](https://pro.loacg.com/test/home)
22
-
23
- ```html
24
- <trend flag="up">5%</trend>
25
- ```
26
-
27
- ```html
28
- <trend flag="up">
29
- <span slot="term">工资</span>
30
- 5%
31
- </trend>
32
- ```
33
-
34
- ```html
35
- <trend flag="up" term="工资">5%</trend>
36
- ```
37
-
38
-
39
- ## API
40
-
41
- | 参数 | 说明 | 类型 | 默认值 |
42
- |--------------|------------|---------|--------|
43
- | flag | 上升下降标识:`up | down` | string | - |
44
- | reverseColor | 颜色反转 | Boolean | false |
45
-
1
+ # Trend 趋势标记
2
+
3
+ 趋势符号,标记上升和下降趋势。通常用绿色代表“好”,红色代表“不好”,股票涨跌场景除外。
4
+
5
+
6
+
7
+ 引用方式:
8
+
9
+ ```javascript
10
+ import Trend from '@vue2-client/components/Trend'
11
+
12
+ export default {
13
+ components: {
14
+ Trend
15
+ }
16
+ }
17
+ ```
18
+
19
+
20
+
21
+ ## 代码演示 [demo](https://pro.loacg.com/test/home)
22
+
23
+ ```html
24
+ <trend flag="up">5%</trend>
25
+ ```
26
+
27
+ ```html
28
+ <trend flag="up">
29
+ <span slot="term">工资</span>
30
+ 5%
31
+ </trend>
32
+ ```
33
+
34
+ ```html
35
+ <trend flag="up" term="工资">5%</trend>
36
+ ```
37
+
38
+
39
+ ## API
40
+
41
+ | 参数 | 说明 | 类型 | 默认值 |
42
+ |--------------|------------|---------|--------|
43
+ | flag | 上升下降标识:`up | down` | string | - |
44
+ | reverseColor | 颜色反转 | Boolean | false |
45
+
@@ -1,157 +1,157 @@
1
- <template>
2
- <div class="theme-color" :style="{backgroundColor: color}" @click="toggle">
3
- <a-icon v-if="sChecked" type="check" />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- const Group = {
9
- name: 'ColorCheckboxGroup',
10
- props: {
11
- defaultValues: {
12
- type: Array,
13
- required: false,
14
- default: () => []
15
- },
16
- multiple: {
17
- type: Boolean,
18
- required: false,
19
- default: false
20
- }
21
- },
22
- data () {
23
- return {
24
- values: [],
25
- options: []
26
- }
27
- },
28
- computed: {
29
- colors () {
30
- const colors = []
31
- this.options.forEach(item => {
32
- if (item.sChecked) {
33
- colors.push(item.color)
34
- }
35
- })
36
- return colors
37
- }
38
- },
39
- provide () {
40
- return {
41
- groupContext: this
42
- }
43
- },
44
- watch: {
45
- values (value) {
46
- this.$emit('change', value, this.colors)
47
- }
48
- },
49
- methods: {
50
- handleChange (option) {
51
- if (!option.checked) {
52
- if (this.values.indexOf(option.value) > -1) {
53
- this.values = this.values.filter(item => item !== option.value)
54
- }
55
- } else {
56
- if (!this.multiple) {
57
- this.values = [option.value]
58
- this.options.forEach(item => {
59
- if (item.value !== option.value) {
60
- item.sChecked = false
61
- }
62
- })
63
- } else {
64
- this.values.push(option.value)
65
- }
66
- }
67
- }
68
- },
69
- render (h) {
70
- const clear = h('div', { attrs: { style: 'clear: both' } })
71
- return h(
72
- 'div',
73
- {},
74
- [this.$slots.default, clear]
75
- )
76
- }
77
- }
78
-
79
- export default {
80
- name: 'ColorCheckbox',
81
- Group: Group,
82
- props: {
83
- color: {
84
- type: String,
85
- required: true
86
- },
87
- value: {
88
- type: [String, Number],
89
- required: true
90
- },
91
- checked: {
92
- type: Boolean,
93
- required: false,
94
- default: false
95
- }
96
- },
97
- data () {
98
- return {
99
- sChecked: this.initChecked()
100
- }
101
- },
102
- computed: {
103
- },
104
- inject: ['groupContext'],
105
- watch: {
106
- 'sChecked': function () {
107
- const value = {
108
- value: this.value,
109
- color: this.color,
110
- checked: this.sChecked
111
- }
112
- this.$emit('change', value)
113
- const groupContext = this.groupContext
114
- if (groupContext) {
115
- groupContext.handleChange(value)
116
- }
117
- }
118
- },
119
- created () {
120
- const groupContext = this.groupContext
121
- if (groupContext) {
122
- groupContext.options.push(this)
123
- }
124
- },
125
- methods: {
126
- toggle () {
127
- if (this.groupContext.multiple || !this.sChecked) {
128
- this.sChecked = !this.sChecked
129
- }
130
- },
131
- initChecked () {
132
- const groupContext = this.groupContext
133
- if (!groupContext) {
134
- return this.checked
135
- } else if (groupContext.multiple) {
136
- return groupContext.defaultValues.indexOf(this.value) > -1
137
- } else {
138
- return groupContext.defaultValues[0] === this.value
139
- }
140
- }
141
- }
142
- }
143
- </script>
144
-
145
- <style lang="less" scoped>
146
- .theme-color{
147
- float: left;
148
- width: 20px;
149
- height: 20px;
150
- border-radius: 2px;
151
- cursor: pointer;
152
- margin-right: 8px;
153
- text-align: center;
154
- color: @base-bg-color;
155
- font-weight: bold;
156
- }
157
- </style>
1
+ <template>
2
+ <div class="theme-color" :style="{backgroundColor: color}" @click="toggle">
3
+ <a-icon v-if="sChecked" type="check" />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ const Group = {
9
+ name: 'ColorCheckboxGroup',
10
+ props: {
11
+ defaultValues: {
12
+ type: Array,
13
+ required: false,
14
+ default: () => []
15
+ },
16
+ multiple: {
17
+ type: Boolean,
18
+ required: false,
19
+ default: false
20
+ }
21
+ },
22
+ data () {
23
+ return {
24
+ values: [],
25
+ options: []
26
+ }
27
+ },
28
+ computed: {
29
+ colors () {
30
+ const colors = []
31
+ this.options.forEach(item => {
32
+ if (item.sChecked) {
33
+ colors.push(item.color)
34
+ }
35
+ })
36
+ return colors
37
+ }
38
+ },
39
+ provide () {
40
+ return {
41
+ groupContext: this
42
+ }
43
+ },
44
+ watch: {
45
+ values (value) {
46
+ this.$emit('change', value, this.colors)
47
+ }
48
+ },
49
+ methods: {
50
+ handleChange (option) {
51
+ if (!option.checked) {
52
+ if (this.values.indexOf(option.value) > -1) {
53
+ this.values = this.values.filter(item => item !== option.value)
54
+ }
55
+ } else {
56
+ if (!this.multiple) {
57
+ this.values = [option.value]
58
+ this.options.forEach(item => {
59
+ if (item.value !== option.value) {
60
+ item.sChecked = false
61
+ }
62
+ })
63
+ } else {
64
+ this.values.push(option.value)
65
+ }
66
+ }
67
+ }
68
+ },
69
+ render (h) {
70
+ const clear = h('div', { attrs: { style: 'clear: both' } })
71
+ return h(
72
+ 'div',
73
+ {},
74
+ [this.$slots.default, clear]
75
+ )
76
+ }
77
+ }
78
+
79
+ export default {
80
+ name: 'ColorCheckbox',
81
+ Group: Group,
82
+ props: {
83
+ color: {
84
+ type: String,
85
+ required: true
86
+ },
87
+ value: {
88
+ type: [String, Number],
89
+ required: true
90
+ },
91
+ checked: {
92
+ type: Boolean,
93
+ required: false,
94
+ default: false
95
+ }
96
+ },
97
+ data () {
98
+ return {
99
+ sChecked: this.initChecked()
100
+ }
101
+ },
102
+ computed: {
103
+ },
104
+ inject: ['groupContext'],
105
+ watch: {
106
+ 'sChecked': function () {
107
+ const value = {
108
+ value: this.value,
109
+ color: this.color,
110
+ checked: this.sChecked
111
+ }
112
+ this.$emit('change', value)
113
+ const groupContext = this.groupContext
114
+ if (groupContext) {
115
+ groupContext.handleChange(value)
116
+ }
117
+ }
118
+ },
119
+ created () {
120
+ const groupContext = this.groupContext
121
+ if (groupContext) {
122
+ groupContext.options.push(this)
123
+ }
124
+ },
125
+ methods: {
126
+ toggle () {
127
+ if (this.groupContext.multiple || !this.sChecked) {
128
+ this.sChecked = !this.sChecked
129
+ }
130
+ },
131
+ initChecked () {
132
+ const groupContext = this.groupContext
133
+ if (!groupContext) {
134
+ return this.checked
135
+ } else if (groupContext.multiple) {
136
+ return groupContext.defaultValues.indexOf(this.value) > -1
137
+ } else {
138
+ return groupContext.defaultValues[0] === this.value
139
+ }
140
+ }
141
+ }
142
+ }
143
+ </script>
144
+
145
+ <style lang="less" scoped>
146
+ .theme-color{
147
+ float: left;
148
+ width: 20px;
149
+ height: 20px;
150
+ border-radius: 2px;
151
+ cursor: pointer;
152
+ margin-right: 8px;
153
+ text-align: center;
154
+ color: @base-bg-color;
155
+ font-weight: bold;
156
+ }
157
+ </style>