diff --git a/src/views/activityManage/activity.vue b/src/views/activityManage/activity.vue index 96724c4..ed22865 100644 --- a/src/views/activityManage/activity.vue +++ b/src/views/activityManage/activity.vue @@ -193,6 +193,10 @@ const editForm = ref({ }) const marketOptions = ref([]) const getActivity = async function () { + if (!hasMenuPermission(menuTree.value,permissionMapping.view_activity)) { + ElMessage.error('无此权限') + return + } const rechargeActivity = { activityName: searchForm.value.activityName, businessBelong: searchForm.value.businessBelong, @@ -219,6 +223,10 @@ const getActivity = async function () { } } const handleAdd = async function () { + if (!hasMenuPermission(menuTree.value,permissionMapping.add_activity)) { + ElMessage.error('无此权限') + return + } const activityName = addForm.value.activityName if (!validateActivityName(activityName)) return @@ -274,6 +282,10 @@ const handleAdd = async function () { // 新增节流 const throttleGetActivity = _.throttle(handleAdd, 5000, { trailing: false }); const handleEdit = async function () { + if (!hasMenuPermission(menuTree.value,permissionMapping.edit_activity)) { + ElMessage.error('无此权限') + return + } const activityName = editForm.value.activityName if (!validateActivityName(activityName)) return @@ -323,6 +335,10 @@ const handleEdit = async function () { } } const handleDel = async function (row) { + if (!hasMenuPermission(menuTree.value,permissionMapping.delete_activity)) { + ElMessage.error('无此权限') + return + } if (!currentDelRow.value) { ElMessage.error('当前选择无数据') return diff --git a/src/views/channelManage/cart/cart.vue b/src/views/channelManage/cart/cart.vue index 67c097e..c5f02a4 100644 --- a/src/views/channelManage/cart/cart.vue +++ b/src/views/channelManage/cart/cart.vue @@ -156,6 +156,7 @@ const searchCart = async function () { ...beanCart.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId } } }) @@ -282,6 +283,8 @@ const exportExcel = async function () { ...beanCart.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId + }, } const res = await API({ url: '/export/exportArticle', data: params }) diff --git a/src/views/channelManage/fans/fans.vue b/src/views/channelManage/fans/fans.vue index 7d66e1d..41f4887 100644 --- a/src/views/channelManage/fans/fans.vue +++ b/src/views/channelManage/fans/fans.vue @@ -399,6 +399,9 @@ const exportExcel = async function () { ...beanConsumeFan.value, sortField: sortField.value, sortOrder: sortOrder.value, + flag: flag.value, + roleId: adminData.value.roleId + }, } const res = await API({ url: '/export/exportFan', data: params }) diff --git a/src/views/channelManage/reward/reward.vue b/src/views/channelManage/reward/reward.vue index 697e9c9..43b0d48 100644 --- a/src/views/channelManage/reward/reward.vue +++ b/src/views/channelManage/reward/reward.vue @@ -419,7 +419,10 @@ const exportExcel = async function () { startTime: beanConsumeLive.value.startTime || '', endTime: beanConsumeLive.value.endTime || '', sortField: sortField.value || 'consumeTime', - sortOrder: sortOrder.value || 'desc' + sortOrder: sortOrder.value || 'desc', + roleId: adminData.value.roleId, + flag: flag.value, + } } // 打印请求参数,方便调试 diff --git a/src/views/consume/bean/articleVideo.vue b/src/views/consume/bean/articleVideo.vue index 5e3e238..a52c598 100644 --- a/src/views/consume/bean/articleVideo.vue +++ b/src/views/consume/bean/articleVideo.vue @@ -195,7 +195,9 @@ const ConsumeSelectBy = async function (val) { endTime: beanConsumeArticle.value.endTime, sortField: beanConsumeArticle.value.sortField, sortOrder: beanConsumeArticle.value.sortOrder, - flag: flag.value + flag: flag.value , + roleId: adminData.value.roleId + } } }) @@ -394,6 +396,9 @@ const exportExcel = async function () { ...beanConsumeArticle.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId, + flag: flag.value, + }, } const res = await API({ url: '/export/exportArticle', data: params }) diff --git a/src/views/consume/bean/dieHardFan.vue b/src/views/consume/bean/dieHardFan.vue index 1984a67..aba8f1f 100644 --- a/src/views/consume/bean/dieHardFan.vue +++ b/src/views/consume/bean/dieHardFan.vue @@ -196,7 +196,8 @@ const ConsumeSelectBy = async function (val) { endTime: beanConsumeFan.value.endTime || '', sortField: beanConsumeFan.value.sortField || 'consumeTime', sortOrder: beanConsumeFan.value.sortOrder || 'desc', - flag: flag.value + flag: flag.value, + roleId: adminData.value.roleId } } }) @@ -398,6 +399,9 @@ const exportExcel = async function () { ...beanConsumeFan.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId, + flag: flag.value, + }, } const res = await API({ url: '/export/exportFan', data: params }) diff --git a/src/views/consume/bean/liveStream.vue b/src/views/consume/bean/liveStream.vue index b700ae2..fc237ce 100644 --- a/src/views/consume/bean/liveStream.vue +++ b/src/views/consume/bean/liveStream.vue @@ -1,16 +1,17 @@ - - \ No newline at end of file