fix: 显示监控摄像头
This commit is contained in:
parent
208f797cfa
commit
2fe064fe9c
|
@ -64,6 +64,14 @@
|
|||
<text>{{formData.dept_ter_.name}}</text>
|
||||
</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 class="wrap-view wrap-top">
|
||||
<view class="item title"> <text class="blueLine"></text>作业证书列表:</view>
|
||||
|
|
|
@ -19,6 +19,17 @@
|
|||
<view :class="{'text-title':true, 'active':dataTypye==='all'}" @click="changeList('all')" v-if="!remployee">全部</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="content">
|
||||
<view class="item-wrap" v-for="(val,index) in lists" :key="val.id">
|
||||
|
@ -83,16 +94,12 @@
|
|||
remployee:false,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.params.create_by = this.vuex_user.id;
|
||||
},
|
||||
//上拉加载
|
||||
onReachBottom() {
|
||||
let that = this;
|
||||
let totalPage = Math.ceil(that.totalNum / that.params.page_size);
|
||||
if (that.params.page < totalPage) {
|
||||
that.params.page += 1;
|
||||
that.getLists();
|
||||
const totalPage = Math.ceil(this.totalNum / this.params.page_size);
|
||||
if (this.params.page < totalPage) {
|
||||
this.params.page += 1;
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "已全部加载",
|
||||
|
@ -104,11 +111,9 @@
|
|||
if(this.vuex_user.type==='remployee'){
|
||||
this.remployee = true;
|
||||
}
|
||||
if(this.params.page == 1){
|
||||
this.lists = [];
|
||||
this.params.create_by = this.vuex_user.id;
|
||||
this.getLists();
|
||||
}
|
||||
|
||||
},
|
||||
//下拉刷新
|
||||
onPullDownRefresh() {
|
||||
|
@ -120,8 +125,8 @@
|
|||
getLists() {
|
||||
let that = this;
|
||||
that.$u.api.operationList(that.params).then(res => {
|
||||
that.totalNum = res.count;
|
||||
that.lists = that.lists.concat(res.results);
|
||||
this.totalNum = res.count;
|
||||
})
|
||||
},
|
||||
operationHandle(val,type) {
|
||||
|
@ -136,6 +141,7 @@
|
|||
url: '/pages/workSpace/operation/operationCreate' + params,
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
operationDetail(val){
|
||||
let operation = val.id;//作业id
|
||||
|
@ -185,8 +191,8 @@
|
|||
.empty-view {
|
||||
height: 120rpx;
|
||||
}
|
||||
.uni-navbar__header,
|
||||
.uni-status-bar,
|
||||
>>>.uni-navbar__header,
|
||||
>>>.uni-status-bar,
|
||||
.search-wrap {
|
||||
background-image: linear-gradient(270deg,
|
||||
#0ca7ee 0%,
|
||||
|
|
Loading…
Reference in New Issue