src/views/powerCabinetControl/components/card-module.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/powerCabinetControl/components/card-module.vue
@@ -79,10 +79,14 @@ option: { key_r, index, option }, } = this; // 通过index获得它在flag数组中的index let propIdx = Math.floor(index / 25); let prop_key_r = key_r[propIdx]; let _key_r = datas[prop_key_r]; return option[getBit(_key_r, index % 25)]; if (index!=undefined) { let propIdx = Math.floor(index / 25); let prop_key_r = key_r[propIdx]; let _key_r = datas[prop_key_r]; return option[getBit(_key_r, index % 25)]; } else { return option[datas[key_r]]; } }, hasPermission() { return this.$store.state.user.downloadFlag == 1;