vue2-client 1.3.19 → 1.3.21

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 +323 -315
  2. package/index.js +30 -30
  3. package/package.json +76 -76
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  5. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +551 -551
  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/CustomColumnsDrawer/index.md +46 -46
  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 +162 -165
  12. package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
  13. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
  14. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  15. package/src/base-client/components/common/XForm/XForm.vue +274 -274
  16. package/src/base-client/components/common/XForm/XFormItem.vue +389 -389
  17. package/src/base-client/components/common/XFormTable/index.md +96 -96
  18. package/src/base-client/components/common/XTable/XTable.vue +278 -278
  19. package/src/base-client/components/system/LogDetailsView/LogDetailsView.vue +376 -376
  20. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  21. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  22. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  23. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  24. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  25. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  26. package/src/base-client/plugins/AppData.js +69 -69
  27. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  28. package/src/base-client/plugins/PagedList.js +177 -177
  29. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  30. package/src/base-client/plugins/i18n-extend.js +32 -32
  31. package/src/components/Ellipsis/index.md +38 -38
  32. package/src/components/NumberInfo/index.md +43 -43
  33. package/src/components/STable/README.md +341 -341
  34. package/src/components/STable/index.js +318 -318
  35. package/src/components/Trend/index.md +45 -45
  36. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  37. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  38. package/src/components/exception/ExceptionPage.vue +70 -70
  39. package/src/components/form/FormRow.vue +52 -52
  40. package/src/components/index.js +36 -36
  41. package/src/components/menu/SideMenu.vue +62 -62
  42. package/src/components/menu/menu.js +273 -273
  43. package/src/components/setting/Setting.vue +235 -235
  44. package/src/components/table/StandardTable.vue +141 -141
  45. package/src/components/table/advance/ActionColumns.vue +158 -158
  46. package/src/components/table/advance/SearchArea.vue +355 -355
  47. package/src/components/tool/AStepItem.vue +60 -60
  48. package/src/components/tool/AvatarList.vue +68 -68
  49. package/src/components/tool/Drawer.vue +142 -142
  50. package/src/components/tool/TagSelect.vue +83 -83
  51. package/src/components/transition/PageToggleTransition.vue +97 -97
  52. package/src/config/default/setting.config.js +41 -41
  53. package/src/config/replacer/resolve.config.js +67 -67
  54. package/src/layouts/AdminLayout.vue +174 -174
  55. package/src/layouts/header/AdminHeader.vue +104 -104
  56. package/src/layouts/header/HeaderNotice.vue +167 -167
  57. package/src/layouts/header/HeaderSearch.vue +67 -67
  58. package/src/layouts/header/InstitutionDetail.vue +181 -181
  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 +277 -277
  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/pages/system/ticket/index.vue +504 -461
  71. package/src/pages/system/ticket/submitTicketSuccess.vue +208 -206
  72. package/src/router/async/config.async.js +27 -27
  73. package/src/router/async/router.map.js +56 -56
  74. package/src/router/index.js +27 -27
  75. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  76. package/src/services/api/LogDetailsViewApi.js +10 -10
  77. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  78. package/src/services/api/TicketDetailsViewApi.js +34 -34
  79. package/src/services/api/common.js +58 -58
  80. package/src/services/api/commonTempTable.js +10 -10
  81. package/src/services/api/index.js +17 -17
  82. package/src/services/api/manage.js +8 -8
  83. package/src/store/mutation-types.js +2 -2
  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 +225 -225
  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 +99 -99
