|
38 | 38 | <Panel :tipType="1"> |
39 | 39 | <template #title> |
40 | 40 | <span>{{ node.remarks || `${node.ip}:${node.port}` }}</span> |
| 41 | + <span style="margin-left: 8px"> |
| 42 | + <i style="cursor: pointer" class="el-icon-edit" @click="updateRemarks(node)"></i> |
| 43 | + </span> |
41 | 44 | </template> |
42 | 45 | <template #default> |
43 | 46 | <div class="daemonInfoArea"> |
44 | 47 | <div class="daemonValueArea"> |
45 | 48 | <el-row :gutter="20"> |
46 | | - <el-col :span="6" :offset="0"> |
| 49 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
47 | 50 | <p> |
48 | 51 | {{ $t("services.platform") }} |
49 | 52 | </p> |
|
55 | 58 | }} |
56 | 59 | </div> |
57 | 60 | </el-col> |
58 | | - <el-col :span="6" :offset="0"> |
| 61 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
59 | 62 | <p> |
60 | 63 | {{ $t("overview.mem") }} |
61 | 64 | </p> |
62 | 65 | <div> |
63 | 66 | {{ node?.system?.memText || "--" }} |
64 | 67 | </div> |
65 | 68 | </el-col> |
66 | | - <el-col :span="6" :offset="0"> |
| 69 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
67 | 70 | <p>CPU</p> |
68 | 71 | <div v-if="node.system"> |
69 | 72 | {{ Number(node.system.cpuUsage * 100).toFixed(1) }}% |
70 | 73 | </div> |
71 | 74 | <div v-else>--</div> |
72 | 75 | </el-col> |
73 | | - <el-col :span="6" :offset="0"> |
| 76 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
74 | 77 | <p>{{ $t("services.instanceStatus") }}</p> |
75 | 78 | <div v-if="node.instance"> |
76 | 79 | {{ node.instance.running }}/{{ node.instance.total }} |
77 | 80 | </div> |
78 | 81 | <div v-else>--</div> |
79 | 82 | </el-col> |
80 | | - <el-col :span="6" :offset="0"> |
| 83 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
81 | 84 | <p>{{ $t("overview.connectStatus") }}</p> |
82 | 85 | <div> |
83 | 86 | <span class="color-green" v-if="node.available"> |
|
97 | 100 | </span> |
98 | 101 | </div> |
99 | 102 | </el-col> |
100 | | - <el-col :span="6" :offset="0"> |
| 103 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
101 | 104 | <p>{{ $t("services.version") }}</p> |
102 | 105 | <div v-if="node.instance"> |
103 | 106 | <span |
|
118 | 121 | </div> |
119 | 122 | <div v-else>--</div> |
120 | 123 | </el-col> |
121 | | - <el-col :span="6" :offset="0"> |
| 124 | + <el-col :md="12" :xs="12" :lg="6" :offset="0"> |
122 | 125 | <p>Daemon ID</p> |
123 | 126 | <div> |
124 | 127 | <el-tooltip |
|
178 | 181 | </div> |
179 | 182 | </el-col> |
180 | 183 | <el-col :md="12" :xl="12" :offset="0"> |
181 | | - <div class="daemon-operations" style="text-align: right"> |
| 184 | + <div class="daemon-operations"> |
182 | 185 | <template v-if="node.available"> |
183 | 186 | <el-link type="primary" size="mini" @click="toDaemonTerminalPage(node.uuid)"> |
184 | 187 | <span class="color-black">{{ $t("services.toTerminal") }}</span> |
@@ -638,11 +641,24 @@ export default { |
638 | 641 | overflow: hidden; |
639 | 642 | } |
640 | 643 | .daemon-operations { |
| 644 | + text-align: right; |
641 | 645 | .el-link, |
642 | 646 | > span { |
643 | 647 | font-size: 12px; |
644 | 648 | line-height: 28px; |
645 | | - margin-left: 4px; |
| 649 | + margin-left: 6px; |
| 650 | + } |
| 651 | +} |
| 652 | +
|
| 653 | +@media (max-width: 900px) { |
| 654 | + .daemon-operations { |
| 655 | + margin-top: 12px; |
| 656 | + text-align: left; |
| 657 | + .el-link, |
| 658 | + > span { |
| 659 | + margin-left: 0px !important; |
| 660 | + margin-right: 8px; |
| 661 | + } |
646 | 662 | } |
647 | 663 | } |
648 | 664 | </style> |
0 commit comments