vue2-client 1.4.7 → 1.4.8

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 (101) hide show
  1. package/.env +15 -15
  2. package/.eslintrc.js +82 -82
  3. package/CHANGELOG.md +4 -0
  4. package/index.js +30 -30
  5. package/package.json +1 -1
  6. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  7. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +113 -113
  8. package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
  9. package/src/base-client/components/common/CitySelect/index.js +3 -3
  10. package/src/base-client/components/common/CitySelect/index.md +109 -109
  11. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +591 -591
  12. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
  13. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
  14. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
  15. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  16. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  17. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +210 -210
  18. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  19. package/src/base-client/components/common/Upload/index.js +3 -3
  20. package/src/base-client/components/common/XAddForm/XAddForm.vue +354 -354
  21. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
  22. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  23. package/src/base-client/components/common/XForm/XForm.vue +274 -274
  24. package/src/base-client/components/common/XForm/XFormItem.vue +389 -389
  25. package/src/base-client/components/common/XFormTable/XFormTable.vue +1 -0
  26. package/src/base-client/components/common/XFormTable/index.md +96 -96
  27. package/src/base-client/components/common/XTable/XTable.vue +4 -4
  28. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  29. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  30. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  31. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  32. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  33. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  34. package/src/base-client/plugins/AppData.js +69 -69
  35. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  36. package/src/base-client/plugins/PagedList.js +177 -177
  37. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  38. package/src/base-client/plugins/i18n-extend.js +32 -32
  39. package/src/components/Ellipsis/index.md +38 -38
  40. package/src/components/NumberInfo/index.md +43 -43
  41. package/src/components/STable/README.md +341 -341
  42. package/src/components/STable/index.js +318 -318
  43. package/src/components/Trend/index.md +45 -45
  44. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  45. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  46. package/src/components/exception/ExceptionPage.vue +70 -70
  47. package/src/components/form/FormRow.vue +52 -52
  48. package/src/components/index.js +36 -36
  49. package/src/components/menu/SideMenu.vue +62 -62
  50. package/src/components/menu/menu.js +273 -273
  51. package/src/components/setting/Setting.vue +235 -235
  52. package/src/components/table/StandardTable.vue +141 -141
  53. package/src/components/table/advance/ActionColumns.vue +158 -158
  54. package/src/components/table/advance/SearchArea.vue +355 -355
  55. package/src/components/tool/AStepItem.vue +60 -60
  56. package/src/components/tool/AvatarList.vue +68 -68
  57. package/src/components/tool/Drawer.vue +142 -142
  58. package/src/components/tool/TagSelect.vue +83 -83
  59. package/src/components/transition/PageToggleTransition.vue +97 -97
  60. package/src/config/CreateQueryConfig.js +307 -307
  61. package/src/config/replacer/resolve.config.js +67 -67
  62. package/src/layouts/AdminLayout.vue +174 -174
  63. package/src/layouts/header/AdminHeader.vue +104 -104
  64. package/src/layouts/header/HeaderNotice.vue +167 -167
  65. package/src/layouts/header/HeaderSearch.vue +67 -67
  66. package/src/layouts/header/InstitutionDetail.vue +181 -181
  67. package/src/layouts/tabs/TabsHead.vue +190 -190
  68. package/src/layouts/tabs/TabsView.vue +379 -379
  69. package/src/mock/goods/index.js +108 -108
  70. package/src/pages/CreateQueryPage.vue +65 -65
  71. package/src/pages/report/ReportTable.js +124 -124
  72. package/src/pages/report/ReportTableHome.vue +28 -28
  73. package/src/pages/resourceManage/orgListManage.vue +98 -98
  74. package/src/pages/system/dictionary/index.vue +43 -43
  75. package/src/pages/system/file/index.vue +317 -317
  76. package/src/pages/system/queryParams/index.vue +43 -43
  77. package/src/router/async/config.async.js +27 -27
  78. package/src/router/async/router.map.js +0 -2
  79. package/src/router/index.js +27 -27
  80. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  81. package/src/services/api/LogDetailsViewApi.js +10 -10
  82. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  83. package/src/services/api/TicketDetailsViewApi.js +34 -34
  84. package/src/services/api/commonTempTable.js +10 -10
  85. package/src/services/api/index.js +17 -17
  86. package/src/services/api/manage.js +8 -8
  87. package/src/services/api/restTools.js +24 -24
  88. package/src/store/mutation-types.js +2 -2
  89. package/src/theme/default/nprogress.less +76 -76
  90. package/src/theme/default/style.less +47 -47
  91. package/src/utils/colors.js +103 -103
  92. package/src/utils/excel/Blob.js +180 -180
  93. package/src/utils/excel/Export2Excel.js +141 -141
  94. package/src/utils/formatter.js +68 -68
  95. package/src/utils/i18n.js +80 -80
  96. package/src/utils/request.js +225 -225
  97. package/src/utils/routerUtil.js +364 -364
  98. package/src/utils/theme-color-replacer-extend.js +91 -91
  99. package/src/utils/themeUtil.js +100 -100
  100. package/src/utils/util.js +230 -230
  101. package/vue.config.js +2 -2
