|
|
@@ -20,14 +20,7 @@
|
|
|
<span v-for="s in scan"
|
|
|
:style="{ left: s.X*ruleX - errorX +'PX', top: s.Y *ruleY - errorY +'PX'}"
|
|
|
>
|
|
|
- <el-popover
|
|
|
- placement="top-start"
|
|
|
- title="详细信息"
|
|
|
- width="200"
|
|
|
- trigger="hover"
|
|
|
- :content="s.popover">
|
|
|
- <div slot="reference">
|
|
|
- <em class="types">
|
|
|
+ <em class="types" @click="showToast(s.popover)">
|
|
|
<img src="../assets/img/signMap/ydgsm.png" height="54" width="54"
|
|
|
v-if="s.WirelessType == 1"/>
|
|
|
<img src="../assets/img/signMap/ltgsm.png" height="54" width="54"
|
|
|
@@ -71,8 +64,6 @@
|
|
|
{'qt':s.WirelessType == 9 || s.WirelessType == 10 || s.WirelessType == 11|| s.WirelessType == 12},
|
|
|
]"
|
|
|
>{{s.WirelessType | typeName}}</s>
|
|
|
- </div>
|
|
|
- </el-popover>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="right_rule">
|
|
|
@@ -83,6 +74,16 @@
|
|
|
<span>0</span>
|
|
|
<span v-for="i in XMax" v-if="i % xLimit == 0">{{i}}</span>
|
|
|
</div>
|
|
|
+ <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="30%"
|
|
|
+ >
|
|
|
+ <span>{{dialogText}}</span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false" size="mini" type="primary">关闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -91,6 +92,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisible: false,
|
|
|
screen_full: false,
|
|
|
checked: true,
|
|
|
full_state: false,
|
|
|
@@ -104,15 +106,17 @@
|
|
|
errorX: 20,
|
|
|
errorY: 20,
|
|
|
title: '扫描结果',
|
|
|
+ dialogText: '',
|
|
|
}
|
|
|
},
|
|
|
props: ['signList'],
|
|
|
watch: {
|
|
|
signList: {
|
|
|
handler(newName, oldName) {
|
|
|
- if(!newName.Rs){
|
|
|
+ if (!newName.Rs) {
|
|
|
return false
|
|
|
}
|
|
|
+ console.log(newName);
|
|
|
this.scan = newName.Rs.Data;
|
|
|
this.XMax = newName.Rs.XMax;
|
|
|
this.YMax = newName.Rs.YMax;
|
|
|
@@ -124,7 +128,8 @@
|
|
|
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
|
|
|
+ item.popover = "品牌:" + Oem + " SSID:" + Ssid;
|
|
|
+ // + "X:" + item.X + " Y:" + item.Y
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -188,6 +193,10 @@
|
|
|
notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
|
|
|
}
|
|
|
},
|
|
|
+ showToast(text) {
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.dialogText = text;
|
|
|
+ }
|
|
|
},
|
|
|
filters: {
|
|
|
typeName: function (value) {
|