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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<template>
  <div id="app">
    <router-view />
  </div>
</template>
 
<script>
export default {
  name: 'App',
  data() {
    return {
      windowWidth: window.innerWidth,
      isCollapse: false
    }
  },
  watch: {
    windowWidth(newWidth) {
      // 当窗口宽度小于某个值时,可以触发折叠
      if (newWidth < 1200 && !this.isCollapse) {
        this.isCollapse = true
        this.$store.commit('SET_ISFOLD', true)
      } else if (newWidth >= 1200 && this.isCollapse) {
        this.isCollapse = false
        this.$store.commit('SET_ISFOLD', false)
      }
    }
  },
  created() {
    // 初始化时检查窗口大小
    this.handleResize()
  },
  mounted() {
    // 监听窗口大小变化
    window.addEventListener('resize', this.handleResize)
  },
  beforeDestroy() {
    // 移除监听
    window.removeEventListener('resize', this.handleResize)
  },
  methods: {
    handleResize() {
      this.windowWidth = window.innerWidth
    }
  },
}
</script>
 
<style lang="less">
::-webkit-scrollbar {
  display: none;
}
 
html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: rgb(245, 245, 245);
}
 
.selected {
  color: #049C9A !important;
}
 
.el-button--primary {
  background-color: #009688 !important;
  border-color: #009688 !important;
}
 
.el-button--text {
  color: #009688 !important;
}
 
.el-button--default:focus,
.el-button--default:hover {
  color: #009688 !important;
  border-color: #009688 !important;
  background: #E6FFFF !important;
}
 
.card {
  .el-form-item__label {
    color: #222222;
    font-family: 'SourceHanSansCN-Medium';
    line-height: 14px;
  }
 
  .el-input__inner {
    width: 290px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
}
 
.select-member {
  .el-dialog {
    border-radius: 16px 16px 6px 6px;
 
    .el-dialog__header {
      font-family: 'Source Han Sans CN Bold Bold';
      font-weight: bold;
      font-size: 20px;
      line-height: 20px;
      color: #222222;
      padding: 39px 0 36px 30px;
      border-bottom: 1px solid rgba(238, 238, 238, 1);
    }
 
    .el-dialog__body {
      padding: 15px 24px 33px 14px;
      overflow: hidden;
    }
  }
}
</style>