@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,268 +0,0 @@
1
- <template>
2
- <div class="page-list">
3
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
- <QcustomConfigEdit :busAccount="userInfo?.userInfo?.elsAccount" :currentEditRow="currentEditRow" @handleReturn="handleReturn" v-else />
5
- <ImportJsonCustomConfig :isShow="uploadShow" :userToken="userInfo?.token" @close="uploadClose" />
6
- </div>
7
- </template>
8
-
9
- <script lang="ts">
10
- //JS引入
11
- import { defineComponent, reactive, inject, nextTick } from 'vue'
12
-
13
- //hook
14
- import { useConfigData } from './useConfigData'
15
- import { useConigApiMethods } from '../../../utils/global.hook'
16
- import { useMethods } from './useMethods'
17
- //组件
18
- import QcustomConfigEdit from '../../QcustomConfigEdit/src/QcustomConfigEdit.vue'
19
- import { message } from '@qqt-product/ui'
20
- import ImportJsonCustomConfig from '../../QcustomConfigList/component/ImportJsonCustomConfig.vue'
21
- //ts
22
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
23
-
24
- export default defineComponent({
25
- name: 'QcustomConfigList',
26
- components: {
27
- QcustomConfigEdit,
28
- ImportJsonCustomConfig,
29
- },
30
- props: {
31
- userInfo: {
32
- type: Object,
33
- defalut: () => {
34
- return {}
35
- },
36
- },
37
- },
38
-
39
- setup() {
40
- //inject
41
-
42
- //常量
43
-
44
- /*
45
- data
46
- */
47
-
48
- const { apiUrls, currentEditRow, showEditPage, listLayoutRef, uploadShow } = useConfigData()
49
- const qHttp = inject(INJECT_HTTP) as HttpClient
50
- const { handleExport, handleCopy, handleCancel, handleDelete, handleUpgrade } = useConigApiMethods(qHttp)
51
- const { allowCancel, allowDelete, allowEdit, allowUpgrade } = useMethods()
52
- const pageData = reactive({
53
- statusConfig: {
54
- show: false,
55
- },
56
- optColumn: {
57
- attrs: {},
58
- extend: {},
59
- optColumnList: [
60
- { authorityCode: 'template#templateHead:edit', type: 'edit', title: '编辑', click: handleEdit, allow: allowEdit },
61
- { authorityCode: 'template#templateHead:copyById', type: 'copyById', title: '复制', click: handleCusotmCopy },
62
- { authorityCode: 'template#templateHead:cancel', type: 'cancel', title: '作废', click: handleCustomCancel, allow: allowCancel },
63
- { authorityCode: 'template#templateHead:delete', type: 'delete', title: `删除`, click: handleCustomDetel, allow: allowDelete },
64
- { authorityCode: 'template#templateHead:upload', type: 'upload', title: '文件上传', click: uploadFile, allow: allowUpgrade },
65
- { authorityCode: 'template#templateHead:upgradeVersion', type: 'upgradeVersion', title: '版本升级', click: handleCustomUpgrade, allow: allowUpgrade },
66
- ],
67
- },
68
- buttonConfig: {
69
- attrs: {},
70
- extend: {},
71
- buttons: [
72
- {
73
- authorityCode: 'template#templateHead:add',
74
- label: '新增',
75
- icon: {
76
- type: 'icon-Q-add',
77
- },
78
- click: handleAdd,
79
- attrs: {
80
- type: 'primary',
81
- },
82
- },
83
- { authorityCode: 'template#templateHead:batchGenerateConfig', label: '批量生成配置', icon: 'download', click: batchGeneratorConfig },
84
- // { label: '列自定义', icon: 'setting', clickFn: this.settingColumns },
85
- { authorityCode: 'template#templateHead:exportJson', label: '导出', icon: 'download', folded: true, click: handleExportJson },
86
- { authorityCode: 'template#templateHead:importJson', label: '导入', icon: 'import', folded: true, click: handleImportJson },
87
- // { label: '帮助说明', icon: 'file-text', folded: true, isDocument: true, clickFn: this.showHelpText },
88
- // { label: '说明附件', icon: 'file-pdf', folded: true, isDocument: true, clickFn: this.showHelpPDF },
89
- ],
90
- },
91
- queryConfig: {
92
- attrs: {},
93
- extend: {},
94
- form: [
95
- {
96
- type: 'select',
97
- label: '模板名称',
98
- dictCode: 'srmBusinessType',
99
- fieldName: 'businessType',
100
- placeholder: '请选择业务类型',
101
- },
102
- {
103
- type: 'input',
104
- label: '模板名称',
105
- fieldName: 'templateName',
106
- },
107
- ],
108
- formState: {},
109
- },
110
- pagerConfig: {},
111
- })
112
- //computed
113
-
114
- /*
115
- method
116
- */
117
- function handleAdd() {
118
- currentEditRow.value = {}
119
- showEditPage.value = true
120
- }
121
- function handleReturn() {
122
- showEditPage.value = false
123
- }
124
- function batchGeneratorConfig() {
125
- listLayoutRef.value.loading = true
126
- let records = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
127
- let temIds = records.map((n: MapObjectNoneType) => {
128
- return n.id
129
- })
130
- if (temIds.length == 0) {
131
- message.warning('请至少选择一个模版进行配置生成!')
132
- return false
133
- }
134
- qHttp
135
- .post({
136
- url: apiUrls.value.batchGeneratorConfig,
137
- data: temIds,
138
- })
139
- .then((res: MapObjectNoneType) => {
140
- if (res.success) {
141
- message.success(res.message)
142
- // this.$emit('ok')
143
- } else {
144
- message.warning(res.message)
145
- }
146
- })
147
- .finally(() => {
148
- listLayoutRef.value.loading = false
149
- listLayoutRef.value.gridInstance.clearCheckboxRow()
150
- listLayoutRef.value.fetchListData()
151
- })
152
-
153
- // console.log('records', listLayoutRef.value.loa)
154
- // listLayoutRef.value.loading.value = true
155
- }
156
-
157
- function handleExportJson() {
158
- handleExport({
159
- actionType: 'get',
160
- fileName: '业务模板配置',
161
- type: 'json',
162
- exportXlsUrl: apiUrls.value.exportJson,
163
- setPostParms: () => {
164
- const records = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
165
- // 构造查询参数
166
- let params = !records.length ? Object.assign({}, listLayoutRef.value.pageData.form) : { selections: records.map((n: MapObjectNoneType) => n.id).join(',') }
167
- // let isOrder = listLayoutRef.value.pageData.isOrder || listLayoutRef.value.pageData.isOrder
168
- // this.$set(params, 'column', isOrder.column)
169
- // this.$set(params, 'order', isOrder.order)
170
- // params.column = isOrder.column
171
- // params.order = isOrder.order
172
- return params
173
- },
174
- berforCallback() {
175
- listLayoutRef.value.loading = true
176
- },
177
- afterCallback() {
178
- listLayoutRef.value.loading = false
179
- },
180
- })
181
- }
182
- function handleImportJson() {
183
- uploadShow.value = true
184
- }
185
- function uploadClose() {
186
- uploadShow.value = false
187
- listLayoutRef.value.fetchListData()
188
- }
189
-
190
- function handleEdit({ row }: MapObjectNoneType) {
191
- currentEditRow.value = row
192
- nextTick(() => {
193
- showEditPage.value = true
194
- })
195
- }
196
-
197
- function handleCusotmCopy({ row }: MapObjectNoneType) {
198
- handleCopy({
199
- url: apiUrls.value.copyData,
200
- row,
201
- type: 'get',
202
- tip: '确认复制模板',
203
- afterCallback() {
204
- listLayoutRef.value.fetchListData()
205
- },
206
- })
207
- }
208
-
209
- function handleCustomCancel({ row = {} as MapObjectNoneType }) {
210
- handleCancel({
211
- url: apiUrls.value.cancel,
212
- row,
213
- type: 'get',
214
- tip: '确认作废模板',
215
- afterCallback() {
216
- listLayoutRef.value.fetchListData()
217
- },
218
- })
219
- }
220
-
221
- function handleCustomDetel({ row = {} as MapObjectNoneType }) {
222
- handleDelete({
223
- url: apiUrls.value.delete,
224
- row,
225
- type: 'get',
226
- tip: '是否删除选中数据',
227
- afterCallback() {
228
- listLayoutRef.value.fetchListData()
229
- },
230
- })
231
- }
232
- function handleCustomUpgrade({ row = {} as MapObjectNoneType }) {
233
- handleUpgrade({
234
- url: apiUrls.value.upgrade,
235
- row,
236
- type: 'get',
237
- tip: '是否需要版本升级',
238
- afterCallback() {
239
- listLayoutRef.value.fetchListData()
240
- },
241
- })
242
- }
243
-
244
- function uploadFile({ row = {} as MapObjectNoneType }) {
245
- currentEditRow.value = row
246
- }
247
-
248
- return {
249
- pageData,
250
- apiUrls,
251
- showEditPage,
252
- currentEditRow,
253
- handleReturn,
254
- batchGeneratorConfig,
255
- listLayoutRef,
256
- handleExportJson,
257
- uploadShow,
258
- handleImportJson,
259
- uploadClose,
260
- handleCustomCancel,
261
- }
262
- },
263
- })
264
- </script>
265
-
266
- <style lang="less" scoped>
267
- @import url(../style/index.less);
268
- </style>
@@ -1 +0,0 @@
1
- export {}
@@ -1,23 +0,0 @@
1
- import { shallowRef, reactive, 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: '/template/templateHead/list',
10
- columnsCode: 'TemplateHead',
11
- delete: '/template/templateHead/delete',
12
- upgrade: '/template/templateHead/upgradeVersion',
13
- copyData: '/template/templateHead/copyById',
14
- cancel: '/template/templateHead/cancel',
15
- batchGeneratorConfig: '/template/templateHead/batchGenerateConfig',
16
- exportJson: '/template/templateHead/exportJson',
17
- })
18
- const uploadShow = shallowRef<boolean>(false)
19
- const showEditPage = shallowRef<boolean>(false)
20
- const currentEditRow = ref({})
21
- const listLayoutRef = ref()
22
- return { apiUrls, showEditPage, currentEditRow, listLayoutRef, uploadShow }
23
- }
@@ -1,36 +0,0 @@
1
- import { MapObjectNoneType } from '../../../utils/global.types'
2
-
3
- export function useMethods() {
4
- function allowEdit({ row = {} as MapObjectNoneType }) {
5
- if (row.templateStatus == '1' || row.templateStatus == '0') {
6
- return false
7
- }
8
- return true
9
- }
10
- function allowCancel({ row = {} as MapObjectNoneType }) {
11
- if (row.templateStatus == '1' || row.templateStatus == '0') {
12
- return false
13
- }
14
- return true
15
- }
16
-
17
- function allowDelete({ row = {} as MapObjectNoneType }) {
18
- if (row.templateStatus == '0') {
19
- return false
20
- }
21
- return true
22
- }
23
- function allowUpgrade({ row = {} as MapObjectNoneType }) {
24
- if (row.templateStatus == '1') {
25
- return false
26
- }
27
- return true
28
- }
29
-
30
- return {
31
- allowEdit,
32
- allowCancel,
33
- allowDelete,
34
- allowUpgrade,
35
- }
36
- }
@@ -1,3 +0,0 @@
1
- .page-list {
2
- // height: 100%;
3
- }
@@ -1,6 +0,0 @@
1
- import QsysConfigList from './src/QsysConfigList.vue'
2
- import qqtUtils from '@qqt-product/utils'
3
-
4
- export default qqtUtils.withInstall(QsysConfigList)
5
-
6
- export { QsysConfigList }
@@ -1,125 +0,0 @@
1
- <template>
2
- <div class="page-list">
3
- <q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- //JS引入
9
- import { defineComponent, reactive, inject } from 'vue'
10
-
11
- //hook
12
- import { useConfigData } from './useConfigData'
13
- import { useConigApiMethods } from '../../../utils/global.hook'
14
- import { useMethods } from './useMethods'
15
- //组件
16
-
17
- //ts
18
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
19
-
20
- export default defineComponent({
21
- name: 'QsysConfigList',
22
-
23
- props: {
24
- userInfo: {
25
- type: Object,
26
- defalut: () => {
27
- return {}
28
- },
29
- },
30
- },
31
-
32
- setup() {
33
- //inject
34
-
35
- //常量
36
-
37
- /*
38
- data
39
- */
40
-
41
- const { apiUrls, currentEditRow, listLayoutRef } = useConfigData()
42
- const qHttp = inject(INJECT_HTTP) as HttpClient
43
- const { handlUniversal } = useConigApiMethods(qHttp)
44
- const { allowEnable } = useMethods()
45
- const pageData = reactive({
46
- statusConfig: {
47
- show: false,
48
- },
49
- optColumn: {
50
- attrs: {},
51
- extend: {},
52
- optColumnList: [{ authorityCode: 'template#templateHead:addBy100000', type: 'edit', title: '添加至企业级', click: handleCustomAdd, allow: allowEnable }],
53
- },
54
- buttonConfig: {
55
- attrs: {},
56
- extend: {},
57
- buttons: [
58
- // { authorityCode: 'template#templateHead:batchGenerateConfig', label: '批量生成配置', icon: 'download', click: batchGeneratorConfig },
59
- // { label: '列自定义', icon: 'setting', clickFn: this.settingColumns },
60
- // { authorityCode: 'template#templateHead:exportJson', label: '导出', icon: 'download', folded: true, click: handleExportJson },
61
- // { authorityCode: 'template#templateHead:importJson', label: '导入', icon: 'import', folded: true, click: handleImportJson },
62
- // { label: '帮助说明', icon: 'file-text', folded: true, isDocument: true, clickFn: this.showHelpText },
63
- // { label: '说明附件', icon: 'file-pdf', folded: true, isDocument: true, clickFn: this.showHelpPDF },
64
- ],
65
- },
66
- queryConfig: {
67
- attrs: {},
68
- extend: {},
69
-
70
- form: [
71
- {
72
- type: 'select',
73
- label: '业务类型',
74
- dictCode: 'srmBusinessType',
75
- fieldName: 'businessType',
76
- placeholder: '请选择业务类型',
77
- },
78
- {
79
- type: 'input',
80
- label: '模板名称',
81
- fieldName: 'templateName',
82
- placeholder: '请输入模板名称',
83
- },
84
- {
85
- type: 'input',
86
- label: '模板编号',
87
- fieldName: 'templateNumber',
88
- placeholder: '请输入表格编码',
89
- },
90
- ],
91
- formState: {},
92
- },
93
- pagerConfig: {},
94
- })
95
- //computed
96
-
97
- /*
98
- method
99
- */
100
-
101
- function handleCustomAdd({ row = {} as MapObjectNoneType }) {
102
- handlUniversal({
103
- url: apiUrls.value.copyData,
104
- row,
105
- type: 'get',
106
- tip: '是否需要添加到企业级',
107
- afterCallback() {
108
- listLayoutRef.value.fetchListData()
109
- },
110
- })
111
- }
112
-
113
- return {
114
- pageData,
115
- apiUrls,
116
- currentEditRow,
117
- listLayoutRef,
118
- }
119
- },
120
- })
121
- </script>
122
-
123
- <style lang="less" scoped>
124
- @import url(../style/index.less);
125
- </style>
@@ -1 +0,0 @@
1
- export {}
@@ -1,17 +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: '/template/templateHead/sysList',
10
- copyData: '/template/templateHead/addBy100000',
11
- columnsCode: 'TemplateHead',
12
- })
13
- const uploadShow = shallowRef<boolean>(false)
14
- const currentEditRow = ref({})
15
- const listLayoutRef = ref()
16
- return { apiUrls, currentEditRow, listLayoutRef, uploadShow }
17
- }
@@ -1,11 +0,0 @@
1
- import { MapObjectNoneType } from '../../../utils/global.types'
2
-
3
- export function useMethods() {
4
- function allowEnable({ row = {} as MapObjectNoneType }) {
5
- return row.templateStatus == '2'
6
- }
7
-
8
- return {
9
- allowEnable,
10
- }
11
- }
@@ -1,3 +0,0 @@
1
- .page-list {
2
- // height: 100%;
3
- }
@@ -1,78 +0,0 @@
1
- import * as QcustomConfigEdit from './QcustomConfigEdit/src/QcustomConfigEdit.vue'
2
- import * as QcustomConfigList from './QcustomConfigList/src/QcustomConfigList.vue'
3
- import * as QsysConfigList from './QsysConfigList/src/QsysConfigList.vue'
4
- import * as QLoginLogList from './loginLogList/src/index.vue'
5
- import * as QOperateLogList from './operateLogList/src/index.vue'
6
- import * as QLoginSupplierLogList from './loginSupplierLogList/src/index.vue'
7
- import * as QLoginAbnormalLogList from './loginAbnormalLogList/src/index.vue'
8
- import * as QIntegratedNodesList from './integratedNodesList/src/index.vue'
9
- import * as QIntegratedNodesEdit from './integratedNodesList/src/QIntegratedNodesEdit.vue'
10
- import * as QIntegratedNodesDetail from './integratedNodesList/src/QIntegratedNodesDetail.vue'
11
- import * as QIntegratedReportList from './integratedReportList/src/index.vue'
12
- import * as QIntegratedReportSearchList from './integratedReportSearchList/src/index.vue'
13
- import * as QPasswordSecurityPolicy from './QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue'
14
- import * as QI18nList from './QI18nList/src/QI18nList.vue'
15
- import * as QSupplierAccountList from './QSupplierAccountList/src/QSupplierAccountList.vue'
16
- import * as QCompanyermissionList from './QCompanyermissionList/src/editTree.vue'
17
- import * as QAccountList from './QAccountList/src/QAccountList.vue'
18
- import * as QAccountEdit from './QAccountList/src/QAccountEdit.vue'
19
- import * as QAccountDetail from './QAccountList/src/QAccountDetail.vue'
20
- import * as QRoleList from './QRoleList/src/QRoleList.vue'
21
- import * as QPermissionDataList from './QPermissionDataList/src/QPermissionDataList.vue'
22
- import * as QPermissionDataEdit from './QPermissionDataList/src/QPermissionDataEdit.vue'
23
- import * as QPermissionDataAuth from './QPermissionDataList/src/QPermissionDataAuth.vue'
24
- import * as QPurchaseNoticeTemplateList from './QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue'
25
- import * as QElsTenantPortalNewsList from './QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue'
26
- import * as QElsTenantPortalNewsEdit from './QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue'
27
- import * as QElsTenantPortalNewsDetail from './QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue'
28
- import * as QPurchaseNoticeList from './QPurchaseNoticeList/src/QPurchaseNoticeList.vue'
29
- import * as QPurchaseNoticeEdit from './QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue'
30
- import * as QPurchaseNoticeDetail from './QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue'
31
- import * as QElsMsgRecordList from './QElsMsgRecordList/src/QElsMsgRecordList.vue'
32
- import * as QElsMsgRecordDetail from './QElsMsgRecordList/src/QElsMsgRecordDetail.vue'
33
- import * as QImChatGroupList from './QImChatGroupList/src/QImChatGroupList.vue'
34
- import * as QElsEmailSendLogList from './QElsEmailSendLogList/src/QElsEmailSendLogList.vue'
35
- import * as QQuartzJobList from './QQuartzJobList/src/QQuartzJobList.vue'
36
- import * as QBackgroundFileTaskList from './QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue'
37
- import * as QMqRecordList from './QMqRecordList/src/QMqRecordList.vue'
38
- import * as QUsageList from './QUsageList/src/QUsageList.vue'
39
- export {
40
- QcustomConfigEdit,
41
- QcustomConfigList,
42
- QsysConfigList,
43
- QLoginLogList,
44
- QOperateLogList,
45
- QLoginSupplierLogList,
46
- QLoginAbnormalLogList,
47
- QIntegratedNodesList,
48
- QIntegratedNodesEdit,
49
- QIntegratedNodesDetail,
50
- QIntegratedReportList,
51
- QIntegratedReportSearchList,
52
- QPasswordSecurityPolicy,
53
- QI18nList,
54
- QSupplierAccountList,
55
- QCompanyermissionList,
56
- QAccountList,
57
- QAccountEdit,
58
- QAccountDetail,
59
- QRoleList,
60
- QPermissionDataList,
61
- QPermissionDataEdit,
62
- QPermissionDataAuth,
63
- QPurchaseNoticeTemplateList,
64
- QElsTenantPortalNewsList,
65
- QElsTenantPortalNewsEdit,
66
- QElsTenantPortalNewsDetail,
67
- QPurchaseNoticeList,
68
- QPurchaseNoticeEdit,
69
- QPurchaseNoticeDetail,
70
- QElsMsgRecordList,
71
- QElsMsgRecordDetail,
72
- QImChatGroupList,
73
- QElsEmailSendLogList,
74
- QQuartzJobList,
75
- QBackgroundFileTaskList,
76
- QMqRecordList,
77
- QUsageList,
78
- }
@@ -1,49 +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 } from 'vue'
8
- import type { ComponentPublicInstance } from 'vue'
9
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
10
-
11
- // 传参 props
12
- const props = defineProps<{
13
- currentRow: GlobalPageLayoutTypes.CurrentRow | null
14
- userInfo: GlobalPageLayoutTypes.UserInfo
15
- }>()
16
-
17
- const currentRow = props.currentRow
18
- ? props.currentRow
19
- : ref({
20
- templateNumber: '',
21
- templateVersion: 0,
22
- templateAccount: '',
23
- busAccount: '',
24
- elsAccount: '',
25
- })
26
-
27
- // 编辑组件 ref
28
- const layoutRef = ref<ComponentPublicInstance | null>(null)
29
-
30
- // 配置
31
- const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
32
- /**
33
- * 模块业务类型 string
34
- * 取值根据各模块配置
35
- * 当定义为"custom"时,使用本地配置
36
- */
37
- businessType: 'integrated',
38
- // 布局模式
39
- pattern: 'vertical',
40
- // 当前已选行数据a
41
- currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
42
- // 当前登录租户信息
43
- userInfo: props.userInfo,
44
- // 明细接口 -- 接口字符串
45
- detailApi: '/integrated/integratedNodes/queryById',
46
- // 本地页面数据配置
47
- localConfig: {},
48
- })
49
- </script>