| | |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad" @tree-load="treeLoad"> |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text icon="el-icon-copy-document" @click.stop="copyInfo(scope.row, scope.index)" |
| | |
| | | methods: { |
| | | |
| | | copyInfo(row, index) { |
| | | let params = `host: tcp://139.196.74.78:1883 账号:drone 密码:123456 组织id:${row.bing_id} 设备码:${row.bind_code} 机场名称:${row.workspace_name} aircrattName:${row.workspace_desc}`; |
| | | let params = ` |
| | | host: tcp://139.196.74.78:1883 |
| | | 账号:drone |
| | | 密码:123456 |
| | | 组织id:${row.bing_id} |
| | | 设备码:${row.bind_code} |
| | | 机场名称:${row.workspace_name} |
| | | aircrattName:${row.workspace_desc}`; |
| | | $Clipboard({ |
| | | text: params, |
| | | }).then(() => { |
| | |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | data.records.forEach(e => { |
| | | e['hasChildren'] = e.has_children; |
| | | if (e.firmware_status == 4) { |
| | | this.connectWebSocket(e); |
| | | } |
| | | }); |
| | | // data.records.forEach(e => { |
| | | // e['hasChildren'] = e.has_children; |
| | | // if (e.firmware_status == 4) { |
| | | // this.connectWebSocket(e); |
| | | // } |
| | | // }); |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.selectionClear(); |