export default { //匹配权限 // transformAuth(code) { // let codeList = this.vuex_permissions // let index = codeList.indexOf(code) // if (index == -1) return false // else return true // }, //匹配权限 transformAuth(code) { let codeList = this.vuex_permissions; let index = codeList.indexOf(code) let index1 = codeList.indexOf('*') if (index1 !== -1) return true if (index == -1) return false else return true }, //转换日期 transformWeek(week) { switch (week) { case 0: return '一' case 1: return '二' case 2: return '三' case 3: return '四' case 4: return '五' case 5: return '六' case 6: return '日' } }, }