//维护 按钮列表 已加载在全局
//通过 this.permissionBtn 调用
import {store} from "../main";
/**
 * 判断按钮在不在用户的权限内
 * @param {String} button_code 
 * @returns Boolean
 */
export const checkPermissionBtn = (button_code)=>{
    const buttonCodes = store.state.permissionButton.permissionButtons.map(item=>item.ButtonCode)
    return buttonCodes.includes(button_code)
}

/*
 * -----------------------------------------------------------------------------研报管理------------------------------------------------
 */
/*
 *--------中文研报列表----------- 
 */
export const reportManageBtn={
    reportManage_sendMsg:'reportManage:sendMsg',//推送消息/已推送消息
    reportManage_reportView:'reportManage:reportView',//研报预览:即是否能点击研报名称跳转预览页面
    reportManage_reportView_wechartShare:'reportManage:reportView:wechartShare',//研报预览页面-微信分享
    reportManage_reportView_copyWechat:'reportManage:reportView:copyWechat',//研报预览页面-复制链接
    reportManage_audioDownload:'reportManage:audioDownload',//音频下载
    reportManage_audioUpload:'reportManage:audioUpload',//音频上传
    reportManage_exportImg:'reportManage:exportImg',//下载长图
    reportManage_exportPdf:'reportManage:exportPdf',//下载Pdf
    reportManage_reportDel:'reportManage:reportDel',//删除研报
    reportManage_reportEdit:'reportManage:reportEdit',//编辑研报
    reportManage_cancelPublish:'reportManage:cancelPublish',//取消发布
    reportManage_publish:'reportManage:publish',//发布研报
    reportManage_reportList:'reportManage:reportList',//研报列表的选项
    reportManage_reportList_uv:'reportManage:reportList:uv',//研报列表-PV/UV
    reportManage_reportList_sendTime:'reportManage:reportList:sendTime',//研报列表-报告推送时间
    // reportManage_dayWeekReportAdd:'reportManage:dayWeekReportAdd',//添加晨报周报
    reportManage_reportAdd:'reportManage:reportAdd',//添加研报

    reportManage_clearCont:'reportMange:clearCont',//一键清空内容

    reportMange_chapter_add: 'reportMange:chapter:add',//章节添加
    reportMange_chapter_sort: 'reportMange:chapter:sort',//章节排序
    reportMange_chapter_share: 'reportMange:chapter:share',//章节分享
    reportMange_chapter_editTag: 'reportMange:chapter:editTag',//章节添加标签
    reportMange_history: 'reportManage:history',//历史记录
}
/*
 *--------智能研报列表----------- 
 */
 export const smartReportManageBtn={
    reportManage_sendMsg:'smartReportManage:sendMsg',//推送消息/已推送消息
    reportManage_reportView:'smartReportManage:reportView',//研报预览:即是否能点击研报名称跳转预览页面
    reportManage_reportView_wechartShare:'smartReportManage:reportView:wechartShare',//研报预览页面-微信分享
    reportManage_reportView_copyWechat:'smartReportManage:reportView:copyWechat',//研报预览页面-复制链接
    reportManage_exportImg:'smartReportManage:exportImg',//导出图片
    reportManage_exportPdf:'smartReportManage:exportPdf',//下载Pdf
    reportManage_audioDownload:'smartReportManage:audioDownload',//音频下载
    reportManage_audioUpload:'smartReportManage:audioUpload',//音频上传
    reportManage_reportDel:'smartReportManage:reportDel',//删除研报
    reportManage_reportEdit:'smartReportManage:reportEdit',//编辑研报
    reportManage_cancelPublish:'smartReportManage:cancelPublish',//取消发布
    reportManage_publish:'smartReportManage:publish',//发布研报
    reportManage_reportList:'smartReportManage:reportList',//研报列表的选项
    reportManage_reportList_uv:'smartReportManage:reportList:uv',//研报列表-PV/UV
    reportManage_reportList_sendTime:'smartReportManage:reportList:sendTime',//研报列表-报告推送时间
    reportManage_reportAdd:'smartReportManage:reportAdd',//添加研报
}
/*
*--------英文研报列表----------- 
*/
export const enReportManageBtn = {
    enReport_reportView:'enReport:reportView',//研报预览:即是否能点击研报名称跳转预览页面
    enReport_reportView_wechatShare:'enReport:reportView:wechatShare',//研报预览页面-微信分享
    enReport_reportView_copyWechat:'enReport:reportView:copyWechat',//研报预览页面-复制链接
    enReport_sendEmail:'enReport:sendEmail',//群发邮件/群发日志
    enReport_reportDel:'enReport:reportDel',//删除研报
    enReport_reportEdit:'enReport:reportEdit',//编辑研报
    enReport_exportImg:'enReport:exportImg',//下载长图
    enReport_exportPdf:'enReport:exportPdf',//下载Pdf
    enReport_cancelPublish:'enReport:cancelPublish',//取消发布
    enReport_publish:'enReport:publish',//发布研报
    enReport_syncPolicy:'enReport:syncPolicy',//同步策略报告
    enReport_reportAdd:'enReport:reportAdd',//添加研报

}
/*
*--------中文分类----------- 
*/
export const classifyBtn={
    classifyList_cnClassify:'classifyList:cnClassify',//中文分类这个选项卡是否显示
    // classifyList_cnClassify_classifyDel:'classifyList:cnClassify:classifyDel',//一二级分类删除
    // classifyList_cnClassify_authSetting:'classifyList:cnClassify:authSetting',//二级分类权限配置
    
    /*---------添加编辑分类------------- */
    classifyList_cnClassify_classifyAdd:'classifyList:cnClassify:add',//添加分类
    classifyList_cnClassify_classifyEdit:'classifyList:cnClassify:edit',//添加分类
    classifyList_cnClassify_connect_variety:'classifyList:cnClassify:variety',//关联品种
    classifyList_cnClassify_chapterSetting:'classifyList:cnClassify:chapterSetting',//晨周报章节设置
    classifyList_cnClassify_enable:'classifyList:cnClassify:enable',//启用\禁用
    classifyList_cnClassify_delete:'classifyList:cnClassify:delete',//分类删除
    classifyList_cnClassify_see_auth:'classifyList:cnClassify:seeAuth'//分类可见权限


    // classifyList_cnClassify_relateSetting:'classifyList:cnClassify:relateSetting',//表单项:关联设置
    // classifyList_cnClassify_miniHidden:'classifyList:cnClassify:miniHidden',//表单项:小程序隐藏
    // classifyList_cnClassify_pcBackColor:'classifyList:cnClassify:pcBackColor',//表单项:PC端背景颜色
    // classifyList_cnClassify_shareImgs:'classifyList:cnClassify:shareImgs',//表单项:分享链接配图
    // classifyList_cnClassify_reportImgs:'classifyList:cnClassify:reportImgs',//表单项:报告合集配图
    // classifyList_cnClassify_ficcIcon:'classifyList:cnClassify:ficcIcon',//表单项:FICCicon
    // classifyList_cnClassify_ficcSort:'classifyList:cnClassify:ficcSort',//表单项:FICC页排序
    // classifyList_cnClassify_backSort:'classifyList:cnClassify:backSort',//表单项:后台排序
    // classifyList_cnClassify_showType:'classifyList:cnClassify:showType',//表单项:展示形式
    // classifyList_cnClassify_childMenu:'classifyList:cnClassify:childMenu',//表单项:子目录
}
/*
*--------英文分类-----------   ETA_1.1.7 不区分英文研报和线上路演 统一使用英文研报的标识
*/
export const enClassifyBtn = {
    classifyList_enClassify:'classifyList:enClassify',//英文分类这个选项卡是否展示
    classifyList_enClassify_add:'classifyList:enClassify:rpAddClassify',//英文分类添加按钮
    classifyList_enClassify_edit:'classifyList:enClassify:rpEdit',//英文分类编辑
    classifyList_enClassify_enable:'classifyList:enClassify:enable',//启用\禁用
    classifyList_enClassify_connect_variety:'classifyList:enClassify:variety',//关联品种


    /* -------------线上路演------------- */ 
    classifyList_enClassify_roadshow:'classifyList:enClassify:roadshow',//线上路演这个选项卡是否展示
    classifyList_enClassify_rsDel:'classifyList:enClassify:rsDel',//线上路演一二级分类删除
    classifyList_enClassify_rsAuthSetting:'classifyList:enClassify:rsAuthSetting',//线上路演二级分类权限设置
    classifyList_enClassify_rsEdit:'classifyList:enClassify:rsEdit',//线上路演一二级分类编辑
    classifyList_enClassify_rsAddClassify:'classifyList:enClassify:rsAddClassify',//线上路演添加分类按钮
    /* -------------英文研报------------- */
    classifyList_enClassify_report:'classifyList:enClassify:report',//英文研报这个选项卡是否展示
    classifyList_enClassify_rpDel:'classifyList:enClassify:rpDel',//英文研报一二级删除
    classifyList_enClassify_rpAuthSetting:'classifyList:enClassify:rpAuthSetting',//英文研报二级分类权限配置
    classifyList_enClassify_rpEdit:'classifyList:enClassify:rpEdit',//英文研报一二级编辑
    classifyList_enClassify_rpAddClassify:'classifyList:enClassify:rpAddClassify',//英文研报添加分类
}
/*
*--------作者管理----------- 
*/
export const authorManage = {
/*------------------英文研报作者管理------------ */
    authorManage_enReport:'authorManage:enReport',//英文研报选项卡是否展示
    authorManage_enReport_enable:'authorManage:enReport:enable',//英文研报作者启用/禁用
    authorManage_enReport_del:'authorManage:enReport:del',//英文研报作者删除
    authorManage_enReport_edit:'authorManage:enReport:edit',//英文研报作者编辑
/*------------------中文研报作者管理------------ */
    authorManage_cnReport:'authorManage:cnReport',//中文研报选项卡是否展示
    authorManage_cnReport_enable:'authorManage:cnReport:enable',//中文研报作者启用/禁用
    authorManage_cnReport_del:'authorManage:cnReport:del',//中文研报作者删除
    authorManage_cnReport_edit:'authorManage:cnReport:edit',//中文研报作者编辑

    authorManage_add:'authorManage:add',//添加作者按钮
}
/*
*--------品种配置----------- 
*/
export const reportVariety = {
    zhVarietyHas:'reportvariety:chinese',//中文品种
    zhPublicSet:'reportvariety:chinese:ispublic',//公有权限设置
    zhVarietyEdit:'reportvariety:chinese:set',//品种设置
    zhVarietyAdd:'reportvariety:chinese:add',//添加品种
    enVarietyHas:'reportvariety:english',//英文品种
    enVarietyEdit:'enChartPermission:edit',//品种设置
    enVarietyAdd:'enChartPermission:save',//添加品种
}
/*
*--------云盘----------- 
*/
export const cloudDisk = {
    cloudDisk_del:'cloudDisk:del',
    cloudDisk_download:'cloudDisk:download',
    cloudDisk_rename:'cloudDisk:rename',
    cloudDisk_uploadFile:'cloudDisk:uploadFile',
    cloudDisk_newDir:'cloudDisk:newDir'
}
/*
 * -----------------------------------------------------------------------------智能PPT------------------------------------------------
 */
