@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,136 +1,130 @@
1
- <template>
2
- <q-list-layout ref="listLayoutRef" :apiUrls="apiUrls" :pageData="pageData" @add-button-click="handleCreate" />
3
- </template>
4
- <script setup lang="ts">
5
- import { reactive, inject, ref } from 'vue'
6
- import qqtApi from '@qqt-product/api'
7
- import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
8
- import { VXETable } from 'vxe-table'
9
- const emit = defineEmits(['create', 'edit', 'detail'])
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
- const listLayoutRef = ref()
20
- const qHttp: qqtApi.Request = qqtApi.useHttp()
21
- const apiUrls = reactive({
22
- columnsCode: 'integratedNodesList',
23
- list: '/integrated/integratedNodes/list',
24
- countTabsUrl: '',
25
- })
26
- const pageData = reactive({
27
- statusConfig: {
28
- show: false,
29
- },
30
- optColumn: {
31
- attrs: {},
32
- extend: {},
33
- optColumnList: [
34
- {
35
- authorityCode: 'system#systemSet:view',
36
- type: 'view',
37
- title: srmI18n('i18n_title_see', '查看'),
38
- click: ({ row }) => {
39
- emit('detail', row)
40
- },
41
- },
42
- {
43
- type: 'edit',
44
- title: srmI18n('i18n_title_edit', '编辑'),
45
- authorityCode: 'system#systemSet:edit',
46
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
- click: ({ row }: any) => {
48
- emit('edit', row)
49
- },
50
- },
51
- {
52
- type: 'delete',
53
- title: srmI18n('i18n_title_delete', '删除'),
54
- authorityCode: 'system#systemSet:delete',
55
- args: {
56
- url: '/integrated/integratedNodes/delete',
57
- },
58
- },
59
- {
60
- type: 'record',
61
- title: srmI18n('i18n_title_colunmRecord', '记录'),
62
- },
63
- ],
64
- },
65
- buttonConfig: {
66
- attrs: {},
67
- extend: {},
68
- buttons: [
69
- {
70
- authorityCode: 'integrated#integratedReportData:add',
71
- label: srmI18n('i18n_title_add', '新增'),
72
- icon: {
73
- type: 'icon-Q-add',
74
- },
75
- args: {
76
- businessType: 'integrated',
77
- },
78
- type: 'add',
79
- },
80
- {
81
- authorityCode: 'integrated#integratedReportData:generateColumnConfig',
82
- label: srmI18n('i18n_btn_bLAJII_690bb833', '生成列自定义'),
83
- click: () => {
84
- qHttp.get({ url: '/integrated/integratedNodes/generateColumnConfig' }).then((res) => {
85
- if (res && res.success) {
86
- VXETable.modal.message({ content: res.message, status: 'success' })
87
- listLayoutRef.value.fetchListData()
88
- } else {
89
- VXETable.modal.message({ content: res.message, status: 'error' })
90
- }
91
- })
92
- },
93
- },
94
- {
95
- label: srmI18n('i18n_title_clearCache', '清除缓存'),
96
- click: () => {
97
- qHttp.get({ url: '/integrated/integratedReportData/refreshNodes' }).then((res) => {
98
- if (res && res.success) {
99
- VXETable.modal.message({ content: res.message, status: 'success' })
100
- listLayoutRef.value.fetchListData()
101
- } else {
102
- VXETable.modal.message({ content: res.message, status: 'error' })
103
- }
104
- })
105
- },
106
- },
107
- {
108
- label: srmI18n('i18n_title_listCustom', '列自定义'),
109
- icon: {
110
- type: 'icon-Q-setting',
111
- },
112
- type: 'setting',
113
- },
114
- ],
115
- },
116
- queryConfig: {
117
- attrs: {},
118
- extend: {},
119
- form: [
120
- {
121
- type: 'input',
122
- label: srmI18n('i18n_title_keyword', '关键字'),
123
- fieldName: 'keyWord',
124
- placeholder: srmI18n('i18n_title_pleaseInputThekeyword', '请输入关键字'),
125
- },
126
- ],
127
- formState: {
128
- keyWord: '',
129
- },
130
- },
131
- pagerConfig: {},
132
- })
133
- const handleCreate = ({ row }: { row: GlobalPageLayoutTypes.CurrentRow }) => {
134
- emit('create', row)
135
- }
136
- </script>
1
+ <template>
2
+ <q-list-layout ref="listLayoutRef" :apiUrls="apiUrls" :pageData="pageData" @add-button-click="handleCreate" />
3
+ </template>
4
+ <script setup lang="ts">
5
+ import { reactive, inject, ref } from 'vue'
6
+ import qqtApi from '@qqt-product/api'
7
+ import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
8
+ import { VXETable } from 'vxe-table'
9
+ const emit = defineEmits(['create', 'edit', 'detail'])
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
+ const listLayoutRef = ref()
20
+ const qHttp: qqtApi.Request = qqtApi.useHttp()
21
+ const apiUrls = reactive({
22
+ columnsCode: 'integratedNodesList',
23
+ list: '/integrated/integratedNodes/list',
24
+ countTabsUrl: '',
25
+ })
26
+ const pageData = reactive({
27
+ statusConfig: {
28
+ show: false,
29
+ },
30
+ optionConfig: {
31
+ options: [
32
+ {
33
+ authorityCode: 'system#systemSet:view',
34
+ type: 'view',
35
+ title: srmI18n('i18n_title_see', '查看'),
36
+ click: ({ row }) => {
37
+ emit('detail', row)
38
+ },
39
+ },
40
+ {
41
+ type: 'edit',
42
+ title: srmI18n('i18n_title_edit', '编辑'),
43
+ authorityCode: 'system#systemSet:edit',
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
+ click: ({ row }: any) => {
46
+ emit('edit', row)
47
+ },
48
+ },
49
+ {
50
+ type: 'delete',
51
+ title: srmI18n('i18n_title_delete', '删除'),
52
+ authorityCode: 'system#systemSet:delete',
53
+ args: {
54
+ url: '/integrated/integratedNodes/delete',
55
+ },
56
+ },
57
+ {
58
+ type: 'record',
59
+ title: srmI18n('i18n_title_colunmRecord', '记录'),
60
+ },
61
+ ],
62
+ },
63
+ buttonConfig: {
64
+ buttons: [
65
+ {
66
+ authorityCode: 'integrated#integratedReportData:add',
67
+ label: srmI18n('i18n_title_add', '新增'),
68
+ icon: {
69
+ type: 'icon-Q-add',
70
+ },
71
+ attrs: {
72
+ type: 'primary',
73
+ },
74
+ args: {
75
+ businessType: 'integrated',
76
+ },
77
+ type: 'add',
78
+ },
79
+ {
80
+ authorityCode: 'integrated#integratedReportData:generateColumnConfig',
81
+ label: srmI18n('i18n_btn_bLAJII_690bb833', '生成列自定义'),
82
+ click: () => {
83
+ qHttp.get({ url: '/integrated/integratedNodes/generateColumnConfig' }).then((res) => {
84
+ if (res && res.success) {
85
+ VXETable.modal.message({ content: res.message, status: 'success' })
86
+ listLayoutRef.value.fetchListData()
87
+ } else {
88
+ VXETable.modal.message({ content: res.message, status: 'error' })
89
+ }
90
+ })
91
+ },
92
+ },
93
+ {
94
+ label: srmI18n('i18n_title_clearCache', '清除缓存'),
95
+ click: () => {
96
+ qHttp.get({ url: '/integrated/integratedReportData/refreshNodes' }).then((res) => {
97
+ if (res && res.success) {
98
+ VXETable.modal.message({ content: res.message, status: 'success' })
99
+ listLayoutRef.value.fetchListData()
100
+ } else {
101
+ VXETable.modal.message({ content: res.message, status: 'error' })
102
+ }
103
+ })
104
+ },
105
+ },
106
+ {
107
+ label: srmI18n('i18n_title_listCustom', '列自定义'),
108
+ icon: {
109
+ type: 'icon-Q-setting',
110
+ },
111
+ type: 'setting',
112
+ },
113
+ ],
114
+ },
115
+ queryConfig: {
116
+ form: [
117
+ {
118
+ type: 'input',
119
+ label: srmI18n('i18n_title_keyword', '关键字'),
120
+ fieldName: 'keyWord',
121
+ placeholder: srmI18n('i18n_title_pleaseInputThekeyword', '请输入关键字'),
122
+ },
123
+ ],
124
+ },
125
+ pagerConfig: {},
126
+ })
127
+ const handleCreate = ({ row }: { row: GlobalPageLayoutTypes.CurrentRow }) => {
128
+ emit('create', row)
129
+ }
130
+ </script>
@@ -1,25 +1,26 @@
1
1
  <template>
