| | |
| | | </span> |
| | | </template> |
| | | <template #mode_code="{ row }"> |
| | | <span class="text" v-if="row.domain == 3 || row.domain == 0" :style="row.mode_code != '-1' ? 'color: #00ee8b' : 'color: #de5e5e'"> |
| | | <span class="text" v-if="row.domain == 3 || row.domain == 0" |
| | | :style="row.mode_code != '-1' ? 'color: #00ee8b' : 'color: #de5e5e'"> |
| | | {{ getModelText(row.mode_code) }} |
| | | </span> |
| | | </template> |
| | | <template #menu="scope"> |
| | | <el-dropdown> |
| | | <el-button type="primary" text v-if="permission.oss_set"><el-icon><MoreFilled /></el-icon>更多</el-button> |
| | | <el-button type="primary" text v-if="permission.oss_set"><el-icon> |
| | | <MoreFilled /> |
| | | </el-icon>更多</el-button> |
| | | <template #dropdown v-if="scope.row.domain == 3"> |
| | | <el-dropdown-menu teleported> |
| | | <el-dropdown-item command="a"> |
| | | <el-button type="primary" text icon="el-icon-paperclip" v-if="permission.oss_set" @click.stop="handleOpenOssSet(scope.row, scope.index)">存储配置</el-button> |
| | | <el-button type="primary" text icon="el-icon-paperclip" v-if="permission.oss_set" |
| | | @click.stop="handleOpenOssSet(scope.row, scope.index)">存储配置</el-button> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item command="b"> |
| | | <el-button type="primary" text icon="el-icon-share" v-if="permission.per_share && scope.row.domain == 3" |
| | | @click.stop="handleOpenDevicePerShare(scope.row, scope.index)">机场授权</el-button> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item command="c"> <el-button type="primary" text icon="el-icon-position" :disabled="!scope.row.status" |
| | | v-if="permission.rang_con && scope.row.domain == 3" |
| | | <el-dropdown-item command="c"> <el-button type="primary" text icon="el-icon-position" |
| | | :disabled="!scope.row.status" v-if="permission.rang_con && scope.row.domain == 3" |
| | | @click.stop="handleOpenRemoteDebugging(scope.row, scope.index)">远程调试</el-button> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item command="d"><el-button type="primary" text icon="el-icon-collection" v-if="permission.fly_device_offline" |
| | | @click.stop="rollFirmware(scope.row)">固件版本管理</el-button> |
| | | <el-dropdown-item command="d"><el-button type="primary" text icon="el-icon-collection" |
| | | v-if="permission.fly_device_offline" @click.stop="rollFirmware(scope.row)">固件版本管理</el-button> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item command="d" v-if="!scope.row.status"> |
| | | <el-button type="primary" text icon="el-icon-collection" @click.stop="dockNotLine(scope.row)"> |
| | | {{ scope.row.hidden_flag === 1 ? '设备上线' : '设备下线'}} |
| | | </el-button> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item command="e"><el-button type="primary" text icon="el-icon-document-delete" v-if="permission.fly_device_offline" |
| | | @click.stop="handleDeviceOffline(scope.row)">注销</el-button> |
| | | <el-dropdown-item command="e"><el-button type="primary" text icon="el-icon-document-delete" |
| | | v-if="permission.fly_device_offline" @click.stop="handleDeviceOffline(scope.row)">注销</el-button> |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </template> |
| | |
| | | <!-- <el-dropdown-item command="a"> |
| | | <el-button type="primary" text icon="el-icon-key" v-if="permission.operate_password_set" @click.stop="handleOperatePassword(scope.row, scope.index)">操控密码设置</el-button> |
| | | </el-dropdown-item> --> |
| | | <el-dropdown-item command="d"><el-button type="primary" text icon="el-icon-collection" @click.stop="rollFirmware(scope.row)">固件版本管理</el-button> |
| | | <el-dropdown-item command="d"><el-button type="primary" text icon="el-icon-collection" |
| | | @click.stop="rollFirmware(scope.row)">固件版本管理</el-button> |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </template> |
| | |
| | | <div style="display: flex;justify-content: center;margin-bottom: 10px;">注销 |
| | | <span style="color:cornflowerblue;font-weight: bolder;margin: 0px 4px;"> |
| | | {{ cancelSNName }} |
| | | </span> 设备可能会影响相关数据,确认注销吗?</div> |
| | | </span> 设备可能会影响相关数据,确认注销吗? |
| | | </div> |
| | | <div style="display: flex;justify-content: center;color:red;font-size: 12px;">*删除相关图片、视频、事件</div> |
| | | <template #footer> |
| | | <span class="dialog-footer" style="display: flex;justify-content: center;"> |
| | |
| | | |
| | | <script> |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import { getRegionTreeAll } from '@/api/job/task'; |
| | | import { getRegionTreeAll } from '@/api/job/task' |
| | | import { pxToRem } from '@/utils/rem' |
| | | import { |
| | | getList, |
| | |
| | | import FirmwareManage from './components/firmwareManage.vue' |
| | | import DevicePerShare from './components/devicePerShare.vue' |
| | | import DockControlPanel from './components/DockControlPanel.vue' |
| | | import { getWebsocketUrl } from '@/utils/websocket/config'; |
| | | import ConnectWebSocket from '@/utils/websocket'; |
| | | import { getWebsocketUrl } from '@/utils/websocket/config' |
| | | import ConnectWebSocket from '@/utils/websocket' |
| | | export default { |
| | | components: { |
| | | FirmwareManage, |
| | |
| | | grid: false, |
| | | |
| | | height: 'auto', |
| | | calcHeight: 180, |
| | | calcHeight: 20, |
| | | |
| | | column: [ |
| | | { |
| | |
| | | const statusMap = { |
| | | 0: '关', |
| | | 1: '开', |
| | | }; |
| | | return statusMap[cellValue] || '/'; |
| | | } |
| | | return statusMap[cellValue] || '/' |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | ], |
| | | formatter: (row, value) => { |
| | | return value[0]? `${this.$dayjs(value[0]).format('YYYY-MM-DD')}~${this.$dayjs(value[1]).format('YYYY-MM-DD')}` : '/'; |
| | | return value[0] ? `${this.$dayjs(value[0]).format('YYYY-MM-DD')}~${this.$dayjs(value[1]).format('YYYY-MM-DD')}` : '/' |
| | | }, |
| | | }, |
| | | // { |
| | |
| | | }, |
| | | mounted() { |
| | | getRegionTreeAll({ parentCode: this.userInfo.detail.areaCode }).then(res => { |
| | | const column = this.findObject(this.option.column, 'area_code'); |
| | | column.dicData = res.data.data ? [res.data.data] : []; |
| | | }); |
| | | const column = this.findObject(this.option.column, 'area_code') |
| | | column.dicData = res.data.data ? [res.data.data] : [] |
| | | }) |
| | | }, |
| | | methods: { |
| | | getDockModeText (value) { |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | |
| | | .el-tag:first-child{ |
| | | margin-bottom: 5px;} |
| | | margin-bottom: 5px; |
| | | } |
| | | } |
| | | |
| | | .onlineStatus { |
| | |
| | | border-color: #409eff; |
| | | } |
| | | } |
| | | |
| | | :deep(.avue-crud__menu) { |
| | | display: flex; |
| | | } |
| | | |
| | | .more-container { |
| | | position: relative; |
| | | } |
| | | |
| | | .show-more-do { |
| | | position: absolute; |
| | | background-color: #ffffff; |
| | |
| | | height: 190px; |
| | | right: 0; |
| | | } |
| | | |
| | | :deep(.avue-crud__pagination) { |
| | | position: fixed; |
| | | bottom: 10px; |
| | | right: 30px; |
| | | } |
| | | |
| | | |
| | | </style> |