/*
*--------中文PPT----------- 
*/
export const pptPermission ={
    /*---------对PPT操作--------- */
    ppt_del:'ppt:del',
    ppt_copy:'ppt:copy',
    ppt_toEn:'ppt:toEn',//转英文PPT
    ppt_toReport:'ppt:toReport',//转报告
    ppt_download:'ppt:download',
    ppt_show:'ppt:show',//演示
    ppt_publish:'ppt:publish',
    /*--------页面按钮操作-------- */
    ppt_save:'ppt:save',//添加PPT按钮,同时也控制编辑权限
    ppt_merge:'ppt:merge',//合并PPT
    ppt_addCatalog:'ppt:addCatalog',//添加我的目录
    ppt_setShare:'ppt:setShare',//设置共享
    ppt_visible:'ppt:visible',//可见权限
    ppt_history:'ppt:history',//添加我的目录
}
/*
*--------英文PPT---------- 
*/
export const enPPTPermission={
    /*---------对PPT操作--------- */
    pptEn_del:'pptEn:del',
    pptEn_copy:'pptEn:copy',
    pptEn_toReport:'pptEn:toReport',//转报告
    pptEn_download:'pptEn:download',
    pptEn_show:'pptEn:show',//演示
    pptEn_publish:'pptEn:publish',
    /*--------页面按钮操作-------- */
    pptEn_save:'pptEn:save',//添加PPT按钮,同时也控制编辑权限
    pptEn_merge:'pptEn:merge',//合并PPT
    pptEn_addCatalog:'pptEn:addCatalog',
    pptEn_setShare:'pptEn:setShare',
    pptEn_visible:'pptEn:visible',
}

/*
 * ---------------------------------------------------------------------------数据源------------------------------------------------
 */
