Commit d918d635b4b33bb3de52914e98a25a6d50e6583c
1 parent
9a842983
perf: device list modal of matter panel history data style adjust
Showing
2 changed files
with
16 additions
and
4 deletions
@@ -176,12 +176,12 @@ | @@ -176,12 +176,12 @@ | ||
176 | </script> | 176 | </script> |
177 | 177 | ||
178 | <template> | 178 | <template> |
179 | - <section class="flex flex-col p-4 h-full" style="color: #f0f2f5"> | ||
180 | - <section class="bg-white p-3"> | 179 | + <section class="flex flex-col p-4 h-full" style="background-color: #f0f2f5"> |
180 | + <section class="bg-white p-3 mb-4"> | ||
181 | <TimePeriodForm @register="register" /> | 181 | <TimePeriodForm @register="register" /> |
182 | </section> | 182 | </section> |
183 | <section class="bg-white p-3"> | 183 | <section class="bg-white p-3"> |
184 | - <div v-show="isNull" ref="chartRef" :style="{ height: '550px', width: '100%' }"> | 184 | + <div v-show="isNull" ref="chartRef" :style="{ height: '400px', width: '100%' }"> |
185 | <Spin :spinning="loading" :absolute="true" /> | 185 | <Spin :spinning="loading" :absolute="true" /> |
186 | </div> | 186 | </div> |
187 | <Empty v-show="!isNull" /> | 187 | <Empty v-show="!isNull" /> |
@@ -239,7 +239,13 @@ | @@ -239,7 +239,13 @@ | ||
239 | </div> | 239 | </div> |
240 | </template> | 240 | </template> |
241 | </BasicTable> | 241 | </BasicTable> |
242 | - <BasicModal @register="registerModal" width="50%" destroy-on-close> | 242 | + <BasicModal |
243 | + @register="registerModal" | ||
244 | + title="历史数据" | ||
245 | + width="50%" | ||
246 | + destroy-on-close | ||
247 | + dialogClass="history-modal" | ||
248 | + > | ||
243 | <HistoryData :deviceDetail="props.deviceDetail" :attr="socketInfo.attr" /> | 249 | <HistoryData :deviceDetail="props.deviceDetail" :attr="socketInfo.attr" /> |
244 | </BasicModal> | 250 | </BasicModal> |
245 | </PageWrapper> | 251 | </PageWrapper> |
@@ -254,3 +260,9 @@ | @@ -254,3 +260,9 @@ | ||
254 | padding-top: 0; | 260 | padding-top: 0; |
255 | } | 261 | } |
256 | </style> | 262 | </style> |
263 | + | ||
264 | +<style> | ||
265 | + .history-modal .ant-input-number { | ||
266 | + min-width: 0 !important; | ||
267 | + } | ||
268 | +</style> |