xiangpei
2025-04-18 7feee0463330ee014b0ac1a6f8e31118bb699f12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
  <div id="app">
    <nav>
      <!-- <router-link to="/">Login</router-link> | -->
    </nav>
    <router-view/>
  </div>
</template>
 
<script>
  export default {
    name: "App",
    watch: {
      $route(to) {
        // console.log("path")
        // console.log(to.path)
        // console.log(to.path !== "/login" && to.path !== "/index")
        if (to.path !== "/login" && to.path !== "/") {
          let obj = {
            name: to.path,
            title: to.meta.title,
          }
          this.$store.commit("addTab", obj);
        }
      }
    },
  }
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
.el-tabs {
}
.el-tabs__nav-scroll{
  height: 39px;
}
 
body{
  margin:0;
  padding:0;
  border:0;
  overflow: auto;
}
 
.view {
  min-height: 400px;
}
/** 操作的class */
.topLevel1 {
  position: absolute; left: 15px; top:55px; z-index: 5
}
.topLevel2 {
  position: absolute; left: 15px; top:115px; z-index: 5
}
.topLevel3 {
  position: absolute; left: 15px; top:175px; z-index: 5
}
.topDefault {
  position: absolute; left: 15px; top:10px; z-index: 5
}
 
/** 分页的class */
.pageTopLevel1 {
  position: absolute; right: 15px; top:55px; z-index: 5
}
.pageTopLevel2 {
  position: absolute; right: 15px; top:115px; z-index: 5
}
.pageTopLevel3 {
  position: absolute; right: 15px; top:175px; z-index: 5
}
.pageTopDefault {
  position: absolute; right: 15px; top:10px; z-index: 5
}
 
/** table的class */
.tableTopLevelDefault {
  width: 100%;margin-bottom: 20px;margin-top: 30px;
}
.tableTopLevel1 {
  width: 100%;margin-bottom: 20px;margin-top: 30px;
}
.tableTopLevel2 {
  width: 100%;margin-bottom: 20px;margin-top: 60px;
}
.tableTopLevel3 {
  width: 100%;margin-bottom: 20px;margin-top: 90px;
}
</style>