|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
- <u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
|
|
|
|
|
|
+ <!-- <u-sticky class="shadow-default" bgColor="#fff" style="top: 0">
|
|
<u-tabs :list="tabsList" :current="tabsCurrent" @click="tabsClick" lineColor="#333" :activeStyle="{ color: '#333' }" :inactiveStyle="{ color: '#909399' }" :scrollable="false"></u-tabs>
|
|
<u-tabs :list="tabsList" :current="tabsCurrent" @click="tabsClick" lineColor="#333" :activeStyle="{ color: '#333' }" :inactiveStyle="{ color: '#909399' }" :scrollable="false"></u-tabs>
|
|
- </u-sticky>
|
|
|
|
|
|
+ </u-sticky> -->
|
|
|
|
|
|
<oa-scroll
|
|
<oa-scroll
|
|
customClass="repairManage-container scroll-height"
|
|
customClass="repairManage-container scroll-height"
|
|
@@ -19,21 +19,35 @@
|
|
>
|
|
>
|
|
<template #default>
|
|
<template #default>
|
|
<view class="menu-list m0">
|
|
<view class="menu-list m0">
|
|
- <view class="list-cell list-cell-arrow" style="color: #666666; line-height: 25px" v-for="(base, index) in dataList" :key="index" @click="handleToDetails(base)">
|
|
|
|
- <view class="content-area-top menu-item">
|
|
|
|
- <view class="content-area-top-time">
|
|
|
|
- {{ base.repairStatus == 1 ? (base.createTime ? base.createTime.replace("T", " ") : "") : base.handleTime ? base.handleTime.replace("T", " ") : "" }}
|
|
|
|
|
|
+ <view class="list-cell list-cell-arrow" style=" line-height: 25px" v-for="(base, index) in dataList" :key="index" @click="handleToDetails(base)">
|
|
|
|
+ <view class="menu-item">
|
|
|
|
+ <image v-if="base.deviceStatus == 1" class="image-bg" style="width: 80rpx; height: 80rpx; margin: auto 10px auto 0" src="@/static/images/videoMonitor/video-icon-on.png"></image>
|
|
|
|
+ <image v-if="base.deviceStatus == 2" class="image-bg" style="width: 80rpx; height: 80rpx; margin: auto 10px auto 0" src="@/static/images/videoMonitor/video-icon-off.png"></image>
|
|
|
|
+ <view style="width: calc(100% - 51px); display: flex; justify-content: space-between; padding-right: 10px">
|
|
|
|
+ <view class="deviceHeader">
|
|
|
|
+ <view class="deviceName text-ellipsis">{{ base.deviceName }}</view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="" v-if="base.deviceStatus == 1" style="color: #16bf00;margin-right:10px"> 在线 </view>
|
|
|
|
+ <view class="" v-if="base.deviceStatus == 2" style="color: #333;margin-right:10px"> 离线 </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="content-area-top-status" v-if="base.repairStatus == 1" style="background-color: #23dedc"> 受理中 </view>
|
|
|
|
- <view class="content-area-top-status" v-if="base.repairStatus == 2" style="background-color: #16bf00"> 处理完成 </view>
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- <view class="content-area-top menu-item">
|
|
|
|
+
|
|
|
|
+ <view class="content-area-top-status" v-if="base.deviceStatus == 1" style="background-color: #23dedc"> 在线 </view>
|
|
|
|
+ <view class="content-area-top-status" v-if="base.deviceStatus == 2" style="background-color: #16bf00"> 离线 </view>
|
|
</view>
|
|
</view>
|
|
<view class="content-area-row_wrap menu-item">
|
|
<view class="content-area-row_wrap menu-item">
|
|
- <view class="content-area-row_wrap-view"> 项目名称:{{ base.projectName }} </view>
|
|
|
|
- <view class="content-area-row_wrap-view"> 报修人:{{ base.reflectName }} </view>
|
|
|
|
- <view class="content-area-row_wrap-view"> 报修人电话:{{ base.reflectPhone }} </view>
|
|
|
|
- <view class="content-area-row_wrap-view"> 报修内容:{{ base.repairContent }} </view>
|
|
|
|
- <view class="content-area-row_wrap-view"> 报修地址:{{ base.projectAddress }} </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
|
|
+ <view class="content-area-row_wrap-view"> {{ base.reflectPhone }} </view>
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -45,7 +59,7 @@ import { onLoad, onShow, onReady, onHide, onLaunch, onNavigationBarButtonTap, on
|
|
import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
|
|
import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
|
|
import { useStores, commonStores } from "@/store/modules/index";
|
|
import { useStores, commonStores } from "@/store/modules/index";
|
|
|
|
|
|
-import { page } from "@/api/business/fireIot/repairManage.js";
|
|
|
|
|
|
+import { pageQuery } from "@/api/business/videoMonitor.js";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
const commonStore = commonStores();
|
|
const commonStore = commonStores();
|
|
@@ -83,8 +97,8 @@ function init() {
|
|
* @api接口查询
|
|
* @api接口查询
|
|
*/
|
|
*/
|
|
function selectListApi() {
|
|
function selectListApi() {
|
|
- page({
|
|
|
|
- repairStatus: tabsList.value[tabsCurrent.value].value,
|
|
|
|
|
|
+ pageQuery({
|
|
|
|
+ // deviceStatus: tabsList.value[tabsCurrent.value].value,
|
|
current: current.value,
|
|
current: current.value,
|
|
size: pageSize.value,
|
|
size: pageSize.value,
|
|
}).then((requset) => {
|
|
}).then((requset) => {
|
|
@@ -99,7 +113,11 @@ function selectListApi() {
|
|
* @跳转详情事件
|
|
* @跳转详情事件
|
|
*/
|
|
*/
|
|
function handleToDetails(e) {
|
|
function handleToDetails(e) {
|
|
- proxy.$tab.navigateTo(`/pages/business/videoMonitor/videoDetail?repairCode=${e.repairCode}`);
|
|
|
|
|
|
+ proxy.$tab.navigateTo(`/pages/business/videoMonitor/videoDetail?deviceName=${e.deviceName}`);
|
|
|
|
+ if(e.deviceStatus==1){
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|