Kaynağa Gözat

首页signmap

Changpeng Duan 4 yıl önce
ebeveyn
işleme
d50415785c

+ 1 - 1
src/Global.js

@@ -402,7 +402,7 @@ filterTimeToShortString = function (value) {
     let result =  hour + ":" + minute + ":" + second;
     // 返回
     return result;
-}
+};
 
 // handle = function(row, column, event) {
 //     // list -- 已选的数据

+ 2 - 2
src/components/BigRader.vue

@@ -17,7 +17,7 @@
                 <div class="zoom62 cn top8"></div>
                 <div class="zoom7 dn top9"></div>
             </div>
-            <div class="zoom8" v-if="RaderState == 1">
+            <div class="zoom8" v-if="RaderState == 1 || RaderState == 0">
                 <img src="../assets/img/bigRadar2/safe.png" height="47" width="40"/><span class="status">环境安全</span>
             </div>
             <div class="zoom9" v-else>
@@ -49,7 +49,7 @@
             totalRs: function (val) {
                 let that = this;
                 if (val) {
-                    that.RaderState = val.LEVEL;
+                    that.RaderState = val.Level;
                 } else {
                     that.RaderState = 0
                 }

+ 2 - 2
src/components/DetcotrRecord.vue

@@ -36,7 +36,7 @@
                 </el-table-column>
 
             </el-table>
-            <br>
+            <!--<br>-->
             <!--<div v-show="allTableData.length != 0">-->
             <!--<el-pagination-->
             <!--background-->
@@ -182,7 +182,7 @@
         position: relative;
         bottom: 20px;
         width: 100%;
-        height: 110px;
+        height: 125px;
         overflow: hidden;
         display: block;
         margin: 0 auto;

+ 2 - 1
src/components/HistoryRecord.vue

@@ -40,11 +40,12 @@
                 <el-table-column
                         prop="Type"
                         label="类型"
+                        sortable
                         :formatter="filterType"
                 >
                 </el-table-column>
             </el-table>
-            <br>
+            <!--<br>-->
             <!--<div v-show="allTableData.length != 0">-->
             <!--<el-pagination-->
             <!--background-->

+ 3 - 3
src/components/Region.vue

@@ -13,7 +13,7 @@
                 <ul>
                     <el-row :gutter="21">
                         <el-col :span="8" v-for="(region,i) in regionList">
-                            <div :class="[{'regionItem':true},{'active':loftIndex == i }]" @click="handleSelect(region.Id,i)">
+                            <div :class="[{'regionItem':true},{'active':loftIndex == i }]" @click="handleSelect(region.Id,i,region.Name)">
                                 <div class="grid-content bg-purple"> {{region.Name}}</div>
                             </div>
                         </el-col>
@@ -34,9 +34,9 @@
         },
         props: ['regionList'],
         methods: {
-            handleSelect(Id,i) {
+            handleSelect(Id,i,Name) {
                 this.loftIndex = parseInt(i);
-                this.$emit('GetInfoClick', Id);//触发事件
+                this.$emit('GetInfoClick', Id,Name);//触发事件
             },
         }
     }

+ 2 - 3
src/components/RunTimeRecord.vue

@@ -50,7 +50,6 @@
                 </el-table-column>
 
             </el-table>
-            <br>
             <!--<div v-show="allTableData.length != 0">-->
                 <!--<el-pagination-->
                         <!--background-->