export const dataSourcePermission = {
    /*--------手工指标列表---- */
    manualData_del:'manualData:del',
    manualData_add:'manualData:add',//新增编辑
    manualData_add_updateRemind:'manualData:add:updateRemind',//新增编辑-更新提醒
    /*--------手工数据录入---- */
    manualDataWrite_edit:'manualDataWrite:edit',//编辑按钮,直接编辑没有禁
    manualDataWrite_del:'manualDataWrite:del',//删除
    manualDataWrite_add:'manualDataWrite:add',//添加
    manualDataWrite_export:'manualDataWrite:export',//导出
    manualDataWrite_import:'manualDataWrite:import',//导入
    manualDataWrite_online_excel:'manualDataWrite:online:excel',//在线excel
    manualDataWrite_batch_add:'manualDataWrite:batch:add',//批量加入
    manualDataWrite_batch_del:'manualDataWrite:batch:del',//批量删除
    
    /*--------期货数据库没有要控制的东西---- */
    /*--------隆众原始数据库---- */
    longzhongData_export:'longzhongData:export',
    /*--------钢联原始数据库---- */
    glData_export:'glData:export',
    /*--------钢联化工数据库---- */
    mysteelData_refresh:'mysteelData:refresh',//一键刷新
    mysteelData_export:'mysteelData:export',
    mysteelData_add:'mysteelData:add',//新增指标
    mysteelData_classifyOpt_add:'mysteelData:classifyOpt:add',//添加目录和子项
    mysteelData_classifyOpt_edit:'mysteelData:classifyOpt:edit',//编辑
    mysteelData_classifyOpt_delete:'mysteelData:classifyOpt:delete',//删除
    mysteelData_addEdb:'mysteelData:addEdb',//单个指标加入指标库
    mysteelData_batchAddEdb:'mysteelData:batchAddEdb',//批量加入指标库
    /*--------SMM原始数据库---- */
    smmData_export:'smmData:export',
    smmData_classifyOpt_add:'smmData:classifyOpt:add',//添加目录和子项
    smmData_classifyOpt_edit:'smmData:classifyOpt:edit',//编辑
    smmData_classifyOpt_delete:'smmData:classifyOpt:delete',//删除
    /*--------有色原始数据库---- */
    ysTarget_view:'ysTarget:view',
    ysTarget_addBatch:'ysTarget:addBatch',
    /*--------百川盈孚---- */
    bcyfData_edit:'bcyfData:edit',//编辑指标按钮
    bcyfData_export:'bcyfData:export',
    bcyfData_classifyOpt_add:'bcyfData:classifyOpt:add',//添加目录和子项
    bcyfData_classifyOpt_edit:'bcyfData:classifyOpt:edit',//编辑
    bcyfData_classifyOpt_delete:'bcyfData:classifyOpt:delete',//删除

    /*--------卓创数据(红桃3)---- */
    hongtao3Data_export:'hongtao3Data:export',
    hongtao3Data_classifyOpt_add:'hongtao3Data:classifyOpt:add',
    hongtao3Data_classifyOpt_edit:'hongtao3Data:classifyOpt:edit',
    hongtao3Data_classifyOpt_delete:'hongtao3Data:classifyOpt:delete',
    /*--------中国煤炭市场网)---- */
    zgmtData_export:'zgmtData:export',
    /*--------EIA  STEO报告---- */
    eiaData_export:'eiaData:export',
    /*--------国家统计局---- */
    gjtjjData_export:'gjtjjData:export',
    /*--------数据报表管理---- */
    /*--------数据源终端管理---- */
    dataSource_account_add:'dataSourceAccount:add',//新增终端账号
    dataSource_account_edit:'dataSourceAccount:edit',//编辑
    dataSource_account_enable:'dataSourceAccount:enable',//禁用/启用
    /*--------涌益咨询---- */
    yyzxData_export:'yyzx:exportData',
    /*--------汾渭数据---- */
    fwData_export:'fwsj:exportData', // 导出
    fwData_view: 'fwsj:showData',//查看
    fwData_batch_addBase: 'fwsj:batch:addBase',//批量添加到指标库
    fwData_opera_addBase: 'fwsj:opera:addBase',//指标入库
    /*--------煤炭江湖---- */
    coalWordData_view:'coalWord:view', // 查看
    coalWordData_export:'coalWord:export', // 导出
    /*--------彭博数据源--- */
    Bloomberg_add2edb:'Bloomberg:add2edb',//添加指标库
    /* 自有数据 */
    selfData_addEdb:'selfData:addEdb',//添加到指标库
    selfData_detail:'selfData:detail',//查看详情
    /*--------卓创资讯---- */
    zczx_showData:'zczx:showData',
    zczx_exportData:'zczx:exportData',
    /*--------CCF化纤信息--- */
    ccfData_view:'ccfData:view',//查看
    ccfData_exportExcel:'ccfData:exportExcel',//导出
    /*--------高频数据--- */
    highFrequency_adds:'highFrequency:adds',//添加高频数据
    highFrequency_addTo_database:'highFrequency:addTo:database',//批量添加至指标库
    highFrequency_operations:'highFrequency:operations',//批量操作
    highFrequency_operation_detail:'highFrequency:operation:detail',//操作-详情
    highFrequency_operation_refresh:'highFrequency:operation:refresh',//操作-刷新
    highFrequency_operation_delete:'highFrequency:operation:delete',//操作-删除
    highFrequency_classify_move:'highFrequency:classify:move',//分类设置-移动
    highFrequency_classify_delete:'highFrequency:classify:delete',//分类设置-删除
    highFrequency_classify_editAdd:'highFrequency:classify:editAdd',//分类设置-编辑/添加

    /* 卓创红期 */
    sciHongqi_batch_addBase: 'sciHongqi:batch:addBase',//批量添加到指标库
    sciHongqi_batch_del: 'sciHongqi:batch:del',//批量删除
    sciHongqi_batch_edit: 'sciHongqi:batch:edit',//批量编辑
    sciHongqi_view: 'sciHongqi:view',//查看
    sciHongqi_export: 'sciHongqi:export',//导出Excel
    sciHongqi_classify_edit: 'sciHongqi:classify:edit',//分类编辑
    sciHongqi_classify_add: 'sciHongqi:classify:add',//分类添加
    sciHongqi_classify_move: 'sciHongqi:classify:move',//分类移动
    sciHongqi_classify_del: 'sciHongqi:classify:del',//分类删除
    sciHongqi_opera_addBase: 'sciHongqi:opera:addBase',//指标入库
    sciHongqi_opera_del: 'sciHongqi:opera:del',//指标删除
    sciHongqi_opera_clear: 'sciHongqi:opera:clear',//指标清除
    sciHongqi_opera_edit: 'sciHongqi:opera:edit',//指标编辑
    /*--------隆众资讯--- */
    lzzxData_view:'lzzxData:view',//查看数据
    lzzxData_addEdb:'lzzxData:addEdb',//加入指标库
    lzzxData_batchAddEdb:'lzzxData:batchAddEdb',//批量加入指标
    lzzxData_exportExcel:'lzzxData:exportExcel',//导出excel
}

/*
 * ---------------------------------------------------------------------------ETA指标库------------------------------------------------
 */
export const edbDataPermission = {
    /*-----------指标详情按钮--------- */
    edbData_refreshAll:'edbData:refreshAll',//全部刷新
    edbData_newestValue:'edbData:newestValue',//添加最新值
    edbData_enNameSetting:'edbData:enNameSetting',//设置英文名称
    edbData_edbSource:'edbData:edbSource',//指标溯源
    edbData_copyData:'edbData:copyData',//复制数据
    /* edbData_toImgs:'edbData:toImgs',//一键成图 */
    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_batchUpdate:'edbData:batchUpdate',//一键更新
    edbData_dataAdjust:'edbData:dataAdjust',//数据调整
    edbData_codeRun:'edbData:codeRun',//代码运算
    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',//查看计算指标
    edbData_enableOrDisable:'edbData:enableOrDisable',//启用/停用


    /* 拆分 数据查看特有权限 */
    edbData_edbCollect_collect:'edbData:edbCollect:collect',//收藏/移出
    edbBaseData_view:'edbBaseData:view',//查看`
    edbData_edbCollectClassify_save:'edbData:edbCollectClassify:save',//收藏分类编辑
    edbData_edbCollectClassify_remove:'edbData:edbCollectClassify:remove',//收藏分类删除
    edbData_edbCollectClassify_move:'edbData:edbCollectClassify:move',//收藏分类移动
}
/*
 * ---------------------------------------------------------------------------ETA预测指标------------------------------------------------
 */
