@qqt-product/system 0.0.16 → 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.
- package/dist/index.es.js +9595 -9168
- package/dist/index.umd.js +34 -35
- package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +15 -12
- package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +13 -10
- package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +16 -12
- package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +12 -9
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +12 -9
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +15 -12
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +9 -0
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue.d.ts +387 -3
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +15 -12
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +12 -9
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +17 -14
- package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +1 -1
- package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +2 -1
- package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +9 -0
- package/dist/lib/components/QRoleList/src/components/userAuthorization/index.d.ts +4 -4
- package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +19 -2
- package/dist/lib/components/QSupplierAccountList/src/useConfigData.d.ts +9 -0
- package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +0 -1
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +12 -9
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +15 -12
- package/dist/style.css +1 -1
- package/package.json +20 -9
- package/.eslintignore +0 -4
- package/.eslintrc.cjs +0 -22
- package/.prettierignore +0 -4
- package/.prettierrc.cjs +0 -41
- package/.vscode/extensions.json +0 -3
- package/dist/vite.svg +0 -1
- package/index.html +0 -13
- package/public/vite.svg +0 -1
- package/src/App.vue +0 -8
- package/src/lib/components/QAccountList/index.ts +0 -6
- package/src/lib/components/QAccountList/src/QAccountCreate.vue +0 -272
- package/src/lib/components/QAccountList/src/QAccountDetail.vue +0 -259
- package/src/lib/components/QAccountList/src/QAccountEdit.vue +0 -273
- package/src/lib/components/QAccountList/src/QAccountList.vue +0 -532
- package/src/lib/components/QAccountList/src/useConfigData.ts +0 -53
- package/src/lib/components/QBackgroundFileTaskList/index.ts +0 -6
- package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +0 -143
- package/src/lib/components/QBackgroundFileTaskList/src/useConfigData.ts +0 -20
- package/src/lib/components/QElsEmailSendLogList/index.ts +0 -6
- package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +0 -172
- package/src/lib/components/QElsEmailSendLogList/src/useConfigData.ts +0 -19
- package/src/lib/components/QElsMsgRecordList/index.ts +0 -6
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue +0 -148
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +0 -123
- package/src/lib/components/QElsMsgRecordList/src/useConfigData.ts +0 -22
- package/src/lib/components/QElsTenantPortalNewsList/index.ts +0 -6
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue +0 -139
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +0 -244
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +0 -151
- package/src/lib/components/QElsTenantPortalNewsList/src/useConfigData.ts +0 -20
- package/src/lib/components/QI18nList/index.ts +0 -6
- package/src/lib/components/QI18nList/src/QI18nForm.vue +0 -141
- package/src/lib/components/QI18nList/src/QI18nList.vue +0 -365
- package/src/lib/components/QI18nList/src/useConfigData.ts +0 -37
- package/src/lib/components/QImChatGroupList/index.ts +0 -6
- package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +0 -103
- package/src/lib/components/QImChatGroupList/src/useConfigData.ts +0 -17
- package/src/lib/components/QMqRecordList/index.ts +0 -6
- package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +0 -109
- package/src/lib/components/QMqRecordList/src/useConfigData.ts +0 -18
- package/src/lib/components/QPasswordSecurityPolicy/index.ts +0 -6
- package/src/lib/components/QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue +0 -266
- package/src/lib/components/QPermissionDataList/index.ts +0 -6
- package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +0 -3
- package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +0 -218
- package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +0 -110
- package/src/lib/components/QPermissionDataList/src/form.vue +0 -109
- package/src/lib/components/QPurchaseNoticeList/index.ts +0 -6
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +0 -147
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +0 -332
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +0 -189
- package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +0 -84
- package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +0 -22
- package/src/lib/components/QPurchaseNoticeTemplateList/index.ts +0 -6
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +0 -134
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +0 -91
- package/src/lib/components/QPurchaseNoticeTemplateList/src/useConfigData.ts +0 -18
- package/src/lib/components/QQuartzJobList/index.ts +0 -6
- package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +0 -276
- package/src/lib/components/QQuartzJobList/src/components/JCron.vue +0 -82
- package/src/lib/components/QQuartzJobList/src/components/JCronModal.vue +0 -985
- package/src/lib/components/QQuartzJobList/src/components/QuartzJobModal.vue +0 -176
- package/src/lib/components/QQuartzJobList/src/useConfigData.ts +0 -26
- package/src/lib/components/QRoleList/index.ts +0 -6
- package/src/lib/components/QRoleList/src/QRoleList.vue +0 -332
- package/src/lib/components/QRoleList/src/components/content-header/contentHeader.less +0 -31
- package/src/lib/components/QRoleList/src/components/content-header/index.tsx +0 -42
- package/src/lib/components/QRoleList/src/components/userAuthorization/index.tsx +0 -690
- package/src/lib/components/QRoleList/src/components/userAuthorization/userAuthorization.less +0 -97
- package/src/lib/components/QRoleList/src/useConfigData.ts +0 -28
- package/src/lib/components/QSupplierAccountList/index.ts +0 -6
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountForm.vue +0 -187
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +0 -304
- package/src/lib/components/QSupplierAccountList/src/useConfigData.ts +0 -29
- package/src/lib/components/QUsageList/index.ts +0 -6
- package/src/lib/components/QUsageList/src/QUsageList.vue +0 -287
- package/src/lib/components/QUsageList/src/useConfigData.ts +0 -154
- package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +0 -140
- package/src/lib/components/QcustomConfigEdit/component/TempalePreviewModal.vue +0 -100
- package/src/lib/components/QcustomConfigEdit/component/dataFormatComponent.tsx +0 -100
- package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +0 -71
- package/src/lib/components/QcustomConfigEdit/index.ts +0 -6
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +0 -1895
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +0 -242
- package/src/lib/components/QcustomConfigEdit/src/types.ts +0 -71
- package/src/lib/components/QcustomConfigEdit/src/useConfigComputed.ts +0 -75
- package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +0 -123
- package/src/lib/components/QcustomConfigEdit/src/useConfigMethods.ts +0 -117
- package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +0 -301
- package/src/lib/components/QcustomConfigEdit/style/index.less +0 -41
- package/src/lib/components/QcustomConfigList/component/ImportJsonCustomConfig.vue +0 -135
- package/src/lib/components/QcustomConfigList/index.ts +0 -6
- package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +0 -276
- package/src/lib/components/QcustomConfigList/src/types.ts +0 -1
- package/src/lib/components/QcustomConfigList/src/useConfigData.ts +0 -23
- package/src/lib/components/QcustomConfigList/src/useMethods.ts +0 -36
- package/src/lib/components/QcustomConfigList/style/index.less +0 -3
- package/src/lib/components/QsysConfigList/index.ts +0 -6
- package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +0 -124
- package/src/lib/components/QsysConfigList/src/types.ts +0 -1
- package/src/lib/components/QsysConfigList/src/useConfigData.ts +0 -17
- package/src/lib/components/QsysConfigList/src/useMethods.ts +0 -11
- package/src/lib/components/QsysConfigList/style/index.less +0 -3
- package/src/lib/components/index.ts +0 -78
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue +0 -49
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +0 -135
- package/src/lib/components/integratedNodesList/src/index.vue +0 -130
- package/src/lib/components/integratedReportList/src/index.vue +0 -111
- package/src/lib/components/integratedReportSearchList/src/index.vue +0 -106
- package/src/lib/components/loginAbnormalLogList/src/index.vue +0 -43
- package/src/lib/components/loginLogList/src/index.vue +0 -51
- package/src/lib/components/loginSupplierLogList/src/index.vue +0 -53
- package/src/lib/components/operateLogList/src/index.vue +0 -46
- package/src/lib/index.ts +0 -15
- package/src/lib/utils/constant.ts +0 -1
- package/src/lib/utils/global.hook.ts +0 -337
- package/src/lib/utils/global.types.ts +0 -49
- package/src/lib/utils/regexp.ts +0 -143
- package/src/main.ts +0 -11
- package/src/vite-env.d.ts +0 -13
- package/tsconfig.json +0 -24
- package/tsconfig.node.json +0 -9
- package/vite.config.ts +0 -61
- /package/dist/{index.es.d.ts → index.d.ts} +0 -0
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="edit-page">
|
|
3
|
-
<a-spin :spinning="customLoading">
|
|
4
|
-
<q-edit-page-layout ref="layoutRef" v-bind="options" @customSave="handleCustomSave" @validate-success="handleValidateSuccess"></q-edit-page-layout>
|
|
5
|
-
</a-spin>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup lang="ts">
|
|
10
|
-
import { ref, reactive, inject } from 'vue'
|
|
11
|
-
import type { ComponentPublicInstance } from 'vue'
|
|
12
|
-
import { BUTTON_ADD_ONE_ROW, BUTTON_DELETE_ROW, BUTTON_SAVE } from '@qqt-product/ui'
|
|
13
|
-
// ui组件库 types
|
|
14
|
-
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
15
|
-
import { usePromiseStepHook, useRefInstanceHook } from '@qqt-product/ui'
|
|
16
|
-
|
|
17
|
-
const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
|
|
18
|
-
if (i18nKey) {
|
|
19
|
-
if (account) {
|
|
20
|
-
return account + defaultValue
|
|
21
|
-
}
|
|
22
|
-
return defaultValue
|
|
23
|
-
}
|
|
24
|
-
return defaultValue
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
// 传参 props
|
|
28
|
-
const props = defineProps<{
|
|
29
|
-
currentRow: GlobalPageLayoutTypes.CurrentRow | null
|
|
30
|
-
userInfo: GlobalPageLayoutTypes.UserInfo
|
|
31
|
-
}>()
|
|
32
|
-
|
|
33
|
-
const currentRow = props.currentRow
|
|
34
|
-
? props.currentRow
|
|
35
|
-
: ref({
|
|
36
|
-
templateNumber: '',
|
|
37
|
-
templateVersion: 0,
|
|
38
|
-
templateAccount: '',
|
|
39
|
-
busAccount: '',
|
|
40
|
-
elsAccount: '',
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
// 编辑组件 ref
|
|
44
|
-
const layoutRef = ref<ComponentPublicInstance | null>(null)
|
|
45
|
-
|
|
46
|
-
// 配置
|
|
47
|
-
const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
|
|
48
|
-
/**
|
|
49
|
-
* 模块业务类型 string
|
|
50
|
-
* 取值根据各模块配置
|
|
51
|
-
* 当定义为"custom"时,使用本地配置
|
|
52
|
-
*/
|
|
53
|
-
businessType: 'integrated',
|
|
54
|
-
// 布局模式
|
|
55
|
-
pattern: 'vertical',
|
|
56
|
-
// 当前已选行数据a
|
|
57
|
-
currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
|
|
58
|
-
refreshMethods(row?: GlobalPageLayoutTypes.CurrentRow) {
|
|
59
|
-
if (options.currentRow) {
|
|
60
|
-
options.currentRow =
|
|
61
|
-
row ||
|
|
62
|
-
Object.assign({}, options.currentRow, {
|
|
63
|
-
_t: +new Date(),
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
// 当前登录租户信息
|
|
68
|
-
userInfo: props.userInfo,
|
|
69
|
-
// 明细接口 -- 接口字符串
|
|
70
|
-
detailApi: '/integrated/integratedNodes/queryById',
|
|
71
|
-
// 本地页面数据配置
|
|
72
|
-
localConfig: {
|
|
73
|
-
groups: [
|
|
74
|
-
{
|
|
75
|
-
groupName: srmI18n('i18n_field_100100', '基本信息'),
|
|
76
|
-
groupCode: 'baseForm',
|
|
77
|
-
groupType: 'head',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
groupName: srmI18n('i18n_field_ESeWc_7381ba96', '业务头属性'),
|
|
81
|
-
groupCode: 'integratedParamsHeadList',
|
|
82
|
-
groupType: 'item',
|
|
83
|
-
buttons: [
|
|
84
|
-
{
|
|
85
|
-
...BUTTON_ADD_ONE_ROW,
|
|
86
|
-
title: srmI18n('i18n_title_add', '新增'),
|
|
87
|
-
},
|
|
88
|
-
BUTTON_DELETE_ROW,
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
groupName: srmI18n('i18n_field_EScWc_743283ae', '业务行属性'),
|
|
93
|
-
groupCode: 'integratedParamsItemList',
|
|
94
|
-
groupType: 'item',
|
|
95
|
-
buttons: [
|
|
96
|
-
{
|
|
97
|
-
...BUTTON_ADD_ONE_ROW,
|
|
98
|
-
title: srmI18n('i18n_title_add', '新增'),
|
|
99
|
-
},
|
|
100
|
-
BUTTON_DELETE_ROW,
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
},
|
|
105
|
-
// 页面按钮
|
|
106
|
-
pageButtons: [
|
|
107
|
-
{
|
|
108
|
-
...BUTTON_SAVE,
|
|
109
|
-
title: srmI18n('i18n_title_save', '保存'),
|
|
110
|
-
emit: true,
|
|
111
|
-
emitKey: 'customSave',
|
|
112
|
-
args: {
|
|
113
|
-
url: '/integrated/integratedNodes/edit',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
const { pageData, layoutConfig, defaultValues } = useRefInstanceHook(layoutRef)
|
|
120
|
-
const { stepTriggerValidate, composeSave, customLoading } = usePromiseStepHook({ pageData, layoutConfig, defaultValues, options })
|
|
121
|
-
|
|
122
|
-
// 自定义保存
|
|
123
|
-
const handleCustomSave = () => {
|
|
124
|
-
stepTriggerValidate()
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// 页面校验成功后执行下一步回调步骤
|
|
128
|
-
const handleValidateSuccess = (button: GlobalPageLayoutTypes.PageButton) => {
|
|
129
|
-
if (button.key === BUTTON_SAVE.key) {
|
|
130
|
-
composeSave()
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// 页面刷新
|
|
135
|
-
</script>
|
|
@@ -1,130 +0,0 @@
|
|
|
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,111 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-list-layout ref="listLayoutRef" :apiUrls="apiUrls" :pageData="pageData" :localColumnGroup="returnColumnGroup" />
|
|
3
|
-
</template>
|
|
4
|
-
<script setup lang="ts">
|
|
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
|
|
10
|
-
const apiUrls = reactive({
|
|
11
|
-
columnsCode: 'integratedReportHeadTableList',
|
|
12
|
-
list: '/integrated/integratedReportData/listHead',
|
|
13
|
-
countTabsUrl: '',
|
|
14
|
-
})
|
|
15
|
-
const pageData = reactive<GlobalListPageLayoutTypes.PageData>({
|
|
16
|
-
isAggregate: '1', // 开启聚合布局
|
|
17
|
-
statusConfig: {
|
|
18
|
-
show: false,
|
|
19
|
-
},
|
|
20
|
-
optionConfig: {
|
|
21
|
-
options: [],
|
|
22
|
-
},
|
|
23
|
-
buttonConfig: {
|
|
24
|
-
buttons: [
|
|
25
|
-
{
|
|
26
|
-
authorityCode: 'integrated#integratedReportData:list',
|
|
27
|
-
label: '头模式',
|
|
28
|
-
icon: 'setting',
|
|
29
|
-
type: 'head',
|
|
30
|
-
click: () => {
|
|
31
|
-
updateMode('head')
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
authorityCode: 'integrated#integratedReportData:list',
|
|
36
|
-
label: '行模式',
|
|
37
|
-
icon: 'setting',
|
|
38
|
-
type: 'list',
|
|
39
|
-
click: () => {
|
|
40
|
-
updateMode('item')
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
authorityCode: 'integrated#integratedReportData:refreshReportData',
|
|
45
|
-
label: '刷新',
|
|
46
|
-
icon: 'setting',
|
|
47
|
-
click: refreshReportData,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: '列自定义',
|
|
51
|
-
icon: {
|
|
52
|
-
type: 'icon-Q-setting',
|
|
53
|
-
},
|
|
54
|
-
type: 'setting',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
queryConfig: {
|
|
59
|
-
form: [
|
|
60
|
-
{
|
|
61
|
-
type: 'input',
|
|
62
|
-
label: '关键字',
|
|
63
|
-
fieldName: 'dataJson',
|
|
64
|
-
placeholder: '请输入各单据类型编码/状态/名称/...',
|
|
65
|
-
},
|
|
66
|
-
// {
|
|
67
|
-
// type: 'dateRange',
|
|
68
|
-
// startProp: 'beginTime',
|
|
69
|
-
// endProp: 'endTime',
|
|
70
|
-
// label: '时间范围',
|
|
71
|
-
// placeholder: ['开始日期', '结束日期'],
|
|
72
|
-
// },
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
pagerConfig: {},
|
|
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
|
-
}
|
|
111
|
-
</script>
|
|
@@ -1,106 +0,0 @@
|
|
|
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,43 +0,0 @@
|
|
|
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>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: your name
|
|
3
|
-
* @Date: 2023-05-20 01:51:39
|
|
4
|
-
* @LastEditTime: 2023-05-21 16:24:10
|
|
5
|
-
* @LastEditors: LOK
|
|
6
|
-
* @Description: 登录日志
|
|
7
|
-
* @FilePath: \v6-dev\modules\system\src\lib\components\loginLogList\src\index.vue
|
|
8
|
-
-->
|
|
9
|
-
<template><q-list-layout :apiUrls="apiUrls" :pageData="pageData"></q-list-layout></template>
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import { reactive } from 'vue'
|
|
12
|
-
const apiUrls = reactive({
|
|
13
|
-
columnsCode: 'ElsLog',
|
|
14
|
-
list: '/log/list',
|
|
15
|
-
countTabsUrl: '',
|
|
16
|
-
})
|
|
17
|
-
const pageData = reactive({
|
|
18
|
-
statusConfig: {
|
|
19
|
-
show: false,
|
|
20
|
-
},
|
|
21
|
-
optionConfig: {
|
|
22
|
-
options: [],
|
|
23
|
-
},
|
|
24
|
-
buttonConfig: {
|
|
25
|
-
buttons: [
|
|
26
|
-
{
|
|
27
|
-
label: '列自定义',
|
|
28
|
-
icon: {
|
|
29
|
-
type: 'icon-Q-setting',
|
|
30
|
-
},
|
|
31
|
-
type: 'setting',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
queryConfig: {
|
|
36
|
-
form: [
|
|
37
|
-
{
|
|
38
|
-
type: 'input',
|
|
39
|
-
label: '搜索日志',
|
|
40
|
-
fieldName: 'keyWord',
|
|
41
|
-
placeholder: '请输入搜索关键字',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
formState: {
|
|
45
|
-
keyWord: '',
|
|
46
|
-
logType: 1,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
pagerConfig: {},
|
|
50
|
-
})
|
|
51
|
-
</script>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: your name
|
|
3
|
-
* @Date: 2023-05-21 17:05:59
|
|
4
|
-
* @LastEditTime: 2023-05-21 17:10:07
|
|
5
|
-
* @LastEditors: LOK
|
|
6
|
-
* @Description: 供应商登录日志
|
|
7
|
-
* @FilePath: \v6-dev\modules\system\src\lib\components\loginSupplierLogList\src\index.vue
|
|
8
|
-
-->
|
|
9
|
-
<template><q-list-layout :apiUrls="apiUrls" :pageData="pageData"></q-list-layout></template>
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import { reactive } from 'vue'
|
|
12
|
-
const apiUrls = reactive({
|
|
13
|
-
columnsCode: 'SupplierLoginLog',
|
|
14
|
-
list: '/log/querySupplierLoginList',
|
|
15
|
-
countTabsUrl: '',
|
|
16
|
-
})
|
|
17
|
-
const pageData = reactive({
|
|
18
|
-
statusConfig: {
|
|
19
|
-
show: false,
|
|
20
|
-
},
|
|
21
|
-
optionConfig: {
|
|
22
|
-
options: [],
|
|
23
|
-
},
|
|
24
|
-
buttonConfig: {
|
|
25
|
-
buttons: [
|
|
26
|
-
{
|
|
27
|
-
label: '列自定义',
|
|
28
|
-
icon: {
|
|
29
|
-
type: 'icon-Q-setting',
|
|
30
|
-
},
|
|
31
|
-
type: 'setting',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
queryConfig: {
|
|
36
|
-
form: [
|
|
37
|
-
{
|
|
38
|
-
type: 'input',
|
|
39
|
-
label: '供应商名称',
|
|
40
|
-
fieldName: 'supplierName',
|
|
41
|
-
placeholder: '请输入供应商名称',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
type: 'input',
|
|
45
|
-
label: '月份',
|
|
46
|
-
fieldName: 'logMonth',
|
|
47
|
-
placeholder: '请输入月份',
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
pagerConfig: {},
|
|
52
|
-
})
|
|
53
|
-
</script>
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
optionConfig: {
|
|
14
|
-
options: [],
|
|
15
|
-
},
|
|
16
|
-
buttonConfig: {
|
|
17
|
-
buttons: [
|
|
18
|
-
{
|
|
19
|
-
label: '列自定义',
|
|
20
|
-
icon: {
|
|
21
|
-
type: 'icon-Q-setting',
|
|
22
|
-
},
|
|
23
|
-
type: 'setting',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
queryConfig: {
|
|
28
|
-
form: [
|
|
29
|
-
{
|
|
30
|
-
type: 'input',
|
|
31
|
-
label: '搜索日志',
|
|
32
|
-
fieldName: 'keyWord',
|
|
33
|
-
placeholder: '请输入搜索关键字',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
type: 'select',
|
|
37
|
-
label: '操作类型',
|
|
38
|
-
fieldName: 'operateType',
|
|
39
|
-
dictCode: 'operate_type',
|
|
40
|
-
placeholder: '请选择',
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
pagerConfig: {},
|
|
45
|
-
})
|
|
46
|
-
</script>
|
package/src/lib/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { App } from 'vue'
|
|
2
|
-
import qqtUtils from '@qqt-product/utils'
|
|
3
|
-
import * as components from './components/index'
|
|
4
|
-
|
|
5
|
-
export const qqtSysPageModules = () => {
|
|
6
|
-
return {
|
|
7
|
-
install: (app: App) => {
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
-
qqtUtils.forEach(components, (component: any, key) => {
|
|
10
|
-
app.component(component.default.name || key, component.default)
|
|
11
|
-
})
|
|
12
|
-
},
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export { components }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|