@qqt-product/system 0.0.16 → 0.0.18
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 +9601 -9171
- package/dist/index.umd.js +34 -35
- package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +16 -12
- package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +14 -10
- package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +17 -12
- package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +13 -9
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +13 -9
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +16 -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 +16 -12
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +13 -9
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +18 -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 +21 -1
- 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 +13 -9
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +16 -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,276 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page-list">
|
|
3
|
-
<q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
|
|
4
|
-
<QcustomConfigEdit :busAccount="userInfo?.userInfo?.elsAccount" :currentEditRow="currentEditRow" @handleReturn="handleReturn" v-else />
|
|
5
|
-
<ImportJsonCustomConfig :isShow="uploadShow" :userToken="userInfo?.token" @close="uploadClose" />
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script lang="ts">
|
|
10
|
-
//JS引入
|
|
11
|
-
import { defineComponent, reactive, inject, nextTick } from 'vue'
|
|
12
|
-
|
|
13
|
-
//hook
|
|
14
|
-
import { useConfigData } from './useConfigData'
|
|
15
|
-
import { useConigApiMethods } from '../../../utils/global.hook'
|
|
16
|
-
import { useMethods } from './useMethods'
|
|
17
|
-
//组件
|
|
18
|
-
import QcustomConfigEdit from '../../QcustomConfigEdit/src/QcustomConfigEdit.vue'
|
|
19
|
-
import { message } from '@qqt-product/ui'
|
|
20
|
-
import ImportJsonCustomConfig from '../../QcustomConfigList/component/ImportJsonCustomConfig.vue'
|
|
21
|
-
//ts
|
|
22
|
-
import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
|
|
23
|
-
|
|
24
|
-
export default defineComponent({
|
|
25
|
-
name: 'QcustomConfigList',
|
|
26
|
-
components: {
|
|
27
|
-
QcustomConfigEdit,
|
|
28
|
-
ImportJsonCustomConfig,
|
|
29
|
-
},
|
|
30
|
-
emits: ['uploadFile'],
|
|
31
|
-
props: {
|
|
32
|
-
userInfo: {
|
|
33
|
-
type: Object,
|
|
34
|
-
defalut: () => {
|
|
35
|
-
return {}
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
setup(props, { emit }) {
|
|
41
|
-
//inject
|
|
42
|
-
|
|
43
|
-
//常量
|
|
44
|
-
|
|
45
|
-
/*
|
|
46
|
-
data
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
const { apiUrls, currentEditRow, showEditPage, listLayoutRef, uploadShow } = useConfigData()
|
|
50
|
-
const qHttp = inject(INJECT_HTTP) as HttpClient
|
|
51
|
-
const { handleExport, handleCopy, handleCancel, handleDelete, handleUpgrade } = useConigApiMethods(qHttp)
|
|
52
|
-
const { allowCancel, allowDelete, allowEdit, allowUpgrade } = useMethods()
|
|
53
|
-
const pageData = reactive({
|
|
54
|
-
statusConfig: {
|
|
55
|
-
show: false,
|
|
56
|
-
},
|
|
57
|
-
optionConfig: {
|
|
58
|
-
attrs: {},
|
|
59
|
-
extend: {},
|
|
60
|
-
options: [
|
|
61
|
-
{ authorityCode: 'template#templateHead:edit', type: 'edit', title: '编辑', click: handleEdit, disabled: allowEdit },
|
|
62
|
-
{ authorityCode: 'template#templateHead:copyById', type: 'copyById', title: '复制', click: handleCusotmCopy },
|
|
63
|
-
{ authorityCode: 'template#templateHead:cancel', type: 'cancel', title: '作废', click: handleCustomCancel, disabled: allowCancel },
|
|
64
|
-
{ authorityCode: 'template#templateHead:delete', type: 'delete', title: `删除`, click: handleCustomDetel, disabled: allowDelete },
|
|
65
|
-
{ authorityCode: 'template#templateHead:upload', type: 'upload', title: '文件上传', click: uploadFile, disabled: allowUpgrade },
|
|
66
|
-
{ authorityCode: 'template#templateHead:upgradeVersion', type: 'upgradeVersion', title: '版本升级', click: handleCustomUpgrade, disabled: allowUpgrade },
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
buttonConfig: {
|
|
70
|
-
attrs: {},
|
|
71
|
-
extend: {},
|
|
72
|
-
buttons: [
|
|
73
|
-
{
|
|
74
|
-
authorityCode: 'template#templateHead:add',
|
|
75
|
-
label: '新增',
|
|
76
|
-
icon: {
|
|
77
|
-
type: 'icon-Q-add',
|
|
78
|
-
},
|
|
79
|
-
click: handleAdd,
|
|
80
|
-
attrs: {
|
|
81
|
-
type: 'primary',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
{ authorityCode: 'template#templateHead:batchGenerateConfig', label: '批量生成配置', icon: 'download', click: batchGeneratorConfig },
|
|
85
|
-
// { label: '列自定义', icon: 'setting', clickFn: this.settingColumns },
|
|
86
|
-
{ authorityCode: 'template#templateHead:exportJson', label: '导出', icon: 'download', folded: true, click: handleExportJson },
|
|
87
|
-
{ authorityCode: 'template#templateHead:importJson', label: '导入', icon: 'import', folded: true, click: handleImportJson },
|
|
88
|
-
// { label: '帮助说明', icon: 'file-text', folded: true, isDocument: true, clickFn: this.showHelpText },
|
|
89
|
-
// { label: '说明附件', icon: 'file-pdf', folded: true, isDocument: true, clickFn: this.showHelpPDF },
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
queryConfig: {
|
|
93
|
-
attrs: {},
|
|
94
|
-
extend: {},
|
|
95
|
-
form: [
|
|
96
|
-
{
|
|
97
|
-
type: 'select',
|
|
98
|
-
label: '模板名称',
|
|
99
|
-
dictCode: 'srmBusinessType',
|
|
100
|
-
fieldName: 'businessType',
|
|
101
|
-
placeholder: '请选择业务类型',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: 'input',
|
|
105
|
-
label: '模板名称',
|
|
106
|
-
fieldName: 'templateName',
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
pagerConfig: {},
|
|
111
|
-
})
|
|
112
|
-
//computed
|
|
113
|
-
|
|
114
|
-
/*
|
|
115
|
-
method
|
|
116
|
-
*/
|
|
117
|
-
function handleAdd() {
|
|
118
|
-
currentEditRow.value = {}
|
|
119
|
-
showEditPage.value = true
|
|
120
|
-
}
|
|
121
|
-
function handleReturn() {
|
|
122
|
-
showEditPage.value = false
|
|
123
|
-
}
|
|
124
|
-
function batchGeneratorConfig() {
|
|
125
|
-
listLayoutRef.value.loading = true
|
|
126
|
-
let records = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
|
|
127
|
-
let temIds = records.map((n: MapObjectNoneType) => {
|
|
128
|
-
return n.id
|
|
129
|
-
})
|
|
130
|
-
if (temIds.length == 0) {
|
|
131
|
-
message.warning('请至少选择一个模版进行配置生成!')
|
|
132
|
-
return false
|
|
133
|
-
}
|
|
134
|
-
qHttp
|
|
135
|
-
.post({
|
|
136
|
-
url: apiUrls.value.batchGeneratorConfig,
|
|
137
|
-
data: temIds,
|
|
138
|
-
})
|
|
139
|
-
.then((res: MapObjectNoneType) => {
|
|
140
|
-
if (res.success) {
|
|
141
|
-
message.success(res.message)
|
|
142
|
-
// this.$emit('ok')
|
|
143
|
-
} else {
|
|
144
|
-
message.warning(res.message)
|
|
145
|
-
}
|
|
146
|
-
})
|
|
147
|
-
.finally(() => {
|
|
148
|
-
listLayoutRef.value.loading = false
|
|
149
|
-
listLayoutRef.value.gridInstance.clearCheckboxRow()
|
|
150
|
-
listLayoutRef.value.fetchListData()
|
|
151
|
-
})
|
|
152
|
-
|
|
153
|
-
// console.log('records', listLayoutRef.value.loa)
|
|
154
|
-
// listLayoutRef.value.loading.value = true
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function handleExportJson() {
|
|
158
|
-
const records = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
|
|
159
|
-
if (records.length > 1 || records.length === 0) {
|
|
160
|
-
message.warning('请选中一条数据导出')
|
|
161
|
-
return
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
handleExport({
|
|
165
|
-
actionType: 'get',
|
|
166
|
-
fileName: '业务模板配置',
|
|
167
|
-
type: 'json',
|
|
168
|
-
exportXlsUrl: apiUrls.value.exportJson,
|
|
169
|
-
setPostParms: () => {
|
|
170
|
-
// const records = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
|
|
171
|
-
// 构造查询参数
|
|
172
|
-
let params = !records.length ? Object.assign({}, listLayoutRef.value.pageData.form) : { selections: records.map((n: MapObjectNoneType) => n.id).join(',') }
|
|
173
|
-
// let isOrder = listLayoutRef.value.pageData.isOrder || listLayoutRef.value.pageData.isOrder
|
|
174
|
-
// this.$set(params, 'column', isOrder.column)
|
|
175
|
-
// this.$set(params, 'order', isOrder.order)
|
|
176
|
-
// params.column = isOrder.column
|
|
177
|
-
// params.order = isOrder.order
|
|
178
|
-
return params
|
|
179
|
-
},
|
|
180
|
-
berforCallback() {
|
|
181
|
-
listLayoutRef.value.loading = true
|
|
182
|
-
},
|
|
183
|
-
afterCallback() {
|
|
184
|
-
listLayoutRef.value.loading = false
|
|
185
|
-
},
|
|
186
|
-
})
|
|
187
|
-
}
|
|
188
|
-
function handleImportJson() {
|
|
189
|
-
uploadShow.value = true
|
|
190
|
-
}
|
|
191
|
-
function uploadClose() {
|
|
192
|
-
uploadShow.value = false
|
|
193
|
-
listLayoutRef.value.fetchListData()
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function handleEdit({ row }: MapObjectNoneType) {
|
|
197
|
-
currentEditRow.value = row
|
|
198
|
-
nextTick(() => {
|
|
199
|
-
showEditPage.value = true
|
|
200
|
-
})
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function handleCusotmCopy({ row }: MapObjectNoneType) {
|
|
204
|
-
handleCopy({
|
|
205
|
-
url: apiUrls.value.copyData,
|
|
206
|
-
row,
|
|
207
|
-
type: 'get',
|
|
208
|
-
tip: '确认复制模板',
|
|
209
|
-
afterCallback() {
|
|
210
|
-
listLayoutRef.value.fetchListData()
|
|
211
|
-
},
|
|
212
|
-
})
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function handleCustomCancel({ row = {} as MapObjectNoneType }) {
|
|
216
|
-
handleCancel({
|
|
217
|
-
url: apiUrls.value.cancel,
|
|
218
|
-
row,
|
|
219
|
-
type: 'get',
|
|
220
|
-
tip: '确认作废模板',
|
|
221
|
-
afterCallback() {
|
|
222
|
-
listLayoutRef.value.fetchListData()
|
|
223
|
-
},
|
|
224
|
-
})
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
function handleCustomDetel({ row = {} as MapObjectNoneType }) {
|
|
228
|
-
handleDelete({
|
|
229
|
-
url: apiUrls.value.delete,
|
|
230
|
-
row,
|
|
231
|
-
type: 'get',
|
|
232
|
-
tip: '是否删除选中数据',
|
|
233
|
-
afterCallback() {
|
|
234
|
-
listLayoutRef.value.fetchListData()
|
|
235
|
-
},
|
|
236
|
-
})
|
|
237
|
-
}
|
|
238
|
-
function handleCustomUpgrade({ row = {} as MapObjectNoneType }) {
|
|
239
|
-
handleUpgrade({
|
|
240
|
-
url: apiUrls.value.upgrade,
|
|
241
|
-
row,
|
|
242
|
-
type: 'get',
|
|
243
|
-
tip: '是否需要版本升级',
|
|
244
|
-
afterCallback() {
|
|
245
|
-
listLayoutRef.value.fetchListData()
|
|
246
|
-
},
|
|
247
|
-
})
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
function uploadFile({ row = {} as MapObjectNoneType }) {
|
|
251
|
-
currentEditRow.value = row
|
|
252
|
-
console.log('uploadFile', uploadFile)
|
|
253
|
-
emit('uploadFile', row)
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
return {
|
|
257
|
-
pageData,
|
|
258
|
-
apiUrls,
|
|
259
|
-
showEditPage,
|
|
260
|
-
currentEditRow,
|
|
261
|
-
handleReturn,
|
|
262
|
-
batchGeneratorConfig,
|
|
263
|
-
listLayoutRef,
|
|
264
|
-
handleExportJson,
|
|
265
|
-
uploadShow,
|
|
266
|
-
handleImportJson,
|
|
267
|
-
uploadClose,
|
|
268
|
-
handleCustomCancel,
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
})
|
|
272
|
-
</script>
|
|
273
|
-
|
|
274
|
-
<style lang="less" scoped>
|
|
275
|
-
@import url(../style/index.less);
|
|
276
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { shallowRef, ref } from 'vue'
|
|
2
|
-
// import type { MapObjectNoneType } from './types'
|
|
3
|
-
// import { VxeTableInstance } from 'vxe-table'
|
|
4
|
-
// import type {}
|
|
5
|
-
export function useConfigData() {
|
|
6
|
-
//响应
|
|
7
|
-
|
|
8
|
-
const apiUrls = shallowRef({
|
|
9
|
-
list: '/template/templateHead/list',
|
|
10
|
-
columnsCode: 'TemplateHead',
|
|
11
|
-
delete: '/template/templateHead/delete',
|
|
12
|
-
upgrade: '/template/templateHead/upgradeVersion',
|
|
13
|
-
copyData: '/template/templateHead/copyById',
|
|
14
|
-
cancel: '/template/templateHead/cancel',
|
|
15
|
-
batchGeneratorConfig: '/template/templateHead/batchGenerateConfig',
|
|
16
|
-
exportJson: '/template/templateHead/exportJson',
|
|
17
|
-
})
|
|
18
|
-
const uploadShow = shallowRef<boolean>(false)
|
|
19
|
-
const showEditPage = shallowRef<boolean>(false)
|
|
20
|
-
const currentEditRow = ref({})
|
|
21
|
-
const listLayoutRef = ref()
|
|
22
|
-
return { apiUrls, showEditPage, currentEditRow, listLayoutRef, uploadShow }
|
|
23
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { MapObjectNoneType } from '../../../utils/global.types'
|
|
2
|
-
|
|
3
|
-
export function useMethods() {
|
|
4
|
-
function allowEdit({ row = {} as MapObjectNoneType }) {
|
|
5
|
-
if (row.templateStatus == '1' || row.templateStatus == '0') {
|
|
6
|
-
return false
|
|
7
|
-
}
|
|
8
|
-
return true
|
|
9
|
-
}
|
|
10
|
-
function allowCancel({ row = {} as MapObjectNoneType }) {
|
|
11
|
-
if (row.templateStatus == '1' || row.templateStatus == '0') {
|
|
12
|
-
return false
|
|
13
|
-
}
|
|
14
|
-
return true
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function allowDelete({ row = {} as MapObjectNoneType }) {
|
|
18
|
-
if (row.templateStatus == '0') {
|
|
19
|
-
return false
|
|
20
|
-
}
|
|
21
|
-
return true
|
|
22
|
-
}
|
|
23
|
-
function allowUpgrade({ row = {} as MapObjectNoneType }) {
|
|
24
|
-
if (row.templateStatus == '1') {
|
|
25
|
-
return false
|
|
26
|
-
}
|
|
27
|
-
return true
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
allowEdit,
|
|
32
|
-
allowCancel,
|
|
33
|
-
allowDelete,
|
|
34
|
-
allowUpgrade,
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page-list">
|
|
3
|
-
<q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="ts">
|
|
8
|
-
//JS引入
|
|
9
|
-
import { defineComponent, reactive, inject } from 'vue'
|
|
10
|
-
|
|
11
|
-
//hook
|
|
12
|
-
import { useConfigData } from './useConfigData'
|
|
13
|
-
import { useConigApiMethods } from '../../../utils/global.hook'
|
|
14
|
-
import { useMethods } from './useMethods'
|
|
15
|
-
//组件
|
|
16
|
-
|
|
17
|
-
//ts
|
|
18
|
-
import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
name: 'QsysConfigList',
|
|
22
|
-
|
|
23
|
-
props: {
|
|
24
|
-
userInfo: {
|
|
25
|
-
type: Object,
|
|
26
|
-
defalut: () => {
|
|
27
|
-
return {}
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
setup() {
|
|
33
|
-
//inject
|
|
34
|
-
|
|
35
|
-
//常量
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
data
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
const { apiUrls, currentEditRow, listLayoutRef } = useConfigData()
|
|
42
|
-
const qHttp = inject(INJECT_HTTP) as HttpClient
|
|
43
|
-
const { handlUniversal } = useConigApiMethods(qHttp)
|
|
44
|
-
const { allowEnable } = useMethods()
|
|
45
|
-
const pageData = reactive({
|
|
46
|
-
statusConfig: {
|
|
47
|
-
show: false,
|
|
48
|
-
},
|
|
49
|
-
optionConfig: {
|
|
50
|
-
attrs: {},
|
|
51
|
-
extend: {},
|
|
52
|
-
options: [{ authorityCode: 'template#templateHead:addBy100000', type: 'edit', title: '添加至企业级', click: handleCustomAdd, allow: allowEnable }],
|
|
53
|
-
},
|
|
54
|
-
buttonConfig: {
|
|
55
|
-
attrs: {},
|
|
56
|
-
extend: {},
|
|
57
|
-
buttons: [
|
|
58
|
-
// { authorityCode: 'template#templateHead:batchGenerateConfig', label: '批量生成配置', icon: 'download', click: batchGeneratorConfig },
|
|
59
|
-
// { label: '列自定义', icon: 'setting', clickFn: this.settingColumns },
|
|
60
|
-
// { authorityCode: 'template#templateHead:exportJson', label: '导出', icon: 'download', folded: true, click: handleExportJson },
|
|
61
|
-
// { authorityCode: 'template#templateHead:importJson', label: '导入', icon: 'import', folded: true, click: handleImportJson },
|
|
62
|
-
// { label: '帮助说明', icon: 'file-text', folded: true, isDocument: true, clickFn: this.showHelpText },
|
|
63
|
-
// { label: '说明附件', icon: 'file-pdf', folded: true, isDocument: true, clickFn: this.showHelpPDF },
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
queryConfig: {
|
|
67
|
-
attrs: {},
|
|
68
|
-
extend: {},
|
|
69
|
-
|
|
70
|
-
form: [
|
|
71
|
-
{
|
|
72
|
-
type: 'select',
|
|
73
|
-
label: '业务类型',
|
|
74
|
-
dictCode: 'srmBusinessType',
|
|
75
|
-
fieldName: 'businessType',
|
|
76
|
-
placeholder: '请选择业务类型',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
type: 'input',
|
|
80
|
-
label: '模板名称',
|
|
81
|
-
fieldName: 'templateName',
|
|
82
|
-
placeholder: '请输入模板名称',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: 'input',
|
|
86
|
-
label: '模板编号',
|
|
87
|
-
fieldName: 'templateNumber',
|
|
88
|
-
placeholder: '请输入表格编码',
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
pagerConfig: {},
|
|
93
|
-
})
|
|
94
|
-
//computed
|
|
95
|
-
|
|
96
|
-
/*
|
|
97
|
-
method
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
function handleCustomAdd({ row = {} as MapObjectNoneType }) {
|
|
101
|
-
handlUniversal({
|
|
102
|
-
url: apiUrls.value.copyData,
|
|
103
|
-
row,
|
|
104
|
-
type: 'get',
|
|
105
|
-
tip: '是否需要添加到企业级',
|
|
106
|
-
afterCallback() {
|
|
107
|
-
listLayoutRef.value.fetchListData()
|
|
108
|
-
},
|
|
109
|
-
})
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return {
|
|
113
|
-
pageData,
|
|
114
|
-
apiUrls,
|
|
115
|
-
currentEditRow,
|
|
116
|
-
listLayoutRef,
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
})
|
|
120
|
-
</script>
|
|
121
|
-
|
|
122
|
-
<style lang="less" scoped>
|
|
123
|
-
@import url(../style/index.less);
|
|
124
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { shallowRef, ref } from 'vue'
|
|
2
|
-
// import type { MapObjectNoneType } from './types'
|
|
3
|
-
// import { VxeTableInstance } from 'vxe-table'
|
|
4
|
-
// import type {}
|
|
5
|
-
export function useConfigData() {
|
|
6
|
-
//响应
|
|
7
|
-
|
|
8
|
-
const apiUrls = shallowRef({
|
|
9
|
-
list: '/template/templateHead/sysList',
|
|
10
|
-
copyData: '/template/templateHead/addBy100000',
|
|
11
|
-
columnsCode: 'TemplateHead',
|
|
12
|
-
})
|
|
13
|
-
const uploadShow = shallowRef<boolean>(false)
|
|
14
|
-
const currentEditRow = ref({})
|
|
15
|
-
const listLayoutRef = ref()
|
|
16
|
-
return { apiUrls, currentEditRow, listLayoutRef, uploadShow }
|
|
17
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as QcustomConfigEdit from './QcustomConfigEdit/src/QcustomConfigEdit.vue'
|
|
2
|
-
import * as QcustomConfigList from './QcustomConfigList/src/QcustomConfigList.vue'
|
|
3
|
-
import * as QsysConfigList from './QsysConfigList/src/QsysConfigList.vue'
|
|
4
|
-
import * as QLoginLogList from './loginLogList/src/index.vue'
|
|
5
|
-
import * as QOperateLogList from './operateLogList/src/index.vue'
|
|
6
|
-
import * as QLoginSupplierLogList from './loginSupplierLogList/src/index.vue'
|
|
7
|
-
import * as QLoginAbnormalLogList from './loginAbnormalLogList/src/index.vue'
|
|
8
|
-
import * as QIntegratedNodesList from './integratedNodesList/src/index.vue'
|
|
9
|
-
import * as QIntegratedNodesEdit from './integratedNodesList/src/QIntegratedNodesEdit.vue'
|
|
10
|
-
import * as QIntegratedNodesDetail from './integratedNodesList/src/QIntegratedNodesDetail.vue'
|
|
11
|
-
import * as QIntegratedReportList from './integratedReportList/src/index.vue'
|
|
12
|
-
import * as QIntegratedReportSearchList from './integratedReportSearchList/src/index.vue'
|
|
13
|
-
import * as QPasswordSecurityPolicy from './QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue'
|
|
14
|
-
import * as QI18nList from './QI18nList/src/QI18nList.vue'
|
|
15
|
-
import * as QSupplierAccountList from './QSupplierAccountList/src/QSupplierAccountList.vue'
|
|
16
|
-
import * as QAccountList from './QAccountList/src/QAccountList.vue'
|
|
17
|
-
import * as QAccountEdit from './QAccountList/src/QAccountEdit.vue'
|
|
18
|
-
import * as QAccountCreate from './QAccountList/src/QAccountCreate.vue'
|
|
19
|
-
import * as QAccountDetail from './QAccountList/src/QAccountDetail.vue'
|
|
20
|
-
import * as QRoleList from './QRoleList/src/QRoleList.vue'
|
|
21
|
-
import * as QPermissionDataList from './QPermissionDataList/src/QPermissionDataList.vue'
|
|
22
|
-
import * as QPermissionDataEdit from './QPermissionDataList/src/QPermissionDataEdit.vue'
|
|
23
|
-
import * as QPermissionDataAuth from './QPermissionDataList/src/QPermissionDataAuth.vue'
|
|
24
|
-
import * as QPurchaseNoticeTemplateList from './QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue'
|
|
25
|
-
import * as QElsTenantPortalNewsList from './QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue'
|
|
26
|
-
import * as QElsTenantPortalNewsEdit from './QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue'
|
|
27
|
-
import * as QElsTenantPortalNewsDetail from './QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue'
|
|
28
|
-
import * as QPurchaseNoticeList from './QPurchaseNoticeList/src/QPurchaseNoticeList.vue'
|
|
29
|
-
import * as QPurchaseNoticeEdit from './QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue'
|
|
30
|
-
import * as QPurchaseNoticeDetail from './QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue'
|
|
31
|
-
import * as QElsMsgRecordList from './QElsMsgRecordList/src/QElsMsgRecordList.vue'
|
|
32
|
-
import * as QElsMsgRecordDetail from './QElsMsgRecordList/src/QElsMsgRecordDetail.vue'
|
|
33
|
-
import * as QImChatGroupList from './QImChatGroupList/src/QImChatGroupList.vue'
|
|
34
|
-
import * as QElsEmailSendLogList from './QElsEmailSendLogList/src/QElsEmailSendLogList.vue'
|
|
35
|
-
import * as QQuartzJobList from './QQuartzJobList/src/QQuartzJobList.vue'
|
|
36
|
-
import * as QBackgroundFileTaskList from './QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue'
|
|
37
|
-
import * as QMqRecordList from './QMqRecordList/src/QMqRecordList.vue'
|
|
38
|
-
import * as QUsageList from './QUsageList/src/QUsageList.vue'
|
|
39
|
-
export {
|
|
40
|
-
QcustomConfigEdit,
|
|
41
|
-
QcustomConfigList,
|
|
42
|
-
QsysConfigList,
|
|
43
|
-
QLoginLogList,
|
|
44
|
-
QOperateLogList,
|
|
45
|
-
QLoginSupplierLogList,
|
|
46
|
-
QLoginAbnormalLogList,
|
|
47
|
-
QIntegratedNodesList,
|
|
48
|
-
QIntegratedNodesEdit,
|
|
49
|
-
QIntegratedNodesDetail,
|
|
50
|
-
QIntegratedReportList,
|
|
51
|
-
QIntegratedReportSearchList,
|
|
52
|
-
QPasswordSecurityPolicy,
|
|
53
|
-
QI18nList,
|
|
54
|
-
QSupplierAccountList,
|
|
55
|
-
QAccountList,
|
|
56
|
-
QAccountEdit,
|
|
57
|
-
QAccountCreate,
|
|
58
|
-
QAccountDetail,
|
|
59
|
-
QRoleList,
|
|
60
|
-
QPermissionDataList,
|
|
61
|
-
QPermissionDataEdit,
|
|
62
|
-
QPermissionDataAuth,
|
|
63
|
-
QPurchaseNoticeTemplateList,
|
|
64
|
-
QElsTenantPortalNewsList,
|
|
65
|
-
QElsTenantPortalNewsEdit,
|
|
66
|
-
QElsTenantPortalNewsDetail,
|
|
67
|
-
QPurchaseNoticeList,
|
|
68
|
-
QPurchaseNoticeEdit,
|
|
69
|
-
QPurchaseNoticeDetail,
|
|
70
|
-
QElsMsgRecordList,
|
|
71
|
-
QElsMsgRecordDetail,
|
|
72
|
-
QImChatGroupList,
|
|
73
|
-
QElsEmailSendLogList,
|
|
74
|
-
QQuartzJobList,
|
|
75
|
-
QBackgroundFileTaskList,
|
|
76
|
-
QMqRecordList,
|
|
77
|
-
QUsageList,
|
|
78
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-page">
|
|
3
|
-
<q-detail-page-layout ref="layoutRef" v-bind="options"> </q-detail-page-layout>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
<script setup lang="ts">
|
|
7
|
-
import { ref, reactive } from 'vue'
|
|
8
|
-
import type { ComponentPublicInstance } from 'vue'
|
|
9
|
-
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
10
|
-
|
|
11
|
-
// 传参 props
|
|
12
|
-
const props = defineProps<{
|
|
13
|
-
currentRow: GlobalPageLayoutTypes.CurrentRow | null
|
|
14
|
-
userInfo: GlobalPageLayoutTypes.UserInfo
|
|
15
|
-
}>()
|
|
16
|
-
|
|
17
|
-
const currentRow = props.currentRow
|
|
18
|
-
? props.currentRow
|
|
19
|
-
: ref({
|
|
20
|
-
templateNumber: '',
|
|
21
|
-
templateVersion: 0,
|
|
22
|
-
templateAccount: '',
|
|
23
|
-
busAccount: '',
|
|
24
|
-
elsAccount: '',
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
// 编辑组件 ref
|
|
28
|
-
const layoutRef = ref<ComponentPublicInstance | null>(null)
|
|
29
|
-
|
|
30
|
-
// 配置
|
|
31
|
-
const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
|
|
32
|
-
/**
|
|
33
|
-
* 模块业务类型 string
|
|
34
|
-
* 取值根据各模块配置
|
|
35
|
-
* 当定义为"custom"时,使用本地配置
|
|
36
|
-
*/
|
|
37
|
-
businessType: 'integrated',
|
|
38
|
-
// 布局模式
|
|
39
|
-
pattern: 'vertical',
|
|
40
|
-
// 当前已选行数据a
|
|
41
|
-
currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
|
|
42
|
-
// 当前登录租户信息
|
|
43
|
-
userInfo: props.userInfo,
|
|
44
|
-
// 明细接口 -- 接口字符串
|
|
45
|
-
detailApi: '/integrated/integratedNodes/queryById',
|
|
46
|
-
// 本地页面数据配置
|
|
47
|
-
localConfig: {},
|
|
48
|
-
})
|
|
49
|
-
</script>
|