@qqt-product/system 0.0.2 → 0.0.16

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 (105) hide show
  1. package/dist/index.es.js +53240 -10634
  2. package/dist/index.umd.js +94 -21
  3. package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +2878 -0
  4. package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +2871 -0
  5. package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +2878 -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 +2864 -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 +2864 -0
  12. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +2876 -0
  13. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +29 -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/QPermissionDataEdit.vue.d.ts +2872 -0
  18. package/dist/lib/components/QPermissionDataList/src/QPermissionDataList.vue.d.ts +126 -0
  19. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +2864 -0
  20. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +2887 -0
  21. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +25 -5
  22. package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +7 -0
  23. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +221 -28
  24. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue.d.ts +45 -0
  25. package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +24 -5
  26. package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +23 -7
  27. package/dist/lib/components/QRoleList/src/useConfigData.d.ts +1 -11
  28. package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +7 -3
  29. package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +15 -35
  30. package/dist/lib/components/QUsageList/src/useConfigData.d.ts +111 -10
  31. package/dist/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue.d.ts +25 -0
  32. package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +9 -10
  33. package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +1209 -0
  34. package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +1 -1
  35. package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +8 -7
  36. package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +2 -3
  37. package/dist/lib/components/index.d.ts +2 -2
  38. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +2863 -0
  39. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +2872 -0
  40. package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +8 -11
  41. package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +16 -10
  42. package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +2 -9
  43. package/dist/lib/components/loginLogList/src/index.vue.d.ts +2 -8
  44. package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +2 -12
  45. package/dist/lib/components/operateLogList/src/index.vue.d.ts +2 -13
  46. package/dist/style.css +1 -1
  47. package/dist/vite-env.d.ts +13 -13
  48. package/package.json +13 -11
  49. package/src/lib/components/QAccountList/src/QAccountCreate.vue +272 -0
  50. package/src/lib/components/QAccountList/src/QAccountDetail.vue +82 -14
  51. package/src/lib/components/QAccountList/src/QAccountEdit.vue +65 -33
  52. package/src/lib/components/QAccountList/src/QAccountList.vue +532 -530
  53. package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +143 -137
  54. package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +172 -166
  55. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +123 -124
  56. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +66 -18
  57. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +151 -122
  58. package/src/lib/components/QI18nList/src/QI18nList.vue +365 -361
  59. package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +103 -94
  60. package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +109 -105
  61. package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +3 -3
  62. package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +218 -221
  63. package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +110 -117
  64. package/src/lib/components/QPermissionDataList/src/form.vue +109 -109
  65. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +1 -1
  66. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +120 -32
  67. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +189 -163
  68. package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +84 -0
  69. package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +22 -22
  70. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +134 -85
  71. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +91 -0
  72. package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +276 -263
  73. package/src/lib/components/QRoleList/src/QRoleList.vue +332 -288
  74. package/src/lib/components/QRoleList/src/useConfigData.ts +1 -6
  75. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +304 -302
  76. package/src/lib/components/QUsageList/src/QUsageList.vue +287 -82
  77. package/src/lib/components/QUsageList/src/useConfigData.ts +147 -13
  78. package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +140 -140
  79. package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +28 -28
  80. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +130 -42
  81. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +2 -2
  82. package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +2 -2
  83. package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +12 -12
  84. package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +276 -268
  85. package/src/lib/components/QcustomConfigList/src/useConfigData.ts +1 -1
  86. package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +124 -125
  87. package/src/lib/components/index.ts +78 -78
  88. package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +2 -10
  89. package/src/lib/components/integratedNodesList/src/index.vue +130 -136
  90. package/src/lib/components/integratedReportList/src/index.vue +55 -30
  91. package/src/lib/components/integratedReportSearchList/src/index.vue +106 -66
  92. package/src/lib/components/loginAbnormalLogList/src/index.vue +43 -50
  93. package/src/lib/components/loginLogList/src/index.vue +51 -57
  94. package/src/lib/components/loginSupplierLogList/src/index.vue +53 -63
  95. package/src/lib/components/operateLogList/src/index.vue +46 -57
  96. package/src/vite-env.d.ts +13 -13
  97. package/tsconfig.json +24 -24
  98. package/vite.config.ts +1 -1
  99. package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +0 -80
  100. package/dist/lib/components/QCompanyermissionList/src/types.d.ts +0 -44
  101. package/dist/lib/components/integratedReportList/src/index.vue.d.ts +0 -70
  102. package/src/lib/components/QCompanyermissionList/src/editTree.vue +0 -291
  103. package/src/lib/components/QCompanyermissionList/src/form.vue +0 -238
  104. package/src/lib/components/QCompanyermissionList/src/index.vue +0 -309
  105. package/src/lib/components/QCompanyermissionList/src/types.ts +0 -44
