@yqg/permission 1.0.6-beta.0 → 1.0.8-beta.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/permission",
3
- "version": "1.0.6-beta.0",
3
+ "version": "1.0.8-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
package/src/App.vue CHANGED
@@ -9,14 +9,7 @@ const color = ref<string>('#1677ff');
9
9
  const locale = ref<LocaleType>('zh-CN');
10
10
 
11
11
  const permissions = reactive([
12
- 'CRANE.ROLE.QUERY',
13
- 'CRANE.ROLE.CREATE',
14
- 'CRANE.ROLE.UPDATE',
15
- 'CRANE.ROLE.DELETE',
16
- 'CRANE.ROLE.PERMISSION_ASSIGN',
17
- 'CRANE.ROLE.EMPLOYEE_ASSIGN',
18
- 'CRANE.ROLE.DETAIL_QUERY',
19
- 'CRANE.ROLE.EXPORT',
12
+ 'CRANE.EMPLOYEE.QUERY', 'CRANE.EMPLOYEE.DETAIL_QUERY', 'CRANE.EMPLOYEE.ATTRIBUTE_CREATE', 'CRANE.EMPLOYEE.ROLE_ASSIGN'
20
13
  ]);
21
14
  // const permissions = reactive(['CRANE.BUSINESS.QUERY', 'RANE.BUSINESS.CREATE', 'CRANE.BUSINESS.UPDATE', 'CRANE.BUSINESS.DELETE']);
22
15
  const changeColor = () => {
@@ -44,7 +37,7 @@ const changeLocale = () => {
44
37
  businessCode="CRANE"
45
38
  :color="color"
46
39
  :locale="locale"
47
- @success="() => {console.log('成功')}"
40
+ @onSuccess="() => {console.log('成功')}"
48
41
  >
49
42
  </yqg-permission>
50
43
  </div>
@@ -5,6 +5,7 @@
5
5
  width="800px"
6
6
  @ok="handleOk"
7
7
  :okText="t('submit')"
8
+ :maskClosable="false"
8
9
  :ok-button-props="{ loading: loading }"
9
10
  :cancelText="t('cancel')">
10
11
  <Form
@@ -112,7 +113,7 @@
112
113
  },
113
114
 
114
115
  });
115
- const emit = defineEmits(['onSuccess']);
116
+ const emit = defineEmits(['onSubmit', 'onSuccess']);
116
117
  const open = defineModel({
117
118
  required: true,
118
119
  default: false,
@@ -155,8 +156,8 @@
155
156
  const url = res?.body?.oaFlowUrl;
156
157
  open.value = false;
157
158
  loading.value = false;
158
-
159
- successModal.value?.countDown(url, () => emit('onSuccess'));
159
+ emit('onSubmit');
160
+ successModal.value?.countDown(url, () => emit('onSuccess'));
160
161
  })
161
162
  };
162
163
 
@@ -76,7 +76,8 @@
76
76
  :permissionList="permissionList"
77
77
  :workNumber="workNumber"
78
78
  :businessCode="businessCode"
79
- @onSuccess="getPermissions">
79
+ @onSuccess="() => emit('onSuccess')"
80
+ @onSubmit="getPermissions">
80
81
  </ApplyModal>
81
82
 
82
83
  </ConfigProvider>
@@ -195,6 +196,7 @@
195
196
  };
196
197
 
197
198
  const goViewApproval = () => {
199
+ console.log(curApproving.value)
198
200
  if (curApproving.value?.oaFlowUrl) {
199
201
  window.open(curApproving.value.oaFlowUrl);
200
202
  }