@yqg/permission 1.3.8-bate.2 → 1.3.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/package.json +1 -1
- package/src/App.vue +6 -6
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref } from 'vue';
|
|
2
|
+
import { ref, reactive } from 'vue';
|
|
3
3
|
import {Button} from 'ant-design-vue';
|
|
4
4
|
|
|
5
5
|
// 中英印尼菲律宾
|
|
@@ -8,10 +8,10 @@ type LocaleType = 'zh-CN' | 'en-US' | 'id-ID' | 'fil-PH';
|
|
|
8
8
|
const color = ref<string>('#1677ff');
|
|
9
9
|
const locale = ref<LocaleType>('id-ID');
|
|
10
10
|
|
|
11
|
-
const permissions = ref('CALL_CENTER.DATA_BUSINESS.QUERY,CALL_CENTER.ENTER_ADMIN,CALL_CENTER.USER.QUERY,CALL_CENTER.USER.MANAGE,CALL_CENTER.BUSINESS.QUERY,CALL_CENTER.SKILL_GROUP.QUERY');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
// const permissions = ref('CALL_CENTER.DATA_BUSINESS.QUERY,CALL_CENTER.ENTER_ADMIN,CALL_CENTER.USER.QUERY,CALL_CENTER.USER.MANAGE,CALL_CENTER.BUSINESS.QUERY,CALL_CENTER.SKILL_GROUP.QUERY');
|
|
12
|
+
const permissions = reactive([
|
|
13
|
+
'yewei0313.REAQS.DEPAWED_ANQ2.QUERY',
|
|
14
|
+
]);
|
|
15
15
|
//05615
|
|
16
16
|
// const permissions = reactive(['CRANE.BUSINESS.QUERY', 'RANE.BUSINESS.CREATE', 'CRANE.BUSINESS.UPDATE', 'CRANE.BUSINESS.DELETE']);
|
|
17
17
|
const changeColor = () => {
|
|
@@ -34,7 +34,7 @@ const changeLocale = () => {
|
|
|
34
34
|
<!-- 02124 -->
|
|
35
35
|
<!-- 05184 -->
|
|
36
36
|
<yqg-permission :permissions="permissions" workNumber="03817" :color="color" :locale="locale"
|
|
37
|
-
:omitCategoryIds="[]" @onSuccess="() => {console.log('成功')}">
|
|
37
|
+
:omitCategoryIds="[81, 102]" @onSuccess="() => {console.log('成功')}">
|
|
38
38
|
</yqg-permission>
|
|
39
39
|
</div>
|
|
40
40
|
<data class="case-card">
|