@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,263 +0,0 @@
1
- <template>
2
- <div style="height: 100%">
3
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
-
5
- <!--新增/编辑-->
6
- <QuartzJobModal v-if="showEditPage" :current-edit-row="currentEditRow" ref="editPage" @close="hideEditPage" />
7
- </div>
8
- </template>
9
-
10
- <script lang="ts">
11
- //组件
12
- import { Modal, message } from '@qqt-product/ui'
13
- import QuartzJobModal from '../src/components/QuartzJobModal.vue'
14
- //JS
15
- import { defineComponent, reactive, inject, nextTick } from 'vue'
16
- //hook
17
- import { useConfigData } from './useConfigData'
18
- import { useConigApiMethods } from '../../../utils/global.hook'
19
-
20
- //ts
21
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
22
-
23
- export default defineComponent({
24
- name: 'QQuartzJobList',
25
- components: {
26
- QuartzJobModal,
27
- },
28
- props: {
29
- userInfo: {
30
- type: Object,
31
- defalut: () => {
32
- return {}
33
- },
34
- },
35
- },
36
- setup() {
37
- //data-hook
38
- const { showEditPage, apiUrls, listLayoutRef, currentEditRow, editPage } = useConfigData()
39
- const qHttp = inject(INJECT_HTTP) as HttpClient
40
- // const { userInfo } = toRefs(props)
41
- // console.log('userInfos', userInfo)
42
- //data
43
- const { handleExport } = useConigApiMethods(qHttp)
44
- const pageData = reactive({
45
- statusConfig: {
46
- show: false,
47
- },
48
- optColumn: {
49
- attrs: {},
50
- extend: {},
51
- optColumnList: [
52
- { authorityCode: 'quartzJob#QuartzJob:pause', type: 'pause', title: '停止', click: pauseJob, disabled: showStopCondition },
53
- { authorityCode: 'quartzJob#QuartzJob:resume', type: 'start', title: '启动', click: resumeJob, disabled: showStartCondition },
54
- { authorityCode: 'quartzJob#QuartzJob:manualExecute', start2: '', title: '手动执行', click: manualExecute },
55
- // {authorityCode: 'quartzJob#QuartzJob:log', type: 'log', title: srmI18n(`${getLangAccount()}#i18n_btn_BR_cb692`, '日志'), clickFn: this.queryLog},
56
- { authorityCode: 'quartzJob#QuartzJob:edit', type: 'edit', title: '编辑', click: edit },
57
- {
58
- authorityCode: 'quartzJob#QuartzJob:delete',
59
- args: {
60
- url: apiUrls.value.delete,
61
- },
62
- type: 'delete',
63
- title: '删除',
64
- disabled: showDelCondition,
65
- },
66
- ],
67
- },
68
- buttonConfig: {
69
- attrs: {},
70
- extend: {},
71
- buttons: [
72
- {
73
- authorityCode: 'quartzJob#QuartzJob:add',
74
- label: '新增',
75
- icon: {
76
- type: 'icon-Q-add',
77
- },
78
- attrs: {
79
- type: 'primary',
80
- },
81
- click: add,
82
- args: {
83
- type: 'primary',
84
- },
85
- },
86
- {
87
- authorityCode: 'quartzJob#QuartzJob:export',
88
- label: '导出',
89
-
90
- click: handleCustomExportXls,
91
- },
92
- // {label: srmI18n(`${getLangAccount()}#i18n_title_listCustom`, '列自定义'), icon: 'setting', clickFn: this.settingColumns},
93
- // {label: srmI18n(`${getLangAccount()}#i18n_title_helpText`, '帮助说明'), icon: 'file-text', folded: true, isDocument: true, clickFn: this.showHelpText},
94
- // {label: srmI18n(`${getLangAccount()}#i18n_title_attachment`, '说明附件'), icon: 'file-pdf', folded: true, isDocument: true, clickFn: this.showHelpPDF}
95
- ],
96
- },
97
- queryConfig: {
98
- attrs: {},
99
- extend: {},
100
- form: [
101
- {
102
- type: 'input',
103
- label: '任务编码',
104
- fieldName: 'keyWord',
105
- placeholder: '请输入任务编码',
106
- },
107
- {
108
- type: 'select',
109
- label: '任务状态',
110
- fieldName: 'status',
111
- dictCode: 'quartz_job_status',
112
- placeholder: '请选择状态',
113
- },
114
- ],
115
- formState: {},
116
- },
117
- pagerConfig: {},
118
- })
119
-
120
- //methods
121
-
122
- function handleCustomExportXls() {
123
- handleExport({
124
- actionType: 'post',
125
- type: 'xls',
126
- exportXlsUrl: '/job/quartzJob/exportXls',
127
- fileName: '定时任务',
128
- setPostParms() {
129
- return {
130
- jobClassName: '',
131
- status: '',
132
- pageSize: 20,
133
- pageNo: 1,
134
- filter: {},
135
- column: 'id',
136
- order: 'desc',
137
- defineColumnCode: 'ElsQuartzJob',
138
- }
139
- },
140
- berforCallback() {
141
- listLayoutRef.value.loading = true
142
- },
143
- afterCallback() {
144
- listLayoutRef.value.loading = false
145
- },
146
- })
147
- }
148
- function showStopCondition({ row = {} as MapObjectNoneType }) {
149
- return row.status === -1
150
- }
151
-
152
- function pauseJob({ row = {} as MapObjectNoneType }) {
153
- Modal.confirm({
154
- title: '确认暂停',
155
- content: '是否暂停选中任务?',
156
- onOk() {
157
- listLayoutRef.value.loading = true
158
- qHttp
159
- .get({
160
- url: apiUrls.value.pause,
161
- params: { jobNameKey: row.jobNameKey },
162
- })
163
- .then((res) => {
164
- if (res.success) {
165
- message.success(res.message)
166
- listLayoutRef.value.fetchListData()
167
- } else {
168
- message.warning(res.message)
169
- }
170
- })
171
- .finally(() => {
172
- listLayoutRef.value.loading = false
173
- })
174
- },
175
- })
176
- }
177
-
178
- function showStartCondition({ row = {} as MapObjectNoneType }) {
179
- return row.status === 0
180
- }
181
-
182
- function resumeJob({ row = {} as MapObjectNoneType }) {
183
- Modal.confirm({
184
- title: '确认启动',
185
- content: '是否启动选中任务?',
186
- onOk() {
187
- listLayoutRef.value.loading = true
188
- qHttp
189
- .get({
190
- url: apiUrls.value.resume,
191
- params: { jobNameKey: row.jobNameKey },
192
- })
193
- .then((res) => {
194
- if (res.success) {
195
- message.success(res.message)
196
- listLayoutRef.value.fetchListData()
197
- } else {
198
- message.warning(res.message)
199
- }
200
- })
201
- .finally(() => {
202
- listLayoutRef.value.loading = false
203
- })
204
- },
205
- })
206
- }
207
-
208
- function manualExecute({ row = {} as MapObjectNoneType }) {
209
- Modal.confirm({
210
- title: '确认执行',
211
- content: '是否手动执行选中任务?',
212
- onOk() {
213
- listLayoutRef.value.loading = true
214
- qHttp
215
- .get({
216
- url: apiUrls.value.manualExecute,
217
- params: { id: row.id },
218
- })
219
- .then((res) => {
220
- if (res.success) {
221
- message.success(res.message)
222
- listLayoutRef.value.fetchListData()
223
- } else {
224
- message.warning(res.message)
225
- }
226
- })
227
- .finally(() => {
228
- listLayoutRef.value.loading = false
229
- })
230
- },
231
- })
232
- }
233
-
234
- function showDelCondition({ row = {} as MapObjectNoneType }) {
235
- return row.status === 0
236
- }
237
-
238
- function add() {
239
- currentEditRow.value = {}
240
- showEditPage.value = true
241
- nextTick(() => {
242
- editPage.value.add()
243
- })
244
- }
245
-
246
- function edit({ row = {} as MapObjectNoneType }) {
247
- currentEditRow.value = { ...row }
248
- showEditPage.value = true
249
- nextTick(() => {
250
- editPage.value.edit(row)
251
- })
252
- }
253
-
254
- function hideEditPage() {
255
- showEditPage.value = false
256
- currentEditRow.value = {}
257
- }
258
-
259
- return { editPage, hideEditPage, currentEditRow, listLayoutRef, showEditPage, apiUrls, pageData }
260
- },
261
- })
262
- </script>
263
- <style scoped></style>
@@ -1,82 +0,0 @@
1
- <template>
2
- <div class="components-input-demo-presuffix">
3
- <a-input @click="openModal" placeholder="corn表达式" v-model:value="cron" @change="handleOK">
4
- <template #prefix> <schedule-outlined title="corn控件" /> </template>
5
-
6
- <template #suffix>
7
- <close-circle-outlined @click="handleEmpty" title="清空" />
8
- </template>
9
- </a-input>
10
- <JCronModal ref="innerVueCron" :data="cron" @ok="handleOK" />
11
- </div>
12
- </template>
13
- <script lang="ts">
14
- //vue
15
- import { defineComponent, ref } from 'vue'
16
- //组件
17
- import { CloseCircleOutlined, ScheduleOutlined } from '@ant-design/icons-vue'
18
- import JCronModal from '../components/JCronModal.vue'
19
- export default defineComponent({
20
- name: 'JCron',
21
- emits: ['change'],
22
- components: {
23
- JCronModal,
24
- CloseCircleOutlined,
25
- ScheduleOutlined,
26
- },
27
- setup() {
28
- const innerVueCron = ref()
29
-
30
- return {
31
- innerVueCron,
32
- }
33
- },
34
- props: {
35
- value: {
36
- required: false,
37
- type: String,
38
- },
39
- },
40
- data() {
41
- return {
42
- cron: this.value,
43
- }
44
- },
45
- watch: {
46
- value(val) {
47
- this.cron = val
48
- },
49
- },
50
- methods: {
51
- openModal() {
52
- this.innerVueCron.show()
53
- },
54
- handleOK(val) {
55
- this.cron = val
56
- this.$emit('change', this.cron)
57
- //this.$emit("change", Object.assign({}, this.cron));
58
- },
59
- handleEmpty() {
60
- this.handleOK('')
61
- },
62
- },
63
- model: {
64
- prop: 'value',
65
- event: 'change',
66
- },
67
- })
68
- </script>
69
- <style scoped>
70
- .components-input-demo-presuffix .anticon-close-circle {
71
- cursor: pointer;
72
- color: #ccc;
73
- transition: color 0.3s;
74
- font-size: 12px;
75
- }
76
- .components-input-demo-presuffix .anticon-close-circle:hover {
77
- color: #f5222d;
78
- }
79
- .components-input-demo-presuffix .anticon-close-circle:active {
80
- color: #666;
81
- }
82
- </style>