@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.
- package/dist/index.es.js +53240 -10634
- package/dist/index.umd.js +94 -21
- package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +2878 -0
- package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +2871 -0
- package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +2878 -0
- package/dist/lib/components/QAccountList/src/QAccountList.vue.d.ts +23 -4
- package/dist/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue.d.ts +9 -4
- package/dist/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue.d.ts +9 -4
- package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +2864 -0
- package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue.d.ts +2 -3
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +2864 -0
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +2876 -0
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +29 -14
- package/dist/lib/components/QI18nList/src/QI18nList.vue.d.ts +2 -6
- package/dist/lib/components/QImChatGroupList/src/QImChatGroupList.vue.d.ts +5 -8
- package/dist/lib/components/QMqRecordList/src/QMqRecordList.vue.d.ts +9 -4
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +2872 -0
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataList.vue.d.ts +126 -0
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +2864 -0
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +2887 -0
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +25 -5
- package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +7 -0
- package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +221 -28
- package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue.d.ts +45 -0
- package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +24 -5
- package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +23 -7
- package/dist/lib/components/QRoleList/src/useConfigData.d.ts +1 -11
- package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +7 -3
- package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +15 -35
- package/dist/lib/components/QUsageList/src/useConfigData.d.ts +111 -10
- package/dist/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue.d.ts +25 -0
- package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +9 -10
- package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +1209 -0
- package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +1 -1
- package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +8 -7
- package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +2 -3
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +2863 -0
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +2872 -0
- package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +8 -11
- package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +16 -10
- package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +2 -9
- package/dist/lib/components/loginLogList/src/index.vue.d.ts +2 -8
- package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +2 -12
- package/dist/lib/components/operateLogList/src/index.vue.d.ts +2 -13
- package/dist/style.css +1 -1
- package/dist/vite-env.d.ts +13 -13
- package/package.json +13 -11
- package/src/lib/components/QAccountList/src/QAccountCreate.vue +272 -0
- package/src/lib/components/QAccountList/src/QAccountDetail.vue +82 -14
- package/src/lib/components/QAccountList/src/QAccountEdit.vue +65 -33
- package/src/lib/components/QAccountList/src/QAccountList.vue +532 -530
- package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +143 -137
- package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +172 -166
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +123 -124
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +66 -18
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +151 -122
- package/src/lib/components/QI18nList/src/QI18nList.vue +365 -361
- package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +103 -94
- package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +109 -105
- package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +3 -3
- package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +218 -221
- package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +110 -117
- package/src/lib/components/QPermissionDataList/src/form.vue +109 -109
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +1 -1
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +120 -32
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +189 -163
- package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +84 -0
- package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +22 -22
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +134 -85
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +91 -0
- package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +276 -263
- package/src/lib/components/QRoleList/src/QRoleList.vue +332 -288
- package/src/lib/components/QRoleList/src/useConfigData.ts +1 -6
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +304 -302
- package/src/lib/components/QUsageList/src/QUsageList.vue +287 -82
- package/src/lib/components/QUsageList/src/useConfigData.ts +147 -13
- package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +140 -140
- package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +28 -28
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +130 -42
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +2 -2
- package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +2 -2
- package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +12 -12
- package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +276 -268
- package/src/lib/components/QcustomConfigList/src/useConfigData.ts +1 -1
- package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +124 -125
- package/src/lib/components/index.ts +78 -78
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +2 -10
- package/src/lib/components/integratedNodesList/src/index.vue +130 -136
- package/src/lib/components/integratedReportList/src/index.vue +55 -30
- package/src/lib/components/integratedReportSearchList/src/index.vue +106 -66
- package/src/lib/components/loginAbnormalLogList/src/index.vue +43 -50
- package/src/lib/components/loginLogList/src/index.vue +51 -57
- package/src/lib/components/loginSupplierLogList/src/index.vue +53 -63
- package/src/lib/components/operateLogList/src/index.vue +46 -57
- package/src/vite-env.d.ts +13 -13
- package/tsconfig.json +24 -24
- package/vite.config.ts +1 -1
- package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +0 -80
- package/dist/lib/components/QCompanyermissionList/src/types.d.ts +0 -44
- package/dist/lib/components/integratedReportList/src/index.vue.d.ts +0 -70
- package/src/lib/components/QCompanyermissionList/src/editTree.vue +0 -291
- package/src/lib/components/QCompanyermissionList/src/form.vue +0 -238
- package/src/lib/components/QCompanyermissionList/src/index.vue +0 -309
- 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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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 {
|
|
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/
|
|
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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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>
|