@qqt-product/system 0.0.16 → 0.0.18

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 (148) hide show
  1. package/dist/index.es.js +9601 -9171
  2. package/dist/index.umd.js +34 -35
  3. package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +16 -12
  4. package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +14 -10
  5. package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +17 -12
  6. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +13 -9
  7. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +13 -9
  8. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +16 -12
  9. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +9 -0
  10. package/dist/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue.d.ts +387 -3
  11. package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +16 -12
  12. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +13 -9
  13. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +18 -14
  14. package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +1 -1
  15. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +2 -1
  16. package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +21 -1
  17. package/dist/lib/components/QRoleList/src/components/userAuthorization/index.d.ts +4 -4
  18. package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +19 -2
  19. package/dist/lib/components/QSupplierAccountList/src/useConfigData.d.ts +9 -0
  20. package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +0 -1
  21. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +13 -9
  22. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +16 -12
  23. package/dist/style.css +1 -1
  24. package/package.json +20 -9
  25. package/.eslintignore +0 -4
  26. package/.eslintrc.cjs +0 -22
  27. package/.prettierignore +0 -4
  28. package/.prettierrc.cjs +0 -41
  29. package/.vscode/extensions.json +0 -3
  30. package/dist/vite.svg +0 -1
  31. package/index.html +0 -13
  32. package/public/vite.svg +0 -1
  33. package/src/App.vue +0 -8
  34. package/src/lib/components/QAccountList/index.ts +0 -6
  35. package/src/lib/components/QAccountList/src/QAccountCreate.vue +0 -272
  36. package/src/lib/components/QAccountList/src/QAccountDetail.vue +0 -259
  37. package/src/lib/components/QAccountList/src/QAccountEdit.vue +0 -273
  38. package/src/lib/components/QAccountList/src/QAccountList.vue +0 -532
  39. package/src/lib/components/QAccountList/src/useConfigData.ts +0 -53
  40. package/src/lib/components/QBackgroundFileTaskList/index.ts +0 -6
  41. package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +0 -143
  42. package/src/lib/components/QBackgroundFileTaskList/src/useConfigData.ts +0 -20
  43. package/src/lib/components/QElsEmailSendLogList/index.ts +0 -6
  44. package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +0 -172
  45. package/src/lib/components/QElsEmailSendLogList/src/useConfigData.ts +0 -19
  46. package/src/lib/components/QElsMsgRecordList/index.ts +0 -6
  47. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue +0 -148
  48. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +0 -123
  49. package/src/lib/components/QElsMsgRecordList/src/useConfigData.ts +0 -22
  50. package/src/lib/components/QElsTenantPortalNewsList/index.ts +0 -6
  51. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue +0 -139
  52. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +0 -244
  53. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +0 -151
  54. package/src/lib/components/QElsTenantPortalNewsList/src/useConfigData.ts +0 -20
  55. package/src/lib/components/QI18nList/index.ts +0 -6
  56. package/src/lib/components/QI18nList/src/QI18nForm.vue +0 -141
  57. package/src/lib/components/QI18nList/src/QI18nList.vue +0 -365
  58. package/src/lib/components/QI18nList/src/useConfigData.ts +0 -37
  59. package/src/lib/components/QImChatGroupList/index.ts +0 -6
  60. package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +0 -103
  61. package/src/lib/components/QImChatGroupList/src/useConfigData.ts +0 -17
  62. package/src/lib/components/QMqRecordList/index.ts +0 -6
  63. package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +0 -109
  64. package/src/lib/components/QMqRecordList/src/useConfigData.ts +0 -18
  65. package/src/lib/components/QPasswordSecurityPolicy/index.ts +0 -6
  66. package/src/lib/components/QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue +0 -266
  67. package/src/lib/components/QPermissionDataList/index.ts +0 -6
  68. package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +0 -3
  69. package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +0 -218
  70. package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +0 -110
  71. package/src/lib/components/QPermissionDataList/src/form.vue +0 -109
  72. package/src/lib/components/QPurchaseNoticeList/index.ts +0 -6
  73. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +0 -147
  74. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +0 -332
  75. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +0 -189
  76. package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +0 -84
  77. package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +0 -22
  78. package/src/lib/components/QPurchaseNoticeTemplateList/index.ts +0 -6
  79. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +0 -134
  80. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +0 -91
  81. package/src/lib/components/QPurchaseNoticeTemplateList/src/useConfigData.ts +0 -18
  82. package/src/lib/components/QQuartzJobList/index.ts +0 -6
  83. package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +0 -276
  84. package/src/lib/components/QQuartzJobList/src/components/JCron.vue +0 -82
  85. package/src/lib/components/QQuartzJobList/src/components/JCronModal.vue +0 -985
  86. package/src/lib/components/QQuartzJobList/src/components/QuartzJobModal.vue +0 -176
  87. package/src/lib/components/QQuartzJobList/src/useConfigData.ts +0 -26
  88. package/src/lib/components/QRoleList/index.ts +0 -6
  89. package/src/lib/components/QRoleList/src/QRoleList.vue +0 -332
  90. package/src/lib/components/QRoleList/src/components/content-header/contentHeader.less +0 -31
  91. package/src/lib/components/QRoleList/src/components/content-header/index.tsx +0 -42
  92. package/src/lib/components/QRoleList/src/components/userAuthorization/index.tsx +0 -690
  93. package/src/lib/components/QRoleList/src/components/userAuthorization/userAuthorization.less +0 -97
  94. package/src/lib/components/QRoleList/src/useConfigData.ts +0 -28
  95. package/src/lib/components/QSupplierAccountList/index.ts +0 -6
  96. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountForm.vue +0 -187
  97. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +0 -304
  98. package/src/lib/components/QSupplierAccountList/src/useConfigData.ts +0 -29
  99. package/src/lib/components/QUsageList/index.ts +0 -6
  100. package/src/lib/components/QUsageList/src/QUsageList.vue +0 -287
  101. package/src/lib/components/QUsageList/src/useConfigData.ts +0 -154
  102. package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +0 -140
  103. package/src/lib/components/QcustomConfigEdit/component/TempalePreviewModal.vue +0 -100
  104. package/src/lib/components/QcustomConfigEdit/component/dataFormatComponent.tsx +0 -100
  105. package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +0 -71
  106. package/src/lib/components/QcustomConfigEdit/index.ts +0 -6
  107. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +0 -1895
  108. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +0 -242
  109. package/src/lib/components/QcustomConfigEdit/src/types.ts +0 -71
  110. package/src/lib/components/QcustomConfigEdit/src/useConfigComputed.ts +0 -75
  111. package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +0 -123
  112. package/src/lib/components/QcustomConfigEdit/src/useConfigMethods.ts +0 -117
  113. package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +0 -301
  114. package/src/lib/components/QcustomConfigEdit/style/index.less +0 -41
  115. package/src/lib/components/QcustomConfigList/component/ImportJsonCustomConfig.vue +0 -135
  116. package/src/lib/components/QcustomConfigList/index.ts +0 -6
  117. package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +0 -276
  118. package/src/lib/components/QcustomConfigList/src/types.ts +0 -1
  119. package/src/lib/components/QcustomConfigList/src/useConfigData.ts +0 -23
  120. package/src/lib/components/QcustomConfigList/src/useMethods.ts +0 -36
  121. package/src/lib/components/QcustomConfigList/style/index.less +0 -3
  122. package/src/lib/components/QsysConfigList/index.ts +0 -6
  123. package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +0 -124
  124. package/src/lib/components/QsysConfigList/src/types.ts +0 -1
  125. package/src/lib/components/QsysConfigList/src/useConfigData.ts +0 -17
  126. package/src/lib/components/QsysConfigList/src/useMethods.ts +0 -11
  127. package/src/lib/components/QsysConfigList/style/index.less +0 -3
  128. package/src/lib/components/index.ts +0 -78
  129. package/src/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue +0 -49
  130. package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +0 -135
  131. package/src/lib/components/integratedNodesList/src/index.vue +0 -130
  132. package/src/lib/components/integratedReportList/src/index.vue +0 -111
  133. package/src/lib/components/integratedReportSearchList/src/index.vue +0 -106
  134. package/src/lib/components/loginAbnormalLogList/src/index.vue +0 -43
  135. package/src/lib/components/loginLogList/src/index.vue +0 -51
  136. package/src/lib/components/loginSupplierLogList/src/index.vue +0 -53
  137. package/src/lib/components/operateLogList/src/index.vue +0 -46
  138. package/src/lib/index.ts +0 -15
  139. package/src/lib/utils/constant.ts +0 -1
  140. package/src/lib/utils/global.hook.ts +0 -337
  141. package/src/lib/utils/global.types.ts +0 -49
  142. package/src/lib/utils/regexp.ts +0 -143
  143. package/src/main.ts +0 -11
  144. package/src/vite-env.d.ts +0 -13
  145. package/tsconfig.json +0 -24
  146. package/tsconfig.node.json +0 -9
  147. package/vite.config.ts +0 -61
  148. /package/dist/{index.es.d.ts → index.d.ts} +0 -0
