派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-01-05 54091c887d676ec2f1c0e718c98e801a70f06556
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
<template>
    <div class="monitorHz">
        <el-card class="search-panel" style="background: #07325b;">
            <el-form ref="form" :model="form" label-width="80px" class="search-form">
                <el-form-item label="载具号:">
                    <el-input v-model="form.name" placeholder="在此输入载具号"></el-input>
                </el-form-item>
                <el-row :gutter="20">
                    <el-col :span="4">
                        <el-row>
                            <el-form-item label="时间:">
                                <el-date-picker
                                        v-model="form.name"
                                        type="date"
                                        style="width: 118px;"
                                        placeholder="选择日期">
                                </el-date-picker>
                            </el-form-item>
                        </el-row>
                        <el-row>
                            <el-form-item>
                                <el-date-picker
                                        v-model="form.name"
                                        type="date"
                                        style="width: 118px;"
                                        placeholder="选择日期"
                                >
                                </el-date-picker>
                            </el-form-item>
                        </el-row>
                    </el-col>
                    <el-col :span="2">
                        <div class="B-TMD-inp-button" @click="handleSearch"></div>
                    </el-col>
                </el-row>
            </el-form>
        </el-card>
        <el-card class="search-result" style="height:360px;">
            <div class="B-TMD-table-list" v-for="(item,index) in list" :key="index">
                <el-row :gutter="20">
                    <el-col :span="2" style="padding-left: 15px">
                        {{ index+1 }}、
                    </el-col>
                    <el-col :span="15" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
                        {{ item.processorName }}
                        <br/>
                        {{ item.startAddress }}
                    </el-col>
                    <el-col :span="6">
                        <a class="el-icon-location" style="font-size: 18px;margin-left:5px"
                           @click="handleLocation(item.dispatchNo,item.vno,item.eid,item.lng,item.lat)"></a>
                        <a class="el-icon-connection" style="font-size: 18px;margin-left:5px"></a>
                    </el-col>
                </el-row>
            </div>
        </el-card>
        <el-card class="footer-page" v-if="total > 10">
            <el-pagination
                    small
                    :current-page.sync="currentPage1"
                    @current-change="handleSearch"
                    :page-size="10"
                    layout="prev, pager, next"
                    :total="1000"
                    class="warnPagination"
            >
            </el-pagination>
        </el-card>
    </div>
</template>
 
<script>
    export default {
        name: 'MonitorAreaTips',
        components: {},
        data() {
            return {
                isPanelVisible: false,
                total: 0,
                list: [],
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                }
            }
        },
        methods: {
            handleClose(done) {
                console.log(done)
            },
            handleClick(tab, event) {
                console.log(tab, event)
            },
            handleSearch() {
 
            }
        },
        mounted() {
            this.handleSearch()
        }
    }
</script>
 
<style lang="less">
    .monitorHz {
        .el-message-box__content {
            background-color: #030D2E;
        }
 
        .search-form .el-form-item {
            margin: 0px;
        }
 
        .search-form .el-icon-search {
            display: grid;
            line-height: 30px;
            font-size: 18px;
        }
 
        .search-panel {
            border: #07325B;
            background-color: #07325B;
        }
 
        .search-result {
            margin: 5px 0px 0px 0px;
            padding: 0px;
            border: #051842;
            overflow-y: scroll;
            background-color: #051842;
        }
 
        .B-TMD-table-list {
            margin-top: 10px;
            text-align: left;
            padding-left: 10px;
            color: #328EB5;
            width: 100%;
            line-height: 25px;
            background-color: #0B3B6D;
        }
 
        .footer-page {
            position: absolute;
            bottom: 5px;
        }
    }
</style>