Merge branch 'master-v32-lushangqing' into 'master'
机柜详情u位提示 See merge request !555
Showing
2 changed files
with
12 additions
and
5 deletions
@@ -31,9 +31,9 @@ | @@ -31,9 +31,9 @@ | ||
31 | <img src="/vue3/src/assets/images/machineRoom/greenColor.png" alt="资源状态:优"> | 31 | <img src="/vue3/src/assets/images/machineRoom/greenColor.png" alt="资源状态:优"> |
32 | </div> | 32 | </div> |
33 | </div> | 33 | </div> |
34 | - | ||
35 | </div> | 34 | </div> |
36 | </div> | 35 | </div> |
36 | + <i v-if="UpositionBottom!=-1" class="el-icon-arrow-left" :style="'position: absolute;right:-12px;color:#1e9fff;bottom:'+UpositionBottom+'px;'"></i> | ||
37 | </div> | 37 | </div> |
38 | </div> | 38 | </div> |
39 | <!-- 右侧机柜详细信息 --> | 39 | <!-- 右侧机柜详细信息 --> |
@@ -20,6 +20,11 @@ export default { | @@ -20,6 +20,11 @@ export default { | ||
20 | type: Boolean, | 20 | type: Boolean, |
21 | default: false | 21 | default: false |
22 | }, | 22 | }, |
23 | + //传过来的U位 | ||
24 | + Uposition:{ | ||
25 | + type:String, | ||
26 | + default:"4" | ||
27 | + } | ||
23 | }, | 28 | }, |
24 | data(){ | 29 | data(){ |
25 | return { | 30 | return { |
@@ -188,8 +193,6 @@ export default { | @@ -188,8 +193,6 @@ export default { | ||
188 | 193 | ||
189 | // 挂载完 | 194 | // 挂载完 |
190 | Vue.onMounted(() => { | 195 | Vue.onMounted(() => { |
191 | - console.log('&&&',proxy.machineData) | ||
192 | - | ||
193 | proxy.getData(); | 196 | proxy.getData(); |
194 | 197 | ||
195 | }) | 198 | }) |
@@ -216,7 +219,10 @@ export default { | @@ -216,7 +219,10 @@ export default { | ||
216 | } | 219 | } |
217 | }) | 220 | }) |
218 | } | 221 | } |
219 | - | 222 | + let UpositionBottom=Vue.ref(-1); |
223 | + if(props.machineData.Uposition){ | ||
224 | + UpositionBottom.value=(props.machineData.Uposition-1)*16 | ||
225 | + } | ||
220 | const getDeviceInfo=()=>{ | 226 | const getDeviceInfo=()=>{ |
221 | proxy.deviceDatas.map((item,index)=>{ | 227 | proxy.deviceDatas.map((item,index)=>{ |
222 | if(CabinetNum==item.name){ | 228 | if(CabinetNum==item.name){ |
@@ -334,7 +340,8 @@ export default { | @@ -334,7 +340,8 @@ export default { | ||
334 | isShowDevice, | 340 | isShowDevice, |
335 | getDeviceInfo, | 341 | getDeviceInfo, |
336 | getData, | 342 | getData, |
337 | - theirRoom | 343 | + theirRoom, |
344 | + UpositionBottom | ||
338 | } | 345 | } |
339 | } | 346 | } |
340 | } | 347 | } |
-
Please register or login to post a comment