新增的功能
parent
1c65d9c8a3
commit
d63ffc1e9e
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view :style="{height:'100vh',overflow:'hidden',backgroundColor:'#f0f0f0'}">
|
||||
<u-navbar title="小玉潭水库" :autoBack="true" :titleStyle="{
|
||||
<u-navbar title="小玉潭水库1" :autoBack="true" :titleStyle="{
|
||||
fontSize:'18px'
|
||||
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
|
||||
</u-navbar>
|
||||
|
|
@ -47,8 +47,9 @@
|
|||
}]
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
onLoad() {
|
||||
console.log('小玉潭水库');
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
click(item) {
|
||||
|
|
@ -58,11 +59,11 @@
|
|||
console.log(e);
|
||||
this.nowNum = e.current+1
|
||||
},
|
||||
// getList(){
|
||||
// uni.$http.post('/gunshiApp/xyt/stQxWarnR/home/warn',this.model).then(res=>{
|
||||
|
||||
// })
|
||||
// },
|
||||
getList(){
|
||||
uni.$http.post('/gunshiApp/xyt/attResBase/list',this.model).then(res=>{
|
||||
console.log(res,'res');
|
||||
})
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e);
|
||||
this.model.start = e[0]
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
<view class="title">
|
||||
<view class="left">
|
||||
<u-icon name="file-text" color="origin"></u-icon>
|
||||
<text>小玉潭水库</text>
|
||||
<text>{{dataform.resName}}</text>
|
||||
</view>
|
||||
<view class="right">
|
||||
2024-08-12 11:00
|
||||
{{tm}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
|
@ -37,42 +37,55 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import moment from 'moment'
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
list:{
|
||||
1:'当前水位m',
|
||||
2:'今日雨量mm',
|
||||
3:'汛限水位m',
|
||||
'flLowLimLev':'汛限水位m',
|
||||
4:'比汛期m',
|
||||
5:'堰顶高程m',
|
||||
6:'坝顶高程m',
|
||||
'wcrstel':'堰顶高程m',
|
||||
'crestElev':'坝顶高程m',
|
||||
7:'24h预报',
|
||||
8:'昨日雨量',
|
||||
9:'总库容m³',
|
||||
'totCap':'总库容m³',
|
||||
10:'蓄水量万m³'
|
||||
},
|
||||
tm: moment().format('YYYY-MM-DD HH:mm:ss'),
|
||||
dataform:{
|
||||
1:192.41,
|
||||
2:112,
|
||||
3:194.00,
|
||||
4:-1.59,
|
||||
5:194.00,
|
||||
6:196.28,
|
||||
7:12,
|
||||
8:15.4,
|
||||
9:129.06,
|
||||
10:75.34
|
||||
// resName:'',
|
||||
// 1:192.41,
|
||||
// 2:112,
|
||||
// 3:194.00,
|
||||
// 4:-1.59,
|
||||
// 5:194.00,
|
||||
// 6:196.28,
|
||||
// 7:12,
|
||||
// 8:15.4,
|
||||
// 9:129.06,
|
||||
// 10:75.34
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log('小玉潭水库222');
|
||||
this.getList()
|
||||
},
|
||||
methods:{
|
||||
toDetail(){
|
||||
uni.navigateTo({
|
||||
url:'/pages/skInfo/detail/index'
|
||||
})
|
||||
}
|
||||
},
|
||||
getList(){
|
||||
uni.$http.post('/gunshiApp/xyt/attResBase/list').then(res=>{
|
||||
console.log(res.data.data[0]);
|
||||
this.dataform=res.data.data[0]
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,8 @@
|
|||
<view class="contentItem">
|
||||
<uni-collapse>
|
||||
|
||||
<uni-collapse-item
|
||||
title-border="none"
|
||||
v-for="(item,index) in listData"
|
||||
:key="index"
|
||||
:border="false"
|
||||
:show-animation="true"
|
||||
>
|
||||
<uni-collapse-item title-border="none" v-for="(item,index) in listData" :key="index" :border="false"
|
||||
:show-animation="true">
|
||||
<template v-slot:title>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<text class="yuandian"></text>
|
||||
|
|
@ -21,62 +16,54 @@
|
|||
<text>{{o.itemDesc}}</text>
|
||||
<view class="subsectioin">
|
||||
<u--form labelPosition="left" :model="o" ref="uForm">
|
||||
<u-form-item label="状态" prop="isNormal" borderBottom
|
||||
required>
|
||||
<u-subsection
|
||||
:list="list"
|
||||
:current="getNormal(o.isNormal)"
|
||||
mode="subsection"
|
||||
<u-form-item label="状态" prop="isNormal" borderBottom required>
|
||||
<u-subsection :list="list" :current="getNormal(o.isNormal)" mode="subsection"
|
||||
@change="(e)=>change(e,o,index,i,'isNormal')"
|
||||
style="width:200px;margin-left: 10px"
|
||||
></u-subsection>
|
||||
style="width:200px;margin-left: 10px"></u-subsection>
|
||||
</u-form-item>
|
||||
<view class="" v-if="o.isNormal">
|
||||
<u-form-item label="现场图片" prop="inspectPics" borderBottom
|
||||
required>
|
||||
<u-upload accept="image" :fileList="o.inspectPics" @afterRead="(e)=>afterRead(e,o,index,i)" @delete="(e)=>deletePic(e,o,index,i)" name="inspectPics" multiple
|
||||
<u-form-item label="现场图片" prop="inspectPics" borderBottom required>
|
||||
<u-upload accept="image" :fileList="o.inspectPics"
|
||||
@afterRead="(e)=>afterRead(e,o,index,i)"
|
||||
@delete="(e)=>deletePic(e,o,index,i)" name="inspectPics" multiple
|
||||
:maxCount="10"></u-upload>
|
||||
</u-form-item>
|
||||
<u-form-item label="现场视频" prop="inspectVideos" borderBottom
|
||||
>
|
||||
<u-upload accept="video" :fileList="o.inspectVideos" @afterRead="(e)=>afterRead(e,o,index,i)" @delete="(e)=>deletePic(e,o,index,i)" name="inspectVideos" multiple
|
||||
<u-form-item label="现场视频" prop="inspectVideos" borderBottom>
|
||||
<u-upload accept="video" :fileList="o.inspectVideos"
|
||||
@afterRead="(e)=>afterRead(e,o,index,i)"
|
||||
@delete="(e)=>deletePic(e,o,index,i)" name="inspectVideos" multiple
|
||||
:maxCount="10"></u-upload>
|
||||
</u-form-item>
|
||||
<u-form-item label="问题描述" prop="itemProblemDesc" borderBottom
|
||||
required>
|
||||
<u-form-item label="问题描述" prop="itemProblemDesc" borderBottom required>
|
||||
<u--textarea v-model="o.itemProblemDesc" placeholder="请输入内容"></u--textarea>
|
||||
</u-form-item>
|
||||
<u-form-item label="处理状态" prop="isHandle" borderBottom
|
||||
required>
|
||||
<u-subsection
|
||||
:list="listStatus"
|
||||
:current="getHandle(o.isHandle)"
|
||||
mode="subsection"
|
||||
@change="(e)=>change(e,o,index,i,'isHandle')"
|
||||
style="width:200px;margin-left: 10px"
|
||||
></u-subsection>
|
||||
<u-form-item label="处理状态" prop="isHandle" borderBottom required>
|
||||
<u-subsection :list="listStatus" :current="getHandle(o.isHandle)"
|
||||
mode="subsection" @change="(e)=>change(e,o,index,i,'isHandle')"
|
||||
style="width:200px;margin-left: 10px"></u-subsection>
|
||||
</u-form-item>
|
||||
<view class="" v-if="o.isHandle !== 1">
|
||||
<u-form-item label="现场图片" prop="handlePics" borderBottom
|
||||
required>
|
||||
<u-upload accept="image" :fileList="o.handlePics" @afterRead="(e)=>afterRead(e,o,index,i)" @delete="(e)=>deletePic(e,o,index,i)" name="handlePics" multiple
|
||||
<u-form-item label="现场图片" prop="handlePics" borderBottom required>
|
||||
<u-upload accept="image" :fileList="o.handlePics"
|
||||
@afterRead="(e)=>afterRead(e,o,index,i)"
|
||||
@delete="(e)=>deletePic(e,o,index,i)" name="handlePics" multiple
|
||||
:maxCount="10"></u-upload>
|
||||
</u-form-item>
|
||||
<u-form-item label="现场视频" prop="handleVideos" borderBottom
|
||||
>
|
||||
<u-upload accept="video" :fileList="o.handleVideos" @afterRead="(e)=>afterRead(e,o,index,i)" @delete="(e)=>deletePic(e,o,index,i)" name="handleVideos" multiple
|
||||
<u-form-item label="现场视频" prop="handleVideos" borderBottom>
|
||||
<u-upload accept="video" :fileList="o.handleVideos"
|
||||
@afterRead="(e)=>afterRead(e,o,index,i)"
|
||||
@delete="(e)=>deletePic(e,o,index,i)" name="handleVideos" multiple
|
||||
:maxCount="10"></u-upload>
|
||||
</u-form-item>
|
||||
<u-form-item label="问题描述" prop="handleDesc" borderBottom
|
||||
required>
|
||||
<u-form-item label="问题描述" prop="handleDesc" borderBottom required>
|
||||
<u--textarea v-model="o.handleDesc" placeholder="请输入内容"></u--textarea>
|
||||
</u-form-item>
|
||||
</view>
|
||||
<view class="" v-if="o.isHandle == 1">
|
||||
<u-form-item label="责任人" prop="handleUserId" borderBottom @click="showSex = true; hideKeyboard()" required
|
||||
>
|
||||
<u--input v-model="o.handleUserId" disabled disabledColor="#ffffff" placeholder="请选择性别"
|
||||
border="none"></u--input>
|
||||
<u-form-item label="责任人" prop="handleUserId" borderBottom
|
||||
@click="showSex = true; hideKeyboard()" required>
|
||||
<u--input v-model="o.handleUserId" disabled disabledColor="#ffffff"
|
||||
placeholder="请选择性别" border="none"></u--input>
|
||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||
</u-form-item>
|
||||
|
||||
|
|
@ -90,10 +77,14 @@
|
|||
</view>
|
||||
</view>
|
||||
</uni-collapse-item>
|
||||
|
||||
</uni-collapse>
|
||||
<view class="" style="display: flex;">
|
||||
<u-button text="保存" customStyle="margin-top: 50px" @click="submit"></u-button>
|
||||
<u-button type="primary" text="结束巡检" customStyle="margin-top: 50px" @click="submit"></u-button>
|
||||
</view>
|
||||
</uni-collapse>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
@ -174,7 +165,6 @@
|
|||
}
|
||||
},
|
||||
async uploadContent() {
|
||||
|
||||
try {
|
||||
let params = {
|
||||
status: 2,
|
||||
|
|
@ -183,10 +173,10 @@
|
|||
this.listData.map(i => {
|
||||
params.list.push(i.children)
|
||||
})
|
||||
const {data} = await uni.$http.post(`/gunshiApp/xyt/inspect/task/finish`,params)
|
||||
if(data.code == 200){
|
||||
this.xjItem = data.data
|
||||
}
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post(`/gunshiApp/xyt/inspect/task/finish`, params)
|
||||
|
||||
} catch (error) {
|
||||
uni.$showMsg();
|
||||
}
|
||||
|
|
@ -291,6 +281,7 @@
|
|||
.contentItem {
|
||||
height: 260px;
|
||||
overflow: auto;
|
||||
|
||||
.itemC {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
@ -299,11 +290,13 @@
|
|||
padding: 10px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.itemNo {
|
||||
color: #666666;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.circle-btn {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
|
|
@ -313,6 +306,7 @@
|
|||
text-align: center;
|
||||
line-height: 120px;
|
||||
}
|
||||
|
||||
.yuandian {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
|
|
@ -321,14 +315,17 @@
|
|||
border-radius: 50%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.xj-content {
|
||||
height: 300px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.xj-text {
|
||||
margin-left: 10%;
|
||||
margin-top: 2%;
|
||||
}
|
||||
|
||||
.subsectioin {
|
||||
display: flex;
|
||||
column-gap: 10px;
|
||||
|
|
|
|||
|
|
@ -9,17 +9,17 @@
|
|||
<view class="" v-for="item in list" style="margin: 10px;background-color: #fff;padding: 10px;">
|
||||
<view class="item">
|
||||
<!-- {{item.title}} -->
|
||||
<image src="../../../static/c1.png" style="width:100%;"></image>
|
||||
<image :src="item.imgPath" style="width:100%;"></image>
|
||||
<view class="context">
|
||||
<view class="type">
|
||||
工程车辆识别
|
||||
{{typeObj[item.type]}}
|
||||
</view>
|
||||
<view class="time">
|
||||
{{item.time}}
|
||||
{{item.tm}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="adress">
|
||||
大坝右岸
|
||||
{{item.name}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -36,6 +36,12 @@
|
|||
data() {
|
||||
return {
|
||||
show: false,
|
||||
typeObj:{
|
||||
1:"人员闯入",
|
||||
2: "工程车辆识别",
|
||||
3: "漂浮物识别",
|
||||
4: "游泳识别",
|
||||
},
|
||||
model: {
|
||||
stm: '',
|
||||
etm: ''
|
||||
|
|
@ -61,9 +67,12 @@
|
|||
};
|
||||
},
|
||||
onLoad(options){
|
||||
// this.list = JSON.parse(decodeURIComponent(options.arr))
|
||||
this.list = JSON.parse(decodeURIComponent(options.arr))
|
||||
},
|
||||
methods: {
|
||||
getType(type){
|
||||
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e);
|
||||
this.model.stm = e[0]
|
||||
|
|
|
|||
|
|
@ -14,18 +14,18 @@
|
|||
<image src="../../../static/c1.png" style="width: 79px;height: 68px;"></image>
|
||||
<view class="">
|
||||
<view class="title">
|
||||
麻城市气象台发布暴雨橙色预警
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class=title>
|
||||
[Ⅱ级/严重]
|
||||
</view>
|
||||
<view class="time">
|
||||
2024-06-23 15:18:42
|
||||
{{item.tm}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
麻城市2024年06月23日03时18分42秒发布暴雨橙色预警信号:过去3小时麻城市乘马岗镇汪家垅降雨量已达45毫米,预计未来3小时,麻城市中南部降雨量将达70毫米以上,伴有雷电,阵风6-8级,致灾风险高,请加强防范。
|
||||
{{item.content}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -8,23 +8,27 @@
|
|||
<view class="" style="margin-top: 44px;border-top: 1px solid #f0f0f0;">
|
||||
<view class="" v-for="item in list" style="margin: 10px;background-color: #fff;padding: 10px;">
|
||||
<view class="item">
|
||||
<!-- {{item.title}} -->
|
||||
<image src="../../../static/c1.png" style="width: 79px;height: 68px;"></image>
|
||||
<text>{{item.stationCode}}</text>
|
||||
<text>{{item.tm}}</text>
|
||||
|
||||
</view>
|
||||
<view class="contentItem">
|
||||
<view class="itemC">
|
||||
<text>巡检项:</text>
|
||||
<text>{{item.xjx}}</text>
|
||||
<text>预警级别:</text>
|
||||
<text>{{item.level===1?'黄色':'红色'}}</text>
|
||||
</view>
|
||||
<view class="itemC">
|
||||
<text>巡查人:</text>
|
||||
<text>{{item.name}}</text>
|
||||
<text>监测值(mm):</text>
|
||||
<text>{{item.value}}</text>
|
||||
</view>
|
||||
<view class="itemC">
|
||||
<text>巡查时间:</text>
|
||||
<text>阈值:</text>
|
||||
<text>{{item.time}}</text>
|
||||
</view>
|
||||
<view class="itemC">
|
||||
<text>校验规则描述:</text>
|
||||
<text>{{item.ruleDesc}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,10 @@
|
|||
},
|
||||
todetail(key,e){
|
||||
let arr = encodeURIComponent(JSON.stringify(e))
|
||||
console.log(key);
|
||||
console.log(key,e.length?.length);
|
||||
if(!e.length?.length){
|
||||
return;
|
||||
}
|
||||
if(key=='qxWarn'){
|
||||
uni.navigateTo({
|
||||
url:'/pages/yj/detail/qxyj?list='+arr
|
||||
|
|
@ -88,6 +91,16 @@
|
|||
url:'/pages/yj/detail/wyyj?list='+arr
|
||||
})
|
||||
}
|
||||
if(key == 'flowWarn'){
|
||||
uni.navigateTo({
|
||||
url:'/pages/yj/detail/wyyj?list='+arr
|
||||
})
|
||||
}
|
||||
if(key == 'pressWarn'){
|
||||
uni.navigateTo({
|
||||
url:'/pages/yj/detail/wyyj?list='+arr
|
||||
})
|
||||
}
|
||||
if(key == 'aiWarnCount'){
|
||||
uni.navigateTo({
|
||||
url:'/pages/yj/detail/aiyj?list='+arr
|
||||
|
|
|
|||
Loading…
Reference in New Issue