@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,143 +0,0 @@
1
- <template>
2
- <div style="height: 100%">
3
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- //JS
9
- import { defineComponent, reactive, inject } from 'vue'
10
- //hook
11
- import { useConfigData } from './useConfigData'
12
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
13
- import { message, Modal } from '@qqt-product/ui'
14
- import { useConigApiMethods } from '../../../utils/global.hook'
15
- export default defineComponent({
16
- name: 'QBackgroundFileTaskList',
17
- props: {
18
- userInfo: {
19
- type: Object,
20
- defalut: () => {
21
- return {}
22
- },
23
- },
24
- },
25
- setup() {
26
- //data-hook
27
- const { showEditPage, apiUrls, listLayoutRef } = useConfigData()
28
- const qHttp = inject(INJECT_HTTP) as HttpClient
29
- const { handleExport } = useConigApiMethods(qHttp)
30
- // const { userIpnfo } = toRefs(props)
31
- // console.log('userInfos', userInfo)
32
-
33
- //data
34
- const pageData = reactive({
35
- statusConfig: {
36
- show: false,
37
- },
38
- optionConfig: {
39
- attrs: {},
40
- extend: {},
41
- options: [
42
- { authorityCode: 'backgroundFileTask#BackgroundFileTask:runTask', type: 'run', title: '执行任务', click: handleRun, disabled: allowRun },
43
- {
44
- authorityCode: 'backgroundFileTask#BackgroundFileTask:downTaskFile',
45
- type: 'down',
46
- title: '下载文件',
47
- click: handleCustomDown,
48
- disabled: allowDown,
49
- },
50
- {
51
- authorityCode: 'backgroundFileTask#BackgroundFileTask:delete',
52
- type: 'delete',
53
- title: '删除',
54
- args: {
55
- url: apiUrls.value.delete,
56
- },
57
- },
58
- ],
59
- },
60
- buttonConfig: {
61
- attrs: {},
62
- extend: {},
63
- buttons: [
64
- {
65
- label: '列自定义',
66
- icon: {
67
- type: 'icon-Q-setting',
68
- },
69
- type: 'setting',
70
- },
71
- // {label: srmI18n(`${getLangAccount()}#i18n_title_listCustom`, '列自定义'), icon: 'setting', clickFn: this.settingColumns},
72
- // {label: srmI18n(`${getLangAccount()}#i18n_title_helpText`, '帮助说明'), icon: 'file-text', folded: true, isDocument: true, clickFn: this.showHelpText},
73
- // {label: srmI18n(`${getLangAccount()}#i18n_title_attachment`, '说明附件'), icon: 'file-pdf', folded: true, isDocument: true, clickFn: this.showHelpPDF}
74
- ],
75
- },
76
- queryConfig: {
77
- attrs: {},
78
- extend: {},
79
- form: [],
80
- },
81
- pagerConfig: {},
82
- })
83
- //methods
84
-
85
- function allowRun({ row = {} as MapObjectNoneType }) {
86
- return '0' !== row.taskStatus
87
- }
88
-
89
- function handleRun({ row = {} as MapObjectNoneType }) {
90
- if ('0' !== row.taskStatus) {
91
- message.warning('当前状态不允许执行文件任务')
92
- return
93
- }
94
- Modal.confirm({
95
- title: '执行文件任务',
96
- content: '是否执行文件任务?',
97
- onOk() {
98
- listLayoutRef.value.loading = true
99
- qHttp
100
- .post({
101
- url: apiUrls.value.runTask + '/' + row.id,
102
- })
103
- .then((res) => {
104
- if (res.success) {
105
- listLayoutRef.value.fetchListData()
106
- message.success(res.message)
107
- } else {
108
- message.warning(res.message)
109
- }
110
- })
111
- .finally(() => {
112
- listLayoutRef.value.loading = true
113
- })
114
- },
115
- })
116
- }
117
-
118
- function allowDown({ row = {} as MapObjectNoneType }) {
119
- return '1' !== row.taskStatus
120
- }
121
- function handleCustomDown({ row = {} as MapObjectNoneType }) {
122
- handleExport({
123
- exportXlsUrl: apiUrls.value.downTaskFile + '/' + row.id,
124
- type: 'xls',
125
- fileName: row.taskName,
126
- actionType: 'get',
127
- setPostParms: () => {
128
- return {}
129
- },
130
- berforCallback: () => {
131
- listLayoutRef.value.loading = true
132
- },
133
- afterCallback: () => {
134
- listLayoutRef.value.loading = false
135
- },
136
- })
137
- }
138
-
139
- return { listLayoutRef, showEditPage, apiUrls, pageData }
140
- },
141
- })
142
- </script>
143
- <style scoped></style>
@@ -1,20 +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: '/base/fileTask/list',
10
- delete: '/base/fileTask/delete',
11
- runTask: '/base/fileTask/runTask',
12
- downTaskFile: '/base/fileTask/downTaskFile',
13
- columnsCode: 'BackgroundFileTaskList',
14
- })
15
- const uploadShow = shallowRef<boolean>(false)
16
- const showEditPage = shallowRef<boolean>(false)
17
- const currentEditRow = ref({})
18
- const listLayoutRef = ref()
19
- return { apiUrls, showEditPage, currentEditRow, listLayoutRef, uploadShow }
20
- }
@@ -1,6 +0,0 @@
1
- import QElsEmailSendLogList from './src/QElsEmailSendLogList.vue'
2
- import qqtUtils from '@qqt-product/utils'
3
-
4
- export default qqtUtils.withInstall(QElsEmailSendLogList)
5
-
6
- export { QElsEmailSendLogList }
@@ -1,172 +0,0 @@
1
- <template>
2
- <div style="height: 100%">
3
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- //JS
9
- import { defineComponent, reactive, inject } from 'vue'
10
- //hook
11
- import { useConfigData } from './useConfigData'
12
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
13
-
14
- //组件
15
- import { Modal, message } from '@qqt-product/ui'
16
- export default defineComponent({
17
- name: 'QElsEmailSendLogList',
18
- props: {
19
- userInfo: {
20
- type: Object,
21
- defalut: () => {
22
- return {}
23
- },
24
- },
25
- },
26
- setup() {
27
- //data-hook
28
- const { showEditPage, apiUrls, listLayoutRef } = useConfigData()
29
- const qHttp = inject(INJECT_HTTP) as HttpClient
30
- //data
31
- const pageData = reactive({
32
- statusConfig: {
33
- show: false,
34
- },
35
- optionConfig: {
36
- attrs: {},
37
- extend: {},
38
- options: [
39
- { type: 'retry', title: '重试', click: retry, disabled: retryShow },
40
- {
41
- type: 'delete',
42
- title: '删除',
43
- args: {
44
- url: apiUrls.value.delete,
45
- },
46
- },
47
- ],
48
- },
49
- buttonConfig: {
50
- attrs: {},
51
- extend: {},
52
- buttons: [
53
- {
54
- label: '列自定义',
55
- icon: {
56
- type: 'icon-Q-setting',
57
- },
58
- type: 'setting',
59
- },
60
- // {
61
- // label: '导入',
62
- // args: {
63
- // url: 'material/purchaseMaterialHead/importExcel',
64
- // excelCode: 'purchaseMaterialExcel',
65
- // handleBeforeImportExcel(data) {
66
- // console.log('data :>> ', data)
67
- // return Promise.resolve({
68
- // flag: true,
69
- // params: {},
70
- // })
71
- // },
72
- // },
73
- // icon: {
74
- // type: 'icon-Q-import',
75
- // },
76
- // type: 'import',
77
- // },
78
- // {
79
- // label: '导出',
80
- // args: {
81
- // url: 'price/purchaseInformationRecordsRequest/exportXls',
82
- // },
83
- // icon: {
84
- // type: 'icon-Q-setting',
85
- // },
86
- // type: 'export',
87
- // },
88
- // {
89
- // label: '帮助说明',
90
- // icon: {
91
- // type: 'icon-Q-help-text',
92
- // },
93
- // type: 'help-text',
94
- // },
95
- // {
96
- // label: '附件说明',
97
- // icon: {
98
- // type: 'icon-Q-attachment-text',
99
- // },
100
- // type: 'attachment-text',
101
- // },
102
- // {
103
- // label: '视频说明',
104
- // icon: {
105
- // type: 'icon-Q-video-text',
106
- // },
107
- // type: 'video-text',
108
- // },
109
- // { type: 'edit', title: this.$srmI18n(`${this.$getLangAccount()}#i18n_menu_sK_1233a8`, '重试'), clickFn: this.retry, allow: this.retryShow },
110
- // { type: 'delete', title: this.$srmI18n(`${this.$getLangAccount()}#i18n_title_delete`, '删除'), clickFn: this.handleDeleteSingle },
111
- ],
112
- },
113
- queryConfig: {
114
- attrs: {},
115
- extend: {},
116
- form: [
117
- {
118
- type: 'input',
119
- label: '邮件标题',
120
- fieldName: 'subject',
121
- placeholder: '请输入邮件标题',
122
- },
123
- {
124
- type: 'input',
125
- label: '邮件接收人',
126
- fieldName: 'emailTo',
127
- placeholder: '请输入邮件接收人',
128
- },
129
- ],
130
- },
131
- pagerConfig: {},
132
- })
133
-
134
- // const { userInfo } = toRefs(props)
135
- // console.log('userInfos', userInfo)
136
- //methods
137
- function retryShow({ row = {} as MapObjectNoneType }) {
138
- return row.sendStatus === '1'
139
- }
140
-
141
- function retry({ row = {} as MapObjectNoneType }) {
142
- // let param = { id: row.id }
143
-
144
- Modal.confirm({
145
- title: '提示',
146
- content: '是否重新发送邮件?',
147
- onOk: function () {
148
- listLayoutRef.value.loading = true
149
- qHttp
150
- .post({
151
- url: apiUrls.value.retry + '/' + row.id,
152
- })
153
- .then((res) => {
154
- if (res.success) {
155
- listLayoutRef.value.fetchListData()
156
- message.success(res.message)
157
- } else {
158
- message.warning(res.message)
159
- }
160
- })
161
- .finally(() => {
162
- listLayoutRef.value.loading = true
163
- })
164
- },
165
- })
166
- }
167
-
168
- return { showEditPage, apiUrls, pageData, listLayoutRef }
169
- },
170
- })
171
- </script>
172
- <style scoped></style>
@@ -1,19 +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: '/system/elsEmailSendLog/list',
10
- columnsCode: 'elsEmailSendLog',
11
- delete: '/system/elsEmailSendLog/delete',
12
- retry: '/system/elsEmailSendLog/retry',
13
- })
14
- const uploadShow = shallowRef<boolean>(false)
15
- const showEditPage = shallowRef<boolean>(false)
16
- const currentEditRow = ref({})
17
- const listLayoutRef = ref()
18
- return { apiUrls, showEditPage, currentEditRow, listLayoutRef, uploadShow }
19
- }
@@ -1,6 +0,0 @@
1
- import QElsMsgRecordList from './src/QElsMsgRecordList.vue'
2
- import qqtUtils from '@qqt-product/utils'
3
-
4
- export default qqtUtils.withInstall(QElsMsgRecordList)
5
-
6
- export { QElsMsgRecordList }
@@ -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,123 +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
- optionConfig: {
41
- attrs: {},
42
- extend: {},
43
- options: [
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
- },
91
- pagerConfig: {},
92
- })
93
- const qHttp = inject(INJECT_HTTP) as HttpClient
94
- //methods
95
-
96
- function readBatch() {
97
- let selectedRows = listLayoutRef.value.gridInstance.getCheckboxRecords()
98
- if (selectedRows.length <= 0) {
99
- message.warning(srmI18n('请勾选需一键阅读的消息行!', '请勾选需一键阅读的消息行!'))
100
- return
101
- }
102
- let params = selectedRows.map((item: MapObjectNoneType) => item.id)
103
- qHttp
104
- .post({
105
- url: apiUrls.value.readBatch,
106
- data: params,
107
- })
108
- .then((res) => {
109
- if (res.success) {
110
- message.success(res.message)
111
- listLayoutRef.value.fetchListData()
112
- // this.$store.dispatch('updateMatTotal')
113
- } else {
114
- message.warning(res.message)
115
- }
116
- })
117
- }
118
-
119
- return { showEditPage, apiUrls, pageData, listLayoutRef }
120
- },
121
- })
122
- </script>
123
- <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 }