lyh
12 小时以前 b6247699693bdc200539f20851b3d2105fe8b674
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<template>
  <el-row class="container">
    <p-head ref="pHead"></p-head>
      <div class="home" style="width:100%;height:100%">
        <img src="../../../assets/bj_bak.png" alt="" style="width:100%;height:100%">
      </div>
    <p-foot></p-foot>
  </el-row>
</template>
<script>
 
  import PHead from '@/base/components/head.vue';
  import PFoot from '@/base/components/foot.vue';
  import utilApi from '../../../common/utils';
  import * as systemApi from '../../../base/api/system';
  import {getNcLogInfoMap} from "../../../vuex/getters";
  export default {
    components:{
      PHead,
      PFoot
    },
    data() {
      return {
        imagesBox:[
          {id:1,idView:require("@/assets/timg_one.jpg")},
          {id:2,idView:require("@/assets/timg_two.jpg")},
          {id:3,idView:require("@/assets/timg_three.jpg")}],
        fiveNews: [],
        carouselHeight:'',
        collapsed: false,
        sysUserName: '',
        sysUserAvatar: '/static/images/small.jpg',
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      getHeight(){
        let h = document.body.offsetHeight;
        this.carouselHeight = h-100+'px'
      },
      initProductStatus() {
        let map = this.$store.getters.getProductStatusMap;
        if(map && Object.keys(map).length === 0) {
          systemApi.single_dic_list('PRODUCT_STATUS').then((res) => {
            if(res.success && res.list && res.list.length > 0){
              res.list.forEach((v, k) => {
                map[v.dicValue]=v.dicName;
              });
              this.$store.dispatch("setProductStatusMap", map)
            }else {
              this.$store.dispatch("setProductStatusMap", {})
            }
          }).catch((err) => {
            this.$store.dispatch("setProductStatusMap", {})
          });
        }
      },
       initBtnStatus() {
        let map = this.$store.getters.getBtnTypeMap;
        if(map && Object.keys(map).length === 0) {
          systemApi.single_dic_list('BTN_TYPE').then((res) => {
            if(res.success && res.list && res.list.length > 0){
              res.list.forEach((v, k) => {
                map[v.dicValue]=v.dicName;
              });
              this.$store.dispatch("setBtnTypeMap", map)
            }else {
              this.$store.dispatch("setBtnTypeMap", {})
            }
          }).catch((err) => {
            this.$store.dispatch("setBtnTypeMap", {})
          });
        }
      },
       initPullStatus() {
        let map = this.$store.getters.getPullStatusMap;
        if(map && Object.keys(map).length === 0) {
          systemApi.single_dic_list('PULL_STATUS').then((res) => {
            if(res.success && res.list && res.list.length > 0){
              res.list.forEach((v, k) => {
                map[v.dicValue]=v.dicName;
              });
              this.$store.dispatch("setPullStatusMap", map)
            }else {
              this.$store.dispatch("setPullStatusMap", {})
            }
          }).catch((err) => {
            this.$store.dispatch("setPullStatusMap", {})
          });
        }
      },
       initDocSyncStatus() {
        let map = this.$store.getters.getDocSyncStatusMap;
        if(map && Object.keys(map).length === 0) {
          systemApi.single_dic_list('DOC_SYNC_STATUS').then((res) => {
            if(res.success && res.list && res.list.length > 0){
              res.list.forEach((v, k) => {
                map[v.dicValue]=v.dicName;
              });
              this.$store.dispatch("setDocSyncStatusMap", map)
            }else {
              this.$store.dispatch("setDocSyncStatusMap", {})
            }
          }).catch((err) => {
            this.$store.dispatch("setDocSyncStatusMap", {})
          });
        }
      },
      initNcLogInfo(){
        let map = this.$store.getters.getNcLogInfoMap;
        if(map && Object.keys(map).length === 0) {
          systemApi.multiple_dic_list('OPERATE_TYPE').then((res) => {
            if(res.success && res.list && res.list.length > 0){
              res.list.forEach((v, k) => {
                map[v.dicValue]=v.dicName;
              });
              this.$store.dispatch("setNcLogInfoMap", map)
            }else {
              this.$store.dispatch("setNcLogInfoMap", {})
            }
          }).catch((err) => {
            this.$store.dispatch("setNcLogInfoMap", {})
          });
        }
      },
 
    },
    created() {
      this.initProductStatus();
      this.initBtnStatus();
      this.initPullStatus();
      this.initDocSyncStatus();
      this.initNcLogInfo();
    },
    mounted(){
      window.addEventListener('resize', this.getHeight);
      this.getHeight();
      this.$refs.pHead.activeIndex = '/home'
    }
  }
 
</script>
 
<style scoped lang="scss">
  @import '~scss_vars';
  .container {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    .main {
      display: flex;
      // background: #324057;
      position: absolute;
      top: 60px;
      bottom: 0px;
      overflow: hidden;
    }
        #world{
          position: absolute;
          width:100%;
          height: 100%;
          background-color: #6ecccc;
      overflow:hidden;
      }
      #credits{
      position:absolute;
      width:100%;
      margin: auto;
      bottom:0;
      margin-bottom:20px;
      font-family:'Open Sans', sans-serif;
      color:#328685;
      font-size:0.7em;
      text-transform: uppercase;
      text-align : center;
      }
      #credits a {
      color:#328685;
      }
      #credits a:hover {
      color:#630d15;
      }
  }
 
</style>
<style>
  html,body{
    height: 100%;
  }
</style>