@qqt-product/system 0.0.2 → 0.0.17

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 (179) hide show
  1. package/dist/index.es.js +53481 -10448
  2. package/dist/index.umd.js +94 -22
  3. package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +2881 -0
  4. package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +2874 -0
  5. package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +2882 -0
  6. package/dist/lib/components/QAccountList/src/QAccountList.vue.d.ts +23 -4
  7. package/dist/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue.d.ts +9 -4
  8. package/dist/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue.d.ts +9 -4
  9. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +2867 -0
  10. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue.d.ts +2 -3
  11. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +2867 -0
  12. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +2879 -0
  13. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +38 -14
  14. package/dist/lib/components/QI18nList/src/QI18nList.vue.d.ts +2 -6
  15. package/dist/lib/components/QImChatGroupList/src/QImChatGroupList.vue.d.ts +5 -8
  16. package/dist/lib/components/QMqRecordList/src/QMqRecordList.vue.d.ts +9 -4
  17. package/dist/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue.d.ts +387 -3
  18. package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +2875 -0
  19. package/dist/lib/components/QPermissionDataList/src/QPermissionDataList.vue.d.ts +126 -0
  20. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +2867 -0
  21. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +2890 -0
  22. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +25 -5
  23. package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +7 -0
  24. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +222 -28
  25. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue.d.ts +45 -0
  26. package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +24 -5
  27. package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +32 -7
  28. package/dist/lib/components/QRoleList/src/components/userAuthorization/index.d.ts +4 -4
  29. package/dist/lib/components/QRoleList/src/useConfigData.d.ts +1 -11
  30. package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +25 -4
  31. package/dist/lib/components/QSupplierAccountList/src/useConfigData.d.ts +9 -0
  32. package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +15 -35
  33. package/dist/lib/components/QUsageList/src/useConfigData.d.ts +111 -10
  34. package/dist/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue.d.ts +25 -0
  35. package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +9 -10
  36. package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +1208 -0
  37. package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +1 -1
  38. package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +8 -7
  39. package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +2 -3
  40. package/dist/lib/components/index.d.ts +2 -2
  41. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +2866 -0
  42. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +2875 -0
  43. package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +8 -11
  44. package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +16 -10
  45. package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +2 -9
  46. package/dist/lib/components/loginLogList/src/index.vue.d.ts +2 -8
  47. package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +2 -12
  48. package/dist/lib/components/operateLogList/src/index.vue.d.ts +2 -13
  49. package/dist/style.css +1 -1
  50. package/dist/vite-env.d.ts +13 -13
  51. package/package.json +24 -11
  52. package/.eslintignore +0 -4
  53. package/.eslintrc.cjs +0 -22
  54. package/.prettierignore +0 -4
  55. package/.prettierrc.cjs +0 -41
  56. package/.vscode/extensions.json +0 -3
  57. package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +0 -80
  58. package/dist/lib/components/QCompanyermissionList/src/types.d.ts +0 -44
  59. package/dist/lib/components/integratedReportList/src/index.vue.d.ts +0 -70
  60. package/dist/vite.svg +0 -1
  61. package/index.html +0 -13
  62. package/public/vite.svg +0 -1
  63. package/src/App.vue +0 -8
  64. package/src/lib/components/QAccountList/index.ts +0 -6
  65. package/src/lib/components/QAccountList/src/QAccountDetail.vue +0 -191
  66. package/src/lib/components/QAccountList/src/QAccountEdit.vue +0 -241
  67. package/src/lib/components/QAccountList/src/QAccountList.vue +0 -530
  68. package/src/lib/components/QAccountList/src/useConfigData.ts +0 -53
  69. package/src/lib/components/QBackgroundFileTaskList/index.ts +0 -6
  70. package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +0 -137
  71. package/src/lib/components/QBackgroundFileTaskList/src/useConfigData.ts +0 -20
  72. package/src/lib/components/QCompanyermissionList/src/editTree.vue +0 -291
  73. package/src/lib/components/QCompanyermissionList/src/form.vue +0 -238
  74. package/src/lib/components/QCompanyermissionList/src/index.vue +0 -309
  75. package/src/lib/components/QCompanyermissionList/src/types.ts +0 -44
  76. package/src/lib/components/QElsEmailSendLogList/index.ts +0 -6
  77. package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +0 -166
  78. package/src/lib/components/QElsEmailSendLogList/src/useConfigData.ts +0 -19
  79. package/src/lib/components/QElsMsgRecordList/index.ts +0 -6
  80. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue +0 -148
  81. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +0 -124
  82. package/src/lib/components/QElsMsgRecordList/src/useConfigData.ts +0 -22
  83. package/src/lib/components/QElsTenantPortalNewsList/index.ts +0 -6
  84. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue +0 -139
  85. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +0 -196
  86. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +0 -122
  87. package/src/lib/components/QElsTenantPortalNewsList/src/useConfigData.ts +0 -20
  88. package/src/lib/components/QI18nList/index.ts +0 -6
  89. package/src/lib/components/QI18nList/src/QI18nForm.vue +0 -141
  90. package/src/lib/components/QI18nList/src/QI18nList.vue +0 -361
  91. package/src/lib/components/QI18nList/src/useConfigData.ts +0 -37
  92. package/src/lib/components/QImChatGroupList/index.ts +0 -6
  93. package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +0 -94
  94. package/src/lib/components/QImChatGroupList/src/useConfigData.ts +0 -17
  95. package/src/lib/components/QMqRecordList/index.ts +0 -6
  96. package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +0 -105
  97. package/src/lib/components/QMqRecordList/src/useConfigData.ts +0 -18
  98. package/src/lib/components/QPasswordSecurityPolicy/index.ts +0 -6
  99. package/src/lib/components/QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue +0 -266
  100. package/src/lib/components/QPermissionDataList/index.ts +0 -6
  101. package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +0 -3
  102. package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +0 -221
  103. package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +0 -117
  104. package/src/lib/components/QPermissionDataList/src/form.vue +0 -109
  105. package/src/lib/components/QPurchaseNoticeList/index.ts +0 -6
  106. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +0 -147
  107. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +0 -244
  108. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +0 -163
  109. package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +0 -22
  110. package/src/lib/components/QPurchaseNoticeTemplateList/index.ts +0 -6
  111. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +0 -85
  112. package/src/lib/components/QPurchaseNoticeTemplateList/src/useConfigData.ts +0 -18
  113. package/src/lib/components/QQuartzJobList/index.ts +0 -6
  114. package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +0 -263
  115. package/src/lib/components/QQuartzJobList/src/components/JCron.vue +0 -82
  116. package/src/lib/components/QQuartzJobList/src/components/JCronModal.vue +0 -985
  117. package/src/lib/components/QQuartzJobList/src/components/QuartzJobModal.vue +0 -176
  118. package/src/lib/components/QQuartzJobList/src/useConfigData.ts +0 -26
  119. package/src/lib/components/QRoleList/index.ts +0 -6
  120. package/src/lib/components/QRoleList/src/QRoleList.vue +0 -288
  121. package/src/lib/components/QRoleList/src/components/content-header/contentHeader.less +0 -31
  122. package/src/lib/components/QRoleList/src/components/content-header/index.tsx +0 -42
  123. package/src/lib/components/QRoleList/src/components/userAuthorization/index.tsx +0 -690
  124. package/src/lib/components/QRoleList/src/components/userAuthorization/userAuthorization.less +0 -97
  125. package/src/lib/components/QRoleList/src/useConfigData.ts +0 -33
  126. package/src/lib/components/QSupplierAccountList/index.ts +0 -6
  127. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountForm.vue +0 -187
  128. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +0 -302
  129. package/src/lib/components/QSupplierAccountList/src/useConfigData.ts +0 -29
  130. package/src/lib/components/QUsageList/index.ts +0 -6
  131. package/src/lib/components/QUsageList/src/QUsageList.vue +0 -82
  132. package/src/lib/components/QUsageList/src/useConfigData.ts +0 -20
  133. package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +0 -140
  134. package/src/lib/components/QcustomConfigEdit/component/TempalePreviewModal.vue +0 -100
  135. package/src/lib/components/QcustomConfigEdit/component/dataFormatComponent.tsx +0 -100
  136. package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +0 -71
  137. package/src/lib/components/QcustomConfigEdit/index.ts +0 -6
  138. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +0 -1807
  139. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +0 -242
  140. package/src/lib/components/QcustomConfigEdit/src/types.ts +0 -71
  141. package/src/lib/components/QcustomConfigEdit/src/useConfigComputed.ts +0 -75
  142. package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +0 -123
  143. package/src/lib/components/QcustomConfigEdit/src/useConfigMethods.ts +0 -117
  144. package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +0 -301
  145. package/src/lib/components/QcustomConfigEdit/style/index.less +0 -41
  146. package/src/lib/components/QcustomConfigList/component/ImportJsonCustomConfig.vue +0 -135
  147. package/src/lib/components/QcustomConfigList/index.ts +0 -6
  148. package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +0 -268
  149. package/src/lib/components/QcustomConfigList/src/types.ts +0 -1
  150. package/src/lib/components/QcustomConfigList/src/useConfigData.ts +0 -23
  151. package/src/lib/components/QcustomConfigList/src/useMethods.ts +0 -36
  152. package/src/lib/components/QcustomConfigList/style/index.less +0 -3
  153. package/src/lib/components/QsysConfigList/index.ts +0 -6
  154. package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +0 -125
  155. package/src/lib/components/QsysConfigList/src/types.ts +0 -1
  156. package/src/lib/components/QsysConfigList/src/useConfigData.ts +0 -17
  157. package/src/lib/components/QsysConfigList/src/useMethods.ts +0 -11
  158. package/src/lib/components/QsysConfigList/style/index.less +0 -3
  159. package/src/lib/components/index.ts +0 -78
  160. package/src/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue +0 -49
  161. package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +0 -143
  162. package/src/lib/components/integratedNodesList/src/index.vue +0 -136
  163. package/src/lib/components/integratedReportList/src/index.vue +0 -86
  164. package/src/lib/components/integratedReportSearchList/src/index.vue +0 -66
  165. package/src/lib/components/loginAbnormalLogList/src/index.vue +0 -50
  166. package/src/lib/components/loginLogList/src/index.vue +0 -57
  167. package/src/lib/components/loginSupplierLogList/src/index.vue +0 -63
  168. package/src/lib/components/operateLogList/src/index.vue +0 -57
  169. package/src/lib/index.ts +0 -15
  170. package/src/lib/utils/constant.ts +0 -1
  171. package/src/lib/utils/global.hook.ts +0 -337
  172. package/src/lib/utils/global.types.ts +0 -49
  173. package/src/lib/utils/regexp.ts +0 -143
  174. package/src/main.ts +0 -11
  175. package/src/vite-env.d.ts +0 -13
  176. package/tsconfig.json +0 -24
  177. package/tsconfig.node.json +0 -9
  178. package/vite.config.ts +0 -61
  179. /package/dist/{index.es.d.ts → index.d.ts} +0 -0
