|
|
@ -4,20 +4,11 @@ |
|
|
|
<Video class="video-stream" :pileNum="dialogData.stakeMark" /> |
|
|
|
<ElTabs v-model="activeName" @tab-click="handleClickTabs" class="tabs"> |
|
|
|
<ElTabPane label="基本信息" name="first"> |
|
|
|
<Descriptions |
|
|
|
labelWidth="72px" |
|
|
|
:list="list" |
|
|
|
:data="data" |
|
|
|
style="gap: 18px" |
|
|
|
/> |
|
|
|
<Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" /> |
|
|
|
</ElTabPane> |
|
|
|
<ElTabPane label="设备参数" name="second">设备参数</ElTabPane> |
|
|
|
<ElTabPane label="在线率统计" name="third"> |
|
|
|
<LineChart |
|
|
|
v-if="activeName === 'third'" |
|
|
|
:productId="dialogData.productId" |
|
|
|
style="height: 180px" |
|
|
|
/> |
|
|
|
<LineChart v-if="activeName === 'third'" :productId="dialogData.productId" style="height: 180px" /> |
|
|
|
</ElTabPane> |
|
|
|
</ElTabs> |
|
|
|
</div> |
|
|
@ -26,10 +17,7 @@ |
|
|
|
<Button @click.native="deviceControlVisible = true">设备操作</Button> |
|
|
|
</template> |
|
|
|
|
|
|
|
<DeviceControlDialog |
|
|
|
v-model="deviceControlVisible" |
|
|
|
:deviceId="dialogData.iotDeviceId" |
|
|
|
/> |
|
|
|
<DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId" /> |
|
|
|
</Dialog> |
|
|
|
</template> |
|
|
|
|
|
|
@ -37,7 +25,7 @@ |
|
|
|
import Dialog from "@screen/components/Dialog/index.vue"; |
|
|
|
import Descriptions from "@screen/components/Descriptions.vue"; |
|
|
|
import Button from "@screen/components/Buttons/Button.vue"; |
|
|
|
// import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" |
|
|
|
import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js" |
|
|
|
import Video from "@screen/components/Video"; |
|
|
|
import DeviceControlDialog from "./components/DeviceControlDialog.vue"; |
|
|
|
|
|
|
@ -108,10 +96,10 @@ export default { |
|
|
|
|
|
|
|
const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); |
|
|
|
|
|
|
|
if (roadInfo) this.data.roadName = roadInfo.roadName; |
|
|
|
if (roadInfo) this.$set(this.data, "roadName", roadInfo.roadName); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleClickTabs() {}, |
|
|
|
handleClickTabs() { }, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
@ -152,7 +140,7 @@ export default { |
|
|
|
align-items: center; |
|
|
|
justify-content: end; |
|
|
|
|
|
|
|
> div { |
|
|
|
>div { |
|
|
|
font-size: 16px; |
|
|
|
padding: 6px 12px; |
|
|
|
} |
|
|
|