|
|
@@ -60,7 +60,7 @@
|
|
|
methods: {
|
|
|
...mapActions(['toggleMenu'])
|
|
|
},
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
|
|
|
fullscreen: false,
|
|
|
@@ -72,35 +72,35 @@
|
|
|
this.getdepartment()
|
|
|
},
|
|
|
methods: {
|
|
|
- handleFullScreen(){
|
|
|
- let element = document.documentElement;
|
|
|
- if (this.fullscreen) {
|
|
|
- if (document.exitFullscreen) {
|
|
|
- document.exitFullscreen();
|
|
|
- } else if (document.webkitCancelFullScreen) {
|
|
|
- document.webkitCancelFullScreen();
|
|
|
- } else if (document.mozCancelFullScreen) {
|
|
|
- document.mozCancelFullScreen();
|
|
|
- } else if (document.msExitFullscreen) {
|
|
|
- document.msExitFullscreen();
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (element.requestFullscreen) {
|
|
|
- element.requestFullscreen();
|
|
|
- } else if (element.webkitRequestFullScreen) {
|
|
|
- element.webkitRequestFullScreen();
|
|
|
- } else if (element.mozRequestFullScreen) {
|
|
|
- element.mozRequestFullScreen();
|
|
|
- } else if (element.msRequestFullscreen) {
|
|
|
- // IE11
|
|
|
- element.msRequestFullscreen();
|
|
|
- }
|
|
|
- }
|
|
|
- this.fullscreen = !this.fullscreen;
|
|
|
- },
|
|
|
- getdepartment(){
|
|
|
- this.department = '欢迎使用'
|
|
|
- /*if (this.authUser.Profile.DepartmentId == "100000054") {
|
|
|
+ handleFullScreen () {
|
|
|
+ let element = document.documentElement
|
|
|
+ if (this.fullscreen) {
|
|
|
+ if (document.exitFullscreen) {
|
|
|
+ document.exitFullscreen()
|
|
|
+ } else if (document.webkitCancelFullScreen) {
|
|
|
+ document.webkitCancelFullScreen()
|
|
|
+ } else if (document.mozCancelFullScreen) {
|
|
|
+ document.mozCancelFullScreen()
|
|
|
+ } else if (document.msExitFullscreen) {
|
|
|
+ document.msExitFullscreen()
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (element.requestFullscreen) {
|
|
|
+ element.requestFullscreen()
|
|
|
+ } else if (element.webkitRequestFullScreen) {
|
|
|
+ element.webkitRequestFullScreen()
|
|
|
+ } else if (element.mozRequestFullScreen) {
|
|
|
+ element.mozRequestFullScreen()
|
|
|
+ } else if (element.msRequestFullscreen) {
|
|
|
+ // IE11
|
|
|
+ element.msRequestFullscreen()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.fullscreen = !this.fullscreen
|
|
|
+ },
|
|
|
+ getdepartment () {
|
|
|
+ this.department = '欢迎使用'
|
|
|
+ /* if (this.authUser.Profile.DepartmentId == "100000054") {
|
|
|
this.department = '欢迎使用'
|
|
|
} else{
|
|
|
this.$axios.get('/limsentrust/getshow')
|
|
|
@@ -124,9 +124,9 @@
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
- }*/
|
|
|
- },
|
|
|
- headclearsearch() {
|
|
|
+ } */
|
|
|
+ },
|
|
|
+ headclearsearch () {
|
|
|
this.sampcode = ''
|
|
|
}
|
|
|
}
|
|
|
@@ -135,7 +135,11 @@
|
|
|
@Getter isMenuHidden
|
|
|
@Getter authUser
|
|
|
|
|
|
- logout() {
|
|
|
+ logout () {
|
|
|
+ if (process.client) {
|
|
|
+ // 不用clear,清的的太多了
|
|
|
+ Object.keys(localStorage).forEach(item => item.indexOf('Params') !== -1 ? localStorage.removeItem(item) : '')
|
|
|
+ }
|
|
|
this.$store.dispatch('auth/logout', () => {
|
|
|
this.$router.push('/login')
|
|
|
})
|
|
|
@@ -144,7 +148,6 @@
|
|
|
// console.info(this.$store.getters['auth/loggedIn'])
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
<style type="text/css">
|
|
|
.headerseach {
|