lihuilin 2 days ago
parent
commit
eee0b0f6d2
  1. 8
      src/views/activityManage/activity.vue

8
src/views/activityManage/activity.vue

@ -193,7 +193,7 @@ const editForm = ref({
}) })
const marketOptions = ref([]) const marketOptions = ref([])
const getActivity = async function () { const getActivity = async function () {
if (!hasMenuPermission(permissionMapping.view_activity)) {
if (!hasMenuPermission(menuTree.value,permissionMapping.view_activity)) {
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }
@ -223,7 +223,7 @@ const getActivity = async function () {
} }
} }
const handleAdd = async function () { const handleAdd = async function () {
if (!hasMenuPermission(permissionMapping.add_activity)) {
if (!hasMenuPermission(menuTree.value,permissionMapping.add_activity)) {
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }
@ -282,7 +282,7 @@ const handleAdd = async function () {
// //
const throttleGetActivity = _.throttle(handleAdd, 5000, { trailing: false }); const throttleGetActivity = _.throttle(handleAdd, 5000, { trailing: false });
const handleEdit = async function () { const handleEdit = async function () {
if (!hasMenuPermission(permissionMapping.edit_activity)) {
if (!hasMenuPermission(menuTree.value,permissionMapping.edit_activity)) {
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }
@ -335,7 +335,7 @@ const handleEdit = async function () {
} }
} }
const handleDel = async function (row) { const handleDel = async function (row) {
if (!hasMenuPermission(permissionMapping.delete_activity)) {
if (!hasMenuPermission(menuTree.value,permissionMapping.delete_activity)) {
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }

Loading…
Cancel
Save