| | |
| | | @click.stop="handleOpenFirmwarm(scope.row, scope.index)" |
| | | >固件管理 |
| | | </el-button> |
| | | <!-- <el-button |
| | | <el-button |
| | | type="primary" |
| | | text |
| | | icon="el-icon-share" |
| | | v-if="permission.per_share" |
| | | @click.stop="handleOpenFirmwarm(scope.row, scope.index)" |
| | | >权限分享 |
| | | </el-button> --> |
| | | v-if="permission.per_share && scope.row.domain==3" |
| | | @click.stop="handleOpenDevicePerShare(scope.row, scope.index)" |
| | | >机场授权 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="固件升级" append-to-body v-model="firmwareBox" width="455px"> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | <el-drawer |
| | | title="固件管理" |
| | | title="机场授权管理" |
| | | size="60%" |
| | | append-to-body |
| | | v-model="firmwareManageVisible" |
| | | v-model="devicePerShareVisible" |
| | | :direction="'rtl'" |
| | | > |
| | | <FirmwareManage ref="firmwareManage" /> |
| | | <DevicePerShare ref="devicePerShare" /> |
| | | </el-drawer> |
| | | </basic-container> |
| | | </template> |
| | |
| | | |
| | | import { mapGetters } from 'vuex'; |
| | | import FirmwareManage from './components/firmwareManage.vue'; |
| | | import DevicePerShare from './components/devicePerShare.vue'; |
| | | export default { |
| | | components: { |
| | | FirmwareManage, |
| | | DevicePerShare |
| | | }, |
| | | data() { |
| | | return { |
| | | firmwareManageVisible: false, |
| | | devicePerShareVisible: false, |
| | | firmwareManageVisible:false, |
| | | percentageNum: 0, |
| | | firmwareBox: false, |
| | | firmwareInfo: {}, |
| | |
| | | init() { |
| | | this.onLoad(this.page); |
| | | }, |
| | | // 打开权限分享页面 |
| | | handleOpenDevicePerShare(row) { |
| | | var that = this; |
| | | this.devicePerShareVisible = true; |
| | | this.$nextTick(() => { |
| | | that.$refs.devicePerShare.init(row); |
| | | }); |
| | | }, |
| | | // 打开固件管理页面 |
| | | handleOpenFirmwarm(row) { |
| | | var that = this; |