@@ -1,46 +1,46 @@
1
- # CustomColumnsDrawer 自定义表格列
2
-
3
- 提供一个可以自定义选择需要展示的表格列抽屉实现
4
-
5
-
6
-
7
- ## 何时使用
8
-
9
- 允许用户自定义选择需要展示的表格列,常用于列较多的表格查询展示。
10
-
11
-
12
-
13
- 引用方式:
14
-
15
- ```javascript
16
- import CustomColumnsDrawer from '@vue2-client/vue2-client/components/CustomColumnsDrawer'
17
-
18
- export default {
19
- components: {
20
- CustomColumnsDrawer
21
- }
22
- }
23
- ```
24
-
25
-
26
-
27
- ## 代码演示
28
-
29
- ```html
30
- <custom-columns-drawer
31
- :visible.sync="visible"
32
- :columns.sync="tableShowColumns"
33
- :columns-meta="columnsMeta"
34
- />
35
- ```
36
-
37
- ## API
38
-
39
- | 参数 | 说明 | 类型 | 默认值 |
40
- |-------------|-------------------------------|----------------|-------|
41
- | placement | 抽屉的方向,详情参考Ant Design Vue的官方文档 | String, Object | right |
42
- | width | 抽屉的宽度,详情参考Ant Design Vue的官方文档 | String, Object | 190 |
43
- | columnsMeta | 表格列配置的原始json数据 | Array | null |
44
- | visible | 是否显示 | Boolean | false |
45
-
46
-
1
+ # CustomColumnsDrawer 自定义表格列
2
+
3
+ 提供一个可以自定义选择需要展示的表格列抽屉实现
4
+
5
+
6
+
7
+ ## 何时使用
8
+
9
+ 允许用户自定义选择需要展示的表格列,常用于列较多的表格查询展示。
10
+
11
+
12
+
13
+ 引用方式:
14
+
15
+ ```javascript
16
+ import CustomColumnsDrawer from '@vue2-client/vue2-client/components/CustomColumnsDrawer'
17
+
18
+ export default {
19
+ components: {
20
+ CustomColumnsDrawer
21
+ }
22
+ }
23
+ ```
24
+
25
+
26
+
27
+ ## 代码演示
28
+
29
+ ```html
30
+ <custom-columns-drawer
31
+ :visible.sync="visible"
32
+ :columns.sync="tableShowColumns"
33
+ :columns-meta="columnsMeta"
34
+ />
35
+ ```
36
+
37
+ ## API
38
+
39
+ | 参数 | 说明 | 类型 | 默认值 |
40
+ |-------------|-------------------------------|----------------|-------|
41
+ | placement | 抽屉的方向,详情参考Ant Design Vue的官方文档 | String, Object | right |
42
+ | width | 抽屉的宽度,详情参考Ant Design Vue的官方文档 | String, Object | 190 |
43
+ | columnsMeta | 表格列配置的原始json数据 | Array | null |
44
+ | visible | 是否显示 | Boolean | false |
45
+
46
+
@@ -1,165 +1,165 @@
1
- <template>
2
- <a-drawer
3
- :visible="visible"
4
- :width="isMobile ? screenWidth : screenWidth * 0.85"
5
- placement="right"
6
- title="表单参数组配置"
7
- @close="onClose"
8
- >
9
- <create-simple-form-query
10
- :to-edit-json="editItem()"
11
- :visible.sync="createQueryVisible"
12
- @saveSimpleFormQueryParams="saveQueryParams"
13
- />
14
- <a-list
15
- :dataSource="columnJsonCopy()"
16
- :grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
17
- >
18
- <a-list-item slot="renderItem" slot-scope="item, index">
19
- <template v-if="item.type">
20
- <a-button class="new-btn" type="dashed" @click="toCreateQuery">
21
- <a-icon type="plus" />新增参数组
22
- </a-button>
23
- </template>
24
- <template v-else>
25
- <a-card :hoverable="true">
26
- <a-card-meta >
27
- <div slot="title" style="margin-bottom: 3px">{{ item.group }}</div>
28
- <a-icon slot="avatar" :style="{ fontSize:'2em' }" type="tags"/>
29
- <div slot="description" class="meta-content">{{ item.describe }}</div>
30
- </a-card-meta>
31
- <a slot="actions" @click="toEditQuery(index)">编辑</a>
32
- <a slot="actions" @click="toDelete(index)">删除</a>
33
- </a-card>
34
- </template>
35
- </a-list-item>
36
- </a-list>
37
- </a-drawer>
38
- </template>
39
-
40
- <script>
41
- import { mapState } from 'vuex'
42
- import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
43
-
44
- export default {
45
- name: 'FormGroupQuery',
46
- components: {
47
- CreateSimpleFormQuery
48
- },
49
- data () {
50
- return {
51
- // 页面宽度
52
- screenWidth: document.documentElement.clientWidth,
53
- // 是否显示生成查询配置抽屉
54
- createQueryVisible: false,
55
- targetIndex: 0,
56
- columnJson: {},
57
- editIndex: -1
58
- }
59
- },
60
- mounted () {
61
- this.initView()
62
- },
63
- computed: {
64
- ...mapState('setting', ['isMobile'])
65
- },
66
- props: {
67
- visible: {
68
- type: Boolean,
69
- default: false
70
- }
71
- },
72
- watch: {
73
- visible (rel) {
74
- if (rel) {
75
- this.initView()
76
- }
77
- }
78
- },
79
- methods: {
80
- // 初始化组件
81
- initView () {
82
- this.editIndex = -1
83
- this.$emit('getColumnJson', val => {
84
- this.columnJson = val
85
- })
86
- },
87
- toCreateQuery () {
88
- this.editIndex = -1
89
- this.createQueryVisible = true
90
- },
91
- toEditQuery (index) {
92
- this.editIndex = index
93
- this.createQueryVisible = true
94
- },
95
- toDelete (index) {
96
- const _this = this
97
- this.$confirm({
98
- title: '您确定要删除该参数组?',
99
- content: '删除的参数组无法恢复',
100
- okText: '确定',
101
- okType: 'danger',
102
- cancelText: '取消',
103
- onOk () {
104
- _this.columnJson.groups.splice(index, 1)
105
- _this.$emit('saveQueryParams', _this.columnJson)
106
- }
107
- })
108
- },
109
- onClose () {
110
- this.$emit('update:visible', false)
111
- },
112
- // 存储查询配置信息
113
- saveQueryParams (source) {
114
- if (!this.columnJson.groups) {
115
- this.columnJson.groups = []
116
- }
117
- if (this.editIndex !== -1) {
118
- this.columnJson.groups[this.editIndex] = source
119
- } else {
120
- this.columnJson.groups.push(source)
121
- }
122
- this.$emit('saveQueryParams', this.columnJson)
123
- this.createQueryVisible = false
124
- },
125
- columnJsonCopy () {
126
- let groups
127
- if (this.columnJson.groups) {
128
- groups = JSON.parse(JSON.stringify(this.columnJson.groups))
129
- } else {
130
- groups = []
131
- }
132
- groups.push({ type: 'add' })
133
- return groups
134
- },
135
- editItem () {
136
- if (this.editIndex !== -1) {
137
- return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
138
- } else {
139
- return {}
140
- }
141
- }
142
- }
143
- }
144
- </script>
145
- <style lang="less" scoped>
146
- .card-avatar {
147
- width: 48px;
148
- height: 48px;
149
- border-radius: 48px;
150
- }
151
- .new-btn{
152
- border-radius: 2px;
153
- width: 100%;
154
- height: 187px;
155
- }
156
- .meta-content{
157
- position: relative;
158
- overflow: hidden;
159
- text-overflow: ellipsis;
160
- display: -webkit-box;
161
- height: 64px;
162
- -webkit-line-clamp: 3;
163
- -webkit-box-orient: vertical;
164
- }
165
- </style>
1
+ <template>
2
+ <a-drawer
3
+ :visible="visible"
4
+ :width="isMobile ? screenWidth : screenWidth * 0.85"
5
+ placement="right"
6
+ title="表单参数组配置"
7
+ @close="onClose"
8
+ >
9
+ <create-simple-form-query
10
+ :to-edit-json="editItem()"
11
+ :visible.sync="createQueryVisible"
12
+ @saveSimpleFormQueryParams="saveQueryParams"
13
+ />
14
+ <a-list
15
+ :dataSource="columnJsonCopy()"
16
+ :grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
17
+ >
18
+ <a-list-item slot="renderItem" slot-scope="item, index">
19
+ <template v-if="item.type">
20
+ <a-button class="new-btn" type="dashed" @click="toCreateQuery">
21
+ <a-icon type="plus" />新增参数组
22
+ </a-button>
23
+ </template>
24
+ <template v-else>
25
+ <a-card :hoverable="true">
26
+ <a-card-meta >
27
+ <div slot="title" style="margin-bottom: 3px">{{ item.group }}</div>
28
+ <a-icon slot="avatar" :style="{ fontSize:'2em' }" type="tags"/>
29
+ <div slot="description" class="meta-content">{{ item.describe }}</div>
30
+ </a-card-meta>
31
+ <a slot="actions" @click="toEditQuery(index)">编辑</a>
32
+ <a slot="actions" @click="toDelete(index)">删除</a>
33
+ </a-card>
34
+ </template>
35
+ </a-list-item>
36
+ </a-list>
37
+ </a-drawer>
38
+ </template>
39
+
40
+ <script>
41
+ import { mapState } from 'vuex'
42
+ import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
43
+
44
+ export default {
45
+ name: 'FormGroupQuery',
46
+ components: {
47
+ CreateSimpleFormQuery
48
+ },
49
+ data () {
50
+ return {
51
+ // 页面宽度
52
+ screenWidth: document.documentElement.clientWidth,
53
+ // 是否显示生成查询配置抽屉
54
+ createQueryVisible: false,
55
+ targetIndex: 0,
56
+ columnJson: {},
57
+ editIndex: -1
58
+ }
59
+ },
60
+ mounted () {
61
+ this.initView()
62
+ },
63
+ computed: {
64
+ ...mapState('setting', ['isMobile'])
65
+ },
66
+ props: {
67
+ visible: {
68
+ type: Boolean,
69
+ default: false
70
+ }
71
+ },
72
+ watch: {
73
+ visible (rel) {
74
+ if (rel) {
75
+ this.initView()
76
+ }
77
+ }
78
+ },
79
+ methods: {
80
+ // 初始化组件
81
+ initView () {
82
+ this.editIndex = -1
83
+ this.$emit('getColumnJson', val => {
84
+ this.columnJson = val
85
+ })
86
+ },
87
+ toCreateQuery () {
88
+ this.editIndex = -1
89
+ this.createQueryVisible = true
90
+ },
91
+ toEditQuery (index) {
92
+ this.editIndex = index
93
+ this.createQueryVisible = true
94
+ },
95
+ toDelete (index) {
96
+ const _this = this
97
+ this.$confirm({
98
+ title: '您确定要删除该参数组?',
99
+ content: '删除的参数组无法恢复',
100
+ okText: '确定',
101
+ okType: 'danger',
102
+ cancelText: '取消',
103
+ onOk () {
104
+ _this.columnJson.groups.splice(index, 1)
105
+ _this.$emit('saveQueryParams', _this.columnJson)
106
+ }
107
+ })
108
+ },
109
+ onClose () {
110
+ this.$emit('update:visible', false)
111
+ },
112
+ // 存储查询配置信息
113
+ saveQueryParams (source) {
114
+ if (!this.columnJson.groups) {
115
+ this.columnJson.groups = []
116
+ }
117
+ if (this.editIndex !== -1) {
118
+ this.columnJson.groups[this.editIndex] = source
119
+ } else {
120
+ this.columnJson.groups.push(source)
121
+ }
122
+ this.$emit('saveQueryParams', this.columnJson)
123
+ this.createQueryVisible = false
124
+ },
125
+ columnJsonCopy () {
126
+ let groups
127
+ if (this.columnJson.groups) {
128
+ groups = JSON.parse(JSON.stringify(this.columnJson.groups))
129
+ } else {
130
+ groups = []
131
+ }
132
+ groups.push({ type: 'add' })
133
+ return groups
134
+ },
135
+ editItem () {
136
+ if (this.editIndex !== -1) {
137
+ return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
138
+ } else {
139
+ return {}
140
+ }
141
+ }
142
+ }
143
+ }
144
+ </script>
145
+ <style lang="less" scoped>
146
+ .card-avatar {
147
+ width: 48px;
148
+ height: 48px;
149
+ border-radius: 48px;
150
+ }
151
+ .new-btn{
152
+ border-radius: 2px;
153
+ width: 100%;
154
+ height: 187px;
155
+ }
156
+ .meta-content{
157
+ position: relative;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ display: -webkit-box;
161
+ height: 64px;
162
+ -webkit-line-clamp: 3;
163
+ -webkit-box-orient: vertical;
164
+ }
165
+ </style>