地质所 沉降监测网建设项目
zmk
2024-05-28 9293fcd88772d5230530488908e49250117df187
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
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('基本信息')" />
<!--    <link th:href="@{/js/elementUI/index.css}" rel="stylesheet" />-->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/vue.min.js}"></script>
<!--    <script th:src="@{/js/elementUI/index.js}"></script>-->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <style type="text/css">
        body {
            height: 100%;
        }
        .el-card__header{
            height: 55px;
            padding: 18px 20px;
            color: #FFFFFF;
            font-weight: 500;
            font-size: 14px;
        }
        #app {
            height: 100%;
            padding: 20px;
        }
        .el-progress-circle{
            width: 180px !important;
            height: 180px !important;
        }
        .card1{
            height: 320px;margin-right: 20px;
        }
        .card-blue .el-card__header{
            height: 40px;
            padding: 8px 20px;
            background: #1894F6;
        }
        .card-yellow .el-card__header{
            height: 40px;
            padding: 8px 20px;
            background: #F7931E;
        }
        .card-red .el-card__header{
            height: 40px;
            padding: 8px 20px;
            background: #FF0000;
        }
        .card-green .el-card__header{
            height: 40px;
            padding: 8px 20px;
            background: #67C23A;
        }
 
    </style>
</head>
<body>
    <div id="app"  v-cloak>
        <el-row style="height: 200px;">
            <el-col :span="8">
                <el-card class="box-card  card-blue" style="height: 320px;margin-right: 20px;">
                    <div slot="header" class="clearfix">
                        <span>场地简介</span>
                    </div>
                    <el-descriptions class="margin-top" title=""  :column="1" size="small" border>
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-s-tools"></i>
                                项目名称
                            </template>
                            {{project.fullName}}
                        </el-descriptions-item>
 
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-menu"></i>
                                场地编号
                            </template>
                            {{project.code}}
                        </el-descriptions-item>
 
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-map-location"></i>
                                所在区域
                            </template>
                            {{project.district}}
                        </el-descriptions-item>
 
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-location"></i>
                                场地位置
                            </template>
                            {{project.address}}
                        </el-descriptions-item>
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-user"></i>
                                负责人:
                            </template>
                            {{project.leaderName}}
                        </el-descriptions-item>
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-s-operation"></i>
                                当前进度
                            </template>
                            {{project.rate}}
                        </el-descriptions-item>
                        <el-descriptions-item>
                            <template slot="label">
                                <i class="el-icon-price-tag"></i>
                                劳务单位
                            </template>
                            {{project.laborUnit}}
                        </el-descriptions-item>
 
                    </el-descriptions>
                </el-card>
            </el-col>
 
            <el-col :span="10" >
                <el-card class="box-card card-yellow" style="height: 320px;margin-right: 20px;">
                    <div slot="header" class="clearfix">
                        <span>钻孔进度</span>
                    </div>
                    <template>
                        <el-table :data="holeData" size="small" style="width: 100%">
                            <el-table-column prop="code" label="编号"></el-table-column>
                            <el-table-column prop="type" label="类型"></el-table-column>
                            <el-table-column prop="footage" label="总进尺(m)"></el-table-column>
                            <el-table-column prop="footageCpl" label="已完成(m)"></el-table-column>
                            <el-table-column label="进度(%)">
                                <template slot-scope="scope">
                                    <el-progress  :percentage=(scope.row.rate*100).toFixed(0) ></el-progress>
                                </template>
                            </el-table-column>
 
                        </el-table>
                    </template>
 
                </el-card>
            </el-col>
 
            <el-col :span="6" >
                <el-card class="box-card card-red" style="height: 320px;">
                    <div slot="header" class="clearfix">
                        <span>场地进度(%)</span>
                    </div>
                    <div>
                        <div style="padding-left: 20%;">
                            <el-progress  type="dashboard" color="#FF0000" :percentage="50">
                            </el-progress>
                        </div>
                    </div>
                </el-card>
            </el-col>
 
 
 
        </el-row>
        <el-row style="height: 200px;">
            <el-col :span="24">
                <el-card class="box-card  card-green" style="height: 320px;margin-top: 20px">
                    <div slot="header" class="clearfix">
                        <span>材料信息</span>
                    </div>
                </el-card>
            </el-col>
 
        </el-row>
    </div>
 
 
    <th:block th:include="include :: footer" />
 
   <script th:inline="javascript">
        var project =[[${project}]];
        var projectId=[[${projectId}]];
        var statusDatas = [[${@dict.getType('hole_status')}]];
        var prefix = ctx + "geo/hole";
 
        $(function() {
            var url = prefix + "/holelist?projectId=" + projectId;
            $.ajaxSettings.async = false;
            $.get(url,{},function(res){
                vm.holeData = res.data;
            });
            vm.project = project;
 
            console.log(vm.project);
            console.log(vm.holeData);
        });
 
        var vm = new Vue({
            el: "#app",
            data() {
                return {
                    project: "",
                    holeData: [],
                };
            },
            methods: {
            }
        });
 
        //
        // function map(){
        //    parent.$.modal.openTab("项目地图",ctx+"/geo/projectwork/map?id=" + project.ids);
        // }
    </script>
</body>
</html>