export const predictEdbPermission = {
    /*-----------指标详情按钮--------- */
    edbPreData_switchSeason:'edbPreData:switchSeason',//切换季节性图
    /* edbPreData_viewData:'edbPreData:viewData',//查看数据 */
    edbPreData_copyData:'edbPreData:copyData',//复制数据
    edbPreData_del:'edbPreData:del',//删除
    edbPreData_recalcu:'edbPreData:recalcu',//重新计算
    edbPreData_save:'edbPreData:save',//保存
    edbPreData_edit:'edbPreData:edit',//编辑
    edbPreData_update:'edbPreData:update',//更新
    edbPreData_edbSource:'edbPreData:edbSource',//指标溯源
    edbPreData_enNameSetting:'edbPreData:enNameSetting',//设置英文名称
    edbPreData_editLimit:'edbPreData:editLimit',//编辑上下限
    /*------------页面按钮---------- */
    edbPreData_calcuEdb:'edbPreData:calcuEdb',//计算指标
    edbPreData_addEdb:'edbPreData:addEdb',//添加指标
    edbPreData_switchEn:'edbPreData:switchEn',//切换英文版
    edbPreData_isOnlyMine:'edbPreData:isOnlyMine',//只看我的
    edbPreData_classifyOpt_add:'edbPreData:classifyOpt:add',//添加/编辑分类
    edbPreData_classifyOpt_delete:'edbPreData:classifyOpt:delete',//删除分类
    edbPreData_classifyOpt_move:'edbPreData:classifyOpt:move',//移动分类
    edbPreData_checkRelatedChart:'edbPreData:checkRelatedChart',//查看关联图表
    edbPreData_checkRelatedEdb:'edbPreData:checkRelatedEdb',//查看关联指标
    edbPreData_checkPreRule:'edbPreData:checkPreRule',//查看预测规则
}

/*
 * ---------------------------------------------------------------------------ETA图库------------------------------------------------
 */
export const chartLibPermission = {
    /*-----------图表详情按钮--------- */
    chartLib_viewData:'chartLib:viewData',//查看数据,图表详情的表格操作栏
    chartLib_copyData:'chartLib:copyData',//复制数据,图表详情的表格操作栏
    chartLib_del:'chartLib:del',
    chartLib_enNameSetting:'chartLib:enNameSetting',
    chartLib_copyWechat:'chartLib:copyWechat',
    chartLib_copyOffice:'chartLib:copyOffice',
    chartLib_edit:'chartLib:edit',
    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_add:'chartLib:add',
    chartLib_switchEn:'chartLib:switchEn',
    chartLib_isOnlyMine:'chartLib:isOnlyMine',//只看我的
    chartLib_classifyOpt_add:'chartLib:classifyOpt:add',//新增/编辑分类
	chartLib_classifyOpt_delete:'chartLib:classifyOpt:delete',//删除分类

    chartLib_uploadToForum:'chartLib:uploadToForum',//上传至社区
    chartLib_updateToForum:'chartLib:updateToForum',//同步至社区
    chartLib_withdrawfromForum:'chartLib:withdrawfromForum',//从社区撤回
    chartLib_sourceEdit:'chartLib:sourceEdit',//编辑数据来源
}

/*
 * ---------------------------------------------------------------------------My ETA------------------------------------------------
 */
