fix: 显示监控摄像头

This commit is contained in:
caoqianming 2023-04-05 01:47:50 +08:00
parent 208f797cfa
commit 2fe064fe9c
2 changed files with 30 additions and 16 deletions

View File

@ -64,6 +64,14 @@
<text>{{formData.dept_ter_.name}}</text> <text>{{formData.dept_ter_.name}}</text>
</view> </view>
</view> </view>
<view class="item">
<view class="title">监控设备</view>
<view class="content">
<text v-if="formData.vchannels_"><span v-for="item in formData.vchannels_" :key="item.id">
{{ item.name}}({{item.code}})/
</span></text>
</view>
</view>
</view> </view>
<view class="wrap-view wrap-top"> <view class="wrap-view wrap-top">
<view class="item title"> <text class="blueLine"></text>作业证书列表</view> <view class="item title"> <text class="blueLine"></text>作业证书列表</view>

View File

@ -19,6 +19,17 @@
<view :class="{'text-title':true, 'active':dataTypye==='all'}" @click="changeList('all')" v-if="!remployee">全部</view> <view :class="{'text-title':true, 'active':dataTypye==='all'}" @click="changeList('all')" v-if="!remployee">全部</view>
</view> </view>
</view> </view>
<!-- <view class="my-top-search-nav">
<view class="search-wrap">
<view class="search-body">
<image class="left-img" src="../../../static/home/searchIcon.png" mode=""></image>
<input class="search-input" type="text" v-model="search" placeholder="请输入" />
<image class="right-img" src="../../../static/my/my_apply/zuofei.png" mode="" @click="resetSearch">
</image>
<view class="right-btn" @click="searchHandle">搜索</view>
</view>
</view>
</view> -->
<view class="empty-view"></view> <view class="empty-view"></view>
<view class="content"> <view class="content">
<view class="item-wrap" v-for="(val,index) in lists" :key="val.id"> <view class="item-wrap" v-for="(val,index) in lists" :key="val.id">
@ -83,16 +94,12 @@
remployee:false, remployee:false,
} }
}, },
onLoad() {
this.params.create_by = this.vuex_user.id;
},
// //
onReachBottom() { onReachBottom() {
let that = this; const totalPage = Math.ceil(this.totalNum / this.params.page_size);
let totalPage = Math.ceil(that.totalNum / that.params.page_size); if (this.params.page < totalPage) {
if (that.params.page < totalPage) { this.params.page += 1;
that.params.page += 1;
that.getLists();
} else { } else {
uni.showToast({ uni.showToast({
title: "已全部加载", title: "已全部加载",
@ -104,11 +111,9 @@
if(this.vuex_user.type==='remployee'){ if(this.vuex_user.type==='remployee'){
this.remployee = true; this.remployee = true;
} }
if(this.params.page == 1){
this.lists = []; this.lists = [];
this.params.create_by = this.vuex_user.id;
this.getLists(); this.getLists();
}
}, },
// //
onPullDownRefresh() { onPullDownRefresh() {
@ -120,8 +125,8 @@
getLists() { getLists() {
let that = this; let that = this;
that.$u.api.operationList(that.params).then(res => { that.$u.api.operationList(that.params).then(res => {
that.totalNum = res.count;
that.lists = that.lists.concat(res.results); that.lists = that.lists.concat(res.results);
this.totalNum = res.count;
}) })
}, },
operationHandle(val,type) { operationHandle(val,type) {
@ -136,6 +141,7 @@
url: '/pages/workSpace/operation/operationCreate' + params, url: '/pages/workSpace/operation/operationCreate' + params,
}) })
} }
}, },
operationDetail(val){ operationDetail(val){
let operation = val.id;//id let operation = val.id;//id
@ -185,8 +191,8 @@
.empty-view { .empty-view {
height: 120rpx; height: 120rpx;
} }
.uni-navbar__header, >>>.uni-navbar__header,
.uni-status-bar, >>>.uni-status-bar,
.search-wrap { .search-wrap {
background-image: linear-gradient(270deg, background-image: linear-gradient(270deg,
#0ca7ee 0%, #0ca7ee 0%,