@@ -71,7 +70,7 @@
         data() {
             return {
                 pageination: {
-                    pageItem: 8,
+                    pageItem: 2,
                     pageoptions: pageOptions(),
                     total: 30,
                     pageIndex: 1,
@@ -196,7 +195,7 @@
         position: relative;
         bottom: 20px;
         width: 100%;
-        height: 110px;
+        height: 128px;
         overflow: hidden;
         display: block;
         margin: 0 auto;

+ 19 - 0
src/components/Task.vue

@@ -280,6 +280,22 @@
         margin: 0 auto;
         margin-top: 20px;
         color: #6DC1FF;
+        overflow-y: scroll;
+    }
+
+    .regionList::-webkit-scrollbar {/*滚动条整体样式*/
+        width: 5px;     /*高宽分别对应横竖滚动条的尺寸*/
+        height: 1px;
+    }
+    .regionList::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
+        border-radius: 5px;
+        -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
+        background: #6DC1FF;
+    }
+    .regionList::-webkit-scrollbar-track {/*滚动条里面轨道*/
+        -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
+        border-radius: 5px;
+        background: #6DC1FF;
     }
 
     .regionList .label {
@@ -356,4 +372,7 @@
         color: #fff;
         margin-bottom: 3px;
     }
+    /deep/ .el-tag.el-tag--info {
+        float: left;
+    }
 </style>

+ 69 - 23
src/components/signMap.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="signMap" id="signMap">
         <div class="sum-title">
-            会议室
+            {{signList.title}}
         </div>
         <div class="compass">
             <img src="../assets/img/main/compass.png" height="30" width="30"/>
@@ -18,7 +18,7 @@
             </div>
             <div class="signMapListBg">
                 <span v-for="s in scan"
-                      :style="{ left: s.X*0.8+'PX', top: s.Y+'PX'}"
+                      :style="{ left: s.X*ruleX - errorX +'PX', top: s.Y *ruleY - errorY +'PX'}"
                 >
                       <el-popover
                               placement="top-start"
@@ -52,7 +52,18 @@
                                       v-if="s.WirelessType == 11"/>
                                  <img src="../assets/img/signMap/800M.png" height="54" width="54"
                                       v-if="s.WirelessType == 12"/>
-                                        </em>
+
+                                    <img src="../assets/img/main/unknow.png" height="54" width="54"
+                                         v-if="s.WirelessType == 20"/>
+                                    <img src="../assets/img/main/cam.png" height="54" width="54"
+                                         v-if="s.WirelessType == 21"/>
+                                    <img src="../assets/img/main/unknow_w.png" height="54" width="54"
+                                         v-if="s.WirelessType == 22"/>
+                                    <img src="../assets/img/main/phone.png" height="54" width="54"
+                                         v-if="s.WirelessType == 23"/>
+                                    <img src="../assets/img/main/wifi_w.png" height="54" width="54"
+                                         v-if="s.WirelessType == 24"/>
+                             </em>
                                 <s :class="[
                                 {'yd':s.WirelessType == 1 || s.WirelessType == 4 || s.WirelessType == 6},
                                 {'lt':s.WirelessType == 2 || s.WirelessType == 5 || s.WirelessType == 7},
@@ -66,11 +77,11 @@
             </div>
             <div class="right_rule">
                 <span>0</span>
-                <span v-for="i in XMax" v-if="i % xLimit == 0">{{i}}</span>
+                <span v-for="i in YMax" v-if="i %  yLimit == 0">{{i}}</span>
             </div>
             <div class="bottom_rule">
                 <span>0</span>
-                <span v-for="i in YMax" v-if="i % yLimit == 0">{{i}}</span>
+                <span v-for="i in XMax" v-if="i % xLimit == 0">{{i}}</span>
             </div>
         </div>
     </div>
@@ -84,61 +95,94 @@
                 checked: true,
                 full_state: false,
                 scan: [],
-                XMax: 24,
+                XMax: 56,
                 YMax: 56,
                 xLimit: 2,
                 yLimit: 2,
+                ruleX: 0.75,
+                ruleY: 0.75,
+                errorX: 20,
+                errorY: 20,
+                title: '扫描结果',
             }
         },
         props: ['signList'],
         watch: {
-            signList: function (val) {
-                this.scan = val.Rs.Data;
-                this.XMax = val.Rs.XMax;
-                this.YMax = val.Rs.YMax;
-                this.xLimit = parseInt(this.XMax / 12);
-                this.yLimit = parseInt(this.YMax / 28);
-                let Oem = "未知";
-                let Ssid = "未知";
-                if (this.scan) {
-                    this.scan.map(function (item) {
-                        Oem = item.Oem == '' ? "未知" : item.Oem;
-                        Ssid = item.Ssid == '' ? "未知" : item.Ssid;
-                        item.popover = "品牌:" + Oem + " SSID:" + Ssid
-                    })
-                }
+            signList: {
+                handler(newName, oldName) {
+                    if(!newName.Rs){
+                        return false
+                    }
+                    this.scan = newName.Rs.Data;
+                    this.XMax = newName.Rs.XMax;
+                    this.YMax = newName.Rs.YMax;
+                    this.xLimit = parseInt(this.XMax / 28);
+                    this.yLimit = parseInt(this.YMax / 12);
+                    let Oem = "未知";
+                    let Ssid = "未知";
+                    if (this.scan) {
+                        this.scan.map(function (item) {
+                            Oem = item.Oem == '' ? "未知" : item.Oem;
+                            Ssid = item.Ssid == '' ? "未知" : item.Ssid;
+                            item.popover = "品牌:" + Oem + " SSID:" + Ssid + "X:" + item.X + " Y:" + item.Y
+                        })
+                    }
+                },
+                deep: true,
+                immediate: true
             },
         },
         methods: {
             // 全屏
             full_screen() {
+                let that = this;
                 this.screen_full = true;
                 let elem = document.getElementById("signMap");
                 this.full_state = true;
                 if (elem.webkitRequestFullScreen) {
                     elem.webkitRequestFullScreen();
+                    that.full_rule();
                 } else if (elem.mozRequestFullScreen) {
                     elem.mozRequestFullScreen();
+                    that.full_rule();
                 } else if (elem.requestFullScreen) {
                     elem.requestFullscreen();
+                    that.full_rule();
                 } else {
                     this.screen_full = false;
                     notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
                 }
             },
+            full_rule() {
+                this.ruleX = 1.4;
+                this.ruleY = 1.6;
+                this.errorX = -20;
+                this.errorY = -20;
+            },
+            cancle_full_rule() {
+                this.ruleX = 0.75;
+                this.ruleY = 0.75;
+                this.errorX = 20;
+                this.errorY = 20;
+            },
             // 取消全屏
             cancle_screen() {
+                let that = this;
                 this.screen_full = false;
                 this.full_state = false;
                 var elem = document;
                 if (elem.webkitCancelFullScreen) {
                     elem.webkitCancelFullScreen();
+                    that.cancle_full_rule();
                 } else if (elem.mozCancelFullScreen) {
                     elem.mozCancelFullScreen();
+                    that.cancle_full_rule();
                 } else if (elem.cancelFullScreen) {
                     elem.cancelFullScreen();
+                    that.cancle_full_rule();
                 } else if (elem.exitFullscreen) {
                     elem.exitFullscreen();
+                    that.cancle_full_rule();
                 } else {
                     this.screen_full = true;
                     notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
@@ -258,11 +302,13 @@
         color: #fff;
     }
 
-    .signMapListBg span {
-        position: relative;
+    .signMapListBg > span {
+        position: absolute;
         float: left;
         overflow: hidden;
         cursor: pointer;
+        width: 20%;
+        height: 20%;
     }
 
     .signMapListBg em {

+ 70 - 39
src/views/Main.vue

@@ -48,8 +48,8 @@
 
         <el-dialog title="扫描结果" :visible.sync="dialogScanVisible" width="30%">
             <el-table :data="scanGridData">
-                <el-table-column property="name" label="设备" width="150"></el-table-column>
-                <el-table-column property="state" label="结果" width="200"></el-table-column>
+                <el-table-column property="Name" label="设备" align="center"></el-table-column>
+                <el-table-column property="State" label="结果" align="center"></el-table-column>
             </el-table>
             <div slot="footer" class="dialog-footer">
                 <el-button @click="dialogScanVisible = false" size="small" type="primary">关闭</el-button>
@@ -94,7 +94,10 @@
                 CurrentRegionId: 0,
                 WifiRs: {},
                 ScanRs: {},
-                signList: {},
+                signList: {
+                    title:'',
+                    Rs:null
+                },
                 totalRs: [],
                 equipRs: [],
                 dialogScanVisible: false,
@@ -103,6 +106,7 @@
                 detectorList: [],
                 showLeft: true,
                 regionId: '',
+                selectName: '',
                 historyRs: {
                     Title: '区域无线设备列表',
                     Url: 'signEquip',
@@ -123,7 +127,14 @@
         },
         mounted() {
             this.init();
-            this.showLeft = parseInt(this.$store.state.status.count) % 2 == 0
+            this.showLeft = parseInt(this.$store.state.status.count) % 2 == 0;
+            // 定时刷新
+            this.timer = setInterval(() => {
+                this.timerInfo();
+            }, 5000);
+        },
+        beforeDestroy() {
+            clearInterval(this.timer);
         },
         computed: {
             ...mapGetters({
@@ -134,6 +145,8 @@
             '$route': function (val) {
                 if (val.path == '/') {
                     this.init()
+                } else {
+                    clearInterval(this.timer);
                 }
             },
             '$store.state.status.count': function (val) {
@@ -141,6 +154,17 @@
             },
         },
         methods: {
+            timerInfo() {
+                this.getDetectorList(this.CurrentRegionId);
+                this.getRegion06G(this.CurrentRegionId);
+                this.getWifiChannel(this.CurrentRegionId);
+                this.getMonitorArea(this.CurrentRegionId);
+                this.getNetDevMonitor(this.CurrentRegionId);
+                this.getWirelessMonitor(this.CurrentRegionId);
+                this.getDevList(this.CurrentRegionId);
+                this.getWirelessStatus(this.CurrentRegionId);
+                this.getScanStrategyList(this.CurrentRegionId);
+            },
             init() {
                 this.getDate();
             },
@@ -158,15 +182,16 @@
                         // 默认加载第一个区域
                         if (json.Rs) {
                             this.CurrentRegionId = json.Rs[0].Id;
-                            this.getDetectorList(json.Rs[0].Id);
-                            this.getRegion06G(json.Rs[0].Id);
-                            this.getWifiChannel(json.Rs[0].Id);
-                            this.getMonitorArea(json.Rs[0].Id);
-                            this.getNetDevMonitor(json.Rs[0].Id);
-                            this.getWirelessMonitor(json.Rs[0].Id);
-                            this.getDevList(json.Rs[0].Id);
-                            this.getWirelessStatus(json.Rs[0].Id);
-                            this.getScanStrategyList(json.Rs[0].Id);
+                            this.signList.title = json.Rs[0].Name;
+                            this.getDetectorList(this.CurrentRegionId);
+                            this.getRegion06G(this.CurrentRegionId);
+                            this.getWifiChannel(this.CurrentRegionId);
+                            this.getMonitorArea(this.CurrentRegionId);
+                            this.getNetDevMonitor(this.CurrentRegionId);
+                            this.getWirelessMonitor(this.CurrentRegionId);
+                            this.getDevList(this.CurrentRegionId);
+                            this.getWirelessStatus(this.CurrentRegionId);
+                            this.getScanStrategyList(this.CurrentRegionId);
                         }
                     } else {
                         that.$message.error(json.Memo);
@@ -180,12 +205,12 @@
                     regionId: regionId,
                 };
                 let postdata = qs.stringify(param);
-                that.detectorList = [];
                 DetectorList(postdata).then(res => {
                     let json = res;
                     if (json.Code == 0) {
                         that.detectorList = json.Rs
                     } else {
+                        that.detectorList = [];
                         that.$message.error(json.Memo);
                     }
                 })
@@ -207,7 +232,10 @@
                     }
                 })
             },
-            ClickGetInfo(Id) {
+            ClickGetInfo(Id, name) {
+                this.selectName = name;
+                this.signList.title = name;
+                console.log( this.signList);
                 this.CurrentRegionId = Id;
                 this.getDetectorList(Id);
                 this.getRegion06G(Id);
@@ -232,12 +260,8 @@
                     }
                 })
             },
-            showScanRresult() {
+            showScanRresult(Rs) {
                 let that = this;
-                let Rs = [
-                    {name: "设备1", state: 1},
-                    {name: "设备2", state: 2},
-                ];
                 that.dialogScanVisible = true;
                 that.scanGridData = Rs;
             },
@@ -268,20 +292,20 @@
                 let postdata = qs.stringify(param);
                 MonitorArea(postdata).then(res => {
                     let json = res;
-                    if (json.Code == 0) {
-                        if(!json.Rs.Data) {
-                            return false
-                        }else{
-                            this.signList = json;
-                        }
-                    } else {
-                        this.signList = {
-                            Rs:{
-                                Data:[]
-                            }
-                        };
-                        that.$message.error(json.Memo);
-                    }
+                    // if (json.Code == 0) {
+                    //     if (!json.Rs.Data) {
+                    //         return false
+                    //     } else {
+                    //         that.signList = json;
+                    //     }
+                    // } else {
+                    //     that.signList = {
+                    //         Rs: {
+                    //             Data: []
+                    //         }
+                    //     };
+                        // that.$message.error(json.Memo);
+                    // }
                 })
             },
             getNetDevMonitor(id) {
@@ -403,6 +427,7 @@
 <style scoped>
     @import "../assets/css/cube.css";
     @import "../assets/css/dialog.css";
+
     .mainContainer {
         width: 100%;
         overflow: hidden;
@@ -422,6 +447,7 @@
 
     .mainContainer .md {
         width: 52%;
+        min-width: 660px;
         float: left;
         overflow: hidden;
         padding-bottom: 10px;
@@ -477,24 +503,29 @@
         background-size: 100%;
     }
 
-     .el-table {
+    .el-table {
         background-color: #061B44;
         color: #6DC1FF;
     }
-     .el-table th,  .el-table tr {
+
+    .el-table th, .el-table tr {
         background-color: #061B44;
         color: #6DC1FF;
     }
-    /deep/ .el-table th,   /deep/ .el-table tr {
+
+    /deep/ .el-table th, /deep/ .el-table tr {
         background-color: #061B44;
         color: #6DC1FF;
     }
-    /deep/  .el-table td,  /deep/  .el-table th.is-leaf {
+
+    /deep/ .el-table td, /deep/ .el-table th.is-leaf {
         border-bottom: 1px solid #061B44;
     }
-    /deep/ .el-table--border::after,  /deep/ .el-table--group::after,  /deep/ .el-table::before {
+
+    /deep/ .el-table--border::after, /deep/ .el-table--group::after, /deep/ .el-table::before {
         background-color: #061B44;
     }
+
     /deep/ .el-dialog__title {
         color: #6DC1FF;
     }

+ 31 - 32
src/views/Region.vue

@@ -45,7 +45,7 @@
             >
             </el-table-column>
             <el-table-column
-                    prop="Mac"
+                    prop="Name"
                     label="区域名称"
             >
             </el-table-column>
@@ -64,20 +64,20 @@
                     label="备注"
             >
             </el-table-column>
-            <el-table-column
-                    prop="address"
-                    label="操作记录"
-                    width="220"
-            >
-                <template slot-scope="scope">
-                    <!--<el-button class="" type="text" @click="goPhoneRecord(scope.row)">手机信号记录</el-button>-->
-                    <el-button class="" type="primary" size="small" @click="goWifiRecord(scope.row)">监测记录</el-button>
-                    <!--<el-button v-if="scope.row.Status == 1" class="yellow" type="text" @click="pauseRow(scope.row)">禁用-->
-                    <!--</el-button>-->
-                    <!--<el-button v-if="scope.row.Status == 0" class="green" type="text" @click="runRow(scope.row)">启用-->
-                    <!--</el-button>-->
-                </template>
-            </el-table-column>
+            <!--<el-table-column-->
+                    <!--prop="address"-->
+                    <!--label="操作记录"-->
+                    <!--width="220"-->
+            <!--&gt;-->
+                <!--<template slot-scope="scope">-->
+                    <!--&lt;!&ndash;<el-button class="" type="text" @click="goPhoneRecord(scope.row)">手机信号记录</el-button>&ndash;&gt;-->
+                    <!--&lt;!&ndash;<el-button class="" type="primary" size="small" @click="goWifiRecord(scope.row)">监测记录</el-button>&ndash;&gt;-->
+                    <!--&lt;!&ndash;<el-button v-if="scope.row.Status == 1" class="yellow" type="text" @click="pauseRow(scope.row)">禁用&ndash;&gt;-->
+                    <!--&lt;!&ndash;</el-button>&ndash;&gt;-->
+                    <!--&lt;!&ndash;<el-button v-if="scope.row.Status == 0" class="green" type="text" @click="runRow(scope.row)">启用&ndash;&gt;-->
+                    <!--&lt;!&ndash;</el-button>&ndash;&gt;-->
+                <!--</template>-->
+            <!--</el-table-column>-->
         </el-table>
         <br>
         <el-pagination
@@ -101,26 +101,25 @@
                         <label>
                             区域名称
                         </label>
-                        <el-input v-model="dialog.mac" @keyup.native="autoCompleteMac"
-                                  :disabled="dialog_type == 2"></el-input>
+                        <el-input v-model="dialog.name"></el-input>
                     </el-col>
                     <el-col :span="12">
                         <label>
                             长/m
                         </label>
-                        <el-input v-model="dialog.tagname"></el-input>
+                        <el-input v-model="dialog.x"></el-input>
                     </el-col>
                     <el-col :span="12">
                         <label>
                             宽/m
                         </label>
-                        <el-input v-model="dialog.tagname"></el-input>
+                        <el-input v-model="dialog.y"></el-input>
                     </el-col>
                     <el-col :span="24">
                         <label>
                             备注
                         </label>
-                        <el-input v-model="dialog.memo" type="textarea"></el-input>
+                        <el-input v-model="dialog.description" type="textarea"></el-input>
                     </el-col>
                 </el-row>
             </div>
@@ -233,7 +232,7 @@
             getTableQuery() {
                 let that = this;
                 // this.getGetChildRegionSelect(0, 1);
-                this.getGeFullRegionSelect();
+                // this.getGeFullRegionSelect();
                 that.loading = true;
                 // 查询检测设备。上级区域id,区域id必传。regionid传0,查询supregionid对应所有子区域的检测设备。 如果supregionid,regionid都传0,默认查询企业ID下所有检测设备
                 let param = {
@@ -246,7 +245,7 @@
                     tableMax: 9999,//
                 };
                 let postdata = qs.stringify(param);
-                DetectorList(postdata).then(res => {
+                RegionList(postdata).then(res => {
                     let json = res;
                     if (json.Code == 0) {
                         that.loading = false;
@@ -439,7 +438,7 @@
                 };
                 let postdata = qs.stringify(param);
 
-                this.$confirm('此操作将永久删除该设备, 是否继续?', '提示', {
+                this.$confirm('此操作将永久删除该监控区域, 是否继续?', '提示', {
                     confirmButtonText: '确定',
                     cancelButtonText: '取消',
                     type: 'warning'
@@ -449,7 +448,7 @@
                         if (json.Code == 0) {
                             that.$message({
                                 showClose: true,
-                                message: '选中的设备已删除!',
+                                message: '选中的监控区域已删除!',
                                 type: 'success'
                             });
                             // 重载列表
@@ -486,7 +485,7 @@
                     return false
                 }
                 this.dialog_state = true;
-                this.dialog_title = '修改设备信息';
+                this.dialog_title = '修改监控区域';
                 this.dialog_type = 2;
 
                 // 读取本条记录
@@ -579,7 +578,7 @@
                     this.confirmEditEquip();
                 }
             },
-            // 提交增加新设备
+            // 提交增加新监控区域
             confirmAddEquip() {
                 let that = this;
                 // checkVal
@@ -627,7 +626,7 @@
                     if (json.Code == 0) {
                         that.$message({
                             showClose: true,
-                            message: '设备添加成功!',
+                            message: '监控区域添加成功!',
                             type: 'success'
                         });
                         // 重载列表
@@ -639,7 +638,7 @@
                     }
                 });
             },
-            // 提交修改设备信息
+            // 提交修改监控区域信息
             confirmEditEquip() {
                 let that = this;
                 // checkVal
@@ -693,7 +692,7 @@
                     if (json.Code == 0) {
                         that.$message({
                             showClose: true,
-                            message: '设备添加成功!',
+                            message: '监控区域添加成功!',
                             type: 'success'
                         });
                         // 重载列表
@@ -705,7 +704,7 @@
                     }
                 });
             },
-            // 修改设备状态
+            // 修改监控区域状态
             getDetectorEditStatus(detectorid, status, text) {
                 let that = this;
                 let param = {
@@ -732,7 +731,7 @@
             // 禁用
             pauseRow(row) {
                 let that = this;
-                this.$confirm('是否禁用' + row.TagName + '设备?', '禁用操作', {
+                this.$confirm('是否禁用' + row.TagName + '监控区域?', '禁用操作', {
                     confirmButtonText: '确定',
                     cancelButtonText: '取消',
                     type: 'warning'
@@ -769,7 +768,7 @@
             runRow(row) {
                 console.log(row);
                 let that = this;
-                this.$confirm('是否启用' + row.TagName + '设备?', '启用操作', {
+                this.$confirm('是否启用' + row.TagName + '监控区域?', '启用操作', {
                     confirmButtonText: '确定',
                     cancelButtonText: '取消',
                     type: 'warning'