@@ -1,70 +0,0 @@
1
- import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
- declare const _sfc_main: DefineComponent<{}, {
3
- apiUrls: {
4
- columnsCode: string;
5
- list: string;
6
- countTabsUrl: string;
7
- };
8
- pageData: {
9
- statusConfig: {
10
- show: boolean;
11
- };
12
- optColumn: {
13
- attrs: {};
14
- extend: {};
15
- optColumnList: never[];
16
- };
17
- buttonConfig: {
18
- attrs: {};
19
- extend: {};
20
- buttons: ({
21
- authorityCode: string;
22
- label: string;
23
- icon: string;
24
- type: string;
25
- click: () => void;
26
- } | {
27
- authorityCode: string;
28
- label: string;
29
- icon: string;
30
- click: () => void;
31
- type?: undefined;
32
- } | {
33
- label: string;
34
- icon: {
35
- type: string;
36
- };
37
- type: string;
38
- authorityCode?: undefined;
39
- click?: undefined;
40
- })[];
41
- };
42
- queryConfig: {
43
- attrs: {};
44
- extend: {};
45
- form: ({
46
- type: string;
47
- label: string;
48
- fieldName: string;
49
- placeholder: string;
50
- startProp?: undefined;
51
- endProp?: undefined;
52
- } | {
53
- type: string;
54
- startProp: string;
55
- endProp: string;
56
- label: string;
57
- placeholder: string[];
58
- fieldName?: undefined;
59
- })[];
60
- formState: {
61
- dataJson: string;
62
- businessDataType: string;
63
- beginTime: string;
64
- endTime: string;
65
- };
66
- };
67
- pagerConfig: {};
68
- };
69
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
70
- export default _sfc_main;
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>企企通产品UI库</title>
8
- </head>
9
- <body>
10
- <div id="app"></div>
11
- <script type="module" src="/src/main.ts"></script>
12
- </body>
13
- </html>
package/public/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/App.vue DELETED
@@ -1,8 +0,0 @@
1
- <template>
2
- <div>
3
- <QcustomConfigEdit />
4
- </div>
5
- </template>
6
- <script setup lang="ts">
7
- import QcustomConfigEdit from './lib/components/QcustomConfigEdit'
8
- </script>
@@ -1,6 +0,0 @@
1
- import QAccountList from './src/QAccountList.vue'
2
- import qqtUtils from '@qqt-product/utils'
3
-
4
- export default qqtUtils.withInstall(QAccountList)
5
-
6
- export { QAccountList }
@@ -1,191 +0,0 @@
1
- <template>
2
- <div class="detail-page">
3
- <q-detail-page-layout ref="layoutRef" v-bind="options"></q-detail-page-layout>
4
- </div>
5
- </template>
6
-
7
- <script setup lang="ts">
8
- import { ref, reactive } from 'vue'
9
- import type { ComponentPublicInstance } from 'vue'
10
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
11
- // 传参 props
12
- const props = defineProps<{
13
- currentRow: GlobalPageLayoutTypes.CurrentRow | null
14
- userInfo: GlobalPageLayoutTypes.UserInfo
15
- }>()
16
- const currentRow = props.currentRow
17
- ? props.currentRow
18
- : ref({
19
- id: '',
20
- templateNumber: '',
21
- templateVersion: 0,
22
- templateAccount: '',
23
- busAccount: '',
24
- elsAccount: '',
25
- })
26
- // 编辑组件 ref
27
- const layoutRef = ref<ComponentPublicInstance | null>(null)
28
-
29
- // 配置
30
- const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
31
- /**
32
- * 模块业务类型 string
33
- * 取值根据各模块配置
34
- * 当定义为"custom"时,使用本地配置
35
- */
36
- businessType: 'custom',
37
- // 布局模式
38
- pattern: 'vertical',
39
- // 当前已选行数据a
40
- currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
41
- // 当前登录租户信息
42
- userInfo: props.userInfo,
43
- // 明细接口 -- 接口字符串
44
- detailApi: '/account/elsSubAccount/queryById',
45
- // 本地页面数据配置
46
- localConfig: {
47
- groups: [
48
- {
49
- groupName: '基本信息',
50
- groupCode: 'baseForm',
51
- groupType: 'head',
52
- },
53
- {
54
- groupName: '关联组织',
55
- groupCode: 'subaccountOrgList',
56
- groupType: 'item',
57
- },
58
- ],
59
- formFields: [
60
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: 'ELS账号', fieldLabelI18nKey: 'i18n_title_ELSAccount', fieldName: 'elsAccount', placeholder: 'ELS账号', disabled: true },
61
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '子账号', fieldLabelI18nKey: 'i18n_field_subAccount', fieldName: 'subAccount', required: '1' },
62
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '姓名', fieldLabelI18nKey: 'i18n_title_name', fieldName: 'realname', required: '1' },
63
- {
64
- groupCode: 'baseForm',
65
- fieldType: 'input',
66
- fieldLabel: '密码',
67
- fieldLabelI18nKey: 'i18n_title_password',
68
- fieldName: 'password',
69
- required: '1',
70
- },
71
- {
72
- groupCode: 'baseForm',
73
- fieldType: 'remoteSelect',
74
- fieldLabel: '角色',
75
- fieldLabelI18nKey: 'i18n_title_role',
76
- fieldName: 'selectedroles',
77
- extend: {
78
- modalColumns: [{ field: 'roleName', title: '角色', with: 150 }],
79
- modalUrl: '/account/role/queryall',
80
- selectModel: 'single',
81
- },
82
- required: '1',
83
- },
84
- {
85
- groupCode: 'baseForm',
86
- fieldType: 'remoteSelect',
87
- fieldLabel: '数据权限组',
88
- fieldLabelI18nKey: 'i18n_menu_WFbWV_c4394039',
89
- fieldName: 'selectedGroups',
90
- extend: {
91
- modalColumns: [{ field: 'groupName', title: '数据权限组', with: 150 }],
92
- modalUrl: '/account/permissionGroup/queryAll',
93
- selectModel: 'single',
94
- },
95
- },
96
- {
97
- groupCode: 'baseForm',
98
- fieldType: 'input',
99
- fieldLabel: '电子邮件',
100
- fieldLabelI18nKey: 'i18n_title_email',
101
- fieldName: 'email',
102
- regex: /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/,
103
- alertMsg: '邮箱格式不正确',
104
- },
105
- {
106
- groupCode: 'baseForm',
107
- fieldType: 'input',
108
- fieldLabel: '手机号',
109
- fieldLabelI18nKey: 'i18n_title_phone',
110
- fieldName: 'phone',
111
- regex: /^1[3|4|5|7|8|9]\d{9}$/,
112
- alertMsg: '您的手机号码格式不正确',
113
- },
114
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '工号', fieldLabelI18nKey: 'i18n_field_workNo', fieldName: 'workNo' },
115
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '座机号', fieldLabelI18nKey: 'i18n_title_landlineNumber', fieldName: 'telephone' },
116
- {
117
- groupCode: 'baseForm',
118
- fieldType: 'select',
119
- fieldLabel: '部门',
120
- fieldLabelI18nKey: 'i18n_title_department',
121
- dictCode: '/org/purchaseOrganizationInfo/getOrgTree',
122
- fieldName: 'orgCode',
123
- },
124
- { groupCode: 'baseForm', fieldType: 'date', fieldLabel: '账号过期时间', fieldLabelI18nKey: 'i18n_title_accountExpirationTime', fieldName: 'accountValidityDate' },
125
- {
126
- groupCode: 'baseForm',
127
- fieldType: 'remoteSelect',
128
- fieldLabel: '直属领导',
129
- fieldLabelI18nKey: 'i18n_field_RWQu_378045a0',
130
- fieldName: 'superiorLeader',
131
- extend: {
132
- modalColumns: [
133
- {
134
- field: 'subAccount',
135
- fieldLabelI18nKey: 'i18n_field_subAccount',
136
- title: '子账号',
137
- with: 150,
138
- },
139
- {
140
- field: 'realname',
141
- fieldLabelI18nKey: 'i18n_title_name',
142
- title: '姓名',
143
- with: 150,
144
- },
145
- ],
146
- modalUrl: '/account/elsSubAccount/list',
147
- },
148
- },
149
- ],
150
- itemColumns: [
151
- {
152
- groupCode: 'subaccountOrgList',
153
- fieldType: 'select',
154
- dictCode: 'orgCategoryType',
155
- title: '组织类型',
156
- fieldLabelI18nKey: 'i18n_field_organizationType',
157
- field: 'orgCategoryCode',
158
- align: 'center',
159
- headerAlign: 'center',
160
- defaultValue: '',
161
- width: '250',
162
- visible: true,
163
- },
164
- {
165
- groupCode: 'subaccountOrgList',
166
- fieldType: 'input',
167
- title: '组织编码',
168
- fieldLabelI18nKey: '',
169
- field: 'orgCode',
170
- align: 'center',
171
- headerAlign: 'center',
172
- defaultValue: '',
173
- width: '250',
174
- visible: true,
175
- },
176
- {
177
- groupCode: 'subaccountOrgList',
178
- fieldType: 'input',
179
- title: '备注',
180
- fieldLabelI18nKey: '',
181
- field: 'remark',
182
- align: 'center',
183
- headerAlign: 'center',
184
- defaultValue: '',
185
- width: '250',
186
- visible: true,
187
- },
188
- ],
189
- },
190
- })
191
- </script>
@@ -1,241 +0,0 @@
1
- <template>
2
- <div class="edit-page">
3
- <a-spin :spinning="customLoading">
4
- <q-edit-page-layout ref="layoutRef" v-bind="options" @customSave="handleCustomSave" @validate-success="handleValidateSuccess" @refresh="handleRefresh"></q-edit-page-layout>
5
- </a-spin>
6
- </div>
7
- </template>
8
-
9
- <script setup lang="ts">
10
- import { ref, reactive } from 'vue'
11
- import type { ComponentPublicInstance } from 'vue'
12
- import { BUTTON_ADD_ONE_ROW, BUTTON_DELETE_ROW, BUTTON_SAVE } from '@qqt-product/ui'
13
- // ui组件库 types
14
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
15
- import { usePromiseStepHook, useRefInstanceHook } from '@qqt-product/ui'
16
-
17
- // 传参 props
18
- const props = defineProps<{
19
- currentRow: GlobalPageLayoutTypes.CurrentRow | null
20
- userInfo: GlobalPageLayoutTypes.UserInfo
21
- }>()
22
- const currentRow = props.currentRow
23
- ? props.currentRow
24
- : ref({
25
- id: '',
26
- templateNumber: '',
27
- templateVersion: 0,
28
- templateAccount: '',
29
- busAccount: '',
30
- elsAccount: '',
31
- })
32
- // 编辑组件 ref
33
- const layoutRef = ref<ComponentPublicInstance | null>(null)
34
-
35
- // 配置
36
- const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
37
- /**
38
- * 模块业务类型 string
39
- * 取值根据各模块配置
40
- * 当定义为"custom"时,使用本地配置
41
- */
42
- businessType: 'custom',
43
- // 布局模式
44
- pattern: 'vertical',
45
- // 当前已选行数据a
46
- currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
47
- refreshMethods(row?: GlobalPageLayoutTypes.CurrentRow) {
48
- if (options.currentRow) {
49
- options.currentRow =
50
- row ||
51
- Object.assign({}, options.currentRow, {
52
- _t: +new Date(),
53
- })
54
- }
55
- },
56
- // 当前登录租户信息
57
- userInfo: props.userInfo,
58
- // 明细接口 -- 接口字符串
59
- detailApi: '/account/elsSubAccount/queryById',
60
- // 本地页面数据配置
61
- localConfig: {
62
- groups: [
63
- {
64
- groupName: '基本信息',
65
- groupCode: 'baseForm',
66
- groupType: 'head',
67
- },
68
- {
69
- groupName: '关联组织',
70
- groupCode: 'subaccountOrgList',
71
- groupType: 'item',
72
- buttons: [BUTTON_ADD_ONE_ROW, BUTTON_DELETE_ROW],
73
- },
74
- ],
75
- formFields: [
76
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: 'ELS账号', fieldLabelI18nKey: 'i18n_title_ELSAccount', fieldName: 'elsAccount', placeholder: 'ELS账号', disabled: true },
77
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '子账号', fieldLabelI18nKey: 'i18n_field_subAccount', fieldName: 'subAccount', required: '1' },
78
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '姓名', fieldLabelI18nKey: 'i18n_title_name', fieldName: 'realname', required: '1' },
79
- {
80
- groupCode: 'baseForm',
81
- fieldType: 'input',
82
- fieldLabel: '密码',
83
- fieldLabelI18nKey: 'i18n_title_password',
84
- fieldName: 'password',
85
- required: '1',
86
- },
87
- {
88
- groupCode: 'baseForm',
89
- fieldType: 'remoteSelect',
90
- fieldLabel: '角色',
91
- fieldLabelI18nKey: 'i18n_title_role',
92
- fieldName: 'selectedroles',
93
- extend: {
94
- modalColumns: [{ field: 'roleName', title: '角色', with: 150 }],
95
- modalUrl: '/account/role/queryall',
96
- selectModel: 'single',
97
- },
98
- required: '1',
99
- },
100
- {
101
- groupCode: 'baseForm',
102
- fieldType: 'remoteSelect',
103
- fieldLabel: '数据权限组',
104
- fieldLabelI18nKey: 'i18n_menu_WFbWV_c4394039',
105
- fieldName: 'selectedGroups',
106
- extend: {
107
- modalColumns: [{ field: 'groupName', title: '数据权限组', with: 150 }],
108
- modalUrl: '/account/permissionGroup/queryAll',
109
- selectModel: 'single',
110
- },
111
- },
112
- {
113
- groupCode: 'baseForm',
114
- fieldType: 'input',
115
- fieldLabel: '电子邮件',
116
- fieldLabelI18nKey: 'i18n_title_email',
117
- fieldName: 'email',
118
- regex: /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/,
119
- alertMsg: '邮箱格式不正确',
120
- },
121
- {
122
- groupCode: 'baseForm',
123
- fieldType: 'input',
124
- fieldLabel: '手机号',
125
- fieldLabelI18nKey: 'i18n_title_phone',
126
- fieldName: 'phone',
127
- regex: /^1[3|4|5|7|8|9]\d{9}$/,
128
- alertMsg: '您的手机号码格式不正确',
129
- },
130
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '工号', fieldLabelI18nKey: 'i18n_field_workNo', fieldName: 'workNo' },
131
- { groupCode: 'baseForm', fieldType: 'input', fieldLabel: '座机号', fieldLabelI18nKey: 'i18n_title_landlineNumber', fieldName: 'telephone' },
132
- {
133
- groupCode: 'baseForm',
134
- fieldType: 'select',
135
- fieldLabel: '部门',
136
- fieldLabelI18nKey: 'i18n_title_department',
137
- dictCode: '/org/purchaseOrganizationInfo/getOrgTree',
138
- fieldName: 'orgCode',
139
- },
140
- { groupCode: 'baseForm', fieldType: 'date', fieldLabel: '账号过期时间', fieldLabelI18nKey: 'i18n_title_accountExpirationTime', fieldName: 'accountValidityDate' },
141
- {
142
- groupCode: 'baseForm',
143
- fieldType: 'remoteSelect',
144
- fieldLabel: '直属领导',
145
- fieldLabelI18nKey: 'i18n_field_RWQu_378045a0',
146
- fieldName: 'superiorLeader',
147
- extend: {
148
- modalColumns: [
149
- {
150
- field: 'subAccount',
151
- fieldLabelI18nKey: 'i18n_field_subAccount',
152
- title: '子账号',
153
- with: 150,
154
- },
155
- {
156
- field: 'realname',
157
- fieldLabelI18nKey: 'i18n_title_name',
158
- title: '姓名',
159
- with: 150,
160
- },
161
- ],
162
- modalUrl: '/account/elsSubAccount/list',
163
- },
164
- },
165
- ],
166
- itemColumns: [
167
- {
168
- groupCode: 'subaccountOrgList',
169
- fieldType: 'select',
170
- dictCode: 'orgCategoryType',
171
- title: '组织类型',
172
- fieldLabelI18nKey: 'i18n_field_organizationType',
173
- field: 'orgCategoryCode',
174
- align: 'center',
175
- headerAlign: 'center',
176
- defaultValue: '',
177
- width: '250',
178
- visible: true,
179
- },
180
- {
181
- groupCode: 'subaccountOrgList',
182
- fieldType: 'input',
183
- title: '组织编码',
184
- fieldLabelI18nKey: '',
185
- field: 'orgCode',
186
- align: 'center',
187
- headerAlign: 'center',
188
- defaultValue: '',
189
- width: '250',
190
- visible: true,
191
- },
192
- {
193
- groupCode: 'subaccountOrgList',
194
- fieldType: 'input',
195
- title: '备注',
196
- fieldLabelI18nKey: '',
197
- field: 'remark',
198
- align: 'center',
199
- headerAlign: 'center',
200
- defaultValue: '',
201
- width: '250',
202
- visible: true,
203
- },
204
- ],
205
- },
206
- // 页面按钮
207
- pageButtons: [
208
- {
209
- ...BUTTON_SAVE,
210
- title: '保存',
211
- emit: true,
212
- emitKey: 'customSave',
213
- args: {
214
- url: '/account/elsSubAccount/edit',
215
- },
216
- },
217
- ],
218
- })
219
- const pageButtons = options.pageButtons as GlobalPageLayoutTypes.PageButton[]
220
- const refreshMethods = options.refreshMethods
221
-
222
- const { pageData, layoutConfig, defaultValues } = useRefInstanceHook(layoutRef)
223
- const { stepTriggerValidate, composeSave, customLoading } = usePromiseStepHook({ pageData, layoutConfig, defaultValues, pageButtons: ref(pageButtons), refreshMethods })
224
- // 自定义保存
225
- const handleCustomSave = () => {
226
- stepTriggerValidate()
227
- }
228
- //
229
- const handleValidateSuccess = (button: GlobalPageLayoutTypes.PageButton) => {
230
- if (button.key === BUTTON_SAVE.key) {
231
- composeSave()
232
- }
233
- }
234
- // 页面刷新
235
- const handleRefresh = () => {
236
- console.log('refresh :>> ')
237
- if (options.currentRow) {
238
- options.currentRow._t = +new Date()
239
- }
240
- }
241
- </script>