2
- <q-list-layout :apiUrls="apiUrls" :pageData="pageData" />
2
+ <q-list-layout ref="listLayoutRef" :apiUrls="apiUrls" :pageData="pageData" :localColumnGroup="returnColumnGroup" />
3
3
  </template>
4
4
  <script setup lang="ts">
5
- import { reactive } from 'vue'
5
+ import { GlobalListPageLayoutTypes, message } from '@qqt-product/ui'
6
+ import qqtUtils from '@qqt-product/utils'
7
+ import qqtApi from '@qqt-product/api'
8
+ import { reactive, ref } from 'vue'
9
+ const { uniqBy } = qqtUtils
6
10
  const apiUrls = reactive({
7
11
  columnsCode: 'integratedReportHeadTableList',
8
- list: '/integrated/integratedReportData/listItem',
12
+ list: '/integrated/integratedReportData/listHead',
9
13
  countTabsUrl: '',
10
14
  })
11
- const pageData = reactive({
15
+ const pageData = reactive<GlobalListPageLayoutTypes.PageData>({
16
+ isAggregate: '1', // 开启聚合布局
12
17
  statusConfig: {
13
18
  show: false,
14
19
  },
15
- optColumn: {
16
- attrs: {},
17
- extend: {},
18
- optColumnList: [],
20
+ optionConfig: {
21
+ options: [],
19
22
  },
20
23
  buttonConfig: {
21
- attrs: {},
22
- extend: {},
23
24
  buttons: [
24
25
  {
25
26
  authorityCode: 'integrated#integratedReportData:list',
@@ -27,7 +28,7 @@ const pageData = reactive({
27
28
  icon: 'setting',
28
29
  type: 'head',
29
30
  click: () => {
30
- console.log('click')
31
+ updateMode('head')
31
32
  },
32
33
  },
33
34
  {
@@ -36,16 +37,14 @@ const pageData = reactive({
36
37
  icon: 'setting',
37
38
  type: 'list',
38
39
  click: () => {
39
- console.log('click')
40
+ updateMode('item')
40
41
  },
41
42
  },
42
43
  {
43
44
  authorityCode: 'integrated#integratedReportData:refreshReportData',
44
45
  label: '刷新',
45
46
  icon: 'setting',
46
- click: () => {
47
- console.log('click')
48
- },
47
+ click: refreshReportData,
49
48
  },
50
49
  {
51
50
  label: '列自定义',
@@ -57,8 +56,6 @@ const pageData = reactive({
57
56
  ],
58
57
  },
59
58
  queryConfig: {
60
- attrs: {},
61
- extend: {},
62
59
  form: [
63
60
  {
64
61
  type: 'input',
@@ -66,21 +63,49 @@ const pageData = reactive({
66
63
  fieldName: 'dataJson',
67
64
  placeholder: '请输入各单据类型编码/状态/名称/...',
68
65
  },
69
- {
70
- type: 'dateRange',
71
- startProp: 'beginTime',
72
- endProp: 'endTime',
73
- label: '时间范围',
74
- placeholder: ['开始日期', '结束日期'],
75
- },
66
+ // {
67
+ // type: 'dateRange',
68
+ // startProp: 'beginTime',
69
+ // endProp: 'endTime',
70
+ // label: '时间范围',
71
+ // placeholder: ['开始日期', '结束日期'],
72
+ // },
76
73
  ],
77
- formState: {
78
- dataJson: '',
79
- businessDataType: 'head',
80
- beginTime: '',
81
- endTime: '',
82
- },
83
74
  },
84
75
  pagerConfig: {},
85
76
  })
77
+ const returnColumnGroup = (remoteColumns: GlobalListPageLayoutTypes.GridColumn[]) => {
78
+ const groupColumns = uniqBy(remoteColumns, 'columnGroup').map((rs) => {
79
+ return {
80
+ description: rs.title,
81
+ key: rs.id,
82
+ text: rs.title,
83
+ textI18nKey: '',
84
+ title: rs.columnGroup,
85
+ value: rs.columnGroup,
86
+ }
87
+ })
88
+ return groupColumns
89
+ }
90
+ const listLayoutRef = ref()
91
+ function updateMode(mode) {
92
+ if (mode === 'item') {
93
+ apiUrls.list = '/integrated/integratedReportData/listItem'
94
+ apiUrls.columnsCode = 'integratedReportItemTableList'
95
+ } else {
96
+ apiUrls.list = '/integrated/integratedReportData/listHead'
97
+ apiUrls.columnsCode = 'integratedReportHeadTableList'
98
+ }
99
+ listLayoutRef.value.fetchListData({ extraParams: { businessDataType: mode } })
100
+ }
101
+ const qHttp: qqtApi.Request = qqtApi.useHttp()
102
+ function refreshReportData() {
103
+ qHttp.get({ url: '/integrated/integratedReportData/refreshReportData' }).then((res) => {
104
+ if (res.success) {
105
+ listLayoutRef.value.fetchListData()
106
+ } else {
107
+ message.error(res.message)
108
+ }
109
+ })
110
+ }
86
111
  </script>
@@ -1,66 +1,106 @@
1
- <template>
2
- <q-list-layout ref="listLayoutRef" :apiUrls="apiUrls" :pageData="pageData" />
3
- </template>
4
- <script setup lang="ts">
5
- import { ref, reactive } from 'vue'
6
- const listLayoutRef = ref()
7
- const apiUrls = reactive({
8
- columnsCode: 'integratedReportHeadTableList',
9
- list: '/integrated/integratedReportData/listByModule',
10
- })
11
- const pageData = reactive({
12
- statusConfig: {
13
- show: false,
14
- },
15
- optColumn: {
16
- attrs: {},
17
- extend: {},
18
- optColumnList: [],
19
- },
20
- buttonConfig: {
21
- attrs: {},
22
- extend: {},
23
- buttons: [
24
- {
25
- authorityCode: 'integrated#integratedReportData:refreshNodes',
26
- label: '刷新模块配置',
27
- click: () => {
28
- console.log('click')
29
- },
30
- },
31
- {
32
- label: '列自定义',
33
- icon: {
34
- type: 'icon-Q-setting',
35
- },
36
- type: 'setting',
37
- },
38
- ],
39
- },
40
- queryConfig: {
41
- attrs: {},
42
- extend: {},
43
- form: [
44
- {
45
- type: 'select',
46
- dictCode: 'srmIntegrateBusinessType',
47
- label: '业务模块',
48
- fieldName: 'businessTypeCore',
49
- placeholder: '请选择业务模块',
50
- },
51
- {
52
- type: 'input',
53
- label: '关键字',
54
- fieldName: 'dataJson',
55
- placeholder: '请输入各单据类型编码/状态/名称/...',
56
- },
57
- ],
58
- formState: {
59
- dataJson: '',
60
- businessDataType: 'head',
61
- businessTypeCore: '',
62
- },
63
- },
64
- pagerConfig: {},
65
- })
66
- </script>
1
+ <template>
2
+ <q-list-layout ref="listLayoutRef" :apiUrls="apiUrls" :pageData="pageData" />
3
+ </template>
4
+ <script setup lang="ts">
5
+ import { ref, reactive, inject } from 'vue'
6
+ import qqtApi from '@qqt-product/api'
7
+ import { message } from '@qqt-product/ui'
8
+
9
+ const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
10
+ if (i18nKey) {
11
+ if (account) {
12
+ return account + defaultValue
13
+ }
14
+ return defaultValue
15
+ }
16
+ return defaultValue
17
+ })
18
+
19
+ // const refreshPage = inject('Q_APPLICATION_TAB_REFLESH') as (tabItem: { fullPath: string }, router: object) => void
20
+ // const router=inject()
21
+ const listLayoutRef = ref()
22
+ const qHttp: qqtApi.Request = qqtApi.useHttp()
23
+ const refreshNodes = () => {
24
+ qHttp.get({ url: '/integrated/integratedReportData/refreshNodes' }).then((res) => {
25
+ if (res && res.success) {
26
+ message.success(res.message)
27
+ listLayoutRef.value.fetchListData()
28
+ } else {
29
+ message.error(res.message)
30
+ }
31
+ })
32
+ }
33
+ const apiUrls = reactive({
34
+ columnsCode: 'purchaseRequest',
35
+ list: {
36
+ url: '/integrated/integratedReportData/listByModule',
37
+ method: 'post',
38
+ },
39
+ })
40
+ const pageData = reactive({
41
+ statusConfig: {
42
+ show: false,
43
+ },
44
+ optionConfig: {
45
+ options: [],
46
+ },
47
+ buttonConfig: {
48
+ buttons: [
49
+ {
50
+ authorityCode: 'integrated#integratedReportData:refreshNodes',
51
+ label: srmI18n('i18n_btn_XVCQER_15cbd170', '刷新模块配置'),
52
+ click: () => {
53
+ refreshNodes()
54
+ },
55
+ },
56
+ {
57
+ label: srmI18n('i18n_title_listCustom', '列自定义'),
58
+ icon: {
59
+ type: 'icon-Q-setting',
60
+ },
61
+ type: 'setting',
62
+ },
63
+ ],
64
+ },
65
+ queryConfig: {
66
+ customSearch: (formState) => {
67
+ console.log('customSearch', formState)
68
+ if (!formState.businessTypeCore) return message.warn('请先选择业务模块')
69
+ listLayoutRef.value.fetchListData()
70
+ },
71
+ form: [
72
+ {
73
+ type: 'select',
74
+ dictCode: 'srmIntegrateBusinessType',
75
+ label: srmI18n('i18n_title_businessModule', '业务模块'),
76
+ fieldName: 'businessTypeCore',
77
+ placeholder: srmI18n('i18n_title_selectBusinessModule', '请选择业务模块'),
78
+ change: businessTypeCoreChange,
79
+ },
80
+ {
81
+ type: 'input',
82
+ label: srmI18n('i18n_title_keyword', '关键字'),
83
+ fieldName: 'dataJson',
84
+ placeholder: srmI18n('i18n_field_VWNmtFAcAoWzEWRLWWWW_fb19c126', '请输入各单据类型编码/状态/名称/...'),
85
+ },
86
+ ],
87
+ formState: {
88
+ dataJson: '',
89
+ businessTypeCore: 'purchaseRequest',
90
+ businessDataType: 'head',
91
+ },
92
+ },
93
+ pagerConfig: {},
94
+ })
95
+
96
+ //methods
97
+
98
+ function businessTypeCoreChange(val) {
99
+ if (!val.value) return
100
+ //return message.warn('请先选择业务模块')
101
+ apiUrls.columnsCode = val.value
102
+ // listLayoutRef.value.tableData = []
103
+ listLayoutRef.value.fetchListData()
104
+ // refreshPage({ fullPath: router.currentRoute.value.fullPath }, router)
105
+ }
106
+ </script>
@@ -1,50 +1,43 @@
1
- <template><q-list-layout :apiUrls="apiUrls" :pageData="pageData"></q-list-layout></template>
2
- <script setup lang="ts">
3
- import { reactive } from 'vue'
4
- const apiUrls = reactive({
5
- columnsCode: 'ElsLog',
6
- list: '/log/list',
7
- countTabsUrl: '',
8
- })
9
- const pageData = reactive({
10
- statusConfig: {
11
- show: false,
12
- },
13
- optColumn: {
14
- attrs: {},
15
- extend: {},
16
- optColumnList: [],
17
- },
18
- buttonConfig: {
19
- attrs: {},
20
- extend: {},
21
- buttons: [
22
- {
23
- label: '列自定义',
24
- icon: {
25
- type: 'icon-Q-setting',
26
- },
27
- type: 'setting',
28
- },
29
- ],
30
- },
31
- queryConfig: {
32
- attrs: {},
33
- extend: {},
34
- form: [
35
- {
36
- type: 'input',
37
- label: '搜索日志',
38
- fieldName: 'keyWord',
39
- placeholder: '请输入搜索关键字',
40
- },
41
- ],
42
- formState: {
43
- keyWord: '',
44
- logType: 2,
45
- busModule: 'userSystemSecurity',
46
- },
47
- },
48
- pagerConfig: {},
49
- })
50
- </script>
1
+ <template><q-list-layout :apiUrls="apiUrls" :pageData="pageData"></q-list-layout></template>
2
+ <script setup lang="ts">
3
+ import { reactive } from 'vue'
4
+ const apiUrls = reactive({
5
+ columnsCode: 'ElsLog',
6
+ list: '/log/list',
7
+ })
8
+ const pageData = reactive({
9
+ statusConfig: {
10
+ show: false,
11
+ },
12
+ optionConfig: {
13
+ options: [],
14
+ },
15
+ buttonConfig: {
16
+ buttons: [
17
+ {
18
+ label: '列自定义',
19
+ icon: {
20
+ type: 'icon-Q-setting',
21
+ },
22
+ type: 'setting',
23
+ },
24
+ ],
25
+ },
26
+ queryConfig: {
27
+ form: [
28
+ {
29
+ type: 'input',
30
+ label: '搜索日志',
31
+ fieldName: 'keyWord',
32
+ placeholder: '请输入搜索关键字',
33
+ },
34
+ ],
35
+ formState: {
36
+ keyWord: '',
37
+ logType: 2,
38
+ busModule: 'userSystemSecurity',
39
+ },
40
+ },
41
+ pagerConfig: {},
42
+ })
43
+ </script>