拖旺项目:聊城公交辅助决策系统
zhaoxing
2022-05-08 d5859b70023f40c195c58f81d3abcd14980cb722
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
<template>
    <div class="in-box">
        <div class="header">
            <div class="in-top-box flex ju-sb align-c">
                <div class="header-title-i">{{czname}}</div>
                <div class="flex">
                    <div class="flex align-c" @click="gochangzhan()">
                        <div class="small-p">查看详情</div>
                        <img class="more-img-size" src="../../assets/png/icon_more@2x.png" alt="">
                    </div>
                    <div class="header-temp"></div>
                    <div class="flex align-c">
                        <img class="close-img-size" src="../../assets/map/icon_close_s@2x.png" alt="" @click="closediv">
                    </div>
                </div>
            </div>
        </div>
        <div class="container-info  color-white ">
            <div class="flex warp mt20">
                <!-- <div class="flex  item-info">
                    <div class="flex" >
                        <img class="img-size" src="../../assets/map/icon_changzhanmianji.png" alt="">
                        <div class="divtext">
                            <div class="divnumber">{{typeof form.floorArea == "number" ? form.floorArea : '-'}}</div>
                            <div>场站面积(㎡)</div>
                        </div>
                    </div>
 
                </div> -->
                <div class="flex  item-info">
                    <div class="flex" >
                        <img class="img-size" src="../../assets/map/icon_fachezhundianlv.png" alt="">
                        <div class="divtext">
                            <div class="divnumber">{{typeof form.leaveOnTimeRate == "number" ? form.leaveOnTimeRate : '-'}}%</div>
                            <div>发车准点率</div>
                        </div>
                    </div>
 
                </div>
                <div class="flex  item-info">
                    <div class="flex" >
                        <img class="img-size" src="../../assets/png/icon_1.png" alt="">
                        <div class="divtext">
                            <div class="divnumber">{{typeof form.passengerFlow == "number" ? form.passengerFlow : '-'}}</div>
                            <div>场站客流(人次)</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="line-fg mt30 mb30"></div>
            <div class="flex-y mt20">
                <div class="itemtext">可提供服务<span>{{form.provideService}}</span></div>
                <div class="itemtext">首末站线路<span>{{form.headEndLine}}</span></div>
                <div class="itemtext">途经站线路<span>{{form.tripPassLine}}</span></div>
            </div>
            <div class="zhuangshi">
                <div class="zhuangshitext">{{form.stationType}}</div>
                <img class="zhuangshi-img-size" src="../../assets/map/shuangshi.png" alt="">
            </div>
        </div>
 
    </div>
</template>
<script>
    import { message } from 'ant-design-vue'
    export default {
        name: 'changzhaninfo',
        props: {
            data1: {
                type:Object,
                default(){
                    return{}
                }
            }
        },
        data() {
            return {
                show:false,
                czname: "",
                form: {
                    "stationId": "56",
                    "stationName": "金融岛(横琴)",
                    "stationType": "首末站",
                    "floorArea": null,
                    "leaveOnTimeRate": null,
                    "passengerFlow": 3,
                    "provideService": null,
                    "headEndLine": null,
                    "tripPassLine": "10路、3路、66路、68路、70路、B20路"
                }
            }
        },
 
        methods: {
            getSelectDetailByName(params,id) {
                this.$axios.get(this.$Interface.mapResource.getChangZhanDetailById, {
                    params: { stationId: id },
                }).then((res) => {
                  if(res.code == 0) {
                      if(res.data){
                        this.form = res.data;
                      } else {
                          message.warning('获取数据为空!')
                      }
                  } else {
                    message.warning('您当前网络不稳定,未获取到数据!')
                  }
                });
            },
             closediv(){
                this.$emit("closediv","changzhan")
            },
            gochangzhan(){
                this.$router.push({ path: '/branchOfficeResource', query: { sence: 2, stationName: this.czname }})
            }
        },
        mounted() {
        },
        watch: {
            "$store.state.selAttr": function(newVal,oldVal){
            if(newVal.visa && newVal.type == "changzhan"){
                this.czname = newVal.value
                this.getSelectDetailByName(newVal.value, newVal.id)
            }
        }
 
    }
}
</script>
<style scoped>
    .in-box{
        width: 536px;
        min-height: 315px;
        opacity: 0.8;
        background: linear-gradient(180deg,#06203f, #08141c);
        border: 2px solid #2a488a;
    }
    .header{width:100%;height:44px;background:url("../../assets/png/header_bg_info.png") no-repeat center/cover;}
    .in-top-box{width:90%;height:34px; margin:0 auto;}
    .header-title-i{color:#09141C;font-weight: 600;font-size:16px;font-family: 'PingFangSC';}
    .small-p{color:#00F09B;font-size:14px;}
    .more-img-size{width:12px;height:12px}
    .container-info{width:460px;margin:15px auto 0;}
    .item-info{width:33%;text-align: center;position:relative}
    .img-size{width:48px;height:48px;}
    .divtext {padding-left: 10px; text-align: left;}
    .divnumber {font-family:'Digital';font-size: 18px;color:#69CCFF}
    .line-fg{height: 0px;opacity: 0.4;border-top: 2px dashed #2a4a8e;}
    .itemtext{min-height:36px;font-size: 14px;font-family: 'PingFangSC, PingFangSC-Regular';font-weight: 400;text-align: left;color: #ffffff;}
    .itemtext:before{content: ' ';display: inline-block;width: 10px;height: 12px;border-left:3px solid #ffffff;position:relative;top:2px;}
    .itemtext span{padding-left: 20px;color: #69CCFF; word-wrap: break-word;display:-moz-inline-box; display:inline-block; width:320px;}
    .zhuangshi {position:absolute;right:2px;top:193px;}
    .zhuangshitext {
        position:absolute;bottom:28px;right:36px;transform: rotate(-45deg);
        font-family: 'PingFangSC';
        text-shadow: 0px 0px 20px #ffcc00; 
        font-size: 16px;
        font-weight: 500;
 
    }
</style>