安宇轩1
2024-11-27 04dbab8f2971802c3bf5eb38605dd15a96655f34
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<template>
  <div class="box">
    <el-row :gutter="10">
      <el-col class="left" :span="4">
        <div style="padding-top: 20px">
          <div
            @click="change(item)"
            v-for="(item, index) in dataArr"
            :key="'butBox' + index"
            class="butBox"
            :style="focus == item ? highlightImg : defaultImg"
          >
            {{ item }}
          </div>
        </div>
      </el-col>
      <el-col class="right" :span="20">
        <div style="height: 100%">
          <div class="boxTop">
            <div style="margin:20px 20px">
            <el-table :data="table1.data">
              <el-table-column width="100" label="平台标志" prop="logo" align="center" >
                <template><div class="bg"></div></template>
              </el-table-column>
              <el-table-column width="200" label="平台名称" prop="name" align="center" ></el-table-column>
              <el-table-column width="100" label="平台类型" prop="type" align="center" >
                <template slot-scope="scope"><div class="type">{{scope.row.type}}</div></template>
              </el-table-column>
              <el-table-column min-width="350" label="平台主页" prop="url" align="center" ></el-table-column>
              <el-table-column width="200" label="平台描述" prop="describe" align="center" ></el-table-column>
              <el-table-column width="100" label="创建者" prop="create" align="center" ></el-table-column>
              <el-table-column width="180" label="创建时间" prop="createTime" align="center" ></el-table-column>
              <el-table-column width="100" label="告警设置" prop="giveAlarm" align="center" >
                <template slot-scope="scope">
                  <el-switch
                  v-model="scope.row.giveAlarm"
                  active-color="#0CB8FF"
                  inactive-color="#ff4949">
                </el-switch></template>
              </el-table-column>
              <el-table-column width="80" label="编辑" align="center">
                <template slot-scope="scope">
                  <div class="edit" @click="handleClick(scope.row)"></div>
                </template>
              </el-table-column>
              <el-table-column label="删除" width="80" align="center">
                <template slot-scope="scope">
                  <div class="delete" @click="handleClick(scope.row)"></div>
                </template>
              </el-table-column>
            </el-table>
            </div>
          </div>
          <div class="boxBottom">
            <el-row :gutter="30">
              <el-col :span="12"> 
                <div  class="box1">
                    <div class="title">{{focus}}</div>
                    <div class="group">
                        <div class="text">启停状态</div>
                        <div class="status">正常启动</div>
                    </div>
                    <div class="group">
                        <div class="text">链接状态</div>
                        <div class="status">正常链接</div>
                    </div>
                    <div class="group">
                        <div class="text">故障时间</div>
                        <div class="status">无故障</div>
                    </div>
                    <div class="group">
                        <div class="text">更新时间</div>
                        <div>2024-11-01 11:08:48</div>
                    </div>
                <div class="log">
                    <div class="logTitle">异常日志</div>
                    <div class="logText">8C-11-C 11:35:(6 00 DE0- bierntomhya;ahi.:mn.nf;, imaint:ga:he店户:famu:"sn,sac:1:</div>
                    <div class="logText">8C-11-C 11:35:(6 00 DE0- bierntomhya;ahi.:mn.nf;, imaint:ga:he店户:famu:"sn,sac:1:</div>
                </div>
                </div>
              </el-col>
              <el-col style="overflow:auto;" :span="12">
                <el-table :data="table2.data">
                  <el-table-column align="center" label="序号" type="index" width="60">
                  </el-table-column>
                  <el-table-column
                    v-for="(item, index) in table2.tableTh"
                    :key="index"
                    :label="item.label"
                    :prop="item.prop"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column label="操作" min-width="60" align="center">
                    <template slot-scope="scope">
                      <el-button
                        type="primary"
                        @click="handleClick(scope.row)"
                        size="small"
                        >检验</el-button
                      >
                    </template>
                  </el-table-column>
                </el-table>
              </el-col>
            </el-row>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>
 
<script>
export default {
  name: "ConditionMonitoring",
  data() {
    return {
      focus: "作战概念开发与验证平台",
      highlightImg: {
        backgroundImage: `url(${require("@/assets/images/ConditionMonitoring/highlight.png")})`,
      },
      defaultImg: {
        backgroundImage: `url(${require("@/assets/images/ConditionMonitoring/default.png")})`,
      },
      dataArr: [
        "作战概念开发与验证平台",
        "作战系统设计与评估平台",
        "作战方案推演与分析平台",
        "战法创新与作战运用研究平台",
        "战略综合集成研讨厅",
        "态势显示分系统",
        "综合管控分系统",
        "数据管理分系统",
        "仿真资源管理系统",
      ],
      table2: {
        data: [
          {
            subsystemName: "作战概念开发与验证平台",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "作战系统设计与评估平台",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "作战方案推演与分析平台",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "战法创新与作战运用研究平台",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "战略综合集成研讨厅",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "态势显示分系统",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "综合管控分系统",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "数据管理分系统",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
          {
            subsystemName: "仿真资源管理系统",
            interactionStatus: "正常",
            updateTime: "2024-01-26",
          },
        ],
        tableTh: [
          {
            label: "分系统名称",
            prop: "subsystemName",
          },
          {
            label: "交互状态",
            prop: "interactionStatus",
          },
          {
            label: "更新时间",
            prop: "updateTime",
          },
        ],
      },
      table1: {
        data: [
          {
            name: "作战概念开发与验证平台",
            type: "默认应用",
            url: "http://10.64.33.1859080/imcloud2/e/space/task?id=1762040579103117314",
            describe: "",
            create:"管理员",
            createTime: "2024-02-26 17:03:06",
            giveAlarm: true,
          }
        ],
      },
    };
  },
  methods: {
    change(value) {
      this.focus = value;
      this.table1.data.name = value
      this.table1 = {
        data: [
          {
            name: value,
            type: "默认应用",
            url: "http://10.64.33.1859080/imcloud2/e/space/task?id=1762040579103117314",
            describe: "",
            create:"管理员",
            createTime: "2024-02-26 17:03:06",
            giveAlarm: true,
          }
        ],
      }
    },
    handleClick(row) {},
  },
};
</script>
 
<style lang="less" scoped>
.box {
  width: 100%;
  height: 100%;
  .el-row {
    height: 100%;
    padding: 0 20px 20px;
    .el-col {
      height: 100%;
    }
  }
  .left {
    background-size: 100% 100%;
    background-image: url("~@/assets/images/ConditionMonitoring/left.png");
    .butBox {
      width: 90%;
      margin: 0px auto 30px;
      text-align: center;
      height: 40px;
      line-height: 40px;
      font-size: 18px;
      cursor: pointer;
      background-size: 100% 100%;
      color: #fff;
    }
  }
  .right {
    background-image: url("~@/assets/images/ConditionMonitoring/right.png");
    background-size: 100% 100%;
    .boxTop {
      width: 100%;
      height: 20%;
      // margin-bottom: 20px;
      .type{
        width: 75px;
        height: 25px;
        line-height: 22px;
        background: #066932;
        color: #22C707;
        box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.35);
        border-radius: 4px;
        border: 1px solid #FFFFFF;
        margin:0 auto;
      }
      .bg{
        width: 50px;
        height: 50px;
        margin:0 auto;
        background-image: url("~@/assets/images/ConditionMonitoring/bg.png");
        background-size: 100% 100%;
      }
      .edit{
        width: 38px;
        height: 38px;
        margin:0 auto;
        background-image: url("~@/assets/images/ConditionMonitoring/edit.png");
        background-size: 100% 100%;
      }
      .delete{
        width: 38px;
        height: 38px;
        margin:0 auto;
        background-image: url("~@/assets/images/ConditionMonitoring/delete.png");
        background-size: 100% 100%;
      }
    }
    .boxBottom {
      width: 100%;
      height: 78%;
      .box1{
        width: 100%;
        height: 100%;
        background-color: #2D4C9E;
            color: #fff;
        .title{
            padding-top:20px;
            margin-bottom:10px;
            font-size: 24px;
            margin-left:15px;
        }
        .group{
            display: flex;
            line-height: 37px;
            height: 37px;
            font-size: 20px;
            font-weight: 400;
            margin-bottom:4px;
            .text{
                width: 130px;
                text-align: center;
            }
            .status{
                width: 115px;
                // height:37px;
                text-align: center;
                background-color: #00E572;
            }
        }
        .log{
            width: 88%;
            height: 56%;
            background-color: #181C40;
            margin:20px auto 0;
            padding:10px 20px;
            .logTitle{
                width: auto;
                height: 30px;
                // font-family: Source Han Sans SC;
                font-weight: 400;
                font-size: 24px;
                color: #0CB8FF;
                // line-height: 10px;
            }
            .logText{
                line-height: 30px;
                width: 100%;
                overflow: hidden;
            }
        }
      }
    }
  }
}
/deep/ .el-table {
  background-color: rgba(0, 0, 0, 0);
  .computeNode {
    background-image: url("~@/assets/images/InferentialTaskControl/computeNode.png");
    background-size: 100% 100%;
    width: 35px;
    height: 35px;
    margin: 0 auto;
  }
  thead {
    tr {
      th {
        background-color: #1C305F;
        border-bottom: 0px;
        .cell {
          font-weight: 400;
          font-size: 18px;
          color: #fff;
          text-shadow: 0px 0px 2px #00fbff;
        }
      }
    }
  }
  tbody {
    tr {
      background-color: rgba(0, 0, 0, 0);
      td {
        background-color: #181C40;
        border-bottom: 0px;
        .cell {
          font-size: 16px;
          color: #fff;
        }
      }
    }
    tr:hover {
    //   border: 2px solid #4b96dd;
      td {
        background-color: #2d468b;
        .cell {
          color: #fff;
        }
      }
    }
  }
}
/deep/ .el-table::before {
  height: 0px;
}
</style>