export const myETAPermission = {
    /*-----------图表详情弹窗按钮--------- */
    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_edit:'myChart:edit',
    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 const chartFramePermission={
    chartframe_public_copyImg:'chartframe:public:copyImg',//公共框架-复制图片
    chartframe_my_editNode:'chartframe:my:editNode',//我的框架-添加/编辑节点
    chartframe_my_saveFrame:'chartframe:my:saveFrame',//我的框架-保存框架
    chartframe_my_editFrame:'chartframe:my:editFrame',//我的框架-添加/编辑框架
    chartframe_my_delFrame:'chartframe:my:delFrame',//我的框架-删除框架
    chartframe_my_show:'chartframe:my:show',//我的框架-设置可见权限
    chartframe_my_rename:'chartframe:my:rename',//我的框架-重命名
    chartframe_my_copyImg:'chartframe:my:copyImg',//我的框架-复制图片
    chartframe_my_move:'chartframe:my:move',//我的框架-移动排序
}
/*
 * --------------------------------------------------------------------------ETA表格------------------------------------------------
*/
export const etaTablePermission = {
    /*-----------页面按钮--------- */

    /*-----------自定义表格--------- */
    /* etaTable_customize_del:'etaTable:customize:del',
    etaTable_customize_download:'etaTable:customize:download',
    etaTable_customize_otherSave:'etaTable:customize:otherSave',
    etaTable_customize_refresh:'etaTable:customize:refresh',
    etaTable_customize_edit:'etaTable:customize:edit', */

    //混合表格页面
    etaTable_customize_mix_sheetAdd: 'etaTable:customize:mix:sheetAdd',//添加混合表格按钮
    etaTable_customize_mix_classifyOpt_edit: 'etaTable:customize:mix:classifyOpt:edit',//混合表格分类操作
    etaTable_customize_mix_classifyOpt_delete: 'etaTable:customize:mix:classifyOpt:delete',//混合表格分类删除
    etaTable_customize_mix_edit:'etaTable:customize:mix:edit',//编辑
    etaTable_customize_mix_refresh:'etaTable:customize:mix:refresh',//刷新
    etaTable_customize_mix_otherSave:'etaTable:customize:mix:otherSave',//另存为
    etaTable_customize_mix_download:'etaTable:customize:mix:download',//下载
    etaTable_customize_mix_save:'etaTable:customize:mix:save',//保存
    etaTable_customize_mix_del:'etaTable:customize:mix:del',//删除
    etaTable_customize_mix_source_edit:'etaTable:customize:mix:classifyOpt:sourceEdit',//编辑数据来源

    //数据表格页面
    etaTable_customize_data_sheetAdd: 'etaTable:customize:data:sheetAdd',//添加数据表格按钮
    etaTable_customize_data_classifyOpt_edit: 'etaTable:customize:data:classifyOpt:edit',//数据表格分类操作
    etaTable_customize_data_classifyOpt_delete: 'etaTable:customize:data:classifyOpt:delete',//数据表格分类删除
    etaTable_customize_data_edit:'etaTable:customize:data:edit',//编辑
    etaTable_customize_data_refresh:'etaTable:customize:data:refresh',//刷新
    etaTable_customize_data_otherSave:'etaTable:customize:data:otherSave',//另存为
    etaTable_customize_data_download:'etaTable:customize:data:download',//下载
    etaTable_customize_data_del:'etaTable:customize:data:del',//删除
    etaTable_customize_data_save:'etaTable:customize:data:save',//保存
    etaTable_customize_data_sourceEdit:'etaTable:customize:data:classifyOpt:sourceEdit',//编辑数据来源

    /*-----------excel表格页面--------- */
    etaTable_excel:'etaTable:excel',//添加Excel表格这个按钮显示不显示
    etaTable_excel_classifyOpt_edit:'etaTable:excel:classifyOpt:edit',//添加编辑表格
    etaTable_excel_classifyOpt_delete:'etaTable:excel:classifyOpt:delete',//删除表格
    etaTable_excel_del:'etaTable:excel:del',
    etaTable_excel_download:'etaTable:excel:download',
    etaTable_excel_save:'etaTable:excel:save',//保存
    etaTable_excel_edit:'etaTable:excel:edit',

    //自定义分析表格页面
    // etaTable_analysis_sheetAdd: 'etaTable:analysis:sheetAdd',//添加数据表格按钮
    etaTable_analysis_classifyOpt_edit: 'etaTable:analysis:classifyOpt:edit',//数据表格分类操作
    etaTable_analysis_classifyOpt_delete: 'etaTable:analysis:classifyOpt:delete',//数据表格分类删除
    etaTable_analysis_upload:'etaTable:analysis:upload',//上传文件
    etaTable_analysis_createedb:'etaTable:analysis:createedb',//生成指标
    etaTable_analysis_refresh:'etaTable:analysis:refresh',//刷新
    etaTable_analysis_otherSave:'etaTable:analysis:otherSave',//另存为
    etaTable_analysis_download:'etaTable:analysis:download',//下载
    etaTable_analysis_del:'etaTable:analysis:del',//删除
    etaTable_analysis_save:'etaTable:analysis:save',//保存
    etaTable_analysis_edit:'etaTable:analysis:edit',//编辑
    etaTable_analysis_share:'etaTable:analysis:share',//设置共享,取消共享

    // 平衡表
    etaTable_customize_balance_sheetAdd:'etaTable:customize:balance:sheetAdd',//添加
    etaTable_customize_balance_del:'etaTable:customize:balance:del',//删除
    etaTable_customize_balance_download:'etaTable:customize:balance:download',//下载
    etaTable_customize_balance_otherSave:'etaTable:customize:balance:otherSave',//另存为
    etaTable_customize_balance_refresh:'etaTable:customize:balance:refresh',//刷新
    etaTable_customize_balance_edit:'etaTable:customize:balance:edit',//编辑
    etaTable_customize_balance_classifyOpt_delete:'etaTable:customize:balance:classifyOpt:delete',//删除分类
    etaTable_customize_balance_classifyOpt_edit:'etaTable:customize:balance:classifyOpt:edit',//添加/编辑分类
}
/*
 * --------------------------------------------------------------------------ETA逻辑------------------------------------------------
*/
export const sandboxPermission = {
    sandbox_variety:'sandbox:variety',//沙盘品种选择,添加目录的时候控制显示
    sandbox_addMy:'sandbox:addMy',//复制图片
    sandbox_del:'sandbox:del',//删除
    sandbox_saveView:'sandbox:saveView',//添加/编辑/查看
    sandbox_search:'sandbox:search',//搜索
    sandbox_classify_move:'sandbox:classify:move',//分类操作:移动
    sandbox_classify_del:'sandbox:classify:del',//分类操作:删除
    sandbox_classify_addEdit:'sandbox:classify:addEdit',//分类操作:添加/编辑
}
/*
 * --------------------------------------------------------------------------语义分析------------------------------------------------
*/
export const semanticPermission = {
    /*-----------文档管理--------- */
    docPage_save:'docPage:save',//添加编辑文档
    docPage_delete:'docPage:delete',//删除文档
    docPage_classifyOpt_edit:'docPage:classifyOpt:edit',//添加编辑分类
    docPage_classifyOpt_delete:'docPage:classifyOpt:delete',//删除分类
    /*-----------文档对比--------- */
    saPage_save:'saPage:save',//添加编辑对比文档
    saPage_download:'saPage:download',//下载
    saPage_copyOffice:'saPage:copyOffice',//复制到Office
    saPage_copyWeixin:'saPage:copyWeixin',//复制到微信
    saPage_delete:'saPage:delete',//删除对比文档
    saPage_classifyOpt_edit:'saPage:classifyOpt:edit',//添加编辑分类
    saPage_classifyOpt_delete:'saPage:classifyOpt:delete',//删除分类
    /*-----------标签管理--------- */
    tagPage_del:'tagPage:del',
    tagPage_save:'tagPage:save',//添加编辑标签
    /*-----------语音识别--------- */
    ASR_view:'ASR:view',//查看
    ASR_classify_catalogue_add:'ASR:classify:catalogue:add',//目录树添加
    ASR_classify_catalogue_edit:'ASR:classify:catalogue:edit',//目录树编辑
    ASR_classify_catalogue_del:'ASR:classify:catalogue:del',//目录树删除
    ASR_classify_catalogue_move:'ASR:classify:catalogue:move',//目录树拖动 
    ASR_classify_tag_add:'ASR:classify:tag:add',//标签目录树添加
    ASR_classify_tag_edit:'ASR:classify:tag:edit',//标签目录树编辑
    ASR_classify_tag_del:'ASR:classify:tag:del',//标签目录树删除
    ASR_classify_tag_move:'ASR:classify:tag:move',//标签目录树拖动 
    ASR_tagOperation_addTag:'ASR:tagOperation:addTag',//标签添加
    ASR_tagOperation_editTag:'ASR:tagOperation:editTag',//标签编辑
    ASR_tagOperation_deleteTag:'ASR:tagOperation:deleteTag',//标签删除
    ASR_addArticles:'ASR:addArticles',//新建
    ASR_renameArticles:'ASR:renameArticles',//重命名
    ASR_exportArticles:'ASR:exportArticles',//导出
    ASR_deleteArticles:'ASR:deleteArticles',//删除
    ASR_tagMark_view:'ASR:tagMark:view',//打标签-查看标签
    ASR_tagMark_add:'ASR:tagMark:add',//打标签-添加标签    
    ASR_saveArticles:'ASR:saveArticles',//保存
    ASR_deleteVideo:'ASR:deleteVideo',//删除视频
    ASR_deleteVoice:'ASR:deleteVoice',//删除音频
    ASR_copyText:'ASR:copyText',//复制
    ASR_toggleTimestampShow:'ASR:toggleTimestampShow',//隐藏/显示时间戳

    /* ai纪要 */
    AiSummery_add: 'AiSummery:add',//添加纪要
    AiSummery_view: 'AiSummery:view',//查看
    AiSummery_prompt_add: 'AiSummery:prompt:add',//添加提示词
    AiSummery_classify_edit: 'AiSummery:classify:edit',//添加编辑纪要分类
    AiSummery_classify_move: 'AiSummery:classify:move',//移动分类
    AiSummery_classify_del: 'AiSummery:classify:del',//删除分类
    AiSummery_prompt_classify_move: 'AiSummery:prompt:classify:move',//提示词分类移动
    AiSummery_prompt_classify_del: 'AiSummery:prompt:classify:del',//提示词分类删除
    AiSummery_prompt_classify_edit: 'AiSummery:prompt:classify:edit',//提示词分类修改
}
/*
 * --------------------------------------------------------------------------统计分析------------------------------------------------
*/
export const statisticPermission = {
    /*-----------相关性分析--------- */
    corrAnalysis_addChart:'corrAnalysis:addChart',//添加图表按钮
    corrAnalysis_viewData:'corrAnalysis:viewData',//查看表格数据
    corrAnalysis_copyData:'corrAnalysis:copyData',//复制表格数据
    corrAnalysis_onlyMine:'corrAnalysis:onlyMine',//只看我的
    corrAnalysis_classifyOpt_edit:'corrAnalysis:classifyOpt:edit',//添加/编辑分类
    corrAnalysis_classifyOpt_delete:'corrAnalysis:classifyOpt:delete',//删除分类
    corrAnalysis_classifyOpt_move:'corrAnalysis:classifyOpt:move',//移动分类
    corrAnalysis_source_edit:'corrAnalysis:sourceEdit',//编辑数据来源
        /*---图表操作栏--- */
    corrAnalysis_del:'corrAnalysis:del',
    corrAnalysis_enNameSetting:'corrAnalysis:enNameSetting',
    corrAnalysis_copyWechat:'corrAnalysis:copyWechat',
    corrAnalysis_copyOffice:'corrAnalysis:copyOffice',
    corrAnalysis_edit:'corrAnalysis:edit',
    corrAnalysis_otherSave:'corrAnalysis:otherSave',
    corrAnalysis_refresh:'corrAnalysis:refresh',
    corrAnalysis_addMyChart:'corrAnalysis:addMyChart',
    corrAnalysis_share:'corrAnalysis:share',

    /*-----------统计特征--------- */
    statisticFeature_addChart:'statisticFeature:addChart',//添加图表按钮
    statisticFeature_onlyMine:'statisticFeature:onlyMine',//只看我的
    statisticFeature_classifyOpt_edit:'statisticFeature:classifyOpt:edit',//添加/编辑分类
    statisticFeature_classifyOpt_delete:'statisticFeature:classifyOpt:delete',//删除分类
        /*---图表操作栏--- */
    statisticFeature_del:'statisticFeature:del',
    statisticFeature_enNameSetting:'statisticFeature:enNameSetting',
    statisticFeature_copyWechat:'statisticFeature:copyWechat',
    statisticFeature_copyOffice:'statisticFeature:copyOffice',
    statisticFeature_edit:'statisticFeature:edit',
    statisticFeature_otherSave:'statisticFeature:otherSave',
    statisticFeature_refresh:'statisticFeature:refresh',
    statisticFeature_addMyChart:'statisticFeature:addMyChart',
    statisticFeature_share:'statisticFeature:share',

    /*-----------拟合方程曲线--------- */
    fittingEq_addChart:'fittingEq:addChart',//添加图表按钮
    fittingEq_onlyMine:'fittingEq:onlyMine',//只看我的
    fittingEq_classifyOpt_edit:'fittingEq:classifyOpt:edit',//添加编辑分类
    fittingEq_classifyOpt_delete:'fittingEq:classifyOpt:delete',//删除分类
        /*---图表操作栏--- */
    fittingEq_del:'fittingEq:del',
    fittingEq_enNameSetting:'fittingEq:enNameSetting',
    fittingEq_copyWechat:'fittingEq:copyWechat',
    fittingEq_copyOffice:'fittingEq:copyOffice',
    fittingEq_edit:'fittingEq:edit',
    fittingEq_otherSave:'fittingEq:otherSave',
    fittingEq_refresh:'fittingEq:refresh',
    fittingEq_addMyChart:'fittingEq:addMyChart',
    fittingEq_share:'fittingEq:share',

    /* 跨品种分析 */
    crossVariety_addChart:'crossVariety:addChart',//添加图表按钮
    crossVariety_onlyMine:'crossVariety:onlyMine',//只看我的
    crossVariety_classifyOpt_edit:'crossVariety:classifyOpt:edit',//添加编辑分类
    crossVariety_classifyOpt_delete:'crossVariety:classifyOpt:delete',//删除分类
    crossVariety_variety_edit: 'crossVariety:variety:edit',//品种管理
    crossVariety_tag_edit: 'crossVariety:tag:edit',//标签管理
        /*---图表操作栏--- */
    crossVariety_del:'crossVariety:del',
    crossVariety_enNameSetting:'crossVariety:enNameSetting',
    crossVariety_copyWechat:'crossVariety:copyWechat',
    crossVariety_copyOffice:'crossVariety:copyOffice',
    crossVariety_edit:'crossVariety:edit',
    crossVariety_otherSave:'crossVariety:otherSave',
    crossVariety_refresh:'crossVariety:refresh',
    crossVariety_addMyChart:'crossVariety:addMyChart',
    crossVariety_share:'crossVariety:share',

    /* 区间分析 */
    rangeAnalysis_addChart:'rangeAnalysis:addChart',
    rangeAnalysis_onlyMine:'rangeAnalysis:onlyMine',//只看我的
    rangeAnalysis_classifyOpt_edit:'rangeAnalysis:classifyOpt:edit',//添加编辑分类
    rangeAnalysis_classifyOpt_delete:'rangeAnalysis:classifyOpt:delete',//删除分类
    rangeAnalysis_classifyOpt_move:'rangeAnalysis:classifyOpt:move',//删除分类
    rangeAnalysis_source_edit:'rangeAnalysis:sourceEdit',//编辑数据来源
    /*---图表操作栏--- */
    rangeAnalysis_del:'rangeAnalysis:del',
    rangeAnalysis_copyWechat:'rangeAnalysis:copyWechat',
    rangeAnalysis_copyOffice:'rangeAnalysis:copyOffice',
    rangeAnalysis_edit:'rangeAnalysis:edit',
    rangeAnalysis_otherSave:'rangeAnalysis:otherSave',
    rangeAnalysis_refresh:'rangeAnalysis:refresh',
    rangeAnalysis_addMyChart:'rangeAnalysis:addMyChart',
    rangeAnalysis_share:'rangeAnalysis:share',
}
/*
 * --------------------------------------------------------------------------供应分析------------------------------------------------
*/
export const stockPlantPermission = {
    stockPlant_del:'stockPlant:del',
    stockPlant_anlysisView:'stockPlant:anlysisView',//分析和查看,包括点击品种名称跳转详情
    stockPlant_saveVariety:'stockPlant:saveVariety',//添加编辑
}
/*
 * --------------------------------------------------------------------------商品价格曲线------------------------------------------------
*/
export const productPricePermission = {
    /*-----------页面按钮--------- */
    goodsPrice_incomeLine:'goodsPrice:incomeLine',//添加利润曲线
    goodsPrice_priceLine:'goodsPrice:priceLine',//添加价格曲线
    goodsPrice_classifyOpt_edit:'goodsPrice:classifyOpt:edit',//添加/编辑分类
    goodsPrice_classifyOpt_delete:'goodsPrice:classifyOpt:delete',//删除分类
    goodsPrice_onlyMine:'goodsPrice:onlyMine',//只看我的
    goodsPrice_editLimit:'goodsPrice:editLimit',//编辑上下限
    /* 利润曲线 */
    goodsPrice_incomeLine_del:'goodsPrice:incomeLine:del',
    goodsPrice_incomeLine_enNameSetting:'goodsPrice:incomeLine:enNameSetting',
    goodsPrice_incomeLine_copyWechat:'goodsPrice:incomeLine:copyWechat',
    goodsPrice_incomeLine_copyOffice:'goodsPrice:incomeLine:copyOffice',
    goodsPrice_incomeLine_edit:'goodsPrice:incomeLine:edit',
    goodsPrice_incomeLine_otherSave:'goodsPrice:incomeLine:otherSave',
    goodsPrice_incomeLine_refresh:'goodsPrice:incomeLine:refresh',
    goodsPrice_incomeLine_addMyChart:'goodsPrice:incomeLine:addMyChart',
    goodsPrice_incomeLine_share:'goodsPrice:incomeLine:share',
    /* 价格曲线 */
    goodsPrice_priceLine_del:'goodsPrice:priceLine:del',
    goodsPrice_priceLine_enNameSetting:'goodsPrice:priceLine:enNameSetting',
    goodsPrice_priceLine_copyWechat:'goodsPrice:priceLine:copyWechat',
    goodsPrice_priceLine_copyOffice:'goodsPrice:priceLine:copyOffice',
    goodsPrice_priceLine_edit:'goodsPrice:priceLine:edit',
    goodsPrice_priceLine_otherSave:'goodsPrice:priceLine:otherSave',
    goodsPrice_priceLine_refresh:'goodsPrice:priceLine:refresh',
    goodsPrice_priceLine_addMyChart:'goodsPrice:priceLine:addMyChart',
    goodsPrice_priceLine_share:'goodsPrice:priceLine:share',
}
/**
 * --------------------------------------------------------------------------工具箱-----------------------------------------------------
 */
export const toolBoxPermission = {
    forexCalendar_view:'forexCalendar:view',//查看日历
    forexCalendar_save:'forexCalendar:save',//添加/编辑事项

}
/*
 * --------------------------------------------------------------------------系统设置------------------------------------------------
*/
export const sysDepartPermission = {
    /*-----------部门管理-------- */
    sysDepart_saveUser:'sysDepart:saveUser',//添加/编辑用户按钮
    sysDepart_resetPass:'sysDepart:resetPass',//重置密码
    sysDepart_moveGroup:'sysDepart:moveGroup',//移动分组
    sysDepart_enable:'sysDepart:enable',//启用禁用
    sysDepart_del:'sysDepart:del',//用户删除
    sysDepart_saveUser_researchGroup:'sysDepart:saveUser:researchGroup',//添加/编辑用户表单中,研究方向的按钮
    sysDepart_userType:'sysDepart:userType',//添加/编辑用户表单中,用户类型按钮
    sysDepart_saveUser_LabelVal:'sysDepart:saveUser:LabelVal',//姓名角色的标签
    sysDepart_classifyOpt_edit:'sysDepart:classifyOpt:edit',//添加/编辑部门
    sysDepart_classifyOpt_delete:'sysDepart:classifyOpt:delete',//删除部门
    /*-----------角色管理-------- */
    sysRole_del:'sysRole:del',//删除角色
    sysRole_settingAuth:'sysRole:settingAuth',//设置/查看权限
    sysRole_addRole:'sysRole:addRole',//添加角色
    /*-----------英文权限配置-------- */
    enAuthManage_del:'enAuthManage:del',
    enAuthManage_settingAuth:'enAuthManage:settingAuth',
    /*-----------数据刷新设置-------- */
    refresh_default:'refresh:default', //默认刷新时间 
    refresh_time:'refresh:time', //设置刷新时间
    refresh_state:'refresh:state', //设置刷新状态
}
/*-----------数据操作权限-------- */
export const operateAuthPermission = {
    /*---------图库-------- */
    operateAuth_chartLib:'operateAuth:chartLib',//图库tab
    operateAuth_chartLib_edit:'operateAuth:chartLib:edit',//图库的编辑,批量编辑按钮
    /*---------ETA预测指标库-------- */
    operateAuth_etaPredictLib:'operateAuth:etaPredictLib',
    operateAuth_etaPredictLib_authSetting:'operateAuth:etaPredictLib:authSetting',//权限设置/批量权限设置
    operateAuth_etaPredictLib_edit:'operateAuth:etaPredictLib:edit',
    /*---------ETA指标库-------- */
    operateAuth_etaLib:'operateAuth:etaLib',
    operateAuth_etaLib_authSetting:'operateAuth:etaLib:authSetting',
    operateAuth_etaLib_edit:'operateAuth:etaLib:edit',
    /*---------钢联化工数据库-------- */
    operateAuth_mysteel:'operateAuth:mysteel',
    operateAuth_mysteel_edit:'operateAuth:mysteel:edit',
    /*---------手工数据指标-------- */
    operateAuth_manual:'operateAuth:manual',
    operateAuth_manual_edit:'operateAuth:manual:edit',
    /*---------手工数据权限-------- */
    sysdataAuth_classify:'sysdataAuth:classify',//手工指标分类


    /* new */
    operateAuth_look:'operateAuth:look',//查看
    /* 资产转移 */
    operateAuth_transfer_all:'operateAuth:transfer:all',//全量资产转移
    operateAuth_transfer_batch:'operateAuth:transfer:batch',//批量设置
    operateAuth_transfer_one:'operateAuth:transfer:one',//编辑

    /* 数据权限 */
    operateAuth_set_classifySercet:'operateAuth:set:classifySercet',//分类加密
    operateAuth_set_classifySet:'operateAuth:set:classifySet',//分类设置
    operateAuth_set_batch:'operateAuth:set:batch',//指标批量设置
    operateAuth_set_one:'operateAuth:set:one',//指标单个编辑
}
/*-----------基本配置-------- */
export const baseConfigPermission = {
    /*-------其他设置------- */
    sysJump_updateLog:'sysJump:updateLog',//更新日志
    sysJump_helpDoc:'sysJump:helpDoc',//帮助文档,如果两个都没权限,就隐藏按钮
    sysJump_crm:'sysJump:crm',//跳转CRM的按钮
    sysJump_hr:'sysJump:hr',//跳转HR系统的按钮
    sysJump_finance:'sysJump:finance',//跳转财务系统的按钮
    /*-------基本配置表格---*/
    etaBaseConfig_xunfei:'etaBaseConfig:xunfei',
    etaBaseConfig_pptEn:'etaBaseConfig:pptEn',
    etaBaseConfig_ppt:'etaBaseConfig:ppt',
    etaBaseConfig_watermark:'etaBaseConfig:watermark',
    etaBaseConfig_watermark_ybChart:'etaBaseConfig:watermark:ybChart',//如果没权限,表单不显示也不校验
    etaBaseConfig_approve:'etaBaseConfig:approve',//研报审批
    etaBaseConfig_biApprove:'etaBaseConfig:biApprove',//BI看板审批
    etaBaseConfig_login:'baseSetting:loginSetting',//登录
    etaBaseConfig_watermark_ybShare:'etaBaseConfig:watermark:ybShare',//如果没权限,表单不显示也不校验
    etaBaseConfig_source_see:'baseSetting:sourceSetting:see',//资源库版图查看
    etaBaseConfig_source_upload:'baseSetting:sourceSetting:upload',//资源库上传
    etaBaseConfig_source_edit:'baseSetting:sourceSetting:edit',//资源库编辑
    etaBaseConfig_source_del:'baseSetting:sourceSetting:del',//资源库删除
    etaBaseConfig_source_ppt_upload:'pptMaterial:upload',//资源库ppt上传
    etaBaseConfig_source_ppt_see:'pptMaterial:find',//资源库ppt查看
    etaBaseConfig_source_ppt_edit:'pptMaterial:edit',//资源库ppt编辑
    etaBaseConfig_source_ppt_del:'pptMaterial:delete',//资源库ppt删除
    // 登录设置
    etaBaseConfig_login_systemLogo_mobile:'baseSetting:loginSetting:systemLogo:mobile',//系统logo移动端
    etaBaseConfig_login_systemLogo_pc:'baseSetting:loginSetting:systemLogo:pc',//系统logoPC端
    etaBaseConfig_login_websiteName_mobile:'baseSetting:loginSetting:websiteName:mobile',//网站名称移动端
    etaBaseConfig_login_websiteName_pc:'baseSetting:loginSetting:websiteName:pc',//网站名称移动端
    etaBaseConfig_source_edit:'baseSetting:sourceSetting:edit',//资源库编辑
    etaBaseConfig_source_del:'baseSetting:sourceSetting:del',//资源库删除
    etaBaseConfig_watermark_ybEnShare:'etaBaseConfig:watermark:ybEnShare',//英文研报抬头
}

/*-----------外部链接配置-------- */
export const outlinkConfigPermission = {
    outlinkListConfig_list:'outlinkListConfig:list',//查看列表
    outlinkListConfig_add:'outlinkListConfig:add',//添加
    outlinkListConfig_edit:'outlinkListConfig:edit',//编辑
    outlinkListConfig_del:'outlinkListConfig:del',//删除
}
/*----------审批流配置----*/
export const approveFlowPermission = {
    reportApprove_save:'reportApprove:save',//保存
    reportApprove_remove:'reportApprove:remove',//删除
    reportApprove_edit:'reportApprove:edit',//编辑审批流(按钮)
    reportApprove_add:'reportApprove:add',//添加审批流
}
/*
 * --------------------------------------------------------------------------审批管理------------------------------------------------
*/
export const approvePermission = {
    reportApprove_approve:'reportApprove:approve',//审批(列表中的按钮)
    reportApprove_reject:'reportApprove:reject',//驳回(列表中的按钮)
    reportApprove_agree:'reportApprove:agree',//通过(审批详情-通过按钮)
    reportApprove_detail:'reportApprove:detail',//详情(列表中的按钮)
    reportApprove_rejectreason:'reportApprove:rejectreason',//驳回理由(列表中的按钮)
    reportApprove_return:'reportApprove:return',//返回(审批详情-返回按钮)
    reportApprove_repeal:'reportApprove:repeal',//撤回(列表中的按钮,审批详情-撤回按钮)
    reportApprove_download_pdf:'reportApprove:download:pdf',//下载PDF
    reportApprove_download_img:'reportApprove:download:img',//下载长图
}

/* 图表主题配置 */
export const chartThemePermission = {
    chartTheme_add:'chartTheme:add',//添加
    chartTheme_edit:'chartTheme:edit',//编辑
    chartTheme_del:'chartTheme:del',//删除
    chartTheme_chartsource:'chartTheme:chartsource',//图表的数据来源
}

export const knowledgePermission = {
    //事件库
    event_add: 'event:add',//添加
    event_import: 'event:import',//excel导入
    event_classifyEdit: 'event:classifyEdit',//分类管理
    event_tagEdit: 'event:tagEdit',//标签管理
    event_edit: 'event:edit',
    event_del: 'event:del',
    event_view: 'event:view',

    //政策库
    policy_add: 'policy:add',
    policy_import: 'policy:import',
    policy_classifyEdit: 'policy:classifyEdit',
    policy_tagEdit: 'policy:tagEdit',
    policy_edit: 'policy:edit',
    policy_del: 'policy:del',
    policy_view: 'policy:view',

    //观点库
    viewpoint_add: 'viewpoint:add',
    viewpoint_import: 'viewpoint:import',
    viewpoint_classifyEdit: 'viewpoint:classifyEdit',
    viewpoint_tagEdit: 'viewpoint:tagEdit',
    viewpoint_edit: 'viewpoint:edit',
    viewpoint_del: 'viewpoint:del',
    viewpoint_view: 'viewpoint:view',

    //知识库
    know_add: 'know:add',
    know_import: 'know:import',
    know_classifyEdit: 'know:classifyEdit',
    know_tagEdit: 'know:tagEdit',
    know_edit: 'know:edit',
    know_del: 'know:del',
    know_view: 'know:view',
}


/* BI看板配置 */
export const BIBoardPermission = {
    BIBoard_add:'BI:addBoard',//添加
    BIBoard_setshare:'BI:setShare',//设置共享
    BIBoard_setcommon:'BI:setCommon',//
    BIBoard_addclassify:'BI:setCommonClassify',//
    BIBoard_edit:'BI:edit',//
    BIBoard_delete:'BI:delete',//
    BIBoard_refresh:'BI:refresh',//
    BIBoard_sort:'BI:sort',//
    BIBoard_view:'BI:view',//bi看板查看数据
}

/* 首页配置 */
export const homePagePermission = {
    home_boarddetail:'home:boardDetail',
    home_setbiboard:'home:setBiBoard',//
}


//创建了新的ManageBtn记得添加到这里
const btnMap  = {
    reportManageBtn,enReportManageBtn,smartReportManageBtn,
    classifyBtn,enClassifyBtn,authorManage,
    reportVariety,cloudDisk,
    pptPermission,enPPTPermission,
    dataSourcePermission,
    edbDataPermission,predictEdbPermission,chartLibPermission,
    myETAPermission,chartFramePermission,etaTablePermission,
    sandboxPermission,semanticPermission,
    statisticPermission,stockPlantPermission,
    productPricePermission,sysDepartPermission,
    operateAuthPermission,baseConfigPermission,
    outlinkConfigPermission,approveFlowPermission,
    approvePermission,
    outlinkConfigPermission,
    chartThemePermission,
    toolBoxPermission,
    knowledgePermission,
    BIBoardPermission,
    homePagePermission
}

/**
 *自定义指令使用示例:
 * <el-checkbox v-model="isOnlyMe"
 *  v-permission="permissionBtn.chartLibPermission.chartLib_isOnlyMine"
 *  >只看我的</el-checkbox>
 */
/**
 * 函数使用示例:
 *  <span v-if="data.Button.OpButton
 *      &&permissionBtn.isShowBtn('chartLibPermission','chartLib_add')">
 *  </span>
 *  <el-input 
 *      :disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib:editLimit')"
 *      v-model="tableData[leftIndex].MaxData"/>
 * computed:{ 
 *  //是否显示公共图库的下拉按钮
    isShowDropPublic(){
        return this.permissionBtn.isShowBtn('myETAPermission','myChart_classifyOpt_copy')
    },
 * }
*/
/** 
 * 根据权限判断按钮是否展示
 * 适用于dom本身就有v-if/show条件限制的情况,可以防止自定义指令冲突
 * 适用于限制表单,组件disabled的情况
 * @param {String} btnMapName 按钮所属的模块名
 * @param {String} btnKey 按钮对应的key
 * @returns Boolean
 */
 export const isShowBtn = (btnMapName,btnKey)=>{
    return btnMap[btnMapName]&&checkPermissionBtn(btnMap[btnMapName][btnKey])
}
/* export const getBtnCode = (btnMapName,btnKey)=>{
    return (btnMap[btnMapName]&&btnMap[btnMapName][btnKey])||''
} */