@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
|
@@ -15,10 +15,8 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
15
15
|
statusConfig: {
|
|
16
16
|
show: boolean;
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
extend: {};
|
|
21
|
-
optColumnList: ({
|
|
18
|
+
optionConfig: {
|
|
19
|
+
options: ({
|
|
22
20
|
authorityCode: string;
|
|
23
21
|
type: string;
|
|
24
22
|
title: string;
|
|
@@ -43,14 +41,15 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
43
41
|
})[];
|
|
44
42
|
};
|
|
45
43
|
buttonConfig: {
|
|
46
|
-
attrs: {};
|
|
47
|
-
extend: {};
|
|
48
44
|
buttons: ({
|
|
49
45
|
authorityCode: string;
|
|
50
46
|
label: string;
|
|
51
47
|
icon: {
|
|
52
48
|
type: string;
|
|
53
49
|
};
|
|
50
|
+
attrs: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
54
53
|
args: {
|
|
55
54
|
businessType: string;
|
|
56
55
|
};
|
|
@@ -61,6 +60,7 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
61
60
|
label: string;
|
|
62
61
|
click: () => void;
|
|
63
62
|
icon?: undefined;
|
|
63
|
+
attrs?: undefined;
|
|
64
64
|
args?: undefined;
|
|
65
65
|
type?: undefined;
|
|
66
66
|
} | {
|
|
@@ -68,6 +68,7 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
68
68
|
click: () => void;
|
|
69
69
|
authorityCode?: undefined;
|
|
70
70
|
icon?: undefined;
|
|
71
|
+
attrs?: undefined;
|
|
71
72
|
args?: undefined;
|
|
72
73
|
type?: undefined;
|
|
73
74
|
} | {
|
|
@@ -77,22 +78,18 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
77
78
|
};
|
|
78
79
|
type: string;
|
|
79
80
|
authorityCode?: undefined;
|
|
81
|
+
attrs?: undefined;
|
|
80
82
|
args?: undefined;
|
|
81
83
|
click?: undefined;
|
|
82
84
|
})[];
|
|
83
85
|
};
|
|
84
86
|
queryConfig: {
|
|
85
|
-
attrs: {};
|
|
86
|
-
extend: {};
|
|
87
87
|
form: {
|
|
88
88
|
type: string;
|
|
89
89
|
label: string;
|
|
90
90
|
fieldName: string;
|
|
91
91
|
placeholder: string;
|
|
92
92
|
}[];
|
|
93
|
-
formState: {
|
|
94
|
-
keyWord: string;
|
|
95
|
-
};
|
|
96
93
|
};
|
|
97
94
|
pagerConfig: {};
|
|
98
95
|
};
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
+
import type { MessageType } from 'ant-design-vue/lib/message';
|
|
1
2
|
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import qqtApi from '@qqt-product/api';
|
|
2
4
|
declare const _sfc_main: DefineComponent<{}, {
|
|
5
|
+
srmI18n: (i18nKey: string, defaultValue: string, account?: string | number) => string;
|
|
3
6
|
listLayoutRef: Ref<any>;
|
|
7
|
+
qHttp: qqtApi.Request;
|
|
8
|
+
refreshNodes: () => void;
|
|
4
9
|
apiUrls: {
|
|
5
10
|
columnsCode: string;
|
|
6
|
-
list:
|
|
11
|
+
list: {
|
|
12
|
+
url: string;
|
|
13
|
+
method: string;
|
|
14
|
+
};
|
|
7
15
|
};
|
|
8
16
|
pageData: {
|
|
9
17
|
statusConfig: {
|
|
10
18
|
show: boolean;
|
|
11
19
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
extend: {};
|
|
15
|
-
optColumnList: never[];
|
|
20
|
+
optionConfig: {
|
|
21
|
+
options: never[];
|
|
16
22
|
};
|
|
17
23
|
buttonConfig: {
|
|
18
|
-
attrs: {};
|
|
19
|
-
extend: {};
|
|
20
24
|
buttons: ({
|
|
21
25
|
authorityCode: string;
|
|
22
26
|
label: string;
|
|
@@ -34,28 +38,30 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
34
38
|
})[];
|
|
35
39
|
};
|
|
36
40
|
queryConfig: {
|
|
37
|
-
|
|
38
|
-
extend: {};
|
|
41
|
+
customSearch: (formState: any) => MessageType | undefined;
|
|
39
42
|
form: ({
|
|
40
43
|
type: string;
|
|
41
44
|
dictCode: string;
|
|
42
45
|
label: string;
|
|
43
46
|
fieldName: string;
|
|
44
47
|
placeholder: string;
|
|
48
|
+
change: (val: any) => void;
|
|
45
49
|
} | {
|
|
46
50
|
type: string;
|
|
47
51
|
label: string;
|
|
48
52
|
fieldName: string;
|
|
49
53
|
placeholder: string;
|
|
50
54
|
dictCode?: undefined;
|
|
55
|
+
change?: undefined;
|
|
51
56
|
})[];
|
|
52
57
|
formState: {
|
|
53
58
|
dataJson: string;
|
|
54
|
-
businessDataType: string;
|
|
55
59
|
businessTypeCore: string;
|
|
60
|
+
businessDataType: string;
|
|
56
61
|
};
|
|
57
62
|
};
|
|
58
63
|
pagerConfig: {};
|
|
59
64
|
};
|
|
65
|
+
businessTypeCoreChange: (val: any) => void;
|
|
60
66
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
61
67
|
export default _sfc_main;
|
|
@@ -3,20 +3,15 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
3
3
|
apiUrls: {
|
|
4
4
|
columnsCode: string;
|
|
5
5
|
list: string;
|
|
6
|
-
countTabsUrl: string;
|
|
7
6
|
};
|
|
8
7
|
pageData: {
|
|
9
8
|
statusConfig: {
|
|
10
9
|
show: boolean;
|
|
11
10
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
extend: {};
|
|
15
|
-
optColumnList: never[];
|
|
11
|
+
optionConfig: {
|
|
12
|
+
options: never[];
|
|
16
13
|
};
|
|
17
14
|
buttonConfig: {
|
|
18
|
-
attrs: {};
|
|
19
|
-
extend: {};
|
|
20
15
|
buttons: {
|
|
21
16
|
label: string;
|
|
22
17
|
icon: {
|
|
@@ -26,8 +21,6 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
26
21
|
}[];
|
|
27
22
|
};
|
|
28
23
|
queryConfig: {
|
|
29
|
-
attrs: {};
|
|
30
|
-
extend: {};
|
|
31
24
|
form: {
|
|
32
25
|
type: string;
|
|
33
26
|
label: string;
|
|
@@ -9,14 +9,10 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
9
9
|
statusConfig: {
|
|
10
10
|
show: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
extend: {};
|
|
15
|
-
optColumnList: never[];
|
|
12
|
+
optionConfig: {
|
|
13
|
+
options: never[];
|
|
16
14
|
};
|
|
17
15
|
buttonConfig: {
|
|
18
|
-
attrs: {};
|
|
19
|
-
extend: {};
|
|
20
16
|
buttons: {
|
|
21
17
|
label: string;
|
|
22
18
|
icon: {
|
|
@@ -26,8 +22,6 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
26
22
|
}[];
|
|
27
23
|
};
|
|
28
24
|
queryConfig: {
|
|
29
|
-
attrs: {};
|
|
30
|
-
extend: {};
|
|
31
25
|
form: {
|
|
32
26
|
type: string;
|
|
33
27
|
label: string;
|
|
@@ -9,14 +9,10 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
9
9
|
statusConfig: {
|
|
10
10
|
show: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
extend: {};
|
|
15
|
-
optColumnList: never[];
|
|
12
|
+
optionConfig: {
|
|
13
|
+
options: never[];
|
|
16
14
|
};
|
|
17
15
|
buttonConfig: {
|
|
18
|
-
attrs: {};
|
|
19
|
-
extend: {};
|
|
20
16
|
buttons: {
|
|
21
17
|
label: string;
|
|
22
18
|
icon: {
|
|
@@ -26,18 +22,12 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
26
22
|
}[];
|
|
27
23
|
};
|
|
28
24
|
queryConfig: {
|
|
29
|
-
attrs: {};
|
|
30
|
-
extend: {};
|
|
31
25
|
form: {
|
|
32
26
|
type: string;
|
|
33
27
|
label: string;
|
|
34
28
|
fieldName: string;
|
|
35
29
|
placeholder: string;
|
|
36
30
|
}[];
|
|
37
|
-
formState: {
|
|
38
|
-
supplierName: string;
|
|
39
|
-
logMonth: string;
|
|
40
|
-
};
|
|
41
31
|
};
|
|
42
32
|
pagerConfig: {};
|
|
43
33
|
};
|
|
@@ -9,14 +9,10 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
9
9
|
statusConfig: {
|
|
10
10
|
show: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
extend: {};
|
|
15
|
-
optColumnList: never[];
|
|
12
|
+
optionConfig: {
|
|
13
|
+
options: never[];
|
|
16
14
|
};
|
|
17
15
|
buttonConfig: {
|
|
18
|
-
attrs: {};
|
|
19
|
-
extend: {};
|
|
20
16
|
buttons: {
|
|
21
17
|
label: string;
|
|
22
18
|
icon: {
|
|
@@ -26,8 +22,6 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
26
22
|
}[];
|
|
27
23
|
};
|
|
28
24
|
queryConfig: {
|
|
29
|
-
attrs: {};
|
|
30
|
-
extend: {};
|
|
31
25
|
form: ({
|
|
32
26
|
type: string;
|
|
33
27
|
label: string;
|
|
@@ -41,11 +35,6 @@ declare const _sfc_main: DefineComponent<{}, {
|
|
|
41
35
|
dictCode: string;
|
|
42
36
|
placeholder: string;
|
|
43
37
|
})[];
|
|
44
|
-
formState: {
|
|
45
|
-
keyWord: string;
|
|
46
|
-
operateType: string;
|
|
47
|
-
logType: number;
|
|
48
|
-
};
|
|
49
38
|
};
|
|
50
39
|
pagerConfig: {};
|
|
51
40
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tempale-preview-modal[data-v-0b6ebd5b] .page-container .edit-page .ant-spin-nested-loading{height:600px}.tempale-preview-modal[data-v-0b6ebd5b] .ant-form-item-control-wrapper{width:150px}.page-container .ant-btn+.ant-btn[data-v-
|
|
1
|
+
.tempale-preview-modal[data-v-0b6ebd5b] .page-container .edit-page .ant-spin-nested-loading{height:600px}.tempale-preview-modal[data-v-0b6ebd5b] .ant-form-item-control-wrapper{width:150px}.page-container .ant-btn+.ant-btn[data-v-445f4da3]{margin-left:8px}.page-container[data-v-445f4da3] .ant-select-selection{position:relative;z-index:1}.page-container .business-tips[data-v-445f4da3]{width:64.6%;margin:0 auto 10px}.page-container[data-v-445f4da3] .ant-input-affix-wrapper .ant-input-suffix{z-index:1}.page-container .skeleton-wrap[data-v-445f4da3]{margin-top:100px;text-align:center;line-height:100px}.switch-config .switch-config-item[data-v-445f4da3]{display:flex;justify-content:space-between;border-bottom:1px dashed #eee;padding:10px 0}.switch-config>div[data-v-445f4da3]:first-child{padding-top:0}.verify-config[data-v-445f4da3]{margin-bottom:20px}.verify-config .tab-clo-left[data-v-445f4da3]{padding-right:10px;text-align:right;line-height:32px}.content-step-one[data-v-445f4da3]{justify-content:center}.code-editror-flex-row[data-v-445f4da3]{display:block}.progress[data-v-6a21d026]{text-align:center}.password-security-policy[data-v-bc4a98ce]{height:100%}.password-security-policy-breadcrumb[data-v-bc4a98ce]{height:44px;display:flex;justify-content:flex-end;align-items:center;padding-left:16px;padding-right:25px;background:white}.password-security-policy-content[data-v-bc4a98ce]{padding:8px}.password-security-policy-form[data-v-bc4a98ce]{background:white;padding:0 16px}.password-security-policy-form .item[data-v-bc4a98ce]{display:flex;justify-content:space-between;align-items:center;padding:0 18px;border-bottom:1px dashed #dadada}.password-security-policy-form .item .desc[data-v-bc4a98ce]{padding:16px 0}.password-security-policy-form .item .desc .tit[data-v-bc4a98ce]{color:#454f59;font-weight:500;font-size:14px;line-height:14px}.password-security-policy-form .item .desc .tip[data-v-bc4a98ce]{font-weight:400;font-size:12px;line-height:12px;color:#454f5999;margin-top:8px}.password-security-policy-form .item .type[data-v-bc4a98ce]{font-weight:400;font-size:12px;line-height:12px;color:#454f5999;display:flex;align-items:center}.password-security-policy .red[data-v-bc4a98ce]{color:red}.password-security-policy .ant-input-number[data-v-bc4a98ce]{margin-left:16px;width:60px}.password-security-policy .ant-btn+.ant-btn[data-v-bc4a98ce]{margin-left:8px}[data-v-b66225c6] .vxe-form--gather,[data-v-b3e4afb1] .vxe-form--gather{padding:20px 0}.content-Header{width:100%;position:sticky;top:0;z-index:99;box-shadow:0 3px 12px #626bb540}.content-Header.posA{position:absolute;left:0;top:0}.content-Header .topWrap{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:10px 24px 10px 10px}.content-Header .topWrap .box{display:flex;align-items:center}.content-Header .topWrap .extra+.menu{margin-left:24px}.content-Header .topWrap .menu{text-align:right}.UserAuthorization{position:relative}.UserAuthorization .ant-checkbox-wrapper{color:#000000a6}.UserAuthorization .title{padding-left:16px;margin-bottom:16px}.UserAuthorization .title>strong{font-size:18px;color:#4d72ff}.UserAuthorization .title>span{font-size:12px;color:#b9bcc1;margin-left:22px}.UserAuthorization .container{padding:8px}.UserAuthorization .pageBox{background:#fff;padding:16px 16px 32px;min-height:calc(100vh - 158px)}.UserAuthorization .level[class*=level_] .triangle{margin-right:8px;cursor:pointer}.UserAuthorization .level[class*=level_] .rotate90 .anticon{transform:rotate(90deg);transition:transform .3 ease-in-out}.UserAuthorization .level.level_1{display:flex;align-items:center;padding:16px 20px}.UserAuthorization .level.level_1:hover{background:rgba(254,206,0,.1)}.UserAuthorization .level.level_1 .info{display:flex;flex-direction:column;flex:1}.UserAuthorization .level.level_1 .info strong{font-size:14px;color:#454f59}.UserAuthorization .level.level_1 .info span.tip{font-size:12px;color:#454f5999;margin-top:8px}.UserAuthorization .level.level_1+.collapse.noneGrandchildren{padding:24px}.UserAuthorization .level.border{border-bottom:1px dashed #dadada}.UserAuthorization .level.level_2{display:flex}.UserAuthorization .level.level_2:not(:last-child){border-bottom:1px dashed #dadada}.UserAuthorization .level.level_2 .info{flex:0 0 150px;padding:22px 0 22px 20px;background-color:#f9f9f9}.UserAuthorization .level.level_2 .children{flex:1;margin-left:24px;padding:22px 20px 22px 0}.UserAuthorization .level_3+.level_3{margin-top:12px}.UserAuthorization .checkboxGroup{padding:12px 0 12px 36px}.UserAuthorization .collapse{min-height:70px;border:1px solid #dadcde}[data-v-556c5438] .vxe-form--gather{padding:20px 0}.card-container{background:#fff;overflow:hidden;padding:12px;position:relative;width:100%}.card-container .tab-layout-tabs.ant-tabs{border:1px solid #e6ebf5;padding:0}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-bar{margin:0;outline:none;border-bottom:none}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-bar .ant-tabs-nav-container{margin:0}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-bar .ant-tabs-nav-container .ant-tabs-tab{padding:0 24px!important;background-color:#f5f7fa!important;margin-right:0!important;border-radius:0;line-height:38px;border:1px solid transparent!important;border-bottom:1px solid #e6ebf5!important}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-bar .ant-tabs-nav-container .ant-tabs-tab-active.ant-tabs-tab{color:#409eff;background-color:#fff!important;border-right:1px solid #e6ebf5!important;border-left:1px solid #e6ebf5!important;border-bottom:1px solid #fff!important;font-weight:400;transition:none!important}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-tabpane{padding:15px}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-tabpane .ant-row{margin:10px 0}.card-container .tab-layout-tabs.ant-tabs .ant-tabs-tabpane .ant-select,.card-container .tab-layout-tabs.ant-tabs .ant-tabs-tabpane .ant-input-number{width:100px}.container-widthEn[data-v-13d22fe3]{width:755px}.container-widthCn[data-v-13d22fe3]{width:608px}.language[data-v-13d22fe3]{text-align:center;position:absolute;right:13px;top:13px;border:1px solid transparent;height:40px;line-height:38px;font-size:16px;color:#409eff;z-index:1;background:#f5f7fa;outline:none;width:47px;border-bottom:1px solid #e6ebf5;border-radius:0}.card-container .bottom[data-v-13d22fe3]{display:flex;justify-content:center;padding:10px 0 0}.card-container .bottom .cronButton[data-v-13d22fe3]{margin:0 10px;line-height:40px}.tabBody .a-row[data-v-13d22fe3]{margin:10px 0}.tabBody .a-row .long .a-select[data-v-13d22fe3]{width:354px}.tabBody .a-row .a-input-number[data-v-13d22fe3]{width:110px}.components-input-demo-presuffix .anticon-close-circle[data-v-b3cf1b8e]{cursor:pointer;color:#ccc;transition:color .3s;font-size:12px}.components-input-demo-presuffix .anticon-close-circle[data-v-b3cf1b8e]:hover{color:#f5222d}.components-input-demo-presuffix .anticon-close-circle[data-v-b3cf1b8e]:active{color:#666}.chart[data-v-dd9c7769]{width:100%;height:400px}
|
package/dist/vite-env.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
3
|
-
declare module '*.vue' {
|
|
4
|
-
import type { DefineComponent } from 'vue'
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
|
|
6
|
-
const component: DefineComponent<{}, {}, any>
|
|
7
|
-
export default component
|
|
8
|
-
}
|
|
9
|
-
declare module 'vue' {
|
|
10
|
-
interface ComponentCustomProperties {
|
|
11
|
-
instance: GlobalPageLayoutTypes.Expose
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import type { DefineComponent } from 'vue'
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
|
|
6
|
+
const component: DefineComponent<{}, {}, any>
|
|
7
|
+
export default component
|
|
8
|
+
}
|
|
9
|
+
declare module 'vue' {
|
|
10
|
+
interface ComponentCustomProperties {
|
|
11
|
+
instance: GlobalPageLayoutTypes.Expose
|
|
12
|
+
}
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qqt-product/system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@ant-design/icons-vue": "^6.1.0",
|
|
10
|
-
"@qqt-product/api": "
|
|
11
|
-
"@qqt-product/icons": "
|
|
12
|
-
"@qqt-product/ui": "
|
|
13
|
-
"@qqt-product/utils": "
|
|
10
|
+
"@qqt-product/api": "0.0.16",
|
|
11
|
+
"@qqt-product/icons": "0.0.16",
|
|
12
|
+
"@qqt-product/ui": "0.0.16",
|
|
13
|
+
"@qqt-product/utils": "0.0.16",
|
|
14
14
|
"@types/node": "^18.11.4",
|
|
15
15
|
"@types/sortablejs": "^1.15.1",
|
|
16
16
|
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"@vitejs/plugin-vue": "^3.1.0",
|
|
19
19
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
20
20
|
"ant-design-vue": "3.2.20",
|
|
21
|
+
"echarts": "5.4.3",
|
|
21
22
|
"eslint": "^8.25.0",
|
|
22
23
|
"eslint-config-prettier": "^8.5.0",
|
|
23
24
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -33,23 +34,24 @@
|
|
|
33
34
|
"vue-tsc": "^0.40.4",
|
|
34
35
|
"vxe-table": "4.4.2",
|
|
35
36
|
"vxe-table-plugin-antd": "^3.0.6",
|
|
36
|
-
"vxe-table-plugin-charts": "
|
|
37
|
+
"vxe-table-plugin-charts": "3.0.3",
|
|
37
38
|
"vxe-table-plugin-menus": "^3.0.7",
|
|
38
39
|
"xe-clipboard": "^1.10.2",
|
|
39
40
|
"xe-utils": "^3.5.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"@qqt-product/api": "
|
|
43
|
-
"@qqt-product/icons": "
|
|
44
|
-
"@qqt-product/ui": "
|
|
45
|
-
"@qqt-product/utils": "
|
|
43
|
+
"@qqt-product/api": "0.0.16",
|
|
44
|
+
"@qqt-product/icons": "0.0.16",
|
|
45
|
+
"@qqt-product/ui": "0.0.16",
|
|
46
|
+
"@qqt-product/utils": "0.0.16",
|
|
46
47
|
"@types/sortablejs": "^1.15.1",
|
|
47
48
|
"ant-design-vue": "3.2.20",
|
|
49
|
+
"echarts": "5.4.3",
|
|
48
50
|
"sortablejs": "^1.15.0",
|
|
49
51
|
"vue": "3.3.4",
|
|
50
52
|
"vxe-table": "4.4.2",
|
|
51
53
|
"vxe-table-plugin-antd": "^3.0.6",
|
|
52
|
-
"vxe-table-plugin-charts": "
|
|
54
|
+
"vxe-table-plugin-charts": "3.0.3",
|
|
53
55
|
"vxe-table-plugin-menus": "^3.0.7",
|
|
54
56
|
"xe-clipboard": "^1.10.2",
|
|
55
57
|
"xe-utils": "^3.5.0"
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="edit-page">
|
|
3
|
+
<a-spin :spinning="customLoading">
|
|
4
|
+
<q-edit-page-layout v-if="showEdit" ref="layoutRef" v-bind="options" @customSave="handleCustomSave" @validate-success="handleValidateSuccess"></q-edit-page-layout>
|
|
5
|
+
</a-spin>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
import { ref, reactive, onMounted, inject, shallowRef, nextTick } from 'vue'
|
|
11
|
+
import type { ComponentPublicInstance } from 'vue'
|
|
12
|
+
import { BUTTON_ADD_ONE_ROW, BUTTON_DELETE_ROW, BUTTON_SAVE } from '@qqt-product/ui'
|
|
13
|
+
// ui组件库 types
|
|
14
|
+
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
15
|
+
import { usePromiseStepHook, useRefInstanceHook } from '@qqt-product/ui'
|
|
16
|
+
import * as customConfigEdits from '../../../utils/global.types'
|
|
17
|
+
|
|
18
|
+
// 传参 props
|
|
19
|
+
const props = defineProps<{
|
|
20
|
+
currentRow: GlobalPageLayoutTypes.CurrentRow | null
|
|
21
|
+
userInfo: GlobalPageLayoutTypes.UserInfo
|
|
22
|
+
}>()
|
|
23
|
+
const qHttp = inject(customConfigEdits.INJECT_HTTP) as customConfigEdits.HttpClient
|
|
24
|
+
const showEdit = shallowRef(false)
|
|
25
|
+
const currentRow = props.currentRow
|
|
26
|
+
? props.currentRow
|
|
27
|
+
: ref({
|
|
28
|
+
id: '',
|
|
29
|
+
templateNumber: '',
|
|
30
|
+
templateVersion: 0,
|
|
31
|
+
templateAccount: '',
|
|
32
|
+
busAccount: '',
|
|
33
|
+
elsAccount: '',
|
|
34
|
+
})
|
|
35
|
+
// 编辑组件 ref
|
|
36
|
+
const layoutRef = ref<ComponentPublicInstance | null>(null)
|
|
37
|
+
const roleOptains = ref([])
|
|
38
|
+
const groupOptains = ref([])
|
|
39
|
+
|
|
40
|
+
// 配置
|
|
41
|
+
const options = reactive<Partial<GlobalPageLayoutTypes.EditPageLayoutProps>>({
|
|
42
|
+
/**
|
|
43
|
+
* 模块业务类型 string
|
|
44
|
+
* 取值根据各模块配置
|
|
45
|
+
* 当定义为"custom"时,使用本地配置
|
|
46
|
+
*/
|
|
47
|
+
businessType: 'custom',
|
|
48
|
+
// 布局模式
|
|
49
|
+
pattern: 'vertical',
|
|
50
|
+
// 当前已选行数据a
|
|
51
|
+
currentRow: currentRow as GlobalPageLayoutTypes.CurrentRow,
|
|
52
|
+
refreshMethods(row?: GlobalPageLayoutTypes.CurrentRow) {
|
|
53
|
+
if (options.currentRow) {
|
|
54
|
+
options.currentRow =
|
|
55
|
+
row ||
|
|
56
|
+
Object.assign({}, options.currentRow, {
|
|
57
|
+
_t: +new Date(),
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
// 当前登录租户信息
|
|
62
|
+
userInfo: props.userInfo,
|
|
63
|
+
// 明细接口 -- 接口字符串
|
|
64
|
+
detailApi: '/account/elsSubAccount/queryById',
|
|
65
|
+
// 本地页面数据配置
|
|
66
|
+
localConfig: {
|
|
67
|
+
groups: [
|
|
68
|
+
{
|
|
69
|
+
groupName: '基本信息',
|
|
70
|
+
groupCode: 'baseForm',
|
|
71
|
+
groupType: 'head',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
groupName: '关联组织',
|
|
75
|
+
groupCode: 'subaccountOrgList',
|
|
76
|
+
groupType: 'item',
|
|
77
|
+
buttons: [BUTTON_ADD_ONE_ROW, BUTTON_DELETE_ROW],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
formFields: [
|
|
81
|
+
{ groupCode: 'baseForm', fieldType: 'input', fieldLabel: 'ELS账号', fieldLabelI18nKey: 'i18n_title_ELSAccount', fieldName: 'elsAccount', placeholder: 'ELS账号', disabled: true },
|
|
82
|
+
{ groupCode: 'baseForm', fieldType: 'input', fieldLabel: '子账号', fieldLabelI18nKey: 'i18n_field_subAccount', fieldName: 'subAccount', required: '1' },
|
|
83
|
+
{ groupCode: 'baseForm', fieldType: 'input', fieldLabel: '姓名', fieldLabelI18nKey: 'i18n_title_name', fieldName: 'realname', required: '1' },
|
|
84
|
+
{
|
|
85
|
+
groupCode: 'baseForm',
|
|
86
|
+
fieldType: 'input',
|
|
87
|
+
fieldLabel: '密码',
|
|
88
|
+
fieldLabelI18nKey: 'i18n_title_password',
|
|
89
|
+
fieldName: 'password',
|
|
90
|
+
required: '1',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
groupCode: 'baseForm',
|
|
94
|
+
fieldType: 'multiple',
|
|
95
|
+
fieldLabel: '角色',
|
|
96
|
+
fieldLabelI18nKey: 'i18n_title_role',
|
|
97
|
+
fieldName: 'selectedroles',
|
|
98
|
+
required: '1',
|
|
99
|
+
options: roleOptains,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
groupCode: 'baseForm',
|
|
103
|
+
fieldType: 'multiple',
|
|
104
|
+
fieldLabel: '数据权限组',
|
|
105
|
+
fieldLabelI18nKey: 'i18n_menu_WFbWV_c4394039',
|
|
106
|
+
fieldName: 'selectedGroups',
|
|
107
|
+
options: groupOptains,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
groupCode: 'baseForm',
|
|
111
|
+
fieldType: 'input',
|
|
112
|
+
fieldLabel: '电子邮件',
|
|
113
|
+
fieldLabelI18nKey: 'i18n_title_email',
|
|
114
|
+
fieldName: 'email',
|
|
115
|
+
regex: /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/,
|
|
116
|
+
alertMsg: '邮箱格式不正确',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
groupCode: 'baseForm',
|
|
120
|
+
fieldType: 'input',
|
|
121
|
+
fieldLabel: '手机号',
|
|
122
|
+
fieldLabelI18nKey: 'i18n_title_phone',
|
|
123
|
+
fieldName: 'phone',
|
|
124
|
+
regex: /^1[3|4|5|7|8|9]\d{9}$/,
|
|
125
|
+
alertMsg: '您的手机号码格式不正确',
|
|
126
|
+
},
|
|
127
|
+
{ groupCode: 'baseForm', fieldType: 'input', fieldLabel: '工号', fieldLabelI18nKey: 'i18n_field_workNo', fieldName: 'workNo' },
|
|
128
|
+
{ groupCode: 'baseForm', fieldType: 'input', fieldLabel: '座机号', fieldLabelI18nKey: 'i18n_title_landlineNumber', fieldName: 'telephone' },
|
|
129
|
+
{
|
|
130
|
+
groupCode: 'baseForm',
|
|
131
|
+
fieldType: 'select',
|
|
132
|
+
fieldLabel: '部门',
|
|
133
|
+
fieldLabelI18nKey: 'i18n_title_department',
|
|
134
|
+
dictCode: '/org/purchaseOrganizationInfo/getOrgTree',
|
|
135
|
+
fieldName: 'orgCode',
|
|
136
|
+
},
|
|
137
|
+
{ groupCode: 'baseForm', fieldType: 'date', fieldLabel: '账号过期时间', fieldLabelI18nKey: 'i18n_title_accountExpirationTime', fieldName: 'accountValidityDate' },
|
|
138
|
+
{
|
|
139
|
+
groupCode: 'baseForm',
|
|
140
|
+
fieldType: 'remoteSelect',
|
|
141
|
+
fieldLabel: '直属领导',
|
|
142
|
+
fieldLabelI18nKey: 'i18n_field_RWQu_378045a0',
|
|
143
|
+
fieldName: 'superiorLeader',
|
|
144
|
+
extend: {
|
|
145
|
+
modalColumns: [
|
|
146
|
+
{
|
|
147
|
+
field: 'subAccount',
|
|
148
|
+
fieldLabelI18nKey: 'i18n_field_subAccount',
|
|
149
|
+
title: '子账号',
|
|
150
|
+
width: 150,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
field: 'realname',
|
|
154
|
+
fieldLabelI18nKey: 'i18n_title_name',
|
|
155
|
+
title: '姓名',
|
|
156
|
+
width: 150,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
modalUrl: '/account/elsSubAccount/list',
|
|
160
|
+
},
|
|
161
|
+
callback(ctx, { data, pageData }) {
|
|
162
|
+
if (!data?.length) return
|
|
163
|
+
pageData.superiorLeader = data[0].subAccount + '_' + data[0].realname
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
itemColumns: [
|
|
168
|
+
{
|
|
169
|
+
groupCode: 'subaccountOrgList',
|
|
170
|
+
fieldType: 'select',
|
|
171
|
+
dictCode: 'orgCategoryType',
|
|
172
|
+
title: '组织类型',
|
|
173
|
+
fieldLabelI18nKey: 'i18n_field_organizationType',
|
|
174
|
+
field: 'orgCategoryCode',
|
|
175
|
+
align: 'center',
|
|
176
|
+
headerAlign: 'center',
|
|
177
|
+
defaultValue: '',
|
|
178
|
+
width: '250',
|
|
179
|
+
visible: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
groupCode: 'subaccountOrgList',
|
|
183
|
+
fieldType: 'input',
|
|
184
|
+
title: '组织编码',
|
|
185
|
+
fieldLabelI18nKey: '',
|
|
186
|
+
field: 'orgCode',
|
|
187
|
+
align: 'center',
|
|
188
|
+
headerAlign: 'center',
|
|
189
|
+
defaultValue: '',
|
|
190
|
+
width: '250',
|
|
191
|
+
visible: true,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
groupCode: 'subaccountOrgList',
|
|
195
|
+
fieldType: 'input',
|
|
196
|
+
title: '备注',
|
|
197
|
+
fieldLabelI18nKey: '',
|
|
198
|
+
field: 'remark',
|
|
199
|
+
align: 'center',
|
|
200
|
+
headerAlign: 'center',
|
|
201
|
+
defaultValue: '',
|
|
202
|
+
width: '250',
|
|
203
|
+
visible: true,
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
// 页面按钮
|
|
208
|
+
pageButtons: [
|
|
209
|
+
{
|
|
210
|
+
...BUTTON_SAVE,
|
|
211
|
+
title: '保存',
|
|
212
|
+
emit: true,
|
|
213
|
+
emitKey: 'customSave',
|
|
214
|
+
args: {
|
|
215
|
+
url: '/account/elsSubAccount/edit',
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
})
|
|
220
|
+
|
|
221
|
+
const { pageData, layoutConfig, defaultValues } = useRefInstanceHook(layoutRef)
|
|
222
|
+
const { stepTriggerValidate, composeSave, customLoading } = usePromiseStepHook({ pageData, layoutConfig, defaultValues, options })
|
|
223
|
+
// 自定义保存
|
|
224
|
+
const handleCustomSave = () => {
|
|
225
|
+
stepTriggerValidate()
|
|
226
|
+
}
|
|
227
|
+
//
|
|
228
|
+
const handleValidateSuccess = (button: GlobalPageLayoutTypes.PageButton) => {
|
|
229
|
+
if (button.key === BUTTON_SAVE.key) {
|
|
230
|
+
composeSave()
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// 页面刷新
|
|
234
|
+
|
|
235
|
+
function getRoleOptains() {
|
|
236
|
+
return qHttp
|
|
237
|
+
.get({
|
|
238
|
+
url: '/account/role/queryall',
|
|
239
|
+
})
|
|
240
|
+
.then((res) => {
|
|
241
|
+
let result = res.result || []
|
|
242
|
+
roleOptains.value = result.map((item) => ({
|
|
243
|
+
label: item.roleName,
|
|
244
|
+
value: item.id,
|
|
245
|
+
}))
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
function getGroupOptains() {
|
|
249
|
+
return qHttp
|
|
250
|
+
.get({
|
|
251
|
+
url: '/account/permissionGroup/queryAll',
|
|
252
|
+
})
|
|
253
|
+
.then((res) => {
|
|
254
|
+
let result = res.result || []
|
|
255
|
+
console.log(123123, res.result)
|
|
256
|
+
groupOptains.value = result.map((item) => ({
|
|
257
|
+
...item,
|
|
258
|
+
label: item.groupName,
|
|
259
|
+
value: item.id,
|
|
260
|
+
}))
|
|
261
|
+
})
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
//生命周期
|
|
265
|
+
onMounted(async () => {
|
|
266
|
+
await getRoleOptains()
|
|
267
|
+
await getGroupOptains()
|
|
268
|
+
await nextTick(() => {
|
|
269
|
+
showEdit.value = true
|
|
270
|
+
})
|
|
271
|
+
})
|
|
272
|
+
</script>
|