|
@@ -12,39 +12,14 @@ export const useAuthBtnStore = defineStore('authBtn',{
|
|
|
actions:{
|
|
|
getAuthList(){
|
|
|
return new Promise((resolve)=>{
|
|
|
- /* apiGetAuthBtnList().then(res=>{
|
|
|
+ apiGetAuthBtnList().then(res=>{
|
|
|
this.authBtnList = res.Data||[]
|
|
|
- }) */
|
|
|
+ })
|
|
|
+ /*
|
|
|
+ //mock
|
|
|
this.authBtnList = [
|
|
|
{ButtonCode:'reportManage:reportAdd'},
|
|
|
- {ButtonCode:'reportManage:dayWeekReportAdd'},
|
|
|
- {ButtonCode:'reportManage:sendMsg'},
|
|
|
- {ButtonCode:'reportManage:reportList:uv'},
|
|
|
- {ButtonCode:'reportManage:reportDel'},
|
|
|
- {ButtonCode:'reportManage:reportEdit'},
|
|
|
- {ButtonCode:'reportManage:cancelPublish'},
|
|
|
- {ButtonCode:'reportManage:publish'},
|
|
|
- {ButtonCode:'reportManage:reportView'},
|
|
|
- {ButtonCode:'enReport:reportDel'},
|
|
|
- {ButtonCode:'enReport:reportView'},
|
|
|
- {ButtonCode:'enReport:reportEdit'},
|
|
|
-
|
|
|
- //ppt
|
|
|
- {ButtonCode:'ppt:del'},
|
|
|
- {ButtonCode:'ppt:copy'},
|
|
|
- {ButtonCode:'ppt:download'},
|
|
|
-
|
|
|
- //chart
|
|
|
- {ButtonCode:'chartLib:copyWechat'},
|
|
|
- {ButtonCode:'chartLib:copyOffice'},
|
|
|
- {ButtonCode:'chartLib:editLimit'},
|
|
|
-
|
|
|
- {ButtonCode:'myChart:selectChart'},
|
|
|
- {ButtonCode:'myChart:move'},
|
|
|
- {ButtonCode:'myChart:save'},
|
|
|
- {ButtonCode:'myChart:editLimit'},
|
|
|
-
|
|
|
- ]
|
|
|
+ ] */
|
|
|
resolve('权限获取成功')
|
|
|
})
|
|
|
}
|