@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.
Files changed (105) hide show
  1. package/dist/index.es.js +53240 -10634
  2. package/dist/index.umd.js +94 -21
  3. package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +2878 -0
  4. package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +2871 -0
  5. package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +2878 -0
  6. package/dist/lib/components/QAccountList/src/QAccountList.vue.d.ts +23 -4
  7. package/dist/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue.d.ts +9 -4
  8. package/dist/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue.d.ts +9 -4
  9. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +2864 -0
  10. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue.d.ts +2 -3
  11. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +2864 -0
  12. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +2876 -0
  13. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +29 -14
  14. package/dist/lib/components/QI18nList/src/QI18nList.vue.d.ts +2 -6
  15. package/dist/lib/components/QImChatGroupList/src/QImChatGroupList.vue.d.ts +5 -8
  16. package/dist/lib/components/QMqRecordList/src/QMqRecordList.vue.d.ts +9 -4
  17. package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +2872 -0
  18. package/dist/lib/components/QPermissionDataList/src/QPermissionDataList.vue.d.ts +126 -0
  19. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +2864 -0
  20. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +2887 -0
  21. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +25 -5
  22. package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +7 -0
  23. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +221 -28
  24. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue.d.ts +45 -0
  25. package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +24 -5
  26. package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +23 -7
  27. package/dist/lib/components/QRoleList/src/useConfigData.d.ts +1 -11
  28. package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +7 -3
  29. package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +15 -35
  30. package/dist/lib/components/QUsageList/src/useConfigData.d.ts +111 -10
  31. package/dist/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue.d.ts +25 -0
  32. package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +9 -10
  33. package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +1209 -0
  34. package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +1 -1
  35. package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +8 -7
  36. package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +2 -3
  37. package/dist/lib/components/index.d.ts +2 -2
  38. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +2863 -0
  39. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +2872 -0
  40. package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +8 -11
  41. package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +16 -10
  42. package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +2 -9
  43. package/dist/lib/components/loginLogList/src/index.vue.d.ts +2 -8
  44. package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +2 -12
  45. package/dist/lib/components/operateLogList/src/index.vue.d.ts +2 -13
  46. package/dist/style.css +1 -1
  47. package/dist/vite-env.d.ts +13 -13
  48. package/package.json +13 -11
  49. package/src/lib/components/QAccountList/src/QAccountCreate.vue +272 -0
  50. package/src/lib/components/QAccountList/src/QAccountDetail.vue +82 -14
  51. package/src/lib/components/QAccountList/src/QAccountEdit.vue +65 -33
  52. package/src/lib/components/QAccountList/src/QAccountList.vue +532 -530
  53. package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +143 -137
  54. package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +172 -166
  55. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +123 -124
  56. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +66 -18
  57. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +151 -122
  58. package/src/lib/components/QI18nList/src/QI18nList.vue +365 -361
  59. package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +103 -94
  60. package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +109 -105
  61. package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +3 -3
  62. package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +218 -221
  63. package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +110 -117
  64. package/src/lib/components/QPermissionDataList/src/form.vue +109 -109
  65. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +1 -1
  66. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +120 -32
  67. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +189 -163
  68. package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +84 -0
  69. package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +22 -22
  70. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +134 -85
  71. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +91 -0
  72. package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +276 -263
  73. package/src/lib/components/QRoleList/src/QRoleList.vue +332 -288
  74. package/src/lib/components/QRoleList/src/useConfigData.ts +1 -6
  75. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +304 -302
  76. package/src/lib/components/QUsageList/src/QUsageList.vue +287 -82
  77. package/src/lib/components/QUsageList/src/useConfigData.ts +147 -13
  78. package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +140 -140
  79. package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +28 -28
  80. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +130 -42
  81. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +2 -2
  82. package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +2 -2
  83. package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +12 -12
  84. package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +276 -268
  85. package/src/lib/components/QcustomConfigList/src/useConfigData.ts +1 -1
  86. package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +124 -125
  87. package/src/lib/components/index.ts +78 -78
  88. package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +2 -10
  89. package/src/lib/components/integratedNodesList/src/index.vue +130 -136
  90. package/src/lib/components/integratedReportList/src/index.vue +55 -30
  91. package/src/lib/components/integratedReportSearchList/src/index.vue +106 -66
  92. package/src/lib/components/loginAbnormalLogList/src/index.vue +43 -50
  93. package/src/lib/components/loginLogList/src/index.vue +51 -57
  94. package/src/lib/components/loginSupplierLogList/src/index.vue +53 -63
  95. package/src/lib/components/operateLogList/src/index.vue +46 -57
  96. package/src/vite-env.d.ts +13 -13
  97. package/tsconfig.json +24 -24
  98. package/vite.config.ts +1 -1
  99. package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +0 -80
  100. package/dist/lib/components/QCompanyermissionList/src/types.d.ts +0 -44
  101. package/dist/lib/components/integratedReportList/src/index.vue.d.ts +0 -70
  102. package/src/lib/components/QCompanyermissionList/src/editTree.vue +0 -291
  103. package/src/lib/components/QCompanyermissionList/src/form.vue +0 -238
  104. package/src/lib/components/QCompanyermissionList/src/index.vue +0 -309
  105. 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
- optColumn: {
23
- attrs: {},
24
- extend: {},
25
- optColumnList: [
26
- {
27
- authorityCode: 'system#permissionGroup:add',
28
- type: 'edit',
29
- title: '编辑',
30
- click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
31
- const payload = {
32
- row,
33
- }
34
- emit('edit', payload)
35
- },
36
- },
37
- {
38
- authorityCode: 'system#permissionGroup:copy',
39
- title: '复制',
40
- click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
41
- const payload = {
42
- row,
43
- }
44
- showItemInfoForm.value = true
45
- emit('copy', payload)
46
- },
47
- },
48
- {
49
- type: 'delete',
50
- title: '删除',
51
- authorityCode: 'system#permissionGroup:delete',
52
- args: {
53
- url: '/account/permissionGroup/delete',
54
- },
55
- },
56
- // {
57
- // authorityCode: 'system#permissionGroup:authUser',
58
- // type: 'edit',
59
- // title: '用户配置',
60
- // click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
61
- // const payload = {
62
- // row,
63
- // }
64
- // emit('auth', payload)
65
- // },
66
- // },
67
- ],
68
- },
69
- buttonConfig: {
70
- attrs: {},
71
- extend: {},
72
- buttons: [
73
- {
74
- authorityCode: 'system#permissionGroup:add',
75
- label: '新增',
76
- icon: {
77
- type: 'icon-Q-add',
78
- },
79
- attrs: {
80
- type: 'primary',
81
- },
82
- click({ row }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
83
- const payload = {
84
- row,
85
- }
86
- emit('create', payload)
87
- },
88
- },
89
- {
90
- label: '列自定义',
91
- icon: {
92
- type: 'icon-Q-setting',
93
- },
94
- type: 'setting',
95
- },
96
- ],
97
- },
98
- queryConfig: {
99
- attrs: {},
100
- extend: {},
101
- form: [
102
- {
103
- type: 'input',
104
- label: '数据权限组',
105
- fieldName: 'keyWord',
106
- placeholder: '请输入权限组名称/编码',
107
- },
108
- ],
109
- formState: {},
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>
@@ -129,7 +129,7 @@ const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
129
129
  },
130
130
  {
131
131
  groupCode: 'baseForm',
132
- fieldType: 'textArea',
132
+ fieldType: 'editor',
133
133
  fieldLabel: '',
134
134
  fieldName: 'noticeContent',
135
135
  },