fix : 修复实施图片

This commit is contained in:
2025-07-09 22:56:09 +08:00
parent 64e2ff0647
commit 973dc0f2e4
338 changed files with 62195 additions and 62193 deletions

View File

@@ -1,20 +1,20 @@
import { useDebounce } from "../utils/publicvoid"
let dom
export const fixedHeight = (el, binding, vnode) => {
dom = el
// 获取相对距离
const relativeObj = el.getBoundingClientRect()
// 获取网页高度
const clientHeight = document.body.clientHeight
// 70为分页器高度
el.style.height = (clientHeight - relativeObj.top - 70) + 'px'
el.style.overflow = 'auto'
}
window.addEventListener('resize', () => {
if (dom) {
const resizeHeight = useDebounce(fixedHeight(dom), 2000, false)
resizeHeight()
}
import { useDebounce } from "../utils/publicvoid"
let dom
export const fixedHeight = (el, binding, vnode) => {
dom = el
// 获取相对距离
const relativeObj = el.getBoundingClientRect()
// 获取网页高度
const clientHeight = document.body.clientHeight
// 70为分页器高度
el.style.height = (clientHeight - relativeObj.top - 70) + 'px'
el.style.overflow = 'auto'
}
window.addEventListener('resize', () => {
if (dom) {
const resizeHeight = useDebounce(fixedHeight(dom), 2000, false)
resizeHeight()
}
})

View File

@@ -1,19 +1,19 @@
import { useAuthStore } from '@/stores/userstore.js'
export const hasPerm = (el, binding, vnode) => {
const authStore = useAuthStore()
const allPermission = "*:*:*"; //所有权限
const { value } = binding
const permisstions = authStore.permisstions
if (value && value instanceof Array && value.length > 0) {
const permissiosFlag = value
const hasPermission = permisstions.some(permission => {
return permission === allPermission || permissiosFlag.includes(permission) || permissiosFlag.includes(allPermission)
})
if (!hasPermission) {
el.parentNode && el.parentNode.removeChild(el)
}
} else {
throw new Error('操作权限标识应为string[]')
}
import { useAuthStore } from '@/stores/userstore.js'
export const hasPerm = (el, binding, vnode) => {
const authStore = useAuthStore()
const allPermission = "*:*:*"; //所有权限
const { value } = binding
const permisstions = authStore.permisstions
if (value && value instanceof Array && value.length > 0) {
const permissiosFlag = value
const hasPermission = permisstions.some(permission => {
return permission === allPermission || permissiosFlag.includes(permission) || permissiosFlag.includes(allPermission)
})
if (!hasPermission) {
el.parentNode && el.parentNode.removeChild(el)
}
} else {
throw new Error('操作权限标识应为string[]')
}
}