@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,122 +1,151 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
|
|
3
|
-
</template>
|
|
4
|
-
<script setup lang="ts">
|
|
5
|
-
import { reactive, ref, inject } from 'vue'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
|
|
3
|
+
</template>
|
|
4
|
+
<script setup lang="ts">
|
|
5
|
+
import { reactive, ref, inject } from 'vue'
|
|
6
|
+
import qqtApi from '@qqt-product/api'
|
|
7
|
+
import { message, Modal } from '@qqt-product/ui'
|
|
8
|
+
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
9
|
+
const qHttp: qqtApi.Request = qqtApi.useHttp()
|
|
10
|
+
const listLayoutRef = ref()
|
|
11
|
+
const emit = defineEmits(['create', 'detail', 'edit'])
|
|
12
|
+
const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
|
|
13
|
+
if (i18nKey) {
|
|
14
|
+
if (account) {
|
|
15
|
+
return account + defaultValue
|
|
16
|
+
}
|
|
17
|
+
return defaultValue
|
|
18
|
+
}
|
|
19
|
+
return defaultValue
|
|
20
|
+
})
|
|
21
|
+
const apiUrls = {
|
|
22
|
+
list: '/news/elsTenantPortalNews/list',
|
|
23
|
+
columnsCode: 'elsTenantPortalNewsList',
|
|
24
|
+
}
|
|
25
|
+
const handleDelete = async (row: GlobalPageLayoutTypes.CurrentRow) => {
|
|
26
|
+
Modal.confirm({
|
|
27
|
+
title: srmI18n(`i18n_title_tip`, '提示'),
|
|
28
|
+
content: srmI18n('i18n_title_deleteChosedData', '是否删除选中数据?'),
|
|
29
|
+
onOk() {
|
|
30
|
+
let data = [row.id]
|
|
31
|
+
qHttp.post({ url: '/news/elsTenantPortalNews/delete', data: data }).then((res) => {
|
|
32
|
+
if (res && res.success) {
|
|
33
|
+
message.success(res.message)
|
|
34
|
+
listLayoutRef.value.fetchListData()
|
|
35
|
+
} else {
|
|
36
|
+
message.error(res.message)
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
},
|
|
40
|
+
okText: srmI18n('i18n_title_confirm', '确定'),
|
|
41
|
+
cancelText: srmI18n('i18n_title_cancle', '取消'),
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
const handlePublish = async (row: GlobalPageLayoutTypes.CurrentRow) => {
|
|
45
|
+
Modal.confirm({
|
|
46
|
+
title: srmI18n(`i18n_title_tip`, '提示'),
|
|
47
|
+
content: srmI18n('i18n_title_isConfirmPublishing', '是否确认发布?'),
|
|
48
|
+
onOk() {
|
|
49
|
+
qHttp.post({ url: `/news/elsTenantPortalNews/publish/${row.id}` }).then((res) => {
|
|
50
|
+
if (res && res.success) {
|
|
51
|
+
message.success(res.message)
|
|
52
|
+
listLayoutRef.value.fetchListData()
|
|
53
|
+
} else {
|
|
54
|
+
message.error(res.message)
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
},
|
|
58
|
+
okText: srmI18n('i18n_title_confirm', '确定'),
|
|
59
|
+
cancelText: srmI18n('i18n_title_cancle', '取消'),
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
const pageData = reactive({
|
|
63
|
+
statusConfig: {
|
|
64
|
+
show: false,
|
|
65
|
+
},
|
|
66
|
+
optionConfig: {
|
|
67
|
+
options: [
|
|
68
|
+
{
|
|
69
|
+
type: 'view',
|
|
70
|
+
title: srmI18n('i18n_title_view', '查看'),
|
|
71
|
+
click: ({ row }) => {
|
|
72
|
+
emit('detail', row)
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: 'edit',
|
|
77
|
+
title: srmI18n('i18n_title_edit', '编辑'),
|
|
78
|
+
click: ({ row }) => {
|
|
79
|
+
emit('edit', row)
|
|
80
|
+
},
|
|
81
|
+
disabled: ({ row }) => row.status == '1',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: 'delete',
|
|
85
|
+
title: srmI18n('i18n_title_delete', '删除'),
|
|
86
|
+
click: ({ row = {} as GlobalPageLayoutTypes.CurrentRow }) => {
|
|
87
|
+
handleDelete(row)
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: 'publish',
|
|
92
|
+
title: srmI18n('i18n_title_publish', '发布'),
|
|
93
|
+
disabled: ({ row }) => row.status == '1',
|
|
94
|
+
click: ({ row = {} as GlobalPageLayoutTypes.CurrentRow }) => {
|
|
95
|
+
handlePublish(row)
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
buttonConfig: {
|
|
101
|
+
buttons: [
|
|
102
|
+
{
|
|
103
|
+
label: srmI18n('i18n_title_add', '新增'),
|
|
104
|
+
icon: {
|
|
105
|
+
type: 'icon-Q-add',
|
|
106
|
+
},
|
|
107
|
+
attrs: {
|
|
108
|
+
type: 'primary',
|
|
109
|
+
},
|
|
110
|
+
type: 'add',
|
|
111
|
+
click: () => {
|
|
112
|
+
emit('create')
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: srmI18n('i18n_title_listCustom', '列自定义'),
|
|
117
|
+
icon: {
|
|
118
|
+
type: 'icon-Q-setting',
|
|
119
|
+
},
|
|
120
|
+
type: 'setting',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: srmI18n('i18n_title_helpText', '帮助说明'),
|
|
124
|
+
icon: {
|
|
125
|
+
type: 'icon-Q-help-text',
|
|
126
|
+
},
|
|
127
|
+
type: 'help-text',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: srmI18n('i18n_title_attachment', '说明附件'),
|
|
131
|
+
icon: {
|
|
132
|
+
type: 'icon-Q-attachment-text',
|
|
133
|
+
},
|
|
134
|
+
type: 'attachment-text',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
queryConfig: {
|
|
139
|
+
form: [
|
|
140
|
+
{
|
|
141
|
+
type: 'input',
|
|
142
|
+
label: srmI18n('i18n_title_keyword', '关键字'),
|
|
143
|
+
fieldName: 'keyWord',
|
|
144
|
+
placeholder: srmI18n('i18n_field_VWNVQBDVQIy_c92d9e92', '请输入新闻标题、新闻简介'),
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
pagerConfig: {},
|
|
149
|
+
})
|
|
150
|
+
</script>
|
|
151
|
+
<style scoped></style>
|