@@ -1,122 +1,151 @@
1
- <template>
2
- <q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
3
- </template>
4
- <script setup lang="ts">
5
- import { reactive, ref, inject } from 'vue'
6
- const listLayoutRef = ref()
7
- const emit = defineEmits(['create', 'detail', 'edit', 'delete', 'publish'])
8
- const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
9
- if (i18nKey) {
10
- if (account) {
11
- return account + defaultValue
12
- }
13
- return defaultValue
14
- }
15
- return defaultValue
16
- })
17
- const apiUrls = {
18
- list: '/news/elsTenantPortalNews/list',
19
- columnsCode: 'elsTenantPortalNewsList',
20
- }
21
- const pageData = reactive({
22
- statusConfig: {
23
- show: false,
24
- },
25
- optColumn: {
26
- attrs: {},
27
- extend: {},
28
- optColumnList: [
29
- {
30
- type: 'view',
31
- title: srmI18n('i18n_title_view', '查看'),
32
- click: ({ row }) => {
33
- emit('detail', row)
34
- },
35
- },
36
- {
37
- type: 'edit',
38
- title: srmI18n('i18n_title_edit', '编辑'),
39
- click: ({ row }) => {
40
- emit('edit', row)
41
- },
42
- disabled: ({ row }) => row.status == '1',
43
- },
44
- {
45
- type: 'delete',
46
- title: '删除',
47
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
- click: ({ row }: any) => {
49
- emit('delete', row)
50
- },
51
- },
52
- {
53
- type: 'publish',
54
- title: srmI18n('i18n_title_publish', '发布'),
55
- disabled: ({ row }) => row.status == '1',
56
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
57
- click: ({ row }: any) => {
58
- emit('publish', row)
59
- },
60
- },
61
- ],
62
- },
63
- buttonConfig: {
64
- attrs: {},
65
- extend: {},
66
- buttons: [
67
- {
68
- label: srmI18n('i18n_title_add', '新增'),
69
- icon: {
70
- type: 'icon-Q-add',
71
- },
72
- type: 'add',
73
- click: () => {
74
- emit('create')
75
- },
76
- },
77
- {
78
- label: srmI18n('i18n_title_listCustom', '列自定义'),
79
- icon: {
80
- type: 'icon-Q-setting',
81
- },
82
- type: 'setting',
83
- },
84
- {
85
- label: srmI18n('i18n_title_helpText', '帮助说明'),
86
- icon: {
87
- type: 'icon-Q-help-text',
88
- },
89
- type: 'help-text',
90
- },
91
- {
92
- label: srmI18n('i18n_title_attachment', '说明附件'),
93
- icon: {
94
- type: 'icon-Q-attachment-text',
95
- },
96
- type: 'attachment-text',
97
- },
98
- ],
99
- },
100
- queryConfig: {
101
- attrs: {},
102
- extend: {},
103
- form: [
104
- {
105
- type: 'input',
106
- label: '关键字',
107
- fieldName: 'keyWord',
108
- placeholder: '请输入新闻标题、新闻简介',
109
- },
110
- ],
111
- formState: {},
112
- },
113
- pagerConfig: {},
114
- })
115
- const refresh = () => {
116
- listLayoutRef.value.fetchListData()
117
- }
118
- defineExpose({
119
- refresh,
120
- })
121
- </script>
122
- <style scoped></style>
1
+ <template>
2
+ <q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
3
+ </template>
4
+ <script setup lang="ts">
5
+ import { reactive, ref, inject } from 'vue'
6
+ import qqtApi from '@qqt-product/api'
7
+ import { message, Modal } from '@qqt-product/ui'
8
+ import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
9
+ const qHttp: qqtApi.Request = qqtApi.useHttp()
10
+ const listLayoutRef = ref()
11
+ const emit = defineEmits(['create', 'detail', 'edit'])
12
+ const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
13
+ if (i18nKey) {
14
+ if (account) {
15
+ return account + defaultValue
16
+ }
17
+ return defaultValue
18
+ }
19
+ return defaultValue
20
+ })
21
+ const apiUrls = {
22
+ list: '/news/elsTenantPortalNews/list',
23
+ columnsCode: 'elsTenantPortalNewsList',
24
+ }
25
+ const handleDelete = async (row: GlobalPageLayoutTypes.CurrentRow) => {
26
+ Modal.confirm({
27
+ title: srmI18n(`i18n_title_tip`, '提示'),
28
+ content: srmI18n('i18n_title_deleteChosedData', '是否删除选中数据?'),
29
+ onOk() {
30
+ let data = [row.id]
31
+ qHttp.post({ url: '/news/elsTenantPortalNews/delete', data: data }).then((res) => {
32
+ if (res && res.success) {
33
+ message.success(res.message)
34
+ listLayoutRef.value.fetchListData()
35
+ } else {
36
+ message.error(res.message)
37
+ }
38
+ })
39
+ },
40
+ okText: srmI18n('i18n_title_confirm', '确定'),
41
+ cancelText: srmI18n('i18n_title_cancle', '取消'),
42
+ })
43
+ }
44
+ const handlePublish = async (row: GlobalPageLayoutTypes.CurrentRow) => {
45
+ Modal.confirm({
46
+ title: srmI18n(`i18n_title_tip`, '提示'),
47
+ content: srmI18n('i18n_title_isConfirmPublishing', '是否确认发布?'),
48
+ onOk() {
49
+ qHttp.post({ url: `/news/elsTenantPortalNews/publish/${row.id}` }).then((res) => {
50
+ if (res && res.success) {
51
+ message.success(res.message)
52
+ listLayoutRef.value.fetchListData()
53
+ } else {
54
+ message.error(res.message)
55
+ }
56
+ })
57
+ },
58
+ okText: srmI18n('i18n_title_confirm', '确定'),
59
+ cancelText: srmI18n('i18n_title_cancle', '取消'),
60
+ })
61
+ }
62
+ const pageData = reactive({
63
+ statusConfig: {
64
+ show: false,
65
+ },
66
+ optionConfig: {
67
+ options: [
68
+ {
69
+ type: 'view',
70
+ title: srmI18n('i18n_title_view', '查看'),
71
+ click: ({ row }) => {
72
+ emit('detail', row)
73
+ },
74
+ },
75
+ {
76
+ type: 'edit',
77
+ title: srmI18n('i18n_title_edit', '编辑'),
78
+ click: ({ row }) => {
79
+ emit('edit', row)
80
+ },
81
+ disabled: ({ row }) => row.status == '1',
82
+ },
83
+ {
84
+ type: 'delete',
85
+ title: srmI18n('i18n_title_delete', '删除'),
86
+ click: ({ row = {} as GlobalPageLayoutTypes.CurrentRow }) => {
87
+ handleDelete(row)
88
+ },
89
+ },
90
+ {
91
+ type: 'publish',
92
+ title: srmI18n('i18n_title_publish', '发布'),
93
+ disabled: ({ row }) => row.status == '1',
94
+ click: ({ row = {} as GlobalPageLayoutTypes.CurrentRow }) => {
95
+ handlePublish(row)
96
+ },
97
+ },
98
+ ],
99
+ },
100
+ buttonConfig: {
101
+ buttons: [
102
+ {
103
+ label: srmI18n('i18n_title_add', '新增'),
104
+ icon: {
105
+ type: 'icon-Q-add',
106
+ },
107
+ attrs: {
108
+ type: 'primary',
109
+ },
110
+ type: 'add',
111
+ click: () => {
112
+ emit('create')
113
+ },
114
+ },
115
+ {
116
+ label: srmI18n('i18n_title_listCustom', '列自定义'),
117
+ icon: {
118
+ type: 'icon-Q-setting',
119
+ },
120
+ type: 'setting',
121
+ },
122
+ {
123
+ label: srmI18n('i18n_title_helpText', '帮助说明'),
124
+ icon: {
125
+ type: 'icon-Q-help-text',
126
+ },
127
+ type: 'help-text',
128
+ },
129
+ {
130
+ label: srmI18n('i18n_title_attachment', '说明附件'),
131
+ icon: {
132
+ type: 'icon-Q-attachment-text',
133
+ },
134
+ type: 'attachment-text',
135
+ },
136
+ ],
137
+ },
138
+ queryConfig: {
139
+ form: [
140
+ {
141
+ type: 'input',
142
+ label: srmI18n('i18n_title_keyword', '关键字'),
143
+ fieldName: 'keyWord',
144
+ placeholder: srmI18n('i18n_field_VWNVQBDVQIy_c92d9e92', '请输入新闻标题、新闻简介'),
145
+ },
146
+ ],
147
+ },
148
+ pagerConfig: {},
149
+ })
150
+ </script>
151
+ <style scoped></style>