@@ -64,6 +64,7 @@
64
64
  </a-space>
65
65
  <slot name="expand"></slot>
66
66
  </template>
67
+ <!-- 底部插槽 -->
67
68
  <template slot="footer">
68
69
  <slot name="footer"></slot>
69
70
  </template>
@@ -1,96 +1,96 @@
1
- # XFormTable
2
-
3
- 动态查询控件,进一步整合了XTable和XForm
4
-
5
-
6
- ## 何时使用
7
-
8
- 当需要一个通用的表单,表格一体化控件时
9
-
10
-
11
- 引用方式:
12
-
13
- ```javascript
14
- import XFormTable from '@vue2-client/base-client/components/XFormTable/XFormTable'
15
-
16
- export default {
17
- components: {
18
- XFormTable
19
- }
20
- }
21
- ```
22
-
23
-
24
-
25
- ## 代码演示
26
-
27
- ```html
28
- <x-form-table
29
- title="业务名称"
30
- :queryParamsName="queryParamsName">
31
- </x-form-table>
32
- ```
33
-
34
- ## API
35
-
36
- | 参数 | 说明 | 类型 | 默认值 |
37
- |--------------------|-------------------------|---------|-------|
38
- | title | 业务名称 | String | '' |
39
- | queryParamsName | 查询配置JSON文件名 | String | null |
40
- | queryParamsJson | 查询配置文件Json,用于查询配置生成器的预览 | Object | null |
41
- | logicName | 通过logic获取表单表格配置 | String | null |
42
- | logicParam | 执行logic传递的参数 | Object | null |
43
- | fixedQueryForm | 固定查询表单,会和查询表单合并查询 | Object | {} |
44
- | fixedAddForm | 固定新增表单,会和新增表单合并 | Object | {} |
45
- | isExports | 是否显示导出按钮 | Boolean | true |
46
- | viewMode | 是否为预览模式 | Boolean | false |
47
- | @action | 表格详情列的单击事件 | event | - |
48
- | @afterSubmit | 增改提交后的回调方法 | event | - |
49
- | @afterDelete | 删除提交后的回调方法 | event | - |
50
- | @afterSearchSubmit | 查询提交后的回调方法 | event | - |
51
- | @afterQuery | 表格查询后的回调方法 | event | - |
52
- | @selectRow | 选择表格列后的回调方法 | event | - |
53
- ## 例子1
54
- ----
55
- (基础使用)
56
-
57
- ```vue
58
- <template>
59
- <x-form-table
60
- :queryParamsName="queryParamsName"
61
- @action="toDetail">
62
- </x-form-table>
63
- </template>
64
-
65
- <script>
66
- import XFormTable from '@vue2-client/base-client/components/XFormTable/XFormTable'
67
-
68
- export default {
69
- components: {
70
- XFormTable
71
- },
72
- data () {
73
- return {
74
- // 查询配置文件名
75
- queryParamsName: 'logQueryParams'
76
- }
77
- },
78
- methods: {
79
- toDetail (record, id) {
80
- console.debug("您选择了项:"+ id)
81
- }
82
- }
83
- }
84
- </script>
85
- ```
86
-
87
- 注意事项
88
- ----
89
-
90
- > 本组件已经实现了自适应布局,在不同分辨率下的设备均可得到基本理想的展示效果
91
- >
92
- > 本组件已支持临时表的创建,当表名以##(两个井号)开头,则认为在创建临时表。
93
- >
94
- > 临时表会在连接断开时自动销毁
95
- >
96
- > 临时表仅做展示数据用,增,改,删,需要传入对应的自定义事件。自定义处理方式
1
+ # XFormTable
2
+
3
+ 动态查询控件,进一步整合了XTable和XForm
4
+
5
+
6
+ ## 何时使用
7
+
8
+ 当需要一个通用的表单,表格一体化控件时
9
+
10
+
11
+ 引用方式:
12
+
13
+ ```javascript
14
+ import XFormTable from '@vue2-client/base-client/components/XFormTable/XFormTable'
15
+
16
+ export default {
17
+ components: {
18
+ XFormTable
19
+ }
20
+ }
21
+ ```
22
+
23
+
24
+
25
+ ## 代码演示
26
+
27
+ ```html
28
+ <x-form-table
29
+ title="业务名称"
30
+ :queryParamsName="queryParamsName">
31
+ </x-form-table>
32
+ ```
33
+
34
+ ## API
35
+
36
+ | 参数 | 说明 | 类型 | 默认值 |
37
+ |--------------------|-------------------------|---------|-------|
38
+ | title | 业务名称 | String | '' |
39
+ | queryParamsName | 查询配置JSON文件名 | String | null |
40
+ | queryParamsJson | 查询配置文件Json,用于查询配置生成器的预览 | Object | null |
41
+ | logicName | 通过logic获取表单表格配置 | String | null |
42
+ | logicParam | 执行logic传递的参数 | Object | null |
43
+ | fixedQueryForm | 固定查询表单,会和查询表单合并查询 | Object | {} |
44
+ | fixedAddForm | 固定新增表单,会和新增表单合并 | Object | {} |
45
+ | isExports | 是否显示导出按钮 | Boolean | true |
46
+ | viewMode | 是否为预览模式 | Boolean | false |
47
+ | @action | 表格详情列的单击事件 | event | - |
48
+ | @afterSubmit | 增改提交后的回调方法 | event | - |
49
+ | @afterDelete | 删除提交后的回调方法 | event | - |
50
+ | @afterSearchSubmit | 查询提交后的回调方法 | event | - |
51
+ | @afterQuery | 表格查询后的回调方法 | event | - |
52
+ | @selectRow | 选择表格列后的回调方法 | event | - |
53
+ ## 例子1
54
+ ----
55
+ (基础使用)
56
+
57
+ ```vue
58
+ <template>
59
+ <x-form-table
60
+ :queryParamsName="queryParamsName"
61
+ @action="toDetail">
62
+ </x-form-table>
63
+ </template>
64
+
65
+ <script>
66
+ import XFormTable from '@vue2-client/base-client/components/XFormTable/XFormTable'
67
+
68
+ export default {
69
+ components: {
70
+ XFormTable
71
+ },
72
+ data () {
73
+ return {
74
+ // 查询配置文件名
75
+ queryParamsName: 'logQueryParams'
76
+ }
77
+ },
78
+ methods: {
79
+ toDetail (record, id) {
80
+ console.debug("您选择了项:"+ id)
81
+ }
82
+ }
83
+ }
84
+ </script>
85
+ ```
86
+
87
+ 注意事项
88
+ ----
89
+
90
+ > 本组件已经实现了自适应布局,在不同分辨率下的设备均可得到基本理想的展示效果
91
+ >
92
+ > 本组件已支持临时表的创建,当表名以##(两个井号)开头,则认为在创建临时表。
93
+ >
94
+ > 临时表会在连接断开时自动销毁
95
+ >
96
+ > 临时表仅做展示数据用,增,改,删,需要传入对应的自定义事件。自定义处理方式
@@ -53,7 +53,7 @@
53
53
  </span>
54
54
  <!-- 操作列(action) -->
55
55
  <span v-else-if="item.slotType === 'action'" :key="index">
56
- <a @click="action(record)">{{ item.slotValue }}</a>
56
+ <a @click="action(record, item.dataIndex)">{{ item.slotValue }}</a>
57
57
  </span>
58
58
  </template>
59
59
  <template slot="footer">
@@ -196,7 +196,7 @@ export default {
196
196
  this.rowKey = this.tableColumns[0].dataIndex
197
197
  for (let i = 0; i < this.tableColumns.length; i++) {
198
198
  const item = this.tableColumns[i]
199
- if (item.dataIndex === 'action') {
199
+ if (item.slotType === 'action') {
200
200
  item.fixed = 'right'
201
201
  item.width = 70
202
202
  }
@@ -228,8 +228,8 @@ export default {
228
228
  })
229
229
  return data
230
230
  },
231
- action (record) {
232
- this.$emit('action', record, record[this.jsonData[0].dataIndex])
231
+ action (record, actionType) {
232
+ this.$emit('action', record, record[this.jsonData[0].dataIndex], actionType)
233
233
  },
234
234
  onSelectChange (selectedRowKeys, selectedRows) {
235
235
  this.selectedRowKeys = selectedRowKeys