suerprisePlus
2024-10-14 f521ebc2551d468c4c478783a18d4b0714394d61
src/components/RuoYi/Msgger/index.vue
@@ -2,10 +2,10 @@
    <div class="msgBox" @click.stop="setShowMenuClick(true)">
        <i style="font-size: 20px;" class="el-icon-chat-line-round"></i>
        <el-badge v-show="msgCount > 0" :value="msgCount" class="item">
        <el-badge v-show="$store.state.mapLayers.msgList.length > 0" :value="$store.state.mapLayers.msgList.length" class="item">
        </el-badge>
        <el-dialog title="异常信息" :visible.sync="dialogVisible" width="30%" :show-close="false">
            <el-table :data="msgData" style="width: 100%">
        <el-dialog title="故障信息" :visible.sync="dialogVisible" width="30%" :show-close="false">
            <el-table :data="$store.state.mapLayers.msgList" style="width: 100%">
                <el-table-column prop="msg" label="设备名称">
                </el-table-column>
                <el-table-column prop="point" label="设备位置">
@@ -46,10 +46,7 @@
            dialogFlag: false,
            wsSocket: null,
            innerVisible: false,
            msgData: [{
                msg: "变压器故障",
                point: "POINT (112.56978672907 37.8558881392881)"
            }],
            msgData: [],
            parentData: null,
        }
    },
@@ -108,9 +105,9 @@
        },
    },
    mounted() {
        if (!this.wsSocket) {
            this.createSocket();
        }
        // if (!this.wsSocket) {
        //     this.createSocket();
        // }
    },
}