无人机管理后台前端(已迁走)
linwe
2024-10-16 0c779fb73aa2906abc8a5da3e84efe2cd971b789
src/views/device/addDevice.vue
@@ -4,7 +4,7 @@
            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)"
@@ -204,7 +204,14 @@
    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(() => {
@@ -346,12 +353,12 @@
            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();