@qqt-product/system 0.0.1 → 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,117 +1,110 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
|
|
3
|
-
<CopyForm v-if="showItemInfoForm" @hide="showItemInfoForm = false" @afterHandleSaveSuccess="afterHandleSaveItemInfoSuccess"></CopyForm>
|
|
4
|
-
</template>
|
|
5
|
-
|
|
6
|
-
<script setup lang="ts">
|
|
7
|
-
import { reactive, ref } from 'vue'
|
|
8
|
-
import CopyForm from './form.vue'
|
|
9
|
-
import { GlobalListPageLayoutTypes } from '@qqt-product/ui'
|
|
10
|
-
|
|
11
|
-
const emit = defineEmits(['create', 'edit', 'copy', 'auth'])
|
|
12
|
-
const listLayoutRef = ref()
|
|
13
|
-
const showItemInfoForm = ref(false)
|
|
14
|
-
const apiUrls = reactive({
|
|
15
|
-
columnsCode: 'permissionGroupList',
|
|
16
|
-
list: '/account/permissionGroup/list',
|
|
17
|
-
})
|
|
18
|
-
const pageData = reactive({
|
|
19
|
-
statusConfig: {
|
|
20
|
-
show: false,
|
|
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
|
-
|
|
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
|
-
pagerConfig: {},
|
|
112
|
-
})
|
|
113
|
-
// 保存成功后
|
|
114
|
-
const afterHandleSaveItemInfoSuccess = () => {
|
|
115
|
-
listLayoutRef.value.fetchListData()
|
|
116
|
-
}
|
|
117
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<q-list-layout ref="listLayoutRef" :pageData="pageData" :apiUrls="apiUrls" />
|
|
3
|
+
<CopyForm v-if="showItemInfoForm" @hide="showItemInfoForm = false" @afterHandleSaveSuccess="afterHandleSaveItemInfoSuccess"></CopyForm>
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import { reactive, ref } from 'vue'
|
|
8
|
+
import CopyForm from './form.vue'
|
|
9
|
+
import type { GlobalListPageLayoutTypes } from '@qqt-product/ui'
|
|
10
|
+
|
|
11
|
+
const emit = defineEmits(['create', 'edit', 'copy', 'auth'])
|
|
12
|
+
const listLayoutRef = ref()
|
|
13
|
+
const showItemInfoForm = ref(false)
|
|
14
|
+
const apiUrls = reactive({
|
|
15
|
+
columnsCode: 'permissionGroupList',
|
|
16
|
+
list: '/account/permissionGroup/list',
|
|
17
|
+
})
|
|
18
|
+
const pageData = reactive({
|
|
19
|
+
statusConfig: {
|
|
20
|
+
show: false,
|
|
21
|
+
},
|
|
22
|
+
optionConfig: {
|
|
23
|
+
options: [
|
|
24
|
+
{
|
|
25
|
+
authorityCode: 'system#permissionGroup:add',
|
|
26
|
+
type: 'edit',
|
|
27
|
+
title: '编辑',
|
|
28
|
+
click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
29
|
+
const payload = {
|
|
30
|
+
row,
|
|
31
|
+
}
|
|
32
|
+
emit('edit', payload)
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
authorityCode: 'system#permissionGroup:copy',
|
|
37
|
+
title: '复制',
|
|
38
|
+
click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
39
|
+
const payload = {
|
|
40
|
+
row,
|
|
41
|
+
}
|
|
42
|
+
showItemInfoForm.value = true
|
|
43
|
+
emit('copy', payload)
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: 'delete',
|
|
48
|
+
title: '删除',
|
|
49
|
+
authorityCode: 'system#permissionGroup:delete',
|
|
50
|
+
args: {
|
|
51
|
+
url: '/account/permissionGroup/delete',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
// {
|
|
55
|
+
// authorityCode: 'system#permissionGroup:authUser',
|
|
56
|
+
// type: 'edit',
|
|
57
|
+
// title: '用户配置',
|
|
58
|
+
// click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
59
|
+
// const payload = {
|
|
60
|
+
// row,
|
|
61
|
+
// }
|
|
62
|
+
// emit('auth', payload)
|
|
63
|
+
// },
|
|
64
|
+
// },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
buttonConfig: {
|
|
68
|
+
buttons: [
|
|
69
|
+
{
|
|
70
|
+
authorityCode: 'system#permissionGroup:add',
|
|
71
|
+
label: '新增',
|
|
72
|
+
icon: {
|
|
73
|
+
type: 'icon-Q-add',
|
|
74
|
+
},
|
|
75
|
+
attrs: {
|
|
76
|
+
type: 'primary',
|
|
77
|
+
},
|
|
78
|
+
click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
79
|
+
const payload = {
|
|
80
|
+
row,
|
|
81
|
+
}
|
|
82
|
+
emit('create', payload)
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: '列自定义',
|
|
87
|
+
icon: {
|
|
88
|
+
type: 'icon-Q-setting',
|
|
89
|
+
},
|
|
90
|
+
type: 'setting',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
queryConfig: {
|
|
95
|
+
form: [
|
|
96
|
+
{
|
|
97
|
+
type: 'input',
|
|
98
|
+
label: '数据权限组',
|
|
99
|
+
fieldName: 'keyWord',
|
|
100
|
+
placeholder: '请输入权限组名称/编码',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
pagerConfig: {},
|
|
105
|
+
})
|
|
106
|
+
// 保存成功后
|
|
107
|
+
const afterHandleSaveItemInfoSuccess = () => {
|
|
108
|
+
listLayoutRef.value.fetchListData()
|
|
109
|
+
}
|
|
110
|
+
</script>
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<vxe-modal v-model="showModal" :width="800" :title="srmI18n('i18n_field_BRWFbWV_c80c7b10', '复制数据权限组')" :hide="hideModal">
|
|
3
|
-
<template #default>
|
|
4
|
-
<vxe-form title-colon title-align="right" title-width="160" :data="itemInfo.formData" :rules="itemInfo.formRules" :loading="itemInfo.loading" @submit="submitEvent">
|
|
5
|
-
<vxe-form-gather span="24">
|
|
6
|
-
<vxe-form-item :title="srmI18n('i18n_field_bWVAo_f564cee2', '权限组编码')" field="groupCode" span="24">
|
|
7
|
-
<template #default="{ data }">
|
|
8
|
-
<vxe-input v-model="data.groupCode" type="text" clearable></vxe-input>
|
|
9
|
-
</template>
|
|
10
|
-
</vxe-form-item>
|
|
11
|
-
<vxe-form-item :title="srmI18n('i18n_field_bWVRL_f55f9aba', '权限组名称')" field="groupName" span="24">
|
|
12
|
-
<template #default="{ data }">
|
|
13
|
-
<vxe-input v-model="data.groupName" type="text" clearable></vxe-input>
|
|
14
|
-
</template>
|
|
15
|
-
</vxe-form-item>
|
|
16
|
-
</vxe-form-gather>
|
|
17
|
-
<vxe-form-item align="center" span="24">
|
|
18
|
-
<template #default>
|
|
19
|
-
<vxe-button :content="srmI18n('i18n_title_cancle', '取消')" @click="hideModal"></vxe-button>
|
|
20
|
-
<vxe-button type="submit" status="primary" :content="srmI18n('i18n_title_save', '保存')"></vxe-button>
|
|
21
|
-
</template>
|
|
22
|
-
</vxe-form-item>
|
|
23
|
-
</vxe-form>
|
|
24
|
-
</template>
|
|
25
|
-
</vxe-modal>
|
|
26
|
-
</template>
|
|
27
|
-
<script lang="ts">
|
|
28
|
-
import { defineComponent, reactive, ref, inject } from 'vue'
|
|
29
|
-
import { VXETable, VxeFormEvents, VxeFormPropTypes } from 'vxe-table'
|
|
30
|
-
import qqtApi from '@qqt-product/api'
|
|
31
|
-
export default defineComponent({
|
|
32
|
-
name: 'ParamConfigForm',
|
|
33
|
-
props: {
|
|
34
|
-
title: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: '',
|
|
37
|
-
},
|
|
38
|
-
currentRow: {
|
|
39
|
-
type: Object,
|
|
40
|
-
},
|
|
41
|
-
configurationClassificationList: {
|
|
42
|
-
type: Object,
|
|
43
|
-
},
|
|
44
|
-
itemTypeList: {
|
|
45
|
-
type: Object,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
setup(props, { emit }) {
|
|
49
|
-
const qHttp: qqtApi.Request = qqtApi.useHttp()
|
|
50
|
-
const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
|
|
51
|
-
if (i18nKey) {
|
|
52
|
-
if (account) {
|
|
53
|
-
return account + defaultValue
|
|
54
|
-
}
|
|
55
|
-
return defaultValue
|
|
56
|
-
}
|
|
57
|
-
return defaultValue
|
|
58
|
-
})
|
|
59
|
-
const modalTitle = ref(props.title)
|
|
60
|
-
const showModal = ref(true)
|
|
61
|
-
const hideModal = () => {
|
|
62
|
-
emit('hide', false)
|
|
63
|
-
}
|
|
64
|
-
const itemInfo = reactive({
|
|
65
|
-
loading: false,
|
|
66
|
-
formData: {
|
|
67
|
-
groupCode: '',
|
|
68
|
-
groupName: '',
|
|
69
|
-
id: '',
|
|
70
|
-
},
|
|
71
|
-
formRules: {
|
|
72
|
-
groupName: [{ required: true, message: srmI18n('i18n_field_VWNbWVRL_533015f1', '请输入权限组名称') }],
|
|
73
|
-
groupCode: [{ required: true, message: srmI18n('18n_field_VWNbWVAo_53354a19', '请输入权限组编码') }],
|
|
74
|
-
} as VxeFormPropTypes.Rules,
|
|
75
|
-
})
|
|
76
|
-
itemInfo.formData = Object.assign({}, itemInfo.formData, props.currentRow)
|
|
77
|
-
// 保存
|
|
78
|
-
const save = async () => {
|
|
79
|
-
itemInfo.loading = true
|
|
80
|
-
const res = await qHttp.post({ url: '/account/permissionGroup/copy', data: itemInfo.formData })
|
|
81
|
-
if (res && res.success) {
|
|
82
|
-
VXETable.modal.message({ content: res.message, status: 'success' })
|
|
83
|
-
hideModal()
|
|
84
|
-
emit('afterHandleSaveSuccess')
|
|
85
|
-
} else {
|
|
86
|
-
VXETable.modal.message({ content: res.message, status: 'error' })
|
|
87
|
-
}
|
|
88
|
-
itemInfo.loading = false
|
|
89
|
-
}
|
|
90
|
-
const submitEvent: VxeFormEvents.Submit = () => {
|
|
91
|
-
save()
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
modalTitle,
|
|
95
|
-
showModal,
|
|
96
|
-
hideModal,
|
|
97
|
-
itemInfo,
|
|
98
|
-
save,
|
|
99
|
-
submitEvent,
|
|
100
|
-
srmI18n,
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
})
|
|
104
|
-
</script>
|
|
105
|
-
<style lang="scss" scoped>
|
|
106
|
-
:deep(.vxe-form--gather) {
|
|
107
|
-
padding: 20px 0px;
|
|
108
|
-
}
|
|
109
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<vxe-modal v-model="showModal" :width="800" :title="srmI18n('i18n_field_BRWFbWV_c80c7b10', '复制数据权限组')" :hide="hideModal">
|
|
3
|
+
<template #default>
|
|
4
|
+
<vxe-form title-colon title-align="right" title-width="160" :data="itemInfo.formData" :rules="itemInfo.formRules" :loading="itemInfo.loading" @submit="submitEvent">
|
|
5
|
+
<vxe-form-gather span="24">
|
|
6
|
+
<vxe-form-item :title="srmI18n('i18n_field_bWVAo_f564cee2', '权限组编码')" field="groupCode" span="24">
|
|
7
|
+
<template #default="{ data }">
|
|
8
|
+
<vxe-input v-model="data.groupCode" type="text" clearable></vxe-input>
|
|
9
|
+
</template>
|
|
10
|
+
</vxe-form-item>
|
|
11
|
+
<vxe-form-item :title="srmI18n('i18n_field_bWVRL_f55f9aba', '权限组名称')" field="groupName" span="24">
|
|
12
|
+
<template #default="{ data }">
|
|
13
|
+
<vxe-input v-model="data.groupName" type="text" clearable></vxe-input>
|
|
14
|
+
</template>
|
|
15
|
+
</vxe-form-item>
|
|
16
|
+
</vxe-form-gather>
|
|
17
|
+
<vxe-form-item align="center" span="24">
|
|
18
|
+
<template #default>
|
|
19
|
+
<vxe-button :content="srmI18n('i18n_title_cancle', '取消')" @click="hideModal"></vxe-button>
|
|
20
|
+
<vxe-button type="submit" status="primary" :content="srmI18n('i18n_title_save', '保存')"></vxe-button>
|
|
21
|
+
</template>
|
|
22
|
+
</vxe-form-item>
|
|
23
|
+
</vxe-form>
|
|
24
|
+
</template>
|
|
25
|
+
</vxe-modal>
|
|
26
|
+
</template>
|
|
27
|
+
<script lang="ts">
|
|
28
|
+
import { defineComponent, reactive, ref, inject } from 'vue'
|
|
29
|
+
import { VXETable, VxeFormEvents, VxeFormPropTypes } from 'vxe-table'
|
|
30
|
+
import qqtApi from '@qqt-product/api'
|
|
31
|
+
export default defineComponent({
|
|
32
|
+
name: 'ParamConfigForm',
|
|
33
|
+
props: {
|
|
34
|
+
title: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: '',
|
|
37
|
+
},
|
|
38
|
+
currentRow: {
|
|
39
|
+
type: Object,
|
|
40
|
+
},
|
|
41
|
+
configurationClassificationList: {
|
|
42
|
+
type: Object,
|
|
43
|
+
},
|
|
44
|
+
itemTypeList: {
|
|
45
|
+
type: Object,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
setup(props, { emit }) {
|
|
49
|
+
const qHttp: qqtApi.Request = qqtApi.useHttp()
|
|
50
|
+
const srmI18n = inject('Q_SRM_I18N', (i18nKey: string, defaultValue: string, account?: string | number): string => {
|
|
51
|
+
if (i18nKey) {
|
|
52
|
+
if (account) {
|
|
53
|
+
return account + defaultValue
|
|
54
|
+
}
|
|
55
|
+
return defaultValue
|
|
56
|
+
}
|
|
57
|
+
return defaultValue
|
|
58
|
+
})
|
|
59
|
+
const modalTitle = ref(props.title)
|
|
60
|
+
const showModal = ref(true)
|
|
61
|
+
const hideModal = () => {
|
|
62
|
+
emit('hide', false)
|
|
63
|
+
}
|
|
64
|
+
const itemInfo = reactive({
|
|
65
|
+
loading: false,
|
|
66
|
+
formData: {
|
|
67
|
+
groupCode: '',
|
|
68
|
+
groupName: '',
|
|
69
|
+
id: '',
|
|
70
|
+
},
|
|
71
|
+
formRules: {
|
|
72
|
+
groupName: [{ required: true, message: srmI18n('i18n_field_VWNbWVRL_533015f1', '请输入权限组名称') }],
|
|
73
|
+
groupCode: [{ required: true, message: srmI18n('18n_field_VWNbWVAo_53354a19', '请输入权限组编码') }],
|
|
74
|
+
} as VxeFormPropTypes.Rules,
|
|
75
|
+
})
|
|
76
|
+
itemInfo.formData = Object.assign({}, itemInfo.formData, props.currentRow)
|
|
77
|
+
// 保存
|
|
78
|
+
const save = async () => {
|
|
79
|
+
itemInfo.loading = true
|
|
80
|
+
const res = await qHttp.post({ url: '/account/permissionGroup/copy', data: itemInfo.formData })
|
|
81
|
+
if (res && res.success) {
|
|
82
|
+
VXETable.modal.message({ content: res.message, status: 'success' })
|
|
83
|
+
hideModal()
|
|
84
|
+
emit('afterHandleSaveSuccess')
|
|
85
|
+
} else {
|
|
86
|
+
VXETable.modal.message({ content: res.message, status: 'error' })
|
|
87
|
+
}
|
|
88
|
+
itemInfo.loading = false
|
|
89
|
+
}
|
|
90
|
+
const submitEvent: VxeFormEvents.Submit = () => {
|
|
91
|
+
save()
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
modalTitle,
|
|
95
|
+
showModal,
|
|
96
|
+
hideModal,
|
|
97
|
+
itemInfo,
|
|
98
|
+
save,
|
|
99
|
+
submitEvent,
|
|
100
|
+
srmI18n,
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
})
|
|
104
|
+
</script>
|
|
105
|
+
<style lang="scss" scoped>
|
|
106
|
+
:deep(.vxe-form--gather) {
|
|
107
|
+
padding: 20px 0px;
|
|
108
|
+
}
|
|
109
|
+
</style>
|