123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- import {useAuthBtnStore} from '@/store/modules/authBtn'
- const authBtnStore = useAuthBtnStore()
- export const reportManageBtn = {
- reportManage_sendMsg:'reportManage:sendMsg',
- reportManage_reportView:'reportManage:reportView',
- reportManage_reportDel:'reportManage:reportDel',
- reportManage_reportEdit:'reportManage:reportEdit',
- reportManage_cancelPublish:'reportManage:cancelPublish',
- reportManage_exportPdf:'reportManage:exportPdf',
- reportManage_exportImg:'reportManage:exportImg',
- reportManage_publish:'reportManage:publish',
- reportManage_reportList:'reportManage:reportList',
- reportManage_reportList_uv:'reportManage:reportList:uv',
- reportManage_reportList_sendTime:'reportManage:reportList:sendTime',
- reportManage_dayWeekReportAdd:'reportManage:dayWeekReportAdd',
- reportManage_reportAdd:'reportManage:reportAdd',
- }
- export const enReportManageBtn = {
- enReport_reportView:'enReport:reportView',
- enReport_sendEmail:'enReport:sendEmail',
- enReport_reportDel:'enReport:reportDel',
- enReport_reportEdit:'enReport:reportEdit',
- enReport_cancelPublish:'enReport:cancelPublish',
- enReport_exportPdf:'enReport:exportPdf',
- enReport_exportImg:'enReport:exportImg',
- enReport_publish:'enReport:publish',
- enReport_reportAdd:'enReport:reportAdd',
- }
- export const pptBtn={
- ppt_del:'ppt:del',
- ppt_copy:'ppt:copy',
- ppt_download:'ppt:download',
- ppt_show:'ppt:show',
- ppt_publish:'ppt:publish',
- ppt_visible:'ppt:visible',
- ppt_save:'ppt:save',
- ppt_setShare:'ppt:setShare',
- }
- export const enPPTBtn={
- ppt_del:'pptEn:del',
- ppt_copy:'pptEn:copy',
- ppt_download:'pptEn:download',
- ppt_show:'pptEn:show',
- ppt_publish:'pptEn:publish',
- ppt_visible:'pptEn:visible',
- ppt_save:'pptEn:save',
- ppt_setShare:'pptEn:setShare',
- }
- export const edbDataBtn={
-
- edbData_refreshAll:'edbData:refreshAll',
- edbData_newestValue:'edbData:newestValue',
- edbData_enNameSetting:'edbData:enNameSetting',
- edbData_edbSource:'edbData:edbSource',
- edbData_copyData:'edbData:copyData',
- edbData_edit:'edbData:edit',
- edbData_update:'edbData:update',
- edbData_saveEdb:'edbData:saveEdb',
- edbData_deleteEdb:'edbData:deleteEdb',
- edbData_showChartBasis:'edbData:showChartBasis',
- edbData_switchSeason:'edbData:switchSeason',
- edbData_editLimit:'edbData:editLimit',
- edbData_calculateAgain:'edbData:calculateAgain',
-
- edbData_replaceEdb:'edbData:replaceEdb',
- edbData_calcuEdb:'edbData:calcuEdb',
- edbData_addEdb:'edbData:addEdb',
- edbData_switchEn:'edbData:switchEn',
- edbData_classifyOpt_add:'edbData:classifyOpt:add',
- edbData_classifyOpt_delete:'edbData:classifyOpt:delete',
- edbData_classifyOpt_move:'edbData:classifyOpt:move',
- edbData_checkRelatedChart:'edbData:checkRelatedChart',
- edbData_checkRelatedEdb:'edbData:checkRelatedEdb',
- edbData_checkCalcChart:'edbData:checkCalcChart',
- }
- export const chartLibBtn={
-
- chartLib_del:'chartLib:del',
- chartLib_enNameSetting:'chartLib:enNameSetting',
- chartLib_copyWechat:'chartLib:copyWechat',
- chartLib_copyOffice:'chartLib:copyOffice',
- chartLib_otherSave:'chartLib:otherSave',
- chartLib_save:'chartLib:save',
- chartLib_refresh:'chartLib:refresh',
- chartLib_addMy:'chartLib:addMy',
- chartLib_share:'chartLib:share',
- chartLib_editLimit:'chartLib:editLimit',
-
- chartLib_switchEn:'chartLib:switchEn',
- chartLib_isOnlyMine:'chartLib:isOnlyMine',
- chartLib_classifyOpt_add:'chartLib:classifyOpt:add',
- chartLib_classifyOpt_delete:'chartLib:classifyOpt:delete',
- }
- export const myETABtn={
-
- myChart_del:'myChart:del',
- myChart_enNameSetting:'myChart:enNameSetting',
- myChart_copyWechat:'myChart:copyWechat',
- myChart_copyOffice:'myChart:copyOffice',
- myChart_otherSave:'myChart:otherSave',
- myChart_save:'myChart:save',
- myChart_refresh:'myChart:refresh',
- myChart_copyTo:'myChart:copyTo',
- myChart_share:'myChart:share',
- myChart_move:'myChart:move',
- myChart_copyData:'myChart:copyData',
- myChart_checkData:'myChart:checkData',
- myChart_editLimit:'myChart:editLimit',
-
- myChart_selectChart:'myChart:selectChart',
- myChart_classifyOpt_copy:'myChart:classifyOpt:copy',
- myChart_classifyOpt_show:'myChart:classifyOpt:show',
- myChart_classifyOpt_edit:'myChart:classifyOpt:edit',
- myChart_classifyOpt_rename:'myChart:classifyOpt:rename',
- myChart_classifyOpt_delete:'myChart:classifyOpt:delete',
- }
- export function useAuthBtn(){
- const isShowBtn = ()=>{}
- const checkAuthBtn = (buttonCode)=>{
- const list = authBtnStore.authBtnList||[]
- return list.map(item=>item.ButtonCode).includes(buttonCode)
- }
- return {
- isShowBtn,
- checkAuthBtn
- }
- }
|