buttonConfig.js 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. //维护 按钮列表 已加载在全局
  2. //通过 this.permissionBtn 调用
  3. import {store} from "../main";
  4. /**
  5. * 判断按钮在不在用户的权限内
  6. * @param {String} button_code
  7. * @returns Boolean
  8. */
  9. export const checkPermissionBtn = (button_code)=>{
  10. const buttonCodes = store.state.permissionButton.permissionButtons.map(item=>item.ButtonCode)
  11. return buttonCodes.includes(button_code)
  12. }
  13. /*
  14. * -----------------------------------------------------------------------------研报管理------------------------------------------------
  15. */
  16. /*
  17. *--------中文研报列表-----------
  18. */
  19. export const reportManageBtn={
  20. reportManage_sendMsg:'reportManage:sendMsg',//推送消息/已推送消息
  21. reportManage_reportView:'reportManage:reportView',//研报预览:即是否能点击研报名称跳转预览页面
  22. reportManage_reportView_wechartShare:'reportManage:reportView:wechartShare',//研报预览页面-微信分享
  23. reportManage_reportView_copyWechat:'reportManage:reportView:copyWechat',//研报预览页面-复制链接
  24. reportManage_audioDownload:'reportManage:audioDownload',//音频下载
  25. reportManage_audioUpload:'reportManage:audioUpload',//音频上传
  26. reportManage_exportImg:'reportManage:exportImg',//下载长图
  27. reportManage_exportPdf:'reportManage:exportPdf',//下载Pdf
  28. reportManage_reportDel:'reportManage:reportDel',//删除研报
  29. reportManage_reportEdit:'reportManage:reportEdit',//编辑研报
  30. reportManage_cancelPublish:'reportManage:cancelPublish',//取消发布
  31. reportManage_publish:'reportManage:publish',//发布研报
  32. reportManage_reportList:'reportManage:reportList',//研报列表的选项
  33. reportManage_reportList_uv:'reportManage:reportList:uv',//研报列表-PV/UV
  34. reportManage_reportList_sendTime:'reportManage:reportList:sendTime',//研报列表-报告推送时间
  35. // reportManage_dayWeekReportAdd:'reportManage:dayWeekReportAdd',//添加晨报周报
  36. reportManage_reportAdd:'reportManage:reportAdd',//添加研报
  37. reportManage_clearCont:'reportMange:clearCont',//一键清空内容
  38. reportMange_chapter_add: 'reportMange:chapter:add',//章节添加
  39. reportMange_chapter_sort: 'reportMange:chapter:sort',//章节排序
  40. reportMange_chapter_share: 'reportMange:chapter:share',//章节分享
  41. reportMange_chapter_editTag: 'reportMange:chapter:editTag',//章节添加标签
  42. }
  43. /*
  44. *--------智能研报列表-----------
  45. */
  46. export const smartReportManageBtn={
  47. reportManage_sendMsg:'smartReportManage:sendMsg',//推送消息/已推送消息
  48. reportManage_reportView:'smartReportManage:reportView',//研报预览:即是否能点击研报名称跳转预览页面
  49. reportManage_reportView_wechartShare:'smartReportManage:reportView:wechartShare',//研报预览页面-微信分享
  50. reportManage_reportView_copyWechat:'smartReportManage:reportView:copyWechat',//研报预览页面-复制链接
  51. reportManage_exportImg:'smartReportManage:exportImg',//导出图片
  52. reportManage_exportPdf:'smartReportManage:exportPdf',//下载Pdf
  53. reportManage_audioDownload:'smartReportManage:audioDownload',//音频下载
  54. reportManage_audioUpload:'smartReportManage:audioUpload',//音频上传
  55. reportManage_reportDel:'smartReportManage:reportDel',//删除研报
  56. reportManage_reportEdit:'smartReportManage:reportEdit',//编辑研报
  57. reportManage_cancelPublish:'smartReportManage:cancelPublish',//取消发布
  58. reportManage_publish:'smartReportManage:publish',//发布研报
  59. reportManage_reportList:'smartReportManage:reportList',//研报列表的选项
  60. reportManage_reportList_uv:'smartReportManage:reportList:uv',//研报列表-PV/UV
  61. reportManage_reportList_sendTime:'smartReportManage:reportList:sendTime',//研报列表-报告推送时间
  62. reportManage_reportAdd:'smartReportManage:reportAdd',//添加研报
  63. }
  64. /*
  65. *--------英文研报列表-----------
  66. */
  67. export const enReportManageBtn = {
  68. enReport_reportView:'enReport:reportView',//研报预览:即是否能点击研报名称跳转预览页面
  69. enReport_reportView_wechatShare:'enReport:reportView:wechatShare',//研报预览页面-微信分享
  70. enReport_reportView_copyWechat:'enReport:reportView:copyWechat',//研报预览页面-复制链接
  71. enReport_sendEmail:'enReport:sendEmail',//群发邮件/群发日志
  72. enReport_reportDel:'enReport:reportDel',//删除研报
  73. enReport_reportEdit:'enReport:reportEdit',//编辑研报
  74. enReport_exportImg:'enReport:exportImg',//下载长图
  75. enReport_exportPdf:'enReport:exportPdf',//下载Pdf
  76. enReport_cancelPublish:'enReport:cancelPublish',//取消发布
  77. enReport_publish:'enReport:publish',//发布研报
  78. enReport_syncPolicy:'enReport:syncPolicy',//同步策略报告
  79. enReport_reportAdd:'enReport:reportAdd',//添加研报
  80. }
  81. /*
  82. *--------中文分类-----------
  83. */
  84. export const classifyBtn={
  85. classifyList_cnClassify:'classifyList:cnClassify',//中文分类这个选项卡是否显示
  86. // classifyList_cnClassify_classifyDel:'classifyList:cnClassify:classifyDel',//一二级分类删除
  87. // classifyList_cnClassify_authSetting:'classifyList:cnClassify:authSetting',//二级分类权限配置
  88. /*---------添加编辑分类------------- */
  89. classifyList_cnClassify_classifyAdd:'classifyList:cnClassify:add',//添加分类
  90. classifyList_cnClassify_classifyEdit:'classifyList:cnClassify:edit',//添加分类
  91. classifyList_cnClassify_connect_variety:'classifyList:cnClassify:variety',//关联品种
  92. classifyList_cnClassify_chapterSetting:'classifyList:cnClassify:chapterSetting',//晨周报章节设置
  93. classifyList_cnClassify_enable:'classifyList:cnClassify:enable',//启用\禁用
  94. // classifyList_cnClassify_relateSetting:'classifyList:cnClassify:relateSetting',//表单项:关联设置
  95. // classifyList_cnClassify_miniHidden:'classifyList:cnClassify:miniHidden',//表单项:小程序隐藏
  96. // classifyList_cnClassify_pcBackColor:'classifyList:cnClassify:pcBackColor',//表单项:PC端背景颜色
  97. // classifyList_cnClassify_shareImgs:'classifyList:cnClassify:shareImgs',//表单项:分享链接配图
  98. // classifyList_cnClassify_reportImgs:'classifyList:cnClassify:reportImgs',//表单项:报告合集配图
  99. // classifyList_cnClassify_ficcIcon:'classifyList:cnClassify:ficcIcon',//表单项:FICCicon
  100. // classifyList_cnClassify_ficcSort:'classifyList:cnClassify:ficcSort',//表单项:FICC页排序
  101. // classifyList_cnClassify_backSort:'classifyList:cnClassify:backSort',//表单项:后台排序
  102. // classifyList_cnClassify_showType:'classifyList:cnClassify:showType',//表单项:展示形式
  103. // classifyList_cnClassify_childMenu:'classifyList:cnClassify:childMenu',//表单项:子目录
  104. }
  105. /*
  106. *--------英文分类----------- ETA_1.1.7 不区分英文研报和线上路演 统一使用英文研报的标识
  107. */
  108. export const enClassifyBtn = {
  109. classifyList_enClassify:'classifyList:enClassify',//英文分类这个选项卡是否展示
  110. classifyList_enClassify_add:'classifyList:enClassify:rpAddClassify',//英文分类添加按钮
  111. classifyList_enClassify_edit:'classifyList:enClassify:rpEdit',//英文分类编辑
  112. classifyList_enClassify_enable:'classifyList:enClassify:enable',//启用\禁用
  113. classifyList_enClassify_connect_variety:'classifyList:enClassify:variety',//关联品种
  114. /* -------------线上路演------------- */
  115. classifyList_enClassify_roadshow:'classifyList:enClassify:roadshow',//线上路演这个选项卡是否展示
  116. classifyList_enClassify_rsDel:'classifyList:enClassify:rsDel',//线上路演一二级分类删除
  117. classifyList_enClassify_rsAuthSetting:'classifyList:enClassify:rsAuthSetting',//线上路演二级分类权限设置
  118. classifyList_enClassify_rsEdit:'classifyList:enClassify:rsEdit',//线上路演一二级分类编辑
  119. classifyList_enClassify_rsAddClassify:'classifyList:enClassify:rsAddClassify',//线上路演添加分类按钮
  120. /* -------------英文研报------------- */
  121. classifyList_enClassify_report:'classifyList:enClassify:report',//英文研报这个选项卡是否展示
  122. classifyList_enClassify_rpDel:'classifyList:enClassify:rpDel',//英文研报一二级删除
  123. classifyList_enClassify_rpAuthSetting:'classifyList:enClassify:rpAuthSetting',//英文研报二级分类权限配置
  124. classifyList_enClassify_rpEdit:'classifyList:enClassify:rpEdit',//英文研报一二级编辑
  125. classifyList_enClassify_rpAddClassify:'classifyList:enClassify:rpAddClassify',//英文研报添加分类
  126. }
  127. /*
  128. *--------作者管理-----------
  129. */
  130. export const authorManage = {
  131. /*------------------英文研报作者管理------------ */
  132. authorManage_enReport:'authorManage:enReport',//英文研报选项卡是否展示
  133. authorManage_enReport_enable:'authorManage:enReport:enable',//英文研报作者启用/禁用
  134. authorManage_enReport_del:'authorManage:enReport:del',//英文研报作者删除
  135. authorManage_enReport_edit:'authorManage:enReport:edit',//英文研报作者编辑
  136. /*------------------中文研报作者管理------------ */
  137. authorManage_cnReport:'authorManage:cnReport',//中文研报选项卡是否展示
  138. authorManage_cnReport_enable:'authorManage:cnReport:enable',//中文研报作者启用/禁用
  139. authorManage_cnReport_del:'authorManage:cnReport:del',//中文研报作者删除
  140. authorManage_cnReport_edit:'authorManage:cnReport:edit',//中文研报作者编辑
  141. authorManage_add:'authorManage:add',//添加作者按钮
  142. }
  143. /*
  144. *--------品种配置-----------
  145. */
  146. export const reportVariety = {
  147. zhVarietyHas:'reportvariety:chinese',//中文品种
  148. zhPublicSet:'reportvariety:chinese:ispublic',//公有权限设置
  149. zhVarietyEdit:'reportvariety:chinese:set',//品种设置
  150. zhVarietyAdd:'reportvariety:chinese:add',//添加品种
  151. enVarietyHas:'reportvariety:english',//英文品种
  152. enVarietyEdit:'enChartPermission:edit',//品种设置
  153. enVarietyAdd:'enChartPermission:save',//添加品种
  154. }
  155. /*
  156. *--------云盘-----------
  157. */
  158. export const cloudDisk = {
  159. cloudDisk_del:'cloudDisk:del',
  160. cloudDisk_download:'cloudDisk:download',
  161. cloudDisk_rename:'cloudDisk:rename',
  162. cloudDisk_uploadFile:'cloudDisk:uploadFile',
  163. cloudDisk_newDir:'cloudDisk:newDir'
  164. }
  165. /*
  166. * -----------------------------------------------------------------------------智能PPT------------------------------------------------
  167. */
  168. /*
  169. *--------中文PPT-----------
  170. */
  171. export const pptPermission ={
  172. /*---------对PPT操作--------- */
  173. ppt_del:'ppt:del',
  174. ppt_copy:'ppt:copy',
  175. ppt_toEn:'ppt:toEn',//转英文PPT
  176. ppt_toReport:'ppt:toReport',//转报告
  177. ppt_download:'ppt:download',
  178. ppt_show:'ppt:show',//演示
  179. ppt_publish:'ppt:publish',
  180. /*--------页面按钮操作-------- */
  181. ppt_save:'ppt:save',//添加PPT按钮,同时也控制编辑权限
  182. ppt_merge:'ppt:merge',//合并PPT
  183. ppt_addCatalog:'ppt:addCatalog',//添加我的目录
  184. ppt_setShare:'ppt:setShare',//设置共享
  185. ppt_visible:'ppt:visible',//可见权限
  186. }
  187. /*
  188. *--------英文PPT----------
  189. */
  190. export const enPPTPermission={
  191. /*---------对PPT操作--------- */
  192. pptEn_del:'pptEn:del',
  193. pptEn_copy:'pptEn:copy',
  194. pptEn_toReport:'pptEn:toReport',//转报告
  195. pptEn_download:'pptEn:download',
  196. pptEn_show:'pptEn:show',//演示
  197. pptEn_publish:'pptEn:publish',
  198. /*--------页面按钮操作-------- */
  199. pptEn_save:'pptEn:save',//添加PPT按钮,同时也控制编辑权限
  200. pptEn_merge:'pptEn:merge',//合并PPT
  201. pptEn_addCatalog:'pptEn:addCatalog',
  202. pptEn_setShare:'pptEn:setShare',
  203. pptEn_visible:'pptEn:visible',
  204. }
  205. /*
  206. * ---------------------------------------------------------------------------数据源------------------------------------------------
  207. */
  208. export const dataSourcePermission = {
  209. /*--------手工指标列表---- */
  210. manualData_del:'manualData:del',
  211. manualData_add:'manualData:add',//新增编辑
  212. manualData_add_updateRemind:'manualData:add:updateRemind',//新增编辑-更新提醒
  213. /*--------手工数据录入---- */
  214. manualDataWrite_edit:'manualDataWrite:edit',//编辑按钮,直接编辑没有禁
  215. manualDataWrite_del:'manualDataWrite:del',//删除
  216. manualDataWrite_add:'manualDataWrite:add',//添加
  217. manualDataWrite_export:'manualDataWrite:export',//导出
  218. manualDataWrite_import:'manualDataWrite:import',//导入
  219. manualDataWrite_online_excel:'manualDataWrite:online:excel',//在线excel
  220. manualDataWrite_batch_add:'manualDataWrite:batch:add',//批量加入
  221. manualDataWrite_batch_del:'manualDataWrite:batch:del',//批量删除
  222. /*--------期货数据库没有要控制的东西---- */
  223. /*--------隆众原始数据库---- */
  224. longzhongData_export:'longzhongData:export',
  225. /*--------钢联原始数据库---- */
  226. glData_export:'glData:export',
  227. /*--------钢联化工数据库---- */
  228. mysteelData_refresh:'mysteelData:refresh',//一键刷新
  229. mysteelData_export:'mysteelData:export',
  230. mysteelData_add:'mysteelData:add',//新增指标
  231. mysteelData_classifyOpt_add:'mysteelData:classifyOpt:add',//添加目录和子项
  232. mysteelData_classifyOpt_edit:'mysteelData:classifyOpt:edit',//编辑
  233. mysteelData_classifyOpt_delete:'mysteelData:classifyOpt:delete',//删除
  234. mysteelData_addEdb:'mysteelData:addEdb',//单个指标加入指标库
  235. mysteelData_batchAddEdb:'mysteelData:batchAddEdb',//批量加入指标库
  236. /*--------SMM原始数据库---- */
  237. smmData_export:'smmData:export',
  238. smmData_classifyOpt_add:'smmData:classifyOpt:add',//添加目录和子项
  239. smmData_classifyOpt_edit:'smmData:classifyOpt:edit',//编辑
  240. smmData_classifyOpt_delete:'smmData:classifyOpt:delete',//删除
  241. /*--------有色原始数据库---- */
  242. ysTarget_view:'ysTarget:view',
  243. ysTarget_addBatch:'ysTarget:addBatch',
  244. /*--------百川盈孚---- */
  245. bcyfData_edit:'bcyfData:edit',//编辑指标按钮
  246. bcyfData_export:'bcyfData:export',
  247. bcyfData_classifyOpt_add:'bcyfData:classifyOpt:add',//添加目录和子项
  248. bcyfData_classifyOpt_edit:'bcyfData:classifyOpt:edit',//编辑
  249. bcyfData_classifyOpt_delete:'bcyfData:classifyOpt:delete',//删除
  250. /*--------卓创数据(红桃3)---- */
  251. hongtao3Data_export:'hongtao3Data:export',
  252. hongtao3Data_classifyOpt_add:'hongtao3Data:classifyOpt:add',
  253. hongtao3Data_classifyOpt_edit:'hongtao3Data:classifyOpt:edit',
  254. hongtao3Data_classifyOpt_delete:'hongtao3Data:classifyOpt:delete',
  255. /*--------中国煤炭市场网)---- */
  256. zgmtData_export:'zgmtData:export',
  257. /*--------EIA STEO报告---- */
  258. eiaData_export:'eiaData:export',
  259. /*--------国家统计局---- */
  260. gjtjjData_export:'gjtjjData:export',
  261. /*--------数据报表管理---- */
  262. /*--------数据源终端管理---- */
  263. dataSource_account_add:'dataSourceAccount:add',//新增终端账号
  264. dataSource_account_edit:'dataSourceAccount:edit',//编辑
  265. dataSource_account_enable:'dataSourceAccount:enable',//禁用/启用
  266. /*--------涌益咨询---- */
  267. yyzxData_export:'yyzx:exportData',
  268. /*--------汾渭数据---- */
  269. fwData_export:'fwsj:exportData', // 导出
  270. fwData_view: 'fwsj:showData',//查看
  271. fwData_batch_addBase: 'fwsj:batch:addBase',//批量添加到指标库
  272. fwData_opera_addBase: 'fwsj:opera:addBase',//指标入库
  273. /*--------煤炭江湖---- */
  274. coalWordData_view:'coalWord:view', // 查看
  275. coalWordData_export:'coalWord:export', // 导出
  276. /*--------彭博数据源--- */
  277. Bloomberg_add2edb:'Bloomberg:add2edb',//添加指标库
  278. /* 自有数据 */
  279. selfData_addEdb:'selfData:addEdb',//添加到指标库
  280. selfData_detail:'selfData:detail',//查看详情
  281. /*--------卓创资讯---- */
  282. zczx_showData:'zczx:showData',
  283. zczx_exportData:'zczx:exportData',
  284. /*--------CCF化纤信息--- */
  285. ccfData_view:'ccfData:view',//查看
  286. ccfData_exportExcel:'ccfData:exportExcel',//导出
  287. /*--------高频数据--- */
  288. highFrequency_adds:'highFrequency:adds',//添加高频数据
  289. highFrequency_addTo_database:'highFrequency:addTo:database',//批量添加至指标库
  290. highFrequency_operations:'highFrequency:operations',//批量操作
  291. highFrequency_operation_detail:'highFrequency:operation:detail',//操作-详情
  292. highFrequency_operation_refresh:'highFrequency:operation:refresh',//操作-刷新
  293. highFrequency_operation_delete:'highFrequency:operation:delete',//操作-删除
  294. highFrequency_classify_move:'highFrequency:classify:move',//分类设置-移动
  295. highFrequency_classify_delete:'highFrequency:classify:delete',//分类设置-删除
  296. highFrequency_classify_editAdd:'highFrequency:classify:editAdd',//分类设置-编辑/添加
  297. /* 卓创红期 */
  298. sciHongqi_batch_addBase: 'sciHongqi:batch:addBase',//批量添加到指标库
  299. sciHongqi_batch_del: 'sciHongqi:batch:del',//批量删除
  300. sciHongqi_batch_edit: 'sciHongqi:batch:edit',//批量编辑
  301. sciHongqi_view: 'sciHongqi:view',//查看
  302. sciHongqi_export: 'sciHongqi:export',//导出Excel
  303. sciHongqi_classify_edit: 'sciHongqi:classify:edit',//分类编辑
  304. sciHongqi_classify_add: 'sciHongqi:classify:add',//分类添加
  305. sciHongqi_classify_move: 'sciHongqi:classify:move',//分类移动
  306. sciHongqi_classify_del: 'sciHongqi:classify:del',//分类删除
  307. sciHongqi_opera_addBase: 'sciHongqi:opera:addBase',//指标入库
  308. sciHongqi_opera_del: 'sciHongqi:opera:del',//指标删除
  309. sciHongqi_opera_clear: 'sciHongqi:opera:clear',//指标清除
  310. sciHongqi_opera_edit: 'sciHongqi:opera:edit',//指标编辑
  311. /*--------隆众资讯--- */
  312. lzzxData_view:'lzzxData:view',//查看数据
  313. lzzxData_addEdb:'lzzxData:addEdb',//加入指标库
  314. lzzxData_batchAddEdb:'lzzxData:batchAddEdb',//批量加入指标
  315. lzzxData_exportExcel:'lzzxData:exportExcel',//导出excel
  316. }
  317. /*
  318. * ---------------------------------------------------------------------------ETA指标库------------------------------------------------
  319. */
  320. export const edbDataPermission = {
  321. /*-----------指标详情按钮--------- */
  322. edbData_refreshAll:'edbData:refreshAll',//全部刷新
  323. edbData_newestValue:'edbData:newestValue',//添加最新值
  324. edbData_enNameSetting:'edbData:enNameSetting',//设置英文名称
  325. edbData_edbSource:'edbData:edbSource',//指标溯源
  326. edbData_copyData:'edbData:copyData',//复制数据
  327. /* edbData_toImgs:'edbData:toImgs',//一键成图 */
  328. edbData_edit:'edbData:edit',//指标编辑,也包括列表项的编辑按钮
  329. edbData_update:'edbData:update',//更新指标
  330. edbData_saveEdb:'edbData:saveEdb',//保存
  331. edbData_deleteEdb:'edbData:deleteEdb',//删除
  332. edbData_showChartBasis:'edbData:showChartBasis',//展示/隐藏同比图
  333. edbData_switchSeason:'edbData:switchSeason',//切换季节性图
  334. edbData_editLimit:'edbData:editLimit',//编辑上下限
  335. edbData_calculateAgain:'edbData:calculateAgain',//重新计算
  336. /*------------页面按钮---------- */
  337. edbData_batchUpdate:'edbData:batchUpdate',//一键更新
  338. edbData_dataAdjust:'edbData:dataAdjust',//数据调整
  339. edbData_codeRun:'edbData:codeRun',//代码运算
  340. edbData_replaceEdb:'edbData:replaceEdb',//替换指标
  341. edbData_calcuEdb:'edbData:calcuEdb',//计算指标
  342. edbData_addEdb:'edbData:addEdb',//添加指标
  343. edbData_switchEn:'edbData:switchEn',//切换英文版
  344. edbData_classifyOpt_add:'edbData:classifyOpt:add',//添加/编辑分类
  345. edbData_classifyOpt_delete:'edbData:classifyOpt:delete',//删除分类
  346. edbData_classifyOpt_move:'edbData:classifyOpt:move',//移动分类
  347. edbData_checkRelatedChart:'edbData:checkRelatedChart',//查看关联图表
  348. edbData_checkRelatedEdb:'edbData:checkRelatedEdb',//查看关联指标
  349. edbData_checkCalcChart:'edbData:checkCalcChart',//查看计算指标
  350. edbData_enableOrDisable:'edbData:enableOrDisable',//启用/停用
  351. }
  352. /*
  353. * ---------------------------------------------------------------------------ETA预测指标------------------------------------------------
  354. */
  355. export const predictEdbPermission = {
  356. /*-----------指标详情按钮--------- */
  357. edbPreData_switchSeason:'edbPreData:switchSeason',//切换季节性图
  358. /* edbPreData_viewData:'edbPreData:viewData',//查看数据 */
  359. edbPreData_copyData:'edbPreData:copyData',//复制数据
  360. edbPreData_del:'edbPreData:del',//删除
  361. edbPreData_recalcu:'edbPreData:recalcu',//重新计算
  362. edbPreData_save:'edbPreData:save',//保存
  363. edbPreData_edit:'edbPreData:edit',//编辑
  364. edbPreData_update:'edbPreData:update',//更新
  365. edbPreData_edbSource:'edbPreData:edbSource',//指标溯源
  366. edbPreData_enNameSetting:'edbPreData:enNameSetting',//设置英文名称
  367. edbPreData_editLimit:'edbPreData:editLimit',//编辑上下限
  368. /*------------页面按钮---------- */
  369. edbPreData_calcuEdb:'edbPreData:calcuEdb',//计算指标
  370. edbPreData_addEdb:'edbPreData:addEdb',//添加指标
  371. edbPreData_switchEn:'edbPreData:switchEn',//切换英文版
  372. edbPreData_isOnlyMine:'edbPreData:isOnlyMine',//只看我的
  373. edbPreData_classifyOpt_add:'edbPreData:classifyOpt:add',//添加/编辑分类
  374. edbPreData_classifyOpt_delete:'edbPreData:classifyOpt:delete',//删除分类
  375. edbPreData_classifyOpt_move:'edbPreData:classifyOpt:move',//移动分类
  376. edbPreData_checkRelatedChart:'edbPreData:checkRelatedChart',//查看关联图表
  377. edbPreData_checkRelatedEdb:'edbPreData:checkRelatedEdb',//查看关联指标
  378. edbPreData_checkPreRule:'edbPreData:checkPreRule',//查看预测规则
  379. }
  380. /*
  381. * ---------------------------------------------------------------------------ETA图库------------------------------------------------
  382. */
  383. export const chartLibPermission = {
  384. /*-----------图表详情按钮--------- */
  385. chartLib_viewData:'chartLib:viewData',//查看数据,图表详情的表格操作栏
  386. chartLib_copyData:'chartLib:copyData',//复制数据,图表详情的表格操作栏
  387. chartLib_del:'chartLib:del',
  388. chartLib_enNameSetting:'chartLib:enNameSetting',
  389. chartLib_copyWechat:'chartLib:copyWechat',
  390. chartLib_copyOffice:'chartLib:copyOffice',
  391. chartLib_edit:'chartLib:edit',
  392. chartLib_otherSave:'chartLib:otherSave',
  393. chartLib_save:'chartLib:save',
  394. chartLib_refresh:'chartLib:refresh',
  395. chartLib_addMy:'chartLib:addMy',//加入我的图库
  396. chartLib_share:'chartLib:share',
  397. chartLib_editLimit:'chartLib:editLimit',//编辑上下限
  398. /*------------页面按钮---------- */
  399. chartLib_add:'chartLib:add',
  400. chartLib_switchEn:'chartLib:switchEn',
  401. chartLib_isOnlyMine:'chartLib:isOnlyMine',//只看我的
  402. chartLib_classifyOpt_add:'chartLib:classifyOpt:add',//新增/编辑分类
  403. chartLib_classifyOpt_delete:'chartLib:classifyOpt:delete',//删除分类
  404. chartLib_uploadToForum:'chartLib:uploadToForum',//上传至社区
  405. chartLib_updateToForum:'chartLib:updateToForum',//同步至社区
  406. chartLib_withdrawfromForum:'chartLib:withdrawfromForum',//从社区撤回
  407. }
  408. /*
  409. * ---------------------------------------------------------------------------My ETA------------------------------------------------
  410. */
  411. export const myETAPermission = {
  412. /*-----------图表详情弹窗按钮--------- */
  413. myChart_del:'myChart:del',
  414. myChart_enNameSetting:'myChart:enNameSetting',
  415. myChart_copyWechat:'myChart:copyWechat',
  416. myChart_copyOffice:'myChart:copyOffice',
  417. myChart_otherSave:'myChart:otherSave',
  418. myChart_save:'myChart:save',
  419. myChart_edit:'myChart:edit',
  420. myChart_refresh:'myChart:refresh',
  421. myChart_copyTo:'myChart:copyTo',
  422. myChart_share:'myChart:share',
  423. myChart_move:'myChart:move',//移出,同时也控制列表项的移出
  424. myChart_copyData:'myChart:copyData',//复制数据
  425. myChart_checkData:'myChart:checkData',//查看数据
  426. myChart_editLimit:'myChart:editLimit',//编辑上下限
  427. /*-----------页面按钮--------- */
  428. myChart_selectChart:'myChart:selectChart',//选择图表
  429. myChart_classifyOpt_copy:'myChart:classifyOpt:copy',//复制
  430. myChart_classifyOpt_show:'myChart:classifyOpt:show',//可见权限
  431. myChart_classifyOpt_edit:'myChart:classifyOpt:edit',//添加我的分类
  432. myChart_classifyOpt_rename:'myChart:classifyOpt:rename',//重命名
  433. myChart_classifyOpt_delete:'myChart:classifyOpt:delete',//删除
  434. }
  435. //图库框架
  436. export const chartFramePermission={
  437. chartframe_public_copyImg:'chartframe:public:copyImg',//公共框架-复制图片
  438. chartframe_my_editNode:'chartframe:my:editNode',//我的框架-添加/编辑节点
  439. chartframe_my_saveFrame:'chartframe:my:saveFrame',//我的框架-保存框架
  440. chartframe_my_editFrame:'chartframe:my:editFrame',//我的框架-添加/编辑框架
  441. chartframe_my_delFrame:'chartframe:my:delFrame',//我的框架-删除框架
  442. chartframe_my_show:'chartframe:my:show',//我的框架-设置可见权限
  443. chartframe_my_rename:'chartframe:my:rename',//我的框架-重命名
  444. chartframe_my_copyImg:'chartframe:my:copyImg',//我的框架-复制图片
  445. chartframe_my_move:'chartframe:my:move',//我的框架-移动排序
  446. }
  447. /*
  448. * --------------------------------------------------------------------------ETA表格------------------------------------------------
  449. */
  450. export const etaTablePermission = {
  451. /*-----------页面按钮--------- */
  452. /*-----------自定义表格--------- */
  453. /* etaTable_customize_del:'etaTable:customize:del',
  454. etaTable_customize_download:'etaTable:customize:download',
  455. etaTable_customize_otherSave:'etaTable:customize:otherSave',
  456. etaTable_customize_refresh:'etaTable:customize:refresh',
  457. etaTable_customize_edit:'etaTable:customize:edit', */
  458. //混合表格页面
  459. etaTable_customize_mix_sheetAdd: 'etaTable:customize:mix:sheetAdd',//添加混合表格按钮
  460. etaTable_customize_mix_classifyOpt_edit: 'etaTable:customize:mix:classifyOpt:edit',//混合表格分类操作
  461. etaTable_customize_mix_classifyOpt_delete: 'etaTable:customize:mix:classifyOpt:delete',//混合表格分类删除
  462. etaTable_customize_mix_edit:'etaTable:customize:mix:edit',//编辑
  463. etaTable_customize_mix_refresh:'etaTable:customize:mix:refresh',//刷新
  464. etaTable_customize_mix_otherSave:'etaTable:customize:mix:otherSave',//另存为
  465. etaTable_customize_mix_download:'etaTable:customize:mix:download',//下载
  466. etaTable_customize_mix_save:'etaTable:customize:mix:save',//保存
  467. etaTable_customize_mix_del:'etaTable:customize:mix:del',//删除
  468. //数据表格页面
  469. etaTable_customize_data_sheetAdd: 'etaTable:customize:data:sheetAdd',//添加数据表格按钮
  470. etaTable_customize_data_classifyOpt_edit: 'etaTable:customize:data:classifyOpt:edit',//数据表格分类操作
  471. etaTable_customize_data_classifyOpt_delete: 'etaTable:customize:data:classifyOpt:delete',//数据表格分类删除
  472. etaTable_customize_data_edit:'etaTable:customize:data:edit',//编辑
  473. etaTable_customize_data_refresh:'etaTable:customize:data:refresh',//刷新
  474. etaTable_customize_data_otherSave:'etaTable:customize:data:otherSave',//另存为
  475. etaTable_customize_data_download:'etaTable:customize:data:download',//下载
  476. etaTable_customize_data_del:'etaTable:customize:data:del',//删除
  477. etaTable_customize_data_save:'etaTable:customize:data:save',//保存
  478. /*-----------excel表格页面--------- */
  479. etaTable_excel:'etaTable:excel',//添加Excel表格这个按钮显示不显示
  480. etaTable_excel_classifyOpt_edit:'etaTable:excel:classifyOpt:edit',//添加编辑表格
  481. etaTable_excel_classifyOpt_delete:'etaTable:excel:classifyOpt:delete',//删除表格
  482. etaTable_excel_del:'etaTable:excel:del',
  483. etaTable_excel_download:'etaTable:excel:download',
  484. etaTable_excel_save:'etaTable:excel:save',//保存
  485. etaTable_excel_edit:'etaTable:excel:edit',
  486. //自定义分析表格页面
  487. // etaTable_analysis_sheetAdd: 'etaTable:analysis:sheetAdd',//添加数据表格按钮
  488. etaTable_analysis_classifyOpt_edit: 'etaTable:analysis:classifyOpt:edit',//数据表格分类操作
  489. etaTable_analysis_classifyOpt_delete: 'etaTable:analysis:classifyOpt:delete',//数据表格分类删除
  490. etaTable_analysis_upload:'etaTable:analysis:upload',//上传文件
  491. etaTable_analysis_createedb:'etaTable:analysis:createedb',//生成指标
  492. etaTable_analysis_refresh:'etaTable:analysis:refresh',//刷新
  493. etaTable_analysis_otherSave:'etaTable:analysis:otherSave',//另存为
  494. etaTable_analysis_download:'etaTable:analysis:download',//下载
  495. etaTable_analysis_del:'etaTable:analysis:del',//删除
  496. etaTable_analysis_save:'etaTable:analysis:save',//保存
  497. etaTable_analysis_edit:'etaTable:analysis:edit',//编辑
  498. etaTable_analysis_share:'etaTable:analysis:share',//设置共享,取消共享
  499. // 平衡表
  500. etaTable_customize_balance_sheetAdd:'etaTable:customize:balance:sheetAdd',//添加
  501. etaTable_customize_balance_del:'etaTable:customize:balance:del',//删除
  502. etaTable_customize_balance_download:'etaTable:customize:balance:download',//下载
  503. etaTable_customize_balance_otherSave:'etaTable:customize:balance:otherSave',//另存为
  504. etaTable_customize_balance_refresh:'etaTable:customize:balance:refresh',//刷新
  505. etaTable_customize_balance_edit:'etaTable:customize:balance:edit',//编辑
  506. etaTable_customize_balance_classifyOpt_delete:'etaTable:customize:balance:classifyOpt:delete',//删除分类
  507. etaTable_customize_balance_classifyOpt_edit:'etaTable:customize:balance:classifyOpt:edit',//添加/编辑分类
  508. }
  509. /*
  510. * --------------------------------------------------------------------------ETA逻辑------------------------------------------------
  511. */
  512. export const sandboxPermission = {
  513. sandbox_variety:'sandbox:variety',//沙盘品种选择,添加目录的时候控制显示
  514. sandbox_addMy:'sandbox:addMy',//复制图片
  515. sandbox_del:'sandbox:del',//删除
  516. sandbox_saveView:'sandbox:saveView',//添加/编辑/查看
  517. sandbox_search:'sandbox:search',//搜索
  518. sandbox_classify_move:'sandbox:classify:move',//分类操作:移动
  519. sandbox_classify_del:'sandbox:classify:del',//分类操作:删除
  520. sandbox_classify_addEdit:'sandbox:classify:addEdit',//分类操作:添加/编辑
  521. }
  522. /*
  523. * --------------------------------------------------------------------------语义分析------------------------------------------------
  524. */
  525. export const semanticPermission = {
  526. /*-----------文档管理--------- */
  527. docPage_save:'docPage:save',//添加编辑文档
  528. docPage_delete:'docPage:delete',//删除文档
  529. docPage_classifyOpt_edit:'docPage:classifyOpt:edit',//添加编辑分类
  530. docPage_classifyOpt_delete:'docPage:classifyOpt:delete',//删除分类
  531. /*-----------文档对比--------- */
  532. saPage_save:'saPage:save',//添加编辑对比文档
  533. saPage_download:'saPage:download',//下载
  534. saPage_copyOffice:'saPage:copyOffice',//复制到Office
  535. saPage_copyWeixin:'saPage:copyWeixin',//复制到微信
  536. saPage_delete:'saPage:delete',//删除对比文档
  537. saPage_classifyOpt_edit:'saPage:classifyOpt:edit',//添加编辑分类
  538. saPage_classifyOpt_delete:'saPage:classifyOpt:delete',//删除分类
  539. /*-----------标签管理--------- */
  540. tagPage_del:'tagPage:del',
  541. tagPage_save:'tagPage:save',//添加编辑标签
  542. /*-----------语音识别--------- */
  543. ASR_view:'ASR:view',//查看
  544. ASR_classify_catalogue_add:'ASR:classify:catalogue:add',//目录树添加
  545. ASR_classify_catalogue_edit:'ASR:classify:catalogue:edit',//目录树编辑
  546. ASR_classify_catalogue_del:'ASR:classify:catalogue:del',//目录树删除
  547. ASR_classify_catalogue_move:'ASR:classify:catalogue:move',//目录树拖动
  548. ASR_classify_tag_add:'ASR:classify:tag:add',//标签目录树添加
  549. ASR_classify_tag_edit:'ASR:classify:tag:edit',//标签目录树编辑
  550. ASR_classify_tag_del:'ASR:classify:tag:del',//标签目录树删除
  551. ASR_classify_tag_move:'ASR:classify:tag:move',//标签目录树拖动
  552. ASR_tagOperation_addTag:'ASR:tagOperation:addTag',//标签添加
  553. ASR_tagOperation_editTag:'ASR:tagOperation:editTag',//标签编辑
  554. ASR_tagOperation_deleteTag:'ASR:tagOperation:deleteTag',//标签删除
  555. ASR_addArticles:'ASR:addArticles',//新建
  556. ASR_renameArticles:'ASR:renameArticles',//重命名
  557. ASR_exportArticles:'ASR:exportArticles',//导出
  558. ASR_deleteArticles:'ASR:deleteArticles',//删除
  559. ASR_tagMark_view:'ASR:tagMark:view',//打标签-查看标签
  560. ASR_tagMark_add:'ASR:tagMark:add',//打标签-添加标签
  561. ASR_saveArticles:'ASR:saveArticles',//保存
  562. ASR_deleteVideo:'ASR:deleteVideo',//删除视频
  563. ASR_deleteVoice:'ASR:deleteVoice',//删除音频
  564. ASR_copyText:'ASR:copyText',//复制
  565. ASR_toggleTimestampShow:'ASR:toggleTimestampShow',//隐藏/显示时间戳
  566. /* ai纪要 */
  567. AiSummery_add: 'AiSummery:add',//添加纪要
  568. AiSummery_view: 'AiSummery:view',//查看
  569. AiSummery_prompt_add: 'AiSummery:prompt:add',//添加提示词
  570. AiSummery_classify_edit: 'AiSummery:classify:edit',//添加编辑纪要分类
  571. AiSummery_classify_move: 'AiSummery:classify:move',//移动分类
  572. AiSummery_classify_del: 'AiSummery:classify:del',//删除分类
  573. AiSummery_prompt_classify_move: 'AiSummery:prompt:classify:move',//提示词分类移动
  574. AiSummery_prompt_classify_del: 'AiSummery:prompt:classify:del',//提示词分类删除
  575. AiSummery_prompt_classify_edit: 'AiSummery:prompt:classify:edit',//提示词分类修改
  576. }
  577. /*
  578. * --------------------------------------------------------------------------统计分析------------------------------------------------
  579. */
  580. export const statisticPermission = {
  581. /*-----------相关性分析--------- */
  582. corrAnalysis_addChart:'corrAnalysis:addChart',//添加图表按钮
  583. corrAnalysis_viewData:'corrAnalysis:viewData',//查看表格数据
  584. corrAnalysis_copyData:'corrAnalysis:copyData',//复制表格数据
  585. corrAnalysis_onlyMine:'corrAnalysis:onlyMine',//只看我的
  586. corrAnalysis_classifyOpt_edit:'corrAnalysis:classifyOpt:edit',//添加/编辑分类
  587. corrAnalysis_classifyOpt_delete:'corrAnalysis:classifyOpt:delete',//删除分类
  588. corrAnalysis_classifyOpt_move:'corrAnalysis:classifyOpt:move',//移动分类
  589. /*---图表操作栏--- */
  590. corrAnalysis_del:'corrAnalysis:del',
  591. corrAnalysis_enNameSetting:'corrAnalysis:enNameSetting',
  592. corrAnalysis_copyWechat:'corrAnalysis:copyWechat',
  593. corrAnalysis_copyOffice:'corrAnalysis:copyOffice',
  594. corrAnalysis_edit:'corrAnalysis:edit',
  595. corrAnalysis_otherSave:'corrAnalysis:otherSave',
  596. corrAnalysis_refresh:'corrAnalysis:refresh',
  597. corrAnalysis_addMyChart:'corrAnalysis:addMyChart',
  598. corrAnalysis_share:'corrAnalysis:share',
  599. /*-----------统计特征--------- */
  600. statisticFeature_addChart:'statisticFeature:addChart',//添加图表按钮
  601. statisticFeature_onlyMine:'statisticFeature:onlyMine',//只看我的
  602. statisticFeature_classifyOpt_edit:'statisticFeature:classifyOpt:edit',//添加/编辑分类
  603. statisticFeature_classifyOpt_delete:'statisticFeature:classifyOpt:delete',//删除分类
  604. /*---图表操作栏--- */
  605. statisticFeature_del:'statisticFeature:del',
  606. statisticFeature_enNameSetting:'statisticFeature:enNameSetting',
  607. statisticFeature_copyWechat:'statisticFeature:copyWechat',
  608. statisticFeature_copyOffice:'statisticFeature:copyOffice',
  609. statisticFeature_edit:'statisticFeature:edit',
  610. statisticFeature_otherSave:'statisticFeature:otherSave',
  611. statisticFeature_refresh:'statisticFeature:refresh',
  612. statisticFeature_addMyChart:'statisticFeature:addMyChart',
  613. statisticFeature_share:'statisticFeature:share',
  614. /*-----------拟合方程曲线--------- */
  615. fittingEq_addChart:'fittingEq:addChart',//添加图表按钮
  616. fittingEq_onlyMine:'fittingEq:onlyMine',//只看我的
  617. fittingEq_classifyOpt_edit:'fittingEq:classifyOpt:edit',//添加编辑分类
  618. fittingEq_classifyOpt_delete:'fittingEq:classifyOpt:delete',//删除分类
  619. /*---图表操作栏--- */
  620. fittingEq_del:'fittingEq:del',
  621. fittingEq_enNameSetting:'fittingEq:enNameSetting',
  622. fittingEq_copyWechat:'fittingEq:copyWechat',
  623. fittingEq_copyOffice:'fittingEq:copyOffice',
  624. fittingEq_edit:'fittingEq:edit',
  625. fittingEq_otherSave:'fittingEq:otherSave',
  626. fittingEq_refresh:'fittingEq:refresh',
  627. fittingEq_addMyChart:'fittingEq:addMyChart',
  628. fittingEq_share:'fittingEq:share',
  629. /* 跨品种分析 */
  630. crossVariety_addChart:'crossVariety:addChart',//添加图表按钮
  631. crossVariety_onlyMine:'crossVariety:onlyMine',//只看我的
  632. crossVariety_classifyOpt_edit:'crossVariety:classifyOpt:edit',//添加编辑分类
  633. crossVariety_classifyOpt_delete:'crossVariety:classifyOpt:delete',//删除分类
  634. crossVariety_variety_edit: 'crossVariety:variety:edit',//品种管理
  635. crossVariety_tag_edit: 'crossVariety:tag:edit',//标签管理
  636. /*---图表操作栏--- */
  637. crossVariety_del:'crossVariety:del',
  638. crossVariety_enNameSetting:'crossVariety:enNameSetting',
  639. crossVariety_copyWechat:'crossVariety:copyWechat',
  640. crossVariety_copyOffice:'crossVariety:copyOffice',
  641. crossVariety_edit:'crossVariety:edit',
  642. crossVariety_otherSave:'crossVariety:otherSave',
  643. crossVariety_refresh:'crossVariety:refresh',
  644. crossVariety_addMyChart:'crossVariety:addMyChart',
  645. crossVariety_share:'crossVariety:share',
  646. /* 区间分析 */
  647. rangeAnalysis_addChart:'rangeAnalysis:addChart',
  648. rangeAnalysis_onlyMine:'rangeAnalysis:onlyMine',//只看我的
  649. rangeAnalysis_classifyOpt_edit:'rangeAnalysis:classifyOpt:edit',//添加编辑分类
  650. rangeAnalysis_classifyOpt_delete:'rangeAnalysis:classifyOpt:delete',//删除分类
  651. rangeAnalysis_classifyOpt_move:'rangeAnalysis:classifyOpt:move',//删除分类
  652. /*---图表操作栏--- */
  653. rangeAnalysis_del:'rangeAnalysis:del',
  654. rangeAnalysis_copyWechat:'rangeAnalysis:copyWechat',
  655. rangeAnalysis_copyOffice:'rangeAnalysis:copyOffice',
  656. rangeAnalysis_edit:'rangeAnalysis:edit',
  657. rangeAnalysis_otherSave:'rangeAnalysis:otherSave',
  658. rangeAnalysis_refresh:'rangeAnalysis:refresh',
  659. rangeAnalysis_addMyChart:'rangeAnalysis:addMyChart',
  660. rangeAnalysis_share:'rangeAnalysis:share',
  661. }
  662. /*
  663. * --------------------------------------------------------------------------供应分析------------------------------------------------
  664. */
  665. export const stockPlantPermission = {
  666. stockPlant_del:'stockPlant:del',
  667. stockPlant_anlysisView:'stockPlant:anlysisView',//分析和查看,包括点击品种名称跳转详情
  668. stockPlant_saveVariety:'stockPlant:saveVariety',//添加编辑
  669. }
  670. /*
  671. * --------------------------------------------------------------------------商品价格曲线------------------------------------------------
  672. */
  673. export const productPricePermission = {
  674. /*-----------页面按钮--------- */
  675. goodsPrice_incomeLine:'goodsPrice:incomeLine',//添加利润曲线
  676. goodsPrice_priceLine:'goodsPrice:priceLine',//添加价格曲线
  677. goodsPrice_classifyOpt_edit:'goodsPrice:classifyOpt:edit',//添加/编辑分类
  678. goodsPrice_classifyOpt_delete:'goodsPrice:classifyOpt:delete',//删除分类
  679. goodsPrice_onlyMine:'goodsPrice:onlyMine',//只看我的
  680. goodsPrice_editLimit:'goodsPrice:editLimit',//编辑上下限
  681. /* 利润曲线 */
  682. goodsPrice_incomeLine_del:'goodsPrice:incomeLine:del',
  683. goodsPrice_incomeLine_enNameSetting:'goodsPrice:incomeLine:enNameSetting',
  684. goodsPrice_incomeLine_copyWechat:'goodsPrice:incomeLine:copyWechat',
  685. goodsPrice_incomeLine_copyOffice:'goodsPrice:incomeLine:copyOffice',
  686. goodsPrice_incomeLine_edit:'goodsPrice:incomeLine:edit',
  687. goodsPrice_incomeLine_otherSave:'goodsPrice:incomeLine:otherSave',
  688. goodsPrice_incomeLine_refresh:'goodsPrice:incomeLine:refresh',
  689. goodsPrice_incomeLine_addMyChart:'goodsPrice:incomeLine:addMyChart',
  690. goodsPrice_incomeLine_share:'goodsPrice:incomeLine:share',
  691. /* 价格曲线 */
  692. goodsPrice_priceLine_del:'goodsPrice:priceLine:del',
  693. goodsPrice_priceLine_enNameSetting:'goodsPrice:priceLine:enNameSetting',
  694. goodsPrice_priceLine_copyWechat:'goodsPrice:priceLine:copyWechat',
  695. goodsPrice_priceLine_copyOffice:'goodsPrice:priceLine:copyOffice',
  696. goodsPrice_priceLine_edit:'goodsPrice:priceLine:edit',
  697. goodsPrice_priceLine_otherSave:'goodsPrice:priceLine:otherSave',
  698. goodsPrice_priceLine_refresh:'goodsPrice:priceLine:refresh',
  699. goodsPrice_priceLine_addMyChart:'goodsPrice:priceLine:addMyChart',
  700. goodsPrice_priceLine_share:'goodsPrice:priceLine:share',
  701. }
  702. /**
  703. * --------------------------------------------------------------------------工具箱-----------------------------------------------------
  704. */
  705. export const toolBoxPermission = {
  706. forexCalendar_view:'forexCalendar:view',//查看日历
  707. forexCalendar_save:'forexCalendar:save',//添加/编辑事项
  708. }
  709. /*
  710. * --------------------------------------------------------------------------系统设置------------------------------------------------
  711. */
  712. export const sysDepartPermission = {
  713. /*-----------部门管理-------- */
  714. sysDepart_saveUser:'sysDepart:saveUser',//添加/编辑用户按钮
  715. sysDepart_resetPass:'sysDepart:resetPass',//重置密码
  716. sysDepart_moveGroup:'sysDepart:moveGroup',//移动分组
  717. sysDepart_enable:'sysDepart:enable',//启用禁用
  718. sysDepart_del:'sysDepart:del',//用户删除
  719. sysDepart_saveUser_researchGroup:'sysDepart:saveUser:researchGroup',//添加/编辑用户表单中,研究方向的按钮
  720. sysDepart_userType:'sysDepart:userType',//添加/编辑用户表单中,用户类型按钮
  721. sysDepart_saveUser_LabelVal:'sysDepart:saveUser:LabelVal',//姓名角色的标签
  722. sysDepart_classifyOpt_edit:'sysDepart:classifyOpt:edit',//添加/编辑部门
  723. sysDepart_classifyOpt_delete:'sysDepart:classifyOpt:delete',//删除部门
  724. /*-----------角色管理-------- */
  725. sysRole_del:'sysRole:del',//删除角色
  726. sysRole_settingAuth:'sysRole:settingAuth',//设置/查看权限
  727. sysRole_addRole:'sysRole:addRole',//添加角色
  728. /*-----------英文权限配置-------- */
  729. enAuthManage_del:'enAuthManage:del',
  730. enAuthManage_settingAuth:'enAuthManage:settingAuth',
  731. /*-----------数据刷新设置-------- */
  732. refresh_default:'refresh:default', //默认刷新时间
  733. refresh_time:'refresh:time', //设置刷新时间
  734. refresh_state:'refresh:state', //设置刷新状态
  735. }
  736. /*-----------数据操作权限-------- */
  737. export const operateAuthPermission = {
  738. /*---------图库-------- */
  739. operateAuth_chartLib:'operateAuth:chartLib',//图库tab
  740. operateAuth_chartLib_edit:'operateAuth:chartLib:edit',//图库的编辑,批量编辑按钮
  741. /*---------ETA预测指标库-------- */
  742. operateAuth_etaPredictLib:'operateAuth:etaPredictLib',
  743. operateAuth_etaPredictLib_authSetting:'operateAuth:etaPredictLib:authSetting',//权限设置/批量权限设置
  744. operateAuth_etaPredictLib_edit:'operateAuth:etaPredictLib:edit',
  745. /*---------ETA指标库-------- */
  746. operateAuth_etaLib:'operateAuth:etaLib',
  747. operateAuth_etaLib_authSetting:'operateAuth:etaLib:authSetting',
  748. operateAuth_etaLib_edit:'operateAuth:etaLib:edit',
  749. /*---------钢联化工数据库-------- */
  750. operateAuth_mysteel:'operateAuth:mysteel',
  751. operateAuth_mysteel_edit:'operateAuth:mysteel:edit',
  752. /*---------手工数据指标-------- */
  753. operateAuth_manual:'operateAuth:manual',
  754. operateAuth_manual_edit:'operateAuth:manual:edit',
  755. /*---------手工数据权限-------- */
  756. sysdataAuth_classify:'sysdataAuth:classify',//手工指标分类
  757. /* new */
  758. operateAuth_look:'operateAuth:look',//查看
  759. /* 资产转移 */
  760. operateAuth_transfer_all:'operateAuth:transfer:all',//全量资产转移
  761. operateAuth_transfer_batch:'operateAuth:transfer:batch',//批量设置
  762. operateAuth_transfer_one:'operateAuth:transfer:one',//编辑
  763. /* 数据权限 */
  764. operateAuth_set_classifySercet:'operateAuth:set:classifySercet',//分类加密
  765. operateAuth_set_classifySet:'operateAuth:set:classifySet',//分类设置
  766. operateAuth_set_batch:'operateAuth:set:batch',//指标批量设置
  767. operateAuth_set_one:'operateAuth:set:one',//指标单个编辑
  768. }
  769. /*-----------基本配置-------- */
  770. export const baseConfigPermission = {
  771. /*-------其他设置------- */
  772. sysJump_updateLog:'sysJump:updateLog',//更新日志
  773. sysJump_helpDoc:'sysJump:helpDoc',//帮助文档,如果两个都没权限,就隐藏按钮
  774. sysJump_crm:'sysJump:crm',//跳转CRM的按钮
  775. sysJump_hr:'sysJump:hr',//跳转HR系统的按钮
  776. sysJump_finance:'sysJump:finance',//跳转财务系统的按钮
  777. /*-------基本配置表格---*/
  778. etaBaseConfig_xunfei:'etaBaseConfig:xunfei',
  779. etaBaseConfig_pptEn:'etaBaseConfig:pptEn',
  780. etaBaseConfig_ppt:'etaBaseConfig:ppt',
  781. etaBaseConfig_watermark:'etaBaseConfig:watermark',
  782. etaBaseConfig_watermark_ybChart:'etaBaseConfig:watermark:ybChart',//如果没权限,表单不显示也不校验
  783. etaBaseConfig_approve:'etaBaseConfig:approve',//研报审批
  784. etaBaseConfig_biApprove:'etaBaseConfig:biApprove',//BI看板审批
  785. etaBaseConfig_login:'baseSetting:loginSetting',//登录
  786. etaBaseConfig_watermark_ybShare:'etaBaseConfig:watermark:ybShare',//如果没权限,表单不显示也不校验
  787. etaBaseConfig_source_see:'baseSetting:sourceSetting:see',//资源库查看
  788. etaBaseConfig_source_upload:'baseSetting:sourceSetting:upload',//资源库上传
  789. // 登录设置
  790. etaBaseConfig_login_systemLogo_mobile:'baseSetting:loginSetting:systemLogo:mobile',//系统logo移动端
  791. etaBaseConfig_login_systemLogo_pc:'baseSetting:loginSetting:systemLogo:pc',//系统logoPC端
  792. etaBaseConfig_login_websiteName_mobile:'baseSetting:loginSetting:websiteName:mobile',//网站名称移动端
  793. etaBaseConfig_login_websiteName_pc:'baseSetting:loginSetting:websiteName:pc',//网站名称移动端
  794. etaBaseConfig_source_edit:'baseSetting:sourceSetting:edit',//资源库编辑
  795. etaBaseConfig_source_del:'baseSetting:sourceSetting:del',//资源库删除
  796. etaBaseConfig_watermark_ybEnShare:'etaBaseConfig:watermark:ybEnShare',//英文研报抬头
  797. }
  798. /*-----------外部链接配置-------- */
  799. export const outlinkConfigPermission = {
  800. outlinkListConfig_list:'outlinkListConfig:list',//查看列表
  801. outlinkListConfig_add:'outlinkListConfig:add',//添加
  802. outlinkListConfig_edit:'outlinkListConfig:edit',//编辑
  803. outlinkListConfig_del:'outlinkListConfig:del',//删除
  804. }
  805. /*----------审批流配置----*/
  806. export const approveFlowPermission = {
  807. reportApprove_save:'reportApprove:save',//保存
  808. reportApprove_remove:'reportApprove:remove',//删除
  809. reportApprove_edit:'reportApprove:edit',//编辑审批流(按钮)
  810. reportApprove_add:'reportApprove:add',//添加审批流
  811. }
  812. /*
  813. * --------------------------------------------------------------------------审批管理------------------------------------------------
  814. */
  815. export const approvePermission = {
  816. reportApprove_approve:'reportApprove:approve',//审批(列表中的按钮)
  817. reportApprove_reject:'reportApprove:reject',//驳回(列表中的按钮)
  818. reportApprove_agree:'reportApprove:agree',//通过(审批详情-通过按钮)
  819. reportApprove_detail:'reportApprove:detail',//详情(列表中的按钮)
  820. reportApprove_rejectreason:'reportApprove:rejectreason',//驳回理由(列表中的按钮)
  821. reportApprove_return:'reportApprove:return',//返回(审批详情-返回按钮)
  822. reportApprove_repeal:'reportApprove:repeal',//撤回(列表中的按钮,审批详情-撤回按钮)
  823. reportApprove_download_pdf:'reportApprove:download:pdf',//下载PDF
  824. reportApprove_download_img:'reportApprove:download:img',//下载长图
  825. }
  826. /* 图表主题配置 */
  827. export const chartThemePermission = {
  828. chartTheme_add:'chartTheme:add',//添加
  829. chartTheme_edit:'chartTheme:edit',//编辑
  830. chartTheme_del:'chartTheme:del',//删除
  831. chartTheme_chartsource:'chartTheme:chartsource',//图表的数据来源
  832. }
  833. //创建了新的ManageBtn记得添加到这里
  834. const btnMap = {
  835. reportManageBtn,enReportManageBtn,smartReportManageBtn,
  836. classifyBtn,enClassifyBtn,authorManage,
  837. reportVariety,cloudDisk,
  838. pptPermission,enPPTPermission,
  839. dataSourcePermission,
  840. edbDataPermission,predictEdbPermission,chartLibPermission,
  841. myETAPermission,chartFramePermission,etaTablePermission,
  842. sandboxPermission,semanticPermission,
  843. statisticPermission,stockPlantPermission,
  844. productPricePermission,sysDepartPermission,
  845. operateAuthPermission,baseConfigPermission,
  846. outlinkConfigPermission,approveFlowPermission,
  847. approvePermission,
  848. outlinkConfigPermission,
  849. chartThemePermission,
  850. toolBoxPermission
  851. }
  852. /**
  853. *自定义指令使用示例:
  854. * <el-checkbox v-model="isOnlyMe"
  855. * v-permission="permissionBtn.chartLibPermission.chartLib_isOnlyMine"
  856. * >只看我的</el-checkbox>
  857. */
  858. /**
  859. * 函数使用示例:
  860. * <span v-if="data.Button.OpButton
  861. * &&permissionBtn.isShowBtn('chartLibPermission','chartLib_add')">
  862. * </span>
  863. * <el-input
  864. * :disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib:editLimit')"
  865. * v-model="tableData[leftIndex].MaxData"/>
  866. * computed:{
  867. * //是否显示公共图库的下拉按钮
  868. isShowDropPublic(){
  869. return this.permissionBtn.isShowBtn('myETAPermission','myChart_classifyOpt_copy')
  870. },
  871. * }
  872. */
  873. /**
  874. * 根据权限判断按钮是否展示
  875. * 适用于dom本身就有v-if/show条件限制的情况,可以防止自定义指令冲突
  876. * 适用于限制表单,组件disabled的情况
  877. * @param {String} btnMapName 按钮所属的模块名
  878. * @param {String} btnKey 按钮对应的key
  879. * @returns Boolean
  880. */
  881. export const isShowBtn = (btnMapName,btnKey)=>{
  882. return btnMap[btnMapName]&&checkPermissionBtn(btnMap[btnMapName][btnKey])
  883. }
  884. /* export const getBtnCode = (btnMapName,btnKey)=>{
  885. return (btnMap[btnMapName]&&btnMap[btnMapName][btnKey])||''
  886. } */