@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,148 +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
- <script setup lang="ts">
7
- import { ref, reactive, inject } from 'vue'
8
- import type { ComponentPublicInstance } from 'vue'
9
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
10
- const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
11
- if (i18nKey) {
12
- if (account) {
13
- return account + defaultValue
14
- }
15
- return defaultValue
16
- }
17
- return defaultValue
18
- })
19
-
20
- // 传参 props
21
- const props = defineProps<{
22
- currentRow: GlobalPageLayoutTypes.CurrentRow | null
23
- userInfo: GlobalPageLayoutTypes.UserInfo
24
- }>()
25
-
26
- const currentRow = props.currentRow
27
- ? props.currentRow
28
- : ref({
29
- templateNumber: '',
30
- templateVersion: 0,
31
- templateAccount: '',
32
- busAccount: '',
33
- elsAccount: '',
34
- })
35
-
36
- // 编辑组件 ref
37
- const layoutRef = ref<ComponentPublicInstance | null>(null)
38
-
39
- // 配置
40
- const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
41
- /**
42
- * 模块业务类型 string
43
- * 取值根据各模块配置
44
- * 当定义为"custom"时,使用本地配置
45
- */
46
- businessType: 'custom',
47
- // 布局模式
48
- pattern: 'vertical',
49
- // 当前已选行数据a
50
- currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
51
- // 当前登录租户信息
52
- userInfo: props.userInfo,
53
- // 明细接口 -- 接口字符串
54
- detailApi: '/message/elsMsgRecord/queryById',
55
- // 本地页面数据配置
56
- localConfig: {
57
- groups: [
58
- {
59
- groupName: srmI18n('i18n_field_100100', '基本信息'),
60
- groupCode: 'baseForm',
61
- groupType: 'head',
62
- },
63
- ],
64
- formFields: [
65
- {
66
- groupCode: 'baseForm',
67
- sortOrder: '5',
68
- fieldType: 'input',
69
- fieldLabel: srmI18n('i18n_title_senderElsAccount', '订单号'),
70
- fieldLabelI18nKey: 'i18n_field_orderNumber',
71
- fieldName: 'sendElsAccount',
72
- },
73
- {
74
- groupCode: 'baseForm',
75
- sortOrder: '5',
76
- fieldType: 'number',
77
- fieldLabel: srmI18n('i18n_title_senderChildAccount', '发送人子账号'),
78
- fieldLabelI18nKey: 'i18n_field_sendSubAccount',
79
- fieldName: 'sendSubAccount',
80
- },
81
- {
82
- groupCode: 'baseForm',
83
- sortOrder: '5',
84
- fieldType: 'input',
85
- fieldLabel: srmI18n('i18n_title_sender', '发送人'),
86
- fieldLabelI18nKey: 'i18n_field_sendName',
87
- fieldName: 'sendName',
88
- },
89
- {
90
- groupCode: 'baseForm',
91
- sortOrder: '5',
92
- fieldType: 'input',
93
- fieldLabel: srmI18n('i18n_title_newsTitle', '消息标题'),
94
- fieldLabelI18nKey: 'i18n_field_msgTitle',
95
- fieldName: 'msgTitle',
96
- },
97
- {
98
- groupCode: 'baseForm',
99
- sortOrder: '5',
100
- fieldType: 'customRender',
101
- fieldLabel: srmI18n('i18n_title_newsContent', '消息内容'),
102
- fieldLabelI18nKey: 'i18n_field_newsContent',
103
- fieldName: 'msgContent',
104
- },
105
- {
106
- groupCode: 'baseForm',
107
- sortOrder: '5',
108
- fieldType: 'input',
109
- fieldLabel: srmI18n('i18n_field_businessType', '业务类型'),
110
- fieldLabelI18nKey: 'i18n_field_businessType',
111
- fieldName: 'businessType_dictText',
112
- },
113
- {
114
- groupCode: 'baseForm',
115
- sortOrder: '5',
116
- fieldType: 'input',
117
- fieldLabel: srmI18n('i18n_title_operateType', '操作类型'),
118
- fieldLabelI18nKey: '',
119
- fieldName: 'operateType_dictText',
120
- },
121
- {
122
- groupCode: 'baseForm',
123
- sortOrder: '5',
124
- fieldType: 'input',
125
- fieldLabel: srmI18n('i18n_title_sendTime', '发送时间'),
126
- fieldLabelI18nKey: 'i18n_field_sendTime',
127
- fieldName: 'sendTime',
128
- },
129
- {
130
- groupCode: 'baseForm',
131
- sortOrder: '5',
132
- fieldType: 'input',
133
- fieldLabel: srmI18n('i18n_field_handleFlag', '阅读状态'),
134
- fieldLabelI18nKey: 'i18n_field_handleFlag',
135
- fieldName: 'handleFlag_dictText',
136
- },
137
- {
138
- groupCode: 'baseForm',
139
- sortOrder: '5',
140
- fieldType: 'input',
141
- fieldLabel: srmI18n('i18n_title_sendTime', '阅读时间'),
142
- fieldLabelI18nKey: 'i18n_field_handleTime',
143
- fieldName: 'handleTime',
144
- },
145
- ],
146
- },
147
- })
148
- </script>
@@ -1,124 +0,0 @@
1
- <template>
2
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
3
- </template>
4
-
5
- <script lang="ts">
6
- //JS
7
- import { defineComponent, reactive, inject } from 'vue'
8
- //hook
9
- import { useConfigData } from './useConfigData'
10
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
11
- import { message } from '@qqt-product/ui'
12
- export default defineComponent({
13
- name: 'QElsMsgRecordList',
14
- props: {
15
- userInfo: {
16
- type: Object,
17
- defalut: () => {
18
- return {}
19
- },
20
- },
21
- },
22
- setup(props, { emit }) {
23
- const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
24
- if (i18nKey) {
25
- if (account) {
26
- return account + defaultValue
27
- }
28
- return defaultValue
29
- }
30
- return defaultValue
31
- })
32
- const { showEditPage, apiUrls, listLayoutRef } = useConfigData()
33
- // const { userInfo } = toRefs(props)
34
- // console.log('userInfos', userInfo)
35
- //data
36
- const pageData = reactive({
37
- statusConfig: {
38
- show: false,
39
- },
40
- optColumn: {
41
- attrs: {},
42
- extend: {},
43
- optColumnList: [
44
- {
45
- type: 'view',
46
- title: srmI18n('i18n_title_see', '查看'),
47
- click: ({ row }) => {
48
- emit('detail', row)
49
- },
50
- },
51
- ],
52
- },
53
- buttonConfig: {
54
- attrs: {},
55
- extend: {},
56
- buttons: [
57
- { authorityCode: 'elsMsgRecord#ElsMsgRecord:readBatch', label: srmI18n('i18n_btn_IIZz_25b7aa44', '一键阅读'), icon: 'check', click: readBatch },
58
- {
59
- label: srmI18n('i18n_title_listCustom', '列自定义'),
60
- icon: {
61
- type: 'icon-Q-setting',
62
- },
63
- type: 'setting',
64
- },
65
- ],
66
- },
67
- queryConfig: {
68
- attrs: {},
69
- extend: {},
70
- form: [
71
- {
72
- type: 'select',
73
- label: srmI18n('i18n_field_businessType', '业务类型'),
74
- dictCode: 'srmBusinessType',
75
- fieldName: 'businessType',
76
- },
77
- {
78
- type: 'select',
79
- label: srmI18n('i18n_field_handleFlag', '阅读状态'),
80
- fieldName: 'handleFlag',
81
- dictCode: 'srmHandleFlag',
82
- },
83
- {
84
- type: 'select',
85
- label: srmI18n('i18n_title_operateType', '操作类型'),
86
- fieldName: 'operateType',
87
- dictCode: 'srmOperateType',
88
- },
89
- ],
90
- formState: {},
91
- },
92
- pagerConfig: {},
93
- })
94
- const qHttp = inject(INJECT_HTTP) as HttpClient
95
- //methods
96
-
97
- function readBatch() {
98
- let selectedRows = listLayoutRef.value.gridInstance.getCheckboxRecords()
99
- if (selectedRows.length <= 0) {
100
- message.warning(srmI18n('请勾选需一键阅读的消息行!', '请勾选需一键阅读的消息行!'))
101
- return
102
- }
103
- let params = selectedRows.map((item: MapObjectNoneType) => item.id)
104
- qHttp
105
- .post({
106
- url: apiUrls.value.readBatch,
107
- data: params,
108
- })
109
- .then((res) => {
110
- if (res.success) {
111
- message.success(res.message)
112
- listLayoutRef.value.fetchListData()
113
- // this.$store.dispatch('updateMatTotal')
114
- } else {
115
- message.warning(res.message)
116
- }
117
- })
118
- }
119
-
120
- return { showEditPage, apiUrls, pageData, listLayoutRef }
121
- },
122
- })
123
- </script>
124
- <style scoped></style>
@@ -1,22 +0,0 @@
1
- import { shallowRef, ref } from 'vue'
2
- // import type { MapObjectNoneType } from './types'
3
- // import { VxeTableInstance } from 'vxe-table'
4
- // import type {}
5
- export function useConfigData() {
6
- //响应
7
-
8
- const apiUrls = shallowRef({
9
- list: '/message/elsMsgRecord/list',
10
- columnsCode: 'MsgRecordList',
11
- delete: '/message/elsMsgRecord/delete',
12
- deleteBatch: '/message/elsMsgRecord/deleteBatch',
13
- readBatch: '/message/elsMsgRecord/readBatch',
14
- exportXlsUrl: 'message/elsMsgRecord/exportXls',
15
- importExcelUrl: 'message/elsMsgRecord/importExcel',
16
- })
17
- const uploadShow = shallowRef<boolean>(false)
18
- const showEditPage = shallowRef<boolean>(false)
19
- const currentEditRow = ref({})
20
- const listLayoutRef = ref()
21
- return { apiUrls, showEditPage, currentEditRow, listLayoutRef, uploadShow }
22
- }
@@ -1,6 +0,0 @@
1
- import QElsTenantPortalNewsList from './src/QElsTenantPortalNewsList.vue'
2
- import qqtUtils from '@qqt-product/utils'
3
-
4
- export default qqtUtils.withInstall(QElsTenantPortalNewsList)
5
-
6
- export { QElsTenantPortalNewsList }
@@ -1,139 +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, inject } from 'vue'
9
- import type { ComponentPublicInstance } from 'vue'
10
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
11
- const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
12
- if (i18nKey) {
13
- if (account) {
14
- return account + defaultValue
15
- }
16
- return defaultValue
17
- }
18
- return defaultValue
19
- })
20
-
21
- // 传参 props
22
- const props = defineProps<{
23
- currentRow: GlobalPageLayoutTypes.CurrentRow | null
24
- userInfo: GlobalPageLayoutTypes.UserInfo
25
- }>()
26
-
27
- const currentRow = props.currentRow
28
- ? props.currentRow
29
- : ref({
30
- templateNumber: '',
31
- templateVersion: 0,
32
- templateAccount: '',
33
- busAccount: '',
34
- elsAccount: '',
35
- })
36
-
37
- // 编辑组件 ref
38
- const layoutRef = ref<ComponentPublicInstance | null>(null)
39
-
40
- // 配置
41
- const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
42
- /**
43
- * 模块业务类型 string
44
- * 取值根据各模块配置
45
- * 当定义为"custom"时,使用本地配置
46
- */
47
- businessType: 'custom',
48
- // 布局模式
49
- pattern: 'vertical',
50
- // 当前已选行数据a
51
- currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
52
- // 当前登录租户信息
53
- userInfo: props.userInfo,
54
- // 明细接口 -- 接口字符串
55
- detailApi: '/news/elsTenantPortalNews/queryById',
56
- // 本地页面数据配置
57
- localConfig: {
58
- groups: [
59
- {
60
- groupName: '基本信息',
61
- groupCode: 'baseForm',
62
- groupType: 'head',
63
- },
64
- ],
65
- formFields: [
66
- {
67
- groupCode: 'baseForm',
68
- fieldType: 'input',
69
- fieldLabel: srmI18n('i18n_field_subject', '标题'),
70
- fieldName: 'portalNewsTitle',
71
- placeholder: srmI18n('i18n_title_pleaseEnterTitle', '请输入标题'),
72
- required: '1',
73
- },
74
- {
75
- groupCode: 'baseForm',
76
- fieldType: 'select',
77
- fieldLabel: srmI18n('i18n_field_VQAc_307be9fb', '新闻类型'),
78
- fieldName: 'portalNewsType',
79
- placeholder: srmI18n('i18n_title_selectType', '请选择类型'),
80
- dictCode: 'portalNewsType',
81
- required: '1',
82
- },
83
- {
84
- groupCode: 'baseForm',
85
- fieldType: 'input',
86
- fieldLabel: srmI18n('i18n_field_IBQIAc_db486758', '目标文件类型'),
87
- fieldName: 'newsRedirectType',
88
- placeholder: srmI18n('i18n_field_ViFIBQIAc_a9f7e04f', '请选择目标文件类型'),
89
- dictCode: 'newsRedirectType',
90
- },
91
- {
92
- groupCode: 'baseForm',
93
- fieldType: 'input',
94
- fieldLabel: srmI18n('i18n_field_IBnR_37a162a9', '目标地址'),
95
- fieldName: 'linkUrl',
96
- placeholder: srmI18n('i18n_title_enterAddress', '请输入地址'),
97
- required: '1',
98
- },
99
- {
100
- groupCode: 'baseForm',
101
- fieldType: 'date',
102
- fieldLabel: srmI18n('i18n_field_effectiveTime', '生效时间'),
103
- fieldName: 'effectiveTime',
104
- dataFormat: 'YYYY-MM-DD HH:mm:ss',
105
- required: '1',
106
- },
107
- {
108
- groupCode: 'baseForm',
109
- fieldType: 'date',
110
- fieldLabel: srmI18n('i18n_field_expiryTime', '失效时间'),
111
- fieldName: 'expiryTime',
112
- dataFormat: 'YYYY-MM-DD HH:mm:ss',
113
- required: '1',
114
- },
115
- {
116
- groupCode: 'baseForm',
117
- fieldType: 'input',
118
- fieldLabel: srmI18n('i18n_field_VQIy_307bc2d6', '新闻简介'),
119
- fieldName: 'portalNewsIntro',
120
- placeholder: srmI18n('i18n_title_enterDescribe', '请输入简介内容'),
121
- },
122
- {
123
- groupCode: 'baseForm',
124
- fieldType: 'image',
125
- fieldLabel: srmI18n('i18n_title_thumbnail', '缩略图'),
126
- fieldLabelI18nKey: 'i18n_field_AEWWWW_1d586064',
127
- fieldName: 'portalNewsThumbnail',
128
- dictCode: '',
129
- defaultValue: '',
130
- dataFormat: '',
131
- alertMsg: '',
132
- required: '0',
133
- mobile: 1,
134
- placeholder: '',
135
- },
136
- ],
137
- },
138
- })
139
- </script>
@@ -1,196 +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, inject } from 'vue'
11
- import type { ComponentPublicInstance } from 'vue'
12
- import { BUTTON_SAVE } from '@qqt-product/ui'
13
-
14
- // ui组件库 types
15
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
16
- import { usePromiseStepHook, useRefInstanceHook } from '@qqt-product/ui'
17
-
18
- const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
19
- if (i18nKey) {
20
- if (account) {
21
- return account + defaultValue
22
- }
23
- return defaultValue
24
- }
25
- return defaultValue
26
- })
27
-
28
- // 传参 props
29
- const props = defineProps<{
30
- currentRow: GlobalPageLayoutTypes.CurrentRow | null
31
- userInfo: GlobalPageLayoutTypes.UserInfo
32
- }>()
33
-
34
- const currentRow = props.currentRow
35
- ? props.currentRow
36
- : ref({
37
- templateNumber: '',
38
- templateVersion: 0,
39
- templateAccount: '',
40
- busAccount: '',
41
- elsAccount: '',
42
- })
43
-
44
- // 编辑组件 ref
45
- const layoutRef = ref<ComponentPublicInstance | null>(null)
46
-
47
- // 配置
48
- const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
49
- /**
50
- * 模块业务类型 string
51
- * 取值根据各模块配置
52
- * 当定义为"custom"时,使用本地配置
53
- */
54
- businessType: 'custom',
55
- // 布局模式
56
- pattern: 'vertical',
57
- // 当前已选行数据a
58
- currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
59
- refreshMethods(row?: GlobalPageLayoutTypes.CurrentRow) {
60
- if (options.currentRow) {
61
- options.currentRow =
62
- row ||
63
- Object.assign({}, options.currentRow, {
64
- _t: +new Date(),
65
- })
66
- }
67
- },
68
- // 当前登录租户信息
69
- userInfo: props.userInfo,
70
- // 明细接口 -- 接口字符串
71
- detailApi: '/news/elsTenantPortalNews/queryById',
72
- // 本地页面数据配置
73
- localConfig: {
74
- groups: [
75
- {
76
- groupName: '基本信息',
77
- groupCode: 'baseForm',
78
- groupType: 'head',
79
- },
80
- ],
81
- formFields: [
82
- {
83
- groupCode: 'baseForm',
84
- fieldType: 'input',
85
- fieldLabel: srmI18n('i18n_field_subject', '标题'),
86
- fieldName: 'portalNewsTitle',
87
- placeholder: srmI18n('i18n_title_pleaseEnterTitle', '请输入标题'),
88
- required: '1',
89
- },
90
- {
91
- groupCode: 'baseForm',
92
- fieldType: 'select',
93
- fieldLabel: srmI18n('i18n_field_VQAc_307be9fb', '新闻类型'),
94
- fieldName: 'portalNewsType',
95
- placeholder: srmI18n('i18n_title_selectType', '请选择类型'),
96
- dictCode: 'portalNewsType',
97
- required: '1',
98
- },
99
- {
100
- groupCode: 'baseForm',
101
- fieldType: 'input',
102
- fieldLabel: srmI18n('i18n_field_IBQIAc_db486758', '目标文件类型'),
103
- fieldName: 'newsRedirectType',
104
- placeholder: srmI18n('i18n_field_ViFIBQIAc_a9f7e04f', '请选择目标文件类型'),
105
- dictCode: 'newsRedirectType',
106
- },
107
- {
108
- groupCode: 'baseForm',
109
- fieldType: 'input',
110
- fieldLabel: srmI18n('i18n_field_IBnR_37a162a9', '目标地址'),
111
- fieldName: 'linkUrl',
112
- placeholder: srmI18n('i18n_title_enterAddress', '请输入地址'),
113
- required: '1',
114
- },
115
- {
116
- groupCode: 'baseForm',
117
- fieldType: 'date',
118
- fieldLabel: srmI18n('i18n_field_effectiveTime', '生效时间'),
119
- fieldName: 'effectiveTime',
120
- dataFormat: 'YYYY-MM-DD HH:mm:ss',
121
- required: '1',
122
- },
123
- {
124
- groupCode: 'baseForm',
125
- fieldType: 'date',
126
- fieldLabel: srmI18n('i18n_field_expiryTime', '失效时间'),
127
- fieldName: 'expiryTime',
128
- dataFormat: 'YYYY-MM-DD HH:mm:ss',
129
- required: '1',
130
- },
131
- {
132
- groupCode: 'baseForm',
133
- fieldType: 'input',
134
- fieldLabel: srmI18n('i18n_field_VQIy_307bc2d6', '新闻简介'),
135
- fieldName: 'portalNewsIntro',
136
- placeholder: srmI18n('i18n_title_enterDescribe', '请输入简介内容'),
137
- },
138
- {
139
- groupCode: 'baseForm',
140
- fieldType: 'image',
141
- fieldLabel: srmI18n('i18n_title_thumbnail', '缩略图'),
142
- fieldLabelI18nKey: 'i18n_field_AEWWWW_1d586064',
143
- fieldName: 'portalNewsThumbnail',
144
- dictCode: '',
145
- defaultValue: '',
146
- dataFormat: '',
147
- alertMsg: '',
148
- required: '0',
149
- mobile: 1,
150
- placeholder: '',
151
- },
152
- ],
153
- },
154
- // 页面按钮
155
- pageButtons: [
156
- {
157
- ...BUTTON_SAVE,
158
- title: srmI18n('i18n_title_save', '保存'),
159
- emit: true,
160
- emitKey: 'customSave',
161
- args: {
162
- url: '/news/elsTenantPortalNews/add',
163
- },
164
- },
165
- ],
166
- })
167
-
168
- // LocalConfig ts类型中,定义 pageButtons 为非必填项
169
- // 所以, undefined 不能赋值为 PageButton[], 故此外需要 ts 断言
170
- const pageButtons = options.pageButtons as GlobalPageLayoutTypes.PageButton[]
171
- const refreshMethods = options.refreshMethods
172
-
173
- const { pageData, layoutConfig, defaultValues } = useRefInstanceHook(layoutRef)
174
- const { stepTriggerValidate, composeSave, customLoading } = usePromiseStepHook({ pageData, layoutConfig, defaultValues, pageButtons: ref(pageButtons), refreshMethods })
175
-
176
- // 自定义保存
177
- const handleCustomSave = () => {
178
- stepTriggerValidate()
179
- }
180
-
181
- // 页面校验成功后执行下一步回调步骤
182
- const handleValidateSuccess = (button: GlobalPageLayoutTypes.PageButton) => {
183
- console.log('button :>> ', button)
184
- if (button.key === BUTTON_SAVE.key) {
185
- composeSave()
186
- }
187
- }
188
-
189
- // 页面刷新
190
- const handleRefresh = () => {
191
- console.log('refresh :>> ')
192
- if (options.currentRow) {
193
- options.currentRow._t = +new Date()
194
- }
195
- }
196
- </script>