@@ -1,337 +0,0 @@
1
- import { h } from 'vue'
2
- //组件
3
- import { message, Modal } from '@qqt-product/ui'
4
- //ts
5
- import type { HttpClient, exportFuncParms, decaleHttpClientMethod, someParser } from './global.types'
6
-
7
- export function useConigApiMethods(qHttp: HttpClient) {
8
- //全局通用导出方法
9
-
10
- const handleExport = function ({ actionType = 'post', type = '', exportXlsUrl = '', fileName = '', setPostParms, berforCallback, afterCallback }: exportFuncParms) {
11
- berforCallback && berforCallback()
12
-
13
- let params = {}
14
- if (typeof setPostParms == 'function') {
15
- params = setPostParms()
16
- } else {
17
- params = setPostParms
18
- }
19
- const acType = actionType as decaleHttpClientMethod
20
- qHttp[acType]({
21
- url: exportXlsUrl,
22
- params: params,
23
- data: params,
24
- responseType: 'blob',
25
- })
26
- .then((data) => {
27
- // responseType为blob的请求,统一获取错误信息
28
- if (data.type === 'application/json') {
29
- const fileReader = new FileReader()
30
- fileReader.onloadend = () => {
31
- const jsonData = JSON.parse(fileReader.result as string)
32
- message.error(jsonData.message)
33
- }
34
- fileReader.readAsText(data as Blob)
35
- return
36
- }
37
- if (!data) {
38
- message.error('文件下载失败')
39
- return
40
- }
41
- // if ('msSaveBlob' in window.navigator) {
42
- // window.navigator.msSaveBlob(new Blob([data as Blob]), fileName + '.xls')
43
- // } else {
44
- const url = window.URL.createObjectURL(new Blob([data as Blob]))
45
- const link = document.createElement('a')
46
- link.style.display = 'none'
47
- link.href = url
48
- link.setAttribute('download', `${fileName}.${type}`)
49
- document.body.appendChild(link)
50
- link.click()
51
- document.body.removeChild(link) //下载完成移除元素
52
- window.URL.revokeObjectURL(url) //释放掉blob对象
53
- // }
54
- })
55
- .finally(() => {
56
- // confirmLoading.value = false
57
- afterCallback && afterCallback()
58
- })
59
- }
60
-
61
- const handleCopy = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
62
- if (url == '') {
63
- message.error('请配置URL')
64
- }
65
- const acType = type as decaleHttpClientMethod
66
- const params = {
67
- id: row.id,
68
- }
69
-
70
- Modal.confirm({
71
- title: '提示',
72
- content: h('div', {}, [h('p', `${tip}`)]),
73
- okText: '确认',
74
- cancelText: '取消',
75
- onOk() {
76
- qHttp[acType]({
77
- url,
78
- params: params,
79
- data: params,
80
- })
81
- .then((result) => {
82
- if (result.success) message.success(result.message)
83
- else message.error(result.message)
84
- })
85
- .finally(() => {
86
- afterCallback && afterCallback()
87
- })
88
- },
89
- })
90
- }
91
-
92
- const handleCancel = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
93
- if (url == '') {
94
- message.error('请配置URL')
95
- }
96
- const acType = type as decaleHttpClientMethod
97
- const params = {
98
- id: row.id,
99
- }
100
-
101
- Modal.confirm({
102
- title: '提示',
103
- content: h('div', {}, [h('p', `${tip}`)]),
104
- okText: '确认',
105
- cancelText: '取消',
106
- onOk() {
107
- qHttp[acType]({
108
- url,
109
- params: params,
110
- data: params,
111
- })
112
- .then((result) => {
113
- if (result.success) message.success(result.message)
114
- else message.error(result.message)
115
- })
116
- .finally(() => {
117
- afterCallback && afterCallback()
118
- })
119
- },
120
- })
121
- }
122
-
123
- const handleDelete = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
124
- if (url == '') {
125
- message.error('请配置URL')
126
- }
127
- const acType = type as decaleHttpClientMethod
128
- const params = {
129
- id: row.id,
130
- }
131
-
132
- Modal.confirm({
133
- title: '提示',
134
- content: h('div', {}, [h('p', `${tip}`)]),
135
- okText: '确认',
136
- cancelText: '取消',
137
- onOk() {
138
- qHttp[acType]({
139
- url,
140
- params: params,
141
- data: params,
142
- })
143
- .then((result) => {
144
- if (result.success) message.success(result.message)
145
- else message.error(result.message)
146
- })
147
- .finally(() => {
148
- afterCallback && afterCallback()
149
- })
150
- },
151
- })
152
- }
153
-
154
- const handleUpgrade = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
155
- if (url == '') {
156
- message.error('请配置URL')
157
- }
158
- const acType = type as decaleHttpClientMethod
159
- const params = {
160
- id: row.id,
161
- }
162
-
163
- Modal.confirm({
164
- title: '提示',
165
- content: h('div', {}, [h('p', `${tip}`)]),
166
- okText: '确认',
167
- cancelText: '取消',
168
- onOk() {
169
- qHttp[acType]({
170
- url,
171
- params: params,
172
- data: params,
173
- })
174
- .then((result) => {
175
- if (result.success) message.success(result.message)
176
- else message.error(result.message)
177
- })
178
- .finally(() => {
179
- afterCallback && afterCallback()
180
- })
181
- },
182
- })
183
- }
184
- const handlUniversal = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
185
- if (url == '') {
186
- message.error('请配置URL')
187
- }
188
- const acType = type as decaleHttpClientMethod
189
- const params = {
190
- id: row.id,
191
- }
192
-
193
- Modal.confirm({
194
- title: '提示',
195
- content: h('div', {}, [h('p', `${tip}`)]),
196
- okText: '确认',
197
- cancelText: '取消',
198
- onOk() {
199
- qHttp[acType]({
200
- url,
201
- params: params,
202
- data: params,
203
- })
204
- .then((result) => {
205
- if (result.success) message.success(result.message)
206
- else message.error(result.message)
207
- })
208
- .finally(() => {
209
- afterCallback && afterCallback()
210
- })
211
- },
212
- })
213
- }
214
-
215
- return { handleExport, handleCopy, handleCancel, handleDelete, handleUpgrade, handlUniversal }
216
- }
217
-
218
- export function useCommonRegexp() {
219
- const email = /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/
220
-
221
- /**
222
- * 验证手机格式
223
- */
224
- const mobile = /^1[3|4|5|7|8|9]\d{9}$/
225
-
226
- /**
227
- * 验证URL格式
228
- */
229
- const url = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-./?%&=]*)?/
230
-
231
- /**
232
- * 验证ISO类型的日期格式
233
- */
234
- const dateISO = /^\d{4}[/-](0?[1-9]|1[012])[/-](0?[1-9]|[12][0-9]|3[01])$/
235
-
236
- /**
237
- * 验证正整数 + 正小数
238
- */
239
- const interger = /^[1-9]+\d*(\.\d*)?$|^0?\.\d*[1-9]\d*|^0+[1-9]\d*(\.\d*)?$/
240
- // /^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/
241
-
242
- /**
243
- * 验证正整数(包括0)
244
- */
245
- const positiveInterger = /^[0]{0,1}(\d+)$/
246
-
247
- /**
248
- * 验证十进制数字
249
- */
250
- const number = /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
251
-
252
- /**
253
- * 验证整数
254
- */
255
- const digits = /^\d+$/
256
-
257
- /**
258
- * 验证身份证号码
259
- */
260
- const idCard = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
261
-
262
- /**
263
- * 是否车牌号
264
- */
265
- // 新能源车牌
266
- const carNo = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/
267
- // 旧车牌
268
- const carNo2 = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/
269
-
270
- /**
271
- * 金额,只允许4位小数
272
- */
273
- const amount = /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,4}$/
274
-
275
- /**
276
- * 金额,限制位数为10位数
277
- */
278
- const money = /^[1-9]+?\d{0,9}/
279
-
280
- /**
281
- * 中文
282
- */
283
- const chinese = /^[\u4e00-\u9fa5]+$/gi
284
-
285
- /**
286
- * 只能输入字母
287
- */
288
- const letter = /^[a-zA-Z]*$/
289
-
290
- /**
291
- * 只能是字母或者数字
292
- */
293
- const enOrNum = /^[0-9a-zA-Z]*$/g
294
-
295
- /**
296
- * 是否固定电话
297
- */
298
- const landline = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/
299
-
300
- /**
301
- * 是否手机号码或者固定电话
302
- */
303
- const mobileOrLandline = /^1[3|4|5|7|8|9]\d{9}|\d{3,4}-\d{7,8}(-\d{3,4})?$/
304
-
305
- /**
306
- * 银联卡
307
- */
308
- const unionPayCard = /^62\d{11,17}$/
309
-
310
- /**
311
- * ip地址
312
- */
313
- const ip = /((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/
314
-
315
- return {
316
- email,
317
- mobile,
318
- url,
319
- dateISO,
320
- interger,
321
- positiveInterger,
322
- number,
323
- digits,
324
- idCard,
325
- carNo,
326
- carNo2,
327
- amount,
328
- money,
329
- chinese,
330
- letter,
331
- enOrNum,
332
- landline,
333
- unionPayCard,
334
- ip,
335
- mobileOrLandline,
336
- }
337
- }
@@ -1,49 +0,0 @@
1
- export const INJECT_HTTP = 'http'
2
-
3
- export interface MapObjectNoneType {
4
- [pro: string]: any
5
- }
6
-
7
- export interface RequestConfig extends MapObjectNoneType {
8
- baseURL?: string
9
- headers?: object
10
- timeout?: number
11
- url?: string
12
- params?: object
13
- data?: object
14
- }
15
-
16
- export interface ResponseData extends MapObjectNoneType {
17
- code?: number
18
- message?: string
19
- result?: any
20
- success?: boolean
21
- }
22
-
23
- export interface HttpClient {
24
- get(config: RequestConfig): Promise<ResponseData>
25
- post(config: RequestConfig): Promise<ResponseData>
26
- put(config: RequestConfig): Promise<ResponseData>
27
- registerModuleAction(config: string, other?: MapObjectNoneType): Promise<ResponseData>
28
- }
29
-
30
- export interface exportFuncParms {
31
- fileName: string
32
- type: string
33
- actionType: string
34
- // defineColumnCode: string
35
- exportXlsUrl: string
36
- setPostParms(): MapObjectNoneType
37
- berforCallback?(): void
38
- afterCallback?(): void
39
- }
40
-
41
- export interface someParser {
42
- url: string
43
- row: MapObjectNoneType
44
- type: string
45
- tip: string
46
- afterCallback?(): void
47
- }
48
-
49
- export type decaleHttpClientMethod = 'get' | 'post'
@@ -1,143 +0,0 @@
1
- /**
2
- * 验证电子邮箱格式
3
- */
4
- const email = /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/
5
-
6
- /**
7
- * 验证手机格式
8
- */
9
- const mobile = /^1[3|4|5|7|8|9]\d{9}$/
10
-
11
- /**
12
- * 验证URL格式
13
- */
14
- const url = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-./?%&=]*)?/
15
-
16
- /**
17
- * 验证ISO类型的日期格式
18
- */
19
- const dateISO = /^\d{4}[/-](0?[1-9]|1[012])[/-](0?[1-9]|[12][0-9]|3[01])$/
20
-
21
- /**
22
- * 验证正整数 + 正小数
23
- */
24
- const interger = /^[1-9]+\d*(\.\d*)?$|^0?\.\d*[1-9]\d*|^0+[1-9]\d*(\.\d*)?$/
25
- // /^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/
26
-
27
- /**
28
- * 验证正整数(包括0)
29
- */
30
- const positiveInterger = /^[0]{0,1}(\d+)$/
31
-
32
- /**
33
- * 验证十进制数字
34
- */
35
- const number = /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
36
-
37
- /**
38
- * 验证整数
39
- */
40
- const digits = /^\d+$/
41
-
42
- /**
43
- * 验证身份证号码
44
- */
45
- const idCard = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
46
-
47
- /**
48
- * 是否车牌号
49
- */
50
- // 新能源车牌
51
- const carNo = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/
52
- // 旧车牌
53
- const carNo2 = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/
54
-
55
- /**
56
- * 金额,只允许4位小数
57
- */
58
- const amount = /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,4}$/
59
-
60
- /**
61
- * 金额,限制位数为10位数
62
- */
63
- const money = /^[1-9]+?\d{0,9}/
64
-
65
- /**
66
- * 中文
67
- */
68
- const chinese = /^[\u4e00-\u9fa5]+$/gi
69
-
70
- /**
71
- * 只能输入字母
72
- */
73
- const letter = /^[a-zA-Z]*$/
74
-
75
- /**
76
- * 只能是字母或者数字
77
- */
78
- const enOrNum = /^[0-9a-zA-Z]*$/g
79
-
80
- /**
81
- * 是否固定电话
82
- */
83
- const landline = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/
84
-
85
- /**
86
- * 是否手机号码或者固定电话
87
- */
88
- const mobileOrLandline = /^1[3|4|5|7|8|9]\d{9}|\d{3,4}-\d{7,8}(-\d{3,4})?$/
89
-
90
- /**
91
- * 银联卡
92
- */
93
- const unionPayCard = /^62\d{11,17}$/
94
-
95
- /**
96
- * ip地址
97
- */
98
- const ip = /((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/
99
-
100
- export default {
101
- email,
102
- mobile,
103
- url,
104
- dateISO,
105
- interger,
106
- positiveInterger,
107
- number,
108
- digits,
109
- idCard,
110
- carNo,
111
- carNo2,
112
- amount,
113
- money,
114
- chinese,
115
- letter,
116
- enOrNum,
117
- landline,
118
- unionPayCard,
119
- ip,
120
- }
121
-
122
- export const regExpOptions = [
123
- { label: '电子邮箱', value: email.toString(), msg: '请输入电子邮箱' },
124
- { label: '手机号码', value: mobile.toString(), msg: '请输入手机号码' },
125
- { label: 'URL', value: url.toString(), msg: '请输入URL' },
126
- { label: '日期格式(ISO类型)', value: dateISO.toString(), msg: '请输入日期' },
127
- { label: '正整数+正小数', value: interger.toString(), msg: '只允许输入正整数或正小数' },
128
- { label: '正整数', value: positiveInterger.toString(), msg: '只允许输入正整数' },
129
- { label: '数字(十进制)', value: number.toString(), msg: '只允许输入数字' },
130
- { label: '整数(十进制)', value: digits.toString(), msg: '只允许输入整数' },
131
- { label: '身份证', value: idCard.toString(), msg: '请输入身份证' },
132
- { label: '车牌(新能源)', value: carNo.toString(), msg: '请输入新能源车牌号码' },
133
- { label: '车牌', value: carNo2.toString(), msg: '请输入车牌号码' },
134
- { label: '金额(4位小数)', value: amount.toString(), msg: '请输入4位小数金额' },
135
- { label: '金额(10位数)', value: money.toString(), msg: '请输入小于10位数的金额' },
136
- { label: '汉字', value: chinese.toString(), msg: '请输入汉字' },
137
- { label: '字母', value: letter.toString(), msg: '请输入字母' },
138
- { label: '字母或数字', value: enOrNum.toString(), msg: '请输入字母或数字' },
139
- { label: '固定电话', value: landline.toString(), msg: '请输入固定电话' },
140
- { label: '手机号码或者固定电话', value: mobileOrLandline.toString(), msg: '请输入手机号码或者固定电话' },
141
- { label: '银联卡', value: unionPayCard.toString(), msg: '请输入银联卡' },
142
- { label: 'ip地址', value: ip.toString(), msg: '请输入ip地址' },
143
- ]
package/src/main.ts DELETED
@@ -1,11 +0,0 @@
1
- import { createApp } from 'vue'
2
- import { qqtSysPageModules } from '@/lib/index'
3
- import { antd, qqtUI, setupVxeTable } from '@qqt-product/ui'
4
- import App from '@/App.vue'
5
- import '@qqt-product/ui/dist/style.css'
6
- const app = createApp(App)
7
- app.use(antd)
8
- setupVxeTable(app)
9
- app.use(qqtUI())
10
- app.use(qqtSysPageModules())
11
- app.mount('#app')
package/src/vite-env.d.ts DELETED
@@ -1,13 +0,0 @@
1
- /// <reference types="vite/client" />
2
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
3
- declare module '*.vue' {
4
- import type { DefineComponent } from 'vue'
5
- // eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
6
- const component: DefineComponent<{}, {}, any>
7
- export default component
8
- }
9
- declare module 'vue' {
10
- interface ComponentCustomProperties {
11
- instance: GlobalPageLayoutTypes.Expose
12
- }
13
- }
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "noImplicitAny": false,
4
- "target": "ESNext",
5
- "useDefineForClassFields": true,
6
- "module": "ESNext",
7
- "moduleResolution": "Node",
8
- "strict": true,
9
- "jsx": "preserve",
10
- "sourceMap": true,
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "esModuleInterop": true,
14
- "lib": ["ESNext", "DOM"],
15
- "skipLibCheck": true,
16
- "declaration": true,
17
- "baseUrl": "./",
18
- "paths": {
19
- "@/*": ["src/*"]
20
- }
21
- },
22
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "../apps/v6/src/setting/vxe-table/feature.ts"],
23
- "references": [{ "path": "./tsconfig.node.json" }]
24
- }
@@ -1,9 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "module": "ESNext",
5
- "moduleResolution": "Node",
6
- "allowSyntheticDefaultImports": true
7
- },
8
- "include": ["vite.config.ts"]
9
- }
package/vite.config.ts DELETED
@@ -1,61 +0,0 @@
1
- import * as path from 'path'
2
- import { defineConfig } from 'vite'
3
- import vue from '@vitejs/plugin-vue'
4
- import vueJsx from '@vitejs/plugin-vue-jsx'
5
- import { resolve } from 'path'
6
- import dts from 'vite-plugin-dts'
7
- import vitePluginEslint from 'vite-plugin-eslint'
8
- // https://vitejs.dev/config/
9
- export default defineConfig({
10
- resolve: {
11
- alias: {
12
- '@': path.resolve(__dirname, 'src'),
13
- '@/lib': path.resolve(__dirname, 'src/lib'),
14
- },
15
- },
16
- server: {
17
- proxy: {
18
- '/els': {
19
- target: 'https://v5sit-micro.51qqt.com',
20
- ws: false,
21
- changeOrigin: true,
22
- },
23
- },
24
- },
25
- build: {
26
- // 打包文件目录
27
- outDir: 'dist',
28
- // 压缩
29
- minify: true,
30
- // css 分离
31
- // cssCodeSplit: true,
32
- lib: {
33
- // 入口文件
34
- entry: resolve(__dirname, './src/lib/index.ts'),
35
- name: 'system',
36
- fileName: (format) => `index.${format}.js`,
37
- },
38
- rollupOptions: {
39
- // 忽略打包的文件
40
- external: ['vue', 'ant-design-vue', 'vxe-table', 'xe-utils', '@qqt-product/api', '@qqt-product/icons', '@qqt-product/ui', '@qqt-product/utils'],
41
- output: {
42
- sourcemap: false,
43
- globals: {
44
- vue: 'Vue',
45
- 'ant-design-vue': 'AntDesignVue',
46
- 'vxe-table': 'VxeTable',
47
- },
48
- },
49
- },
50
- },
51
- plugins: [
52
- vue(),
53
- vueJsx(),
54
- dts({
55
- outputDir: 'dist',
56
- staticImport: true,
57
- insertTypesEntry: true,
58
- }),
59
- vitePluginEslint(),
60
- ],
61
- })
File without changes