adtec-core-package 0.3.6 → 0.3.7

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": "adtec-core-package",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,26 +1,26 @@
1
- <!--创建人:丁盼-->
2
- <!--说明: 操作权限控制组件-->
3
- <!--创建时间: 2024/8/29 下午2:31-->
4
- <!--修改时间: 2024/8/29 下午2:31-->
5
- <template>
6
- <slot v-if="IsOperationAuth()"></slot>
7
- </template>
8
- <script setup lang="ts">
9
- import { useRoute } from 'vue-router'
10
- import type { ISysMenuInfoVo } from '../../interface/ISysMenuInfoVo.ts'
11
- const route = useRoute()
12
-
13
- const IsOperationAuth = () => {
14
- const data: ISysMenuInfoVo = route.meta.sysMenuData as ISysMenuInfoVo
15
- const o = data.operation.find((c) => c.code === props.operCode)
16
- if (o) {
17
- return true
18
- } else {
19
- return false
20
- }
21
- }
22
- const props = defineProps<{
23
- operCode: string
24
- }>()
25
- </script>
26
- <style scoped lang="scss"></style>
1
+ <!--创建人:丁盼-->
2
+ <!--说明: 操作权限控制组件-->
3
+ <!--创建时间: 2024/8/29 下午2:31-->
4
+ <!--修改时间: 2024/8/29 下午2:31-->
5
+ <template>
6
+ <slot v-if="IsOperationAuth()"></slot>
7
+ </template>
8
+ <script setup lang="ts">
9
+ import { useRoute } from 'vue-router'
10
+ import type { ISysMenuInfoVo } from '../../interface/ISysMenuInfoVo.ts'
11
+ const route = useRoute()
12
+
13
+ const IsOperationAuth = () => {
14
+ const data: ISysMenuInfoVo = route.meta.sysMenuData as ISysMenuInfoVo
15
+ const o = data.operation?.find((c) => c.code === props.operCode)
16
+ if (o) {
17
+ return true
18
+ } else {
19
+ return false
20
+ }
21
+ }
22
+ const props = defineProps<{
23
+ operCode: string
24
+ }>()
25
+ </script>
26
+ <style scoped lang="scss"></style>
@@ -63,7 +63,7 @@ watch(windowContent.width, () => {
63
63
  const calculation = () => {
64
64
  nextTick(()=>{
65
65
  setTimeout(() => {
66
- if(ref_div.value.children.length>0) {
66
+ if(ref_div.value?.children.length>0) {
67
67
  if (!(ref_div.value.children[0].offsetHeight > 95)) {
68
68
  if (ref_div.value.children[0].offsetHeight !== 0) {
69
69
  is_retract.value = false
@@ -87,7 +87,7 @@ export const permissionStore = defineStore({
87
87
  this.openMenuInfo.splice(this.openMenuInfo.indexOf(menuInfo), 1)
88
88
  if (menuInfo.applicationModule !== 'system' && menuInfo.isLink !== 1) {
89
89
  //关闭子应用菜单
90
- WujieVue.bus.$emit('vue3-router-close', menuInfo.code)
90
+ WujieVue.bus.$emit('wujie-router-close', menuInfo.code)
91
91
  }
92
92
  },
93
93
  /**