@yqg/permission 1.3.0-alpha.6 → 1.3.0-alpha.8
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/{apply-modal-BLik7xOg.js → apply-modal-gvLhFEdj.js} +1216 -1216
- package/dist/{category-selector-z1eemTKz.js → category-selector-BTzW1HZD.js} +4 -4
- package/dist/{index-3gtBphGl.js → index--jS5hjon.js} +1 -1
- package/dist/{index-okxSyYmx.js → index-Deb9hDa0.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-C6mMM6Km.js → permission-item-BwYX18tp.js} +4 -4
- package/dist/{yqg-permission-BZ4qZKdy.js → yqg-permission-C3sGU3v5.js} +34 -38
- package/dist/yqg-permission.umd.js +56 -56
- package/package.json +1 -1
- package/src/App.vue +7 -8
- package/src/components/apply-modal.vue +2 -2
- package/src/components/yqg-permission.vue +1 -8
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -9,14 +9,13 @@ const color = ref<string>('#1677ff');
|
|
|
9
9
|
const locale = ref<LocaleType>('zh-CN');
|
|
10
10
|
|
|
11
11
|
const permissions = reactive([
|
|
12
|
-
'CRANE.
|
|
13
|
-
'CRANE.
|
|
14
|
-
'CRANE.
|
|
15
|
-
'CRANE.
|
|
16
|
-
'CRANE.
|
|
17
|
-
'CRANE.
|
|
18
|
-
'CRANE.
|
|
19
|
-
'CRANE.ROLE.EXPORT',
|
|
12
|
+
'CRANE.PERMISSION.QUERY',
|
|
13
|
+
'CRANE.PERMISSION.CREATE',
|
|
14
|
+
'CRANE.PERMISSION.UPDATE',
|
|
15
|
+
'CRANE.PERMISSION.DELETE',
|
|
16
|
+
'CRANE.PERMISSION.DETAIL_QUERY',
|
|
17
|
+
'CRANE.PERMISSION.ROLE_ASSIGN',
|
|
18
|
+
'CRANE.PERMISSION.EXPORT',
|
|
20
19
|
]);
|
|
21
20
|
// const permissions = reactive(['CRANE.BUSINESS.QUERY', 'RANE.BUSINESS.CREATE', 'CRANE.BUSINESS.UPDATE', 'CRANE.BUSINESS.DELETE']);
|
|
22
21
|
const changeColor = () => {
|
|
@@ -218,7 +218,7 @@ const onCheck = (checkedIds:any, info:any) => {
|
|
|
218
218
|
formState.features = formState.features.filter((item) => item !== info.node.feature);
|
|
219
219
|
message.warning(t('maxCountTips', { count: MAX_COUNT }));
|
|
220
220
|
onChangeTime();
|
|
221
|
-
|
|
221
|
+
categoryList.value = useCategory(permissionList.value, formState.features);
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
224
|
|
|
@@ -236,7 +236,7 @@ const onCheck = (checkedIds:any, info:any) => {
|
|
|
236
236
|
formState.features = formState.features.concat(leafNodes);
|
|
237
237
|
message.warning(t('maxCountTips', { count: MAX_COUNT }));
|
|
238
238
|
onChangeTime();
|
|
239
|
-
|
|
239
|
+
categoryList.value = useCategory(permissionList.value, formState.features);
|
|
240
240
|
return;
|
|
241
241
|
};
|
|
242
242
|
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
</div>
|
|
64
64
|
|
|
65
65
|
<ApplyModal v-model="open" :permissionList="permissionList" :spining="loading" :workNumber="workNumber"
|
|
66
|
-
|
|
66
|
+
@onSuccess="() => emit('onSuccess')" @onSubmit="getPermissions">
|
|
67
67
|
</ApplyModal>
|
|
68
68
|
|
|
69
69
|
</ConfigProvider>
|
|
@@ -144,13 +144,6 @@ import useFormat from '../hooks/useFormat';
|
|
|
144
144
|
return props.permissions?.split(',')?.filter((item) => item.trim()) || [];
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
-
const businessCode = computed(() => {
|
|
148
|
-
const code = allPermissions.value[0] || '';
|
|
149
|
-
if (!code) return '';
|
|
150
|
-
|
|
151
|
-
return code.split('.')[0];
|
|
152
|
-
})
|
|
153
|
-
|
|
154
147
|
const goViewApproval = () => {
|
|
155
148
|
const url = curApproving.value?.oaFlowUrl;
|
|
156
149
|
if (!url) return;
|