|
|
@@ -6,29 +6,39 @@
|
|
|
<i class="dot"></i>
|
|
|
<em>检测中</em>
|
|
|
</div>
|
|
|
+ <div class="fill_left" @click="left_part_hide">
|
|
|
+ <img src="../assets/img/headside/fill_left.png" height="14" width="18"/>
|
|
|
+ </div>
|
|
|
+ <div class="screen">
|
|
|
+ <img src="../assets/img/headside/screen_max.png" v-if="!screen_full" height="18" width="19"
|
|
|
+ @click="full_screen"/>
|
|
|
+ <img src="../assets/img/headside/screen_min.png" v-if="screen_full" height="18" width="19"
|
|
|
+ @click="cancle_screen"/>
|
|
|
+ </div>
|
|
|
<div class="center">
|
|
|
- 保密会议室无线信号安全监控系统
|
|
|
+ 无线信号安全监控系统
|
|
|
</div>
|
|
|
- <ul class="user-info-menu right-links list-inline list-unstyled" v-if="false">
|
|
|
- <li class="dropdown user-profile">
|
|
|
- <el-dropdown>
|
|
|
- <i class="icon-user"></i>
|
|
|
- <span class="el-dropdown-link customer_serve">
|
|
|
- {{user.name}}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </span>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item icon="el-icon-plus" @click.native="logoutClick">退出登录</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </li>
|
|
|
-
|
|
|
- </ul>
|
|
|
+ <!--<ul class="user-info-menu right-links list-inline list-unstyled" v-if="false">-->
|
|
|
+ <!--<li class="dropdown user-profile">-->
|
|
|
+ <!--<el-dropdown>-->
|
|
|
+ <!--<i class="icon-user"></i>-->
|
|
|
+ <!--<span class="el-dropdown-link customer_serve">-->
|
|
|
+ <!--{{user.name}}<i class="el-icon-arrow-down el-icon--right"></i>-->
|
|
|
+ <!--</span>-->
|
|
|
+ <!--<el-dropdown-menu slot="dropdown">-->
|
|
|
+ <!--<el-dropdown-item icon="el-icon-plus" @click.native="logoutClick">退出登录</el-dropdown-item>-->
|
|
|
+ <!--</el-dropdown-menu>-->
|
|
|
+ <!--</el-dropdown>-->
|
|
|
+ <!--</li>-->
|
|
|
+
|
|
|
+ <!--</ul>-->
|
|
|
</nav>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import axios from 'axios';
|
|
|
-
|
|
|
+ import Global from "../Global"
|
|
|
+ import { mapGetters, mapActions, mapState } from "vuex";
|
|
|
let qs = require('qs');
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -38,27 +48,55 @@
|
|
|
},
|
|
|
newnum: '',
|
|
|
newnumState: false,
|
|
|
- left_panel_state: false
|
|
|
+ screen_full: false,
|
|
|
+ left_panel_state: false,
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.readNewNum();
|
|
|
-// 定时轮询news
|
|
|
- //设置10s刷新一次数据
|
|
|
- // if (this.timer) {
|
|
|
- // clearInterval(this.timer);
|
|
|
- // }else{
|
|
|
- // this.timer = setInterval(() => {
|
|
|
- // this.readNewNum();
|
|
|
- // },10000)
|
|
|
- // }
|
|
|
+ computed:{
|
|
|
+ ...mapGetters({
|
|
|
+ 'getCount': 'status/getCount'
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
+ left_part_hide(){
|
|
|
+ this.$store.dispatch('status/addCount')
|
|
|
+ },
|
|
|
+ // 全屏
|
|
|
+ full_screen() {
|
|
|
+ this.screen_full = true;
|
|
|
+ let elem = document.body;
|
|
|
+ if (elem.webkitRequestFullScreen) {
|
|
|
+ elem.webkitRequestFullScreen();
|
|
|
+ } else if (elem.mozRequestFullScreen) {
|
|
|
+ elem.mozRequestFullScreen();
|
|
|
+ } else if (elem.requestFullScreen) {
|
|
|
+ elem.requestFullscreen();
|
|
|
+ } else {
|
|
|
+ this.screen_full = false;
|
|
|
+ notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 取消全屏
|
|
|
+ cancle_screen() {
|
|
|
+ this.screen_full = false;
|
|
|
+ var elem = document;
|
|
|
+ if (elem.webkitCancelFullScreen) {
|
|
|
+ elem.webkitCancelFullScreen();
|
|
|
+ } else if (elem.mozCancelFullScreen) {
|
|
|
+ elem.mozCancelFullScreen();
|
|
|
+ } else if (elem.cancelFullScreen) {
|
|
|
+ elem.cancelFullScreen();
|
|
|
+ } else if (elem.exitFullscreen) {
|
|
|
+ elem.exitFullscreen();
|
|
|
+ } else {
|
|
|
+ this.screen_full = true;
|
|
|
+ notice.notice_show("浏览器不支持全屏API或已被禁用", null, null, null, true, true);
|
|
|
+ }
|
|
|
+ },
|
|
|
// 隐藏左侧和显示
|
|
|
left_hide: function () {
|
|
|
let that = this;
|
|
|
- that.left_panel_state = !that.left_panel_state;
|
|
|
- console.log(223);
|
|
|
+ // that.left_panel_state = !that.left_panel_state;
|
|
|
this.$emit('lefthide');
|
|
|
// if (!that.left_panel_state) {
|
|
|
// this.$emit('left_hide_func');
|
|
|
@@ -66,51 +104,26 @@
|
|
|
// this.$emit('right_hide_func');
|
|
|
// }
|
|
|
},
|
|
|
-// 打开消息提示
|
|
|
- checkNews: function () {
|
|
|
- let that = this;
|
|
|
- const h = this.$createElement;
|
|
|
- this.$notify({
|
|
|
- title: '标题名称',
|
|
|
- position: 'top-left',
|
|
|
- message: h('i', {style: 'color: teal'}, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案'),
|
|
|
- onClose: function () {
|
|
|
- //关闭时调用已读接口
|
|
|
- },
|
|
|
- onClick: function () {
|
|
|
- //关闭时调用已读接口
|
|
|
- this.close();//关闭notify
|
|
|
- let thisdata = {name: 'message', link: '/#/message'};
|
|
|
- that.$emit('navOpen', thisdata);//跳转新的message
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
-// 读取消息提示数量
|
|
|
- readNewNum: function () {
|
|
|
- this.newnum = 0;
|
|
|
- this.newnumState = false;
|
|
|
-// ajax todo
|
|
|
- },
|
|
|
- // 退出登录
|
|
|
- logoutClick: function () {
|
|
|
- let that = this;
|
|
|
- that.$confirm('此操作将退出当前账号, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- let url = headapi + '?ctl=ajax&mod=index&act=logout';
|
|
|
- let param = {};
|
|
|
- let postdata = qs.stringify(param);
|
|
|
- axios.post(url, postdata).then(function (data) {
|
|
|
- that.$router.push({path: '/login', query: {status: 1}});
|
|
|
- }, function (response) {
|
|
|
- console.info(response);
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
-
|
|
|
- });
|
|
|
- },
|
|
|
+ // // 退出登录
|
|
|
+ // logoutClick: function () {
|
|
|
+ // let that = this;
|
|
|
+ // that.$confirm('此操作将退出当前账号, 是否继续?', '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning'
|
|
|
+ // }).then(() => {
|
|
|
+ // let url = headapi + '?ctl=ajax&mod=index&act=logout';
|
|
|
+ // let param = {};
|
|
|
+ // let postdata = qs.stringify(param);
|
|
|
+ // axios.post(url, postdata).then(function (data) {
|
|
|
+ // that.$router.push({path: '/login', query: {status: 1}});
|
|
|
+ // }, function (response) {
|
|
|
+ // console.info(response);
|
|
|
+ // })
|
|
|
+ // }).catch(() => {
|
|
|
+ //
|
|
|
+ // });
|
|
|
+ // },
|
|
|
},
|
|
|
components: {}
|
|
|
}
|
|
|
@@ -464,6 +477,7 @@
|
|
|
.el-dropdown-menu__item {
|
|
|
padding: 5px;
|
|
|
}
|
|
|
+
|
|
|
.icon-head {
|
|
|
width: 18px;
|
|
|
height: 18px;
|
|
|
@@ -473,11 +487,13 @@
|
|
|
background: url("../assets/img/icon/header.png") top center no-repeat;
|
|
|
background-size: 100%;
|
|
|
}
|
|
|
+
|
|
|
.watching {
|
|
|
float: left;
|
|
|
margin-left: 20px;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
.watching .dot {
|
|
|
width: 12px;
|
|
|
height: 12px;
|
|
|
@@ -489,6 +505,7 @@
|
|
|
animation: bulge 2s infinite ease-in-out;
|
|
|
animation-delay: 0s;
|
|
|
}
|
|
|
+
|
|
|
.watching em {
|
|
|
line-height: 45px;
|
|
|
font-size: 14px;
|
|
|
@@ -525,6 +542,7 @@
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.center {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
@@ -532,11 +550,14 @@
|
|
|
right: 0;
|
|
|
text-align: center;
|
|
|
margin-top: 20px;
|
|
|
- padding-bottom: 20px;
|
|
|
+ padding-bottom: 30px;
|
|
|
font-size: 26px;
|
|
|
color: #FFFFFF;
|
|
|
- background: url("../assets/img/headbotter.png")bottom center no-repeat;
|
|
|
+ background: url("../assets/img/headbotter.png") bottom center no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ line-height: 30px;
|
|
|
}
|
|
|
+
|
|
|
.icon-user {
|
|
|
width: 28px;
|
|
|
height: 28px;
|
|
|
@@ -547,4 +568,21 @@
|
|
|
background-size: 100%;
|
|
|
}
|
|
|
|
|
|
+ .fill_left {
|
|
|
+ position: absolute;
|
|
|
+ float: left;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-left: 24%;
|
|
|
+ cursor: pointer;
|
|
|
+ z-index: 222;
|
|
|
+ }
|
|
|
+
|
|
|
+ .screen {
|
|
|
+ position: absolute;
|
|
|
+ right: 1%;
|
|
|
+ float: right;
|
|
|
+ margin-top: 20px;
|
|
|
+ cursor: pointer;
|
|
|
+ z-index: 222;
|
|
|
+ }
|
|
|
</style>
|