feat(): 首页模块开发
parent
9f9ded1a80
commit
0fa3c299f1
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name" : "檀树岗水库",
|
||||
"appid" : "__UNI__33ED56F",
|
||||
"name" : "盐卡闸站",
|
||||
"appid" : "__UNI__B213959",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : 1,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import echarts from 'echarts/lib/echarts';
|
|||
import moment from 'moment';
|
||||
|
||||
export default function DrpOption(data=[]) {
|
||||
const maxY = Math.max(...data.map(item => item.sumDrp))
|
||||
const maxY = Math.max(...data.map(item => item.val))
|
||||
let eopts = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
|
|
@ -14,15 +14,16 @@ export default function DrpOption(data=[]) {
|
|||
x2: 28,
|
||||
y2: 36,
|
||||
borderWidth: 0,
|
||||
top:"12%",
|
||||
bottom: '10%',
|
||||
left: '8%',
|
||||
left: '10%',
|
||||
width: '90%',
|
||||
},
|
||||
calculable: true,
|
||||
xAxis: [
|
||||
{
|
||||
type: 'category',
|
||||
data: data.map(o => moment(o.time).format("HH:mm")),
|
||||
data: data.map(o => moment(o.tm).format("HH:mm")),
|
||||
splitLine: {
|
||||
show: false
|
||||
},
|
||||
|
|
@ -46,6 +47,7 @@ export default function DrpOption(data=[]) {
|
|||
{
|
||||
type: 'value',
|
||||
position: 'left',
|
||||
name:'面雨量(mm)',
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
|
|
@ -84,7 +86,7 @@ export default function DrpOption(data=[]) {
|
|||
name: '面雨量(mm)',
|
||||
type: 'bar',
|
||||
barWidth: '60%',
|
||||
data: data.map(o => o.sumDrp),
|
||||
data: data.map(o => o.val),
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: "#6395f9"
|
||||
|
|
|
|||
|
|
@ -18,21 +18,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<u-icon
|
||||
name="bell-fill"
|
||||
size="30"
|
||||
color="#fff"
|
||||
@click="todetailmessgae()"
|
||||
>
|
||||
</u-icon>
|
||||
<u-badge
|
||||
bgColor=" #de2433"
|
||||
:offset="[25, 20]"
|
||||
:value="messagelist.length"
|
||||
:absolute="true"
|
||||
></u-badge>
|
||||
</div>
|
||||
</view>
|
||||
<!-- nav -->
|
||||
<view class="navBar" style="display: flex; flex-wrap: wrap">
|
||||
|
|
@ -53,14 +38,41 @@
|
|||
</div>
|
||||
</div>
|
||||
</view>
|
||||
<view class="warn">
|
||||
<sk-info />
|
||||
</view>
|
||||
<view class="warn1" v-for="item in Ylzlist" :key="item.stnm">
|
||||
<ylz-list :item="item" />
|
||||
</view>
|
||||
<view class="warn1" v-for="item in swzList" :key="item.stcd">
|
||||
<SwzList :item="item" />
|
||||
<view class="info_rain">
|
||||
<div class="heart" style="display: flex">
|
||||
<p class="title">
|
||||
<image
|
||||
:style="{ width: '20px', height: '20px', marginRight: '10px' }"
|
||||
src="../../static/tabs/rain.svg"
|
||||
></image
|
||||
><span class="h4">雨情</span>
|
||||
</p>
|
||||
<div class="time" style="width: 50%; color: #000" v-if="timeList">
|
||||
<uni-data-select
|
||||
v-model="selValue"
|
||||
:localdata="timeList"
|
||||
@change="changeTime"
|
||||
:clear="false"
|
||||
>
|
||||
</uni-data-select>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="info_icon"
|
||||
style="height: 260px; width: 100%"
|
||||
v-if="rainList.length"
|
||||
>
|
||||
<qiun-data-charts
|
||||
:chartData="chartData.chartData"
|
||||
:echartsApp="true"
|
||||
:eopts="chartData.eopts"
|
||||
/>
|
||||
</div>
|
||||
<image
|
||||
:src="showImg"
|
||||
style="width: 60%; height: 220px; margin: 5% 10% 0 20%;"
|
||||
v-else
|
||||
></image>
|
||||
</view>
|
||||
<view
|
||||
class="info_24"
|
||||
|
|
@ -83,26 +95,34 @@
|
|||
|
||||
<script>
|
||||
import moment from "moment";
|
||||
import drpOption from './chartOption';
|
||||
const warnStm = moment().subtract(1, "days").format("YYYY-MM-DD HH:mm:ss");
|
||||
const warnetm = moment().format("YYYY-MM-DD HH:mm:ss");
|
||||
import SkInfo from "../skInfo/index.vue";
|
||||
import YlzList from "../ylzList/index.vue";
|
||||
import SwzList from "../sws/index.vue";
|
||||
let timer = null;
|
||||
const stm = moment()
|
||||
.subtract(1, "days")
|
||||
.startOf("day")
|
||||
.set({ hour: 8, minute: 0 });
|
||||
const etm = moment().startOf("day").set({ hour: 8, minute: 0 });
|
||||
export default {
|
||||
components: {
|
||||
SkInfo,
|
||||
YlzList,
|
||||
SwzList,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
Ylzlist: [],
|
||||
userList: uni.getStorageSync("value"),
|
||||
default_src: uni.getStorageSync("avatar"),
|
||||
messagelist: [],
|
||||
ylzList: [],
|
||||
swzList: [],
|
||||
stm,
|
||||
etm,
|
||||
timeList: [
|
||||
{ text: "昨天08:00~当前时间", value: 1 },
|
||||
{ text: "今天08:00~当前时间", value: 2 },
|
||||
{ text: "昨天08:00~今天08:00", value: 3 },
|
||||
{ text: "最近1小时", value: 4 },
|
||||
{ text: "最近3小时", value: 5 },
|
||||
{ text: "最近6小时", value: 6 },
|
||||
{ text: "最近12小时", value: 7 },
|
||||
{ text: "最近24小时", value: 8 },
|
||||
],
|
||||
selValue: 3,
|
||||
showImg: "../../static/empty.png",
|
||||
rainList:[],
|
||||
warnStatus: false, //预警
|
||||
};
|
||||
},
|
||||
|
|
@ -156,35 +176,73 @@ export default {
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
getYlzList() {
|
||||
uni.$http.post("/gunshiApp/tsg/stPptnRReal/list").then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.Ylzlist = res.data.data;
|
||||
}
|
||||
});
|
||||
changeTime(params) {
|
||||
switch (params) {
|
||||
case 1:
|
||||
this.stm = moment()
|
||||
.subtract(1, "days")
|
||||
.startOf("day")
|
||||
.set({ hour: 8, minute: 0 });
|
||||
this.etm = moment();
|
||||
break;
|
||||
case 2:
|
||||
this.stm = moment().startOf("day").set({ hour: 8, minute: 0 });
|
||||
this.etm = moment();
|
||||
break;
|
||||
case 3:
|
||||
this.stm = stm;
|
||||
this.etm = etm;
|
||||
break;
|
||||
case 4:
|
||||
this.stm = moment().subtract(1, "hours");
|
||||
this.etm = moment();
|
||||
break;
|
||||
case 5:
|
||||
this.stm = moment().subtract(3, "hours");
|
||||
this.etm = moment();
|
||||
break;
|
||||
case 6:
|
||||
this.stm = moment().subtract(6, "hours");
|
||||
this.etm = moment();
|
||||
break;
|
||||
case 7:
|
||||
this.stm = moment().subtract(12, "hours");
|
||||
this.etm = moment();
|
||||
break;
|
||||
case 8:
|
||||
this.stm = moment().subtract(24, "hours");
|
||||
this.etm = moment();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
this.getRainData();
|
||||
console.log("params", params);
|
||||
},
|
||||
getList() {
|
||||
|
||||
// 雨量数据
|
||||
getRainData() {
|
||||
const params = {
|
||||
pageSo: {
|
||||
pageSize: 999,
|
||||
pageNumber: 1,
|
||||
},
|
||||
dateTimeRangeSo: {
|
||||
start: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
end: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
},
|
||||
type: 3,
|
||||
};
|
||||
uni.$http
|
||||
.post("/gunshiApp/tsg/messageCenter/list", {
|
||||
start: "",
|
||||
end: "",
|
||||
})
|
||||
.post("/gunshiApp/ykz/stPptnRReal/his/data", params)
|
||||
.then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.messagelist = res.data.data;
|
||||
const result = res.data.data;
|
||||
this.rainList = result;
|
||||
this.chartData = {...drpOption(result)};
|
||||
}
|
||||
});
|
||||
},
|
||||
getSwList() {
|
||||
uni.$http.post("/gunshiApp/tsg/reservoir/water/list").then((res) => {
|
||||
this.swzList = res.data.data;
|
||||
});
|
||||
},
|
||||
todetailmessgae() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/messageList/index",
|
||||
});
|
||||
},
|
||||
|
||||
async setInsert(menu2) {
|
||||
try {
|
||||
|
|
@ -195,7 +253,7 @@ export default {
|
|||
menu2: menu2 || "首页",
|
||||
};
|
||||
const { data } = await uni.$http.post(
|
||||
"/gunshiApp/tsg/visitMenuLog/insert",
|
||||
"/gunshiApp/ykz/visitMenuLog/insert",
|
||||
params
|
||||
);
|
||||
} catch (error) {}
|
||||
|
|
@ -204,7 +262,7 @@ export default {
|
|||
uni.navigateTo({
|
||||
url: url, // 跳转到对应路径的页面
|
||||
});
|
||||
this.setInsert(menu2);
|
||||
// this.setInsert(menu2);
|
||||
},
|
||||
|
||||
// 闸前
|
||||
|
|
@ -244,24 +302,10 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.getYlzList();
|
||||
},
|
||||
|
||||
onShow() {
|
||||
var that = this;
|
||||
that.getList();
|
||||
timer = setInterval(function () {
|
||||
that.getList();
|
||||
}, 10000);
|
||||
|
||||
this.setInsert();
|
||||
// this.setInsert();
|
||||
this.getAllList();
|
||||
this.getSwList();
|
||||
},
|
||||
onHide() {
|
||||
clearInterval(timer);
|
||||
timer = null;
|
||||
this.getRainData();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -274,6 +318,19 @@ export default {
|
|||
background-color: #f3f5f8;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
.info_rain {
|
||||
padding: 10px;
|
||||
background-color: #fff;
|
||||
.heart {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
|
|
@ -362,7 +419,7 @@ export default {
|
|||
// padding: 15px;
|
||||
background-color: #fff;
|
||||
// margin-bottom: 12rpx;
|
||||
height: 100px;
|
||||
// height: 100px;
|
||||
}
|
||||
|
||||
.title .line {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.get("/gunshiApp/tsg/appVersionRecord/latest");
|
||||
} = await uni.$http.get("/gunshiApp/ykz/appVersionRecord/latest");
|
||||
if (data.code == 200) {
|
||||
const selfVersionCode = uni.getSystemInfoSync().appWgtVersion //当前App版本号
|
||||
const newVersionCode = data.data.version; //线上最新版本号
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
}
|
||||
|
||||
//提交表单
|
||||
uni.$http.post('/gunshiApp/tsg/login', postForm).then(res => {
|
||||
uni.$http.post('/gunshiApp/ykz/login', postForm).then(res => {
|
||||
uni.showLoading({
|
||||
title: '努力登录中...',
|
||||
mask: true
|
||||
|
|
@ -131,7 +131,7 @@
|
|||
|
||||
if (res.data.token) {
|
||||
uni.setStorageSync('Gs-Token', res.data.token)
|
||||
uni.$http.get('/gunshiApp/tsg/getInfo').then(res => {
|
||||
uni.$http.get('/gunshiApp/ykz/getInfo').then(res => {
|
||||
this.getImgFlow(res.data.user.avatar)
|
||||
uni.setStorageSync('value', res.data.user)
|
||||
setTimeout(function () {
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
if (imgUrl) {
|
||||
uni.request({
|
||||
url: 'http://local.gunshiiot.com:18083' +
|
||||
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`,
|
||||
`/gunshiApp/ykz/common/download/resource?resource=${imgUrl}`,
|
||||
responseType: 'arraybuffer',
|
||||
success: (res) => {
|
||||
// 将arraybuffer转换为Base64编码
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
},
|
||||
methods: {
|
||||
yd(item){
|
||||
uni.$http.post('/gunshiApp/tsg/messageCenter/update',{...item,status:1})
|
||||
uni.$http.post('/gunshiApp/ykz/messageCenter/update',{...item,status:1})
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e);
|
||||
|
|
|
|||
|
|
@ -1,219 +1,266 @@
|
|||
<template>
|
||||
<view :style="{height:'100vh',overflow:'hidden',backgroundColor: '#f0f0f0'}">
|
||||
<u-status-bar></u-status-bar>
|
||||
<u-navbar title="消息中心" :autoBack="true" :titleStyle="{
|
||||
fontSize:'18px'
|
||||
|
||||
}" rightText="一键已读" @rightClick='rightClick' :height='44' :safeAreaInsetTop=true leftIconSize='20'
|
||||
leftIconColor='rgb(153, 153, 153)'>
|
||||
</u-navbar>
|
||||
<view class="" style="margin-top: 44px;;background-color: #f0f0f0;border-top: 1px solid #f0f0f0;">
|
||||
<view style="padding:0 10px,backgroundColor:#fff">
|
||||
<view class="time-ranger" style="padding:10px;background-color: #fff;">
|
||||
<view class="start-time">
|
||||
<text>开始时间</text>
|
||||
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{startTime}}</text>
|
||||
</view>
|
||||
<view class="end-time">
|
||||
<text>结束时间</text>
|
||||
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{endTime}}</text>
|
||||
<view class="search-btn" @click="searchTm">
|
||||
搜索
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height:calc(100vh - 180px); overflow-y:auto;" v-if="list.length !== 0">
|
||||
<view class="" v-for="(item,index) in list" :key="index" style="margin: 10px;background-color: #fff;padding: 10px;" @click="toDetail(item)">
|
||||
<view class="item">
|
||||
<view class="align-center">
|
||||
<view class="blueTiao">
|
||||
<view
|
||||
:style="{ height: '100vh', overflow: 'hidden', backgroundColor: '#f0f0f0' }"
|
||||
>
|
||||
<u-status-bar></u-status-bar>
|
||||
<u-navbar
|
||||
title="消息中心"
|
||||
:autoBack="true"
|
||||
:titleStyle="{
|
||||
fontSize: '18px',
|
||||
}"
|
||||
rightText="一键已读"
|
||||
@rightClick="rightClick"
|
||||
:height="44"
|
||||
:safeAreaInsetTop="true"
|
||||
leftIconSize="20"
|
||||
leftIconColor="rgb(153, 153, 153)"
|
||||
>
|
||||
</u-navbar>
|
||||
<view
|
||||
class=""
|
||||
style="
|
||||
margin-top: 44px;
|
||||
background-color: #f0f0f0;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
"
|
||||
>
|
||||
<view style="padding:0 10px,backgroundColor:#fff">
|
||||
<view class="time-ranger" style="padding: 10px; background-color: #fff">
|
||||
<view class="start-time">
|
||||
<text>开始时间</text>
|
||||
<text
|
||||
@click="showTime = true"
|
||||
style="margin-left: 10%; color: #3399ef"
|
||||
>{{ startTime }}</text
|
||||
>
|
||||
</view>
|
||||
<view class="end-time">
|
||||
<text>结束时间</text>
|
||||
<text
|
||||
@click="showTime1 = true"
|
||||
style="margin: 0 10%; color: #3399ef"
|
||||
>{{ endTime }}</text
|
||||
>
|
||||
<view class="search-btn" @click="searchTm"> 搜索 </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
style="height: calc(100vh - 180px); overflow-y: auto"
|
||||
v-if="list.length !== 0"
|
||||
>
|
||||
<view
|
||||
class=""
|
||||
v-for="(item, index) in list"
|
||||
:key="index"
|
||||
style="margin: 10px; background-color: #fff; padding: 10px"
|
||||
@click="toDetail(item)"
|
||||
>
|
||||
<view class="item">
|
||||
<view class="align-center">
|
||||
<view class="blueTiao"> </view>
|
||||
<view class="title">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="title">
|
||||
{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="titleRight" >
|
||||
{{item.publishTime}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="contentItem">
|
||||
<view class="itemC">
|
||||
{{item.content}}
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
style="height:calc(100vh - 150px);display: flex;align-items: center;justify-content: center;background-color: #fff;"
|
||||
v-else>
|
||||
<image src="../../static/empty.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<u-datetime-picker :show="showTime" v-model="stm" mode="datetime" @confirm="showTime=false"
|
||||
:minDate="minDate"
|
||||
:maxDate="maxDate"
|
||||
@cancel="showTime=false"></u-datetime-picker>
|
||||
<u-datetime-picker :show="showTime1" v-model="etm" mode="datetime" @confirm="showTime1=false"
|
||||
:minDate="minDate"
|
||||
:maxDate="maxDate"
|
||||
@cancel="showTime1=false"></u-datetime-picker>
|
||||
</view>
|
||||
<view class="titleRight">
|
||||
{{ item.publishTime }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="contentItem">
|
||||
<view class="itemC">
|
||||
{{ item.content }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
style="
|
||||
height: calc(100vh - 150px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #fff;
|
||||
"
|
||||
v-else
|
||||
>
|
||||
<image src="../../static/empty.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<u-datetime-picker
|
||||
:show="showTime"
|
||||
v-model="stm"
|
||||
mode="datetime"
|
||||
@confirm="showTime = false"
|
||||
:minDate="minDate"
|
||||
:maxDate="maxDate"
|
||||
@cancel="showTime = false"
|
||||
></u-datetime-picker>
|
||||
<u-datetime-picker
|
||||
:show="showTime1"
|
||||
v-model="etm"
|
||||
mode="datetime"
|
||||
@confirm="showTime1 = false"
|
||||
:minDate="minDate"
|
||||
:maxDate="maxDate"
|
||||
@cancel="showTime1 = false"
|
||||
></u-datetime-picker>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import moment from 'moment'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
minDate:moment().startOf('year').valueOf(),
|
||||
maxDate:moment().valueOf(),
|
||||
show: false,
|
||||
showTime:false,
|
||||
showTime1:false,
|
||||
start: '请选择开始时间',
|
||||
end: '请选择结束时间',
|
||||
stm:'',
|
||||
etm:'',
|
||||
userList: uni.getStorageSync('value').data,
|
||||
list: []
|
||||
};
|
||||
},
|
||||
onShow(options) {
|
||||
this.getList()
|
||||
},
|
||||
|
||||
computed:{
|
||||
startTime:function (){
|
||||
return this.stm?moment(this.stm).format('YYYY-MM-DD HH:mm:ss'):this.start
|
||||
},
|
||||
endTime:function (){
|
||||
return this.etm?moment(this.etm).format('YYYY-MM-DD HH:mm:ss'):this.end
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
rightClick() {
|
||||
uni.$http.get('/gunshiApp/tsg/messageCenter/all/read', {
|
||||
receiveUserId: uni.getStorageSync('value').userId
|
||||
}).then(res => {
|
||||
import moment from "moment";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
minDate: moment().startOf("year").valueOf(),
|
||||
maxDate: moment().valueOf(),
|
||||
show: false,
|
||||
showTime: false,
|
||||
showTime1: false,
|
||||
start: "请选择开始时间",
|
||||
end: "请选择结束时间",
|
||||
stm: "",
|
||||
etm: "",
|
||||
userList: uni.getStorageSync("value").data,
|
||||
list: [],
|
||||
};
|
||||
},
|
||||
onShow(options) {
|
||||
this.getList();
|
||||
},
|
||||
|
||||
if (res.data.code == 200) {
|
||||
this.getList()
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
searchTm() {
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
console.log(111);
|
||||
uni.$http.post('/gunshiApp/tsg/messageCenter/list', {
|
||||
start:this.stm?moment(this.stm).format('YYYY-MM-DD HH:mm:ss'):'',
|
||||
end:this.etm?moment(this.etm).format('YYYY-MM-DD HH:mm:ss'):''
|
||||
}).then(res => {
|
||||
|
||||
if (res.data.code == 200) {
|
||||
this.list = res.data.data
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e);
|
||||
this.model.start = e[0]
|
||||
this.model.end = e[1]
|
||||
this.show = false
|
||||
},
|
||||
cancel() {
|
||||
this.show = false
|
||||
},
|
||||
toDetail(item) {
|
||||
console.log(item);
|
||||
uni.navigateTo({
|
||||
url: '/pages/messageList/detail/index?item=' + JSON.stringify(item),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
computed: {
|
||||
startTime: function () {
|
||||
return this.stm
|
||||
? moment(this.stm).format("YYYY-MM-DD HH:mm:ss")
|
||||
: this.start;
|
||||
},
|
||||
endTime: function () {
|
||||
return this.etm
|
||||
? moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
|
||||
: this.end;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
rightClick() {
|
||||
uni.$http
|
||||
.get("/gunshiApp/ykz/messageCenter/all/read", {
|
||||
receiveUserId: uni.getStorageSync("value").userId,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
},
|
||||
searchTm() {
|
||||
this.getList();
|
||||
},
|
||||
getList() {
|
||||
console.log(111);
|
||||
uni.$http
|
||||
.post("/gunshiApp/ykz/messageCenter/list", {
|
||||
start: this.stm ? moment(this.stm).format("YYYY-MM-DD HH:mm:ss") : "",
|
||||
end: this.etm ? moment(this.etm).format("YYYY-MM-DD HH:mm:ss") : "",
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
this.list = res.data.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
confirm(e) {
|
||||
console.log(e);
|
||||
this.model.start = e[0];
|
||||
this.model.end = e[1];
|
||||
this.show = false;
|
||||
},
|
||||
cancel() {
|
||||
this.show = false;
|
||||
},
|
||||
toDetail(item) {
|
||||
console.log(item);
|
||||
uni.navigateTo({
|
||||
url: "/pages/messageList/detail/index?item=" + JSON.stringify(item),
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.uni-input-placeholder {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.uni-input-placeholder {
|
||||
text-align: center;
|
||||
}
|
||||
.myTitleStyle {
|
||||
font-size: 30px;
|
||||
background-color: red;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.myTitleStyle {
|
||||
font-size: 30px;
|
||||
background-color: red;
|
||||
height: 200px;
|
||||
}
|
||||
.tabsClass {
|
||||
margin-top: 44px;
|
||||
height: 44px;
|
||||
padding: 0 40px;
|
||||
border-top: 1px solid #eee;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.tabsClass {
|
||||
margin-top: 44px;
|
||||
height: 44px;
|
||||
padding: 0 40px;
|
||||
border-top: 1px solid #eee;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.item {
|
||||
// border-bottom: 1px solid #f0f0f0;
|
||||
padding-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.item {
|
||||
// border-bottom: 1px solid #f0f0f0;
|
||||
padding-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.blueTiao {
|
||||
background-color: #2a7efa;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.blueTiao {
|
||||
background-color: #2a7efa;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.title {
|
||||
border-width: 0px;
|
||||
font-family: "微软雅黑 Bold", "微软雅黑 Regular", "微软雅黑", sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-size: 15px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.title {
|
||||
border-width: 0px;
|
||||
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-size: 15px;
|
||||
color: #666666
|
||||
}
|
||||
.titleRight {
|
||||
display: flex;
|
||||
|
||||
.titleRight {
|
||||
display: flex;
|
||||
.border {
|
||||
border-width: 0px;
|
||||
background-color: rgba(236, 245, 255, 1);
|
||||
box-sizing: border-box;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: rgba(187, 220, 255, 1);
|
||||
border-radius: 5px;
|
||||
box-shadow: none;
|
||||
width: 58px;
|
||||
height: 25px;
|
||||
color: #689fff;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.border {
|
||||
border-width: 0px;
|
||||
background-color: rgba(236, 245, 255, 1);
|
||||
box-sizing: border-box;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: rgba(187, 220, 255, 1);
|
||||
border-radius: 5px;
|
||||
box-shadow: none;
|
||||
width: 58px;
|
||||
height: 25px;
|
||||
color: #689FFF;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.contentItem {
|
||||
.itemC {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
color: #666666;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
.contentItem {
|
||||
.itemC {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
color: #666666;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
// new_params.userId = uni.getStorageSync('value').userId
|
||||
// console.log(formData)
|
||||
|
||||
uni.$http.put(`/gunshiApp/tsg/system/user/profile/updatePwd?oldPassword=${formData.oldPassword}&newPassword=${formData.newPassword}`).then(res=>{
|
||||
uni.$http.put(`/gunshiApp/ykz/system/user/profile/updatePwd?oldPassword=${formData.oldPassword}&newPassword=${formData.newPassword}`).then(res=>{
|
||||
console.log(res);
|
||||
if (res.data.code === 200) {
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
"isHandle": 1,
|
||||
"handleUserId": uni.getStorageSync('value').userId
|
||||
}
|
||||
uni.$http.post('/gunshiApp/tsg/inspect/detail/page', params).then(res => {
|
||||
uni.$http.post('/gunshiApp/ykz/inspect/detail/page', params).then(res => {
|
||||
this.list = res.data.data.records
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export default {
|
|||
submitForm(params) {
|
||||
//
|
||||
console.log({...params,...this.formData});
|
||||
uni.$http.post('/gunshiApp/tsg/maintain/service/insert',{...params,...this.formData}).then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/maintain/service/insert',{...params,...this.formData}).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
uni.$u.toast('新增成功')
|
||||
uni.navigateBack()
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
end:this.etm?moment(this.etm).format('YYYY-MM-DD 23:59:59'):''
|
||||
}
|
||||
}
|
||||
uni.$http.post('/gunshiApp/tsg/maintain/service/page', params).then(res => {
|
||||
uni.$http.post('/gunshiApp/ykz/maintain/service/page', params).then(res => {
|
||||
this.dataList = res.data.data.records
|
||||
})
|
||||
},
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
...params,
|
||||
...this.formData
|
||||
});
|
||||
uni.$http.post('/gunshiApp/tsg/maintain/service/insert', {
|
||||
uni.$http.post('/gunshiApp/ykz/maintain/service/insert', {
|
||||
...params,
|
||||
...this.formData
|
||||
}).then(res => {
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export default {
|
|||
uploadFilePromise(url,name) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let a = uni.uploadFile({
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/ykz/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
filePath: url,
|
||||
name: 'file',
|
||||
formData: {
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.get(`/gunshiApp/tsg/inspect/detail/info?taskId=${this.id}`)
|
||||
} = await uni.$http.get(`/gunshiApp/ykz/inspect/detail/info?taskId=${this.id}`)
|
||||
if (data.code == 200) {
|
||||
this.xjItem = data.data
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
statusList:[2]
|
||||
}
|
||||
try {
|
||||
const res = await uni.$http.post("/gunshiApp/tsg/inspect/task/list",params)
|
||||
const res = await uni.$http.post("/gunshiApp/ykz/inspect/task/list",params)
|
||||
this.list = [...res.data.data];
|
||||
} catch (error) {
|
||||
uni.$showMsg();
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
console.log('--------拍照上传照片--------', res);
|
||||
this.default_src = tempFilePaths[0]
|
||||
uni.uploadFile({
|
||||
url: uni.$http.baseUrl + '/gunshiApp/tsg/system/user/profile/avatar',
|
||||
url: uni.$http.baseUrl + '/gunshiApp/ykz/system/user/profile/avatar',
|
||||
fileType: 'image',
|
||||
filePath: tempFilePaths[0],
|
||||
name: 'avatarfile',
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
getImgFlow(imgUrl) {
|
||||
uni.request({
|
||||
url: 'http://local.gunshiiot.com:18083' +
|
||||
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`,
|
||||
`/gunshiApp/ykz/common/download/resource?resource=${imgUrl}`,
|
||||
responseType: 'arraybuffer',
|
||||
success: (res) => {
|
||||
// 将arraybuffer转换为Base64编码
|
||||
|
|
@ -153,7 +153,7 @@
|
|||
new_userList.phonenumber = this.phone;
|
||||
const
|
||||
{data}
|
||||
=await uni.$http.put('/gunshiApp/tsg/system/user/profile', new_userList);
|
||||
=await uni.$http.put('/gunshiApp/ykz/system/user/profile', new_userList);
|
||||
if (data.code == 200) {
|
||||
uni.setStorageSync('value', new_userList)
|
||||
uni.reLaunch({
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export default {
|
|||
methods: {
|
||||
async getSlData(){
|
||||
try {
|
||||
const {data} = await uni.$http.get('/gunshiApp/tsg/osmoticPressR/list/value?type=2')
|
||||
const {data} = await uni.$http.get('/gunshiApp/ykz/osmoticPressR/list/value?type=2')
|
||||
if(data.code == 200){
|
||||
this.slData = data.data;
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ export default {
|
|||
},
|
||||
async getZwyData(){
|
||||
try {
|
||||
const {data} = await uni.$http.get('/gunshiApp/tsg/osmoticShiftR/list/value')
|
||||
const {data} = await uni.$http.get('/gunshiApp/ykz/osmoticShiftR/list/value')
|
||||
if(data.code == 200){
|
||||
this.zwyData = data.data;
|
||||
}
|
||||
|
|
@ -56,7 +56,7 @@ export default {
|
|||
},
|
||||
async getzsyData(){
|
||||
try {
|
||||
const {data} = await uni.$http.get('/gunshiApp/tsg/osmoticPressR/list/value?type=1')
|
||||
const {data} = await uni.$http.get('/gunshiApp/ykz/osmoticPressR/list/value?type=1')
|
||||
if(data.code == 200){
|
||||
this.zsyData = data.data;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@
|
|||
async getTableData(){
|
||||
try{
|
||||
const {data} = await uni.$http.get(
|
||||
"/gunshiApp/tsg/reservoir/water/detail?stcd=716164061")
|
||||
"/gunshiApp/ykz/reservoir/water/detail?stcd=716164061")
|
||||
if(data.code == 200){
|
||||
this.tableData = {...data.data};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/resSafePersonB/list", {
|
||||
"/gunshiApp/ykz/resSafePersonB/list", {
|
||||
resCode: "42120250085"
|
||||
})
|
||||
if (data.code == 200) {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
this.tabs = item.index;
|
||||
},
|
||||
getList(){
|
||||
uni.$http.post('/gunshiApp/tsg/attResBase/list',this.model).then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/attResBase/list',this.model).then(res=>{
|
||||
console.log(res,'res');
|
||||
this.skInfo = res.data.data[0];
|
||||
})
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/reservoir/water/real/img", {
|
||||
"/gunshiApp/ykz/reservoir/water/real/img", {
|
||||
resCode: "42120250085"
|
||||
})
|
||||
if (data.code == 200) {
|
||||
|
|
@ -175,7 +175,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/reservoir/water/list")
|
||||
"/gunshiApp/ykz/reservoir/water/list")
|
||||
if (data.code == 200) {
|
||||
this.info = data.data[0]
|
||||
}
|
||||
|
|
@ -189,7 +189,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.get(
|
||||
"/gunshiApp/tsg/reservoir/water/detail?stcd=716164061")
|
||||
"/gunshiApp/ykz/reservoir/water/detail?stcd=716164061")
|
||||
if (data.code == 200) {
|
||||
this.rainInfo = data.data;
|
||||
}
|
||||
|
|
@ -204,7 +204,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/reservoir/water/monitor/data", {
|
||||
"/gunshiApp/ykz/reservoir/water/monitor/data", {
|
||||
stcd: "716164061",
|
||||
stm: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
etm: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/stZvarlB/list", {
|
||||
"/gunshiApp/ykz/stZvarlB/list", {
|
||||
stcd: "716164061"
|
||||
})
|
||||
if (data.code == 200) {
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post('/gunshiApp/tsg/attDamBase/list')
|
||||
} = await uni.$http.post('/gunshiApp/ykz/attDamBase/list')
|
||||
if (data.code == 200) {
|
||||
if (e == 1) {
|
||||
this.keyObj = data.data.find(item => item.isMain == 1)
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post('/gunshiApp/tsg/attSpillwayBase/list')
|
||||
} = await uni.$http.post('/gunshiApp/ykz/attSpillwayBase/list')
|
||||
if (data.code == 200) {
|
||||
this.keyObj = data.data[0]
|
||||
}
|
||||
|
|
@ -142,7 +142,7 @@
|
|||
const params = e == 5 ? 1 : 2;
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.get('/gunshiApp/tsg/resTunnel/list',{type:params})
|
||||
} = await uni.$http.get('/gunshiApp/ykz/resTunnel/list',{type:params})
|
||||
if (data.code == 200) {
|
||||
this.keyObj = data.data[0]
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post('/gunshiApp/tsg/resFloodRoad/list')
|
||||
} = await uni.$http.post('/gunshiApp/ykz/resFloodRoad/list')
|
||||
if (data.code == 200) {
|
||||
this.keyObj = data.data[0]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,16 +86,16 @@
|
|||
});
|
||||
},
|
||||
getDrp(){
|
||||
uni.$http.get('/gunshiApp/tsg/reservoir/water/detail?stcd=716164061&_=1731028927554').then(res=>{
|
||||
uni.$http.get('/gunshiApp/ykz/reservoir/water/detail?stcd=716164061&_=1731028927554').then(res=>{
|
||||
|
||||
this.dataform={...this.dataform,...res.data.data}
|
||||
|
||||
})
|
||||
uni.$http.post('/gunshiApp/tsg/reservoir/water/list').then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/reservoir/water/list').then(res=>{
|
||||
this.dataform={...this.dataform,...res.data.data[0]}
|
||||
this.tm = res.data.data[0].tm
|
||||
})
|
||||
uni.$http.post('/gunshiApp/tsg/stWaterRReal/list').then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/stWaterRReal/list').then(res=>{
|
||||
res.data.data.forEach(item=>{
|
||||
if(item.sttp == 'QQ'){
|
||||
this.stgs=item.q
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
}
|
||||
})
|
||||
})
|
||||
uni.$http.post('/gunshiApp/tsg/resProjectImg/list',{resCode:42120250085}).then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/resProjectImg/list',{resCode:42120250085}).then(res=>{
|
||||
res.data.data.forEach(item=>{
|
||||
if(item.projType == 1){
|
||||
this.imageList = item.files.map((item,index)=>
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
})
|
||||
},
|
||||
getList(){
|
||||
uni.$http.post('/gunshiApp/tsg/attResBase/list').then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/attResBase/list').then(res=>{
|
||||
this.dataform=res.data.data[0]
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/stWaterR/list", {
|
||||
"/gunshiApp/ykz/stWaterR/list", {
|
||||
stcd: this.stcd,
|
||||
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
},
|
||||
async getVideoList(){
|
||||
try {
|
||||
const {data} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/list")
|
||||
const {data} = await uni.$http.post("/gunshiApp/ykz/attCctvBase/list")
|
||||
if(data.code == 200){
|
||||
this.videoList = data.data
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export default {
|
|||
async getVideoSrc(id){
|
||||
try{
|
||||
const {data} = await uni.$http.get(
|
||||
`/gunshiApp/tsg/attCctvBase/preview/${id}`)
|
||||
`/gunshiApp/ykz/attCctvBase/preview/${id}`)
|
||||
if(data.code == 200){
|
||||
this.webURL="./static/h5Player/webplayer.html?cameraIndexCode="+id+"&cameraUrl="+data.data
|
||||
}
|
||||
|
|
@ -90,7 +90,7 @@ export default {
|
|||
speed:30
|
||||
}
|
||||
try{
|
||||
const {data} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/control",params)
|
||||
const {data} = await uni.$http.post("/gunshiApp/ykz/attCctvBase/control",params)
|
||||
if(this.timer) clearTimeout(this.timer)
|
||||
this.timer = setTimeout(() => {
|
||||
this.onOperation1(type)
|
||||
|
|
@ -107,7 +107,7 @@ export default {
|
|||
speed:30
|
||||
}
|
||||
try{
|
||||
const {data} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/control",params)
|
||||
const {data} = await uni.$http.post("/gunshiApp/ykz/attCctvBase/control",params)
|
||||
}catch(error){
|
||||
uni.$showMsg()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@
|
|||
const endTime = moment(this.etm).format("YYYY-MM-DD HH:mm:ss");
|
||||
try{
|
||||
const {data} = await uni.$http.get(
|
||||
`/gunshiApp/tsg/stWaterR/getResMonthEcoFlow?startTime=${startTime}&endTime=${endTime}`,)
|
||||
`/gunshiApp/ykz/stWaterR/getResMonthEcoFlow?startTime=${startTime}&endTime=${endTime}`,)
|
||||
if(data.code == 200){
|
||||
this.stData = {
|
||||
...this.stData,
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
async getJcsjData(){
|
||||
try{
|
||||
const {data} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/stWaterR/ecologyFlowList",
|
||||
"/gunshiApp/ykz/stWaterR/ecologyFlowList",
|
||||
{
|
||||
startTime:moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
endTime:moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/reservoir/water/monitor/data", {
|
||||
"/gunshiApp/ykz/reservoir/water/monitor/data", {
|
||||
stcd: this.stcd,
|
||||
stm: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
etm: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
if (this.info.url) {
|
||||
this.isStartDownload = true
|
||||
//开始下载App
|
||||
const baseUrl = `http://local.gunshiiot.com:18083/gunshiApp/tsg/common/download/resource?resource=${this.info.url}`
|
||||
const baseUrl = `http://local.gunshiiot.com:18083/gunshiApp/ykz/common/download/resource?resource=${this.info.url}`
|
||||
downloadApp(baseUrl, current => {
|
||||
//下载进度监听
|
||||
this.hasProgress = true
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@
|
|||
return;
|
||||
}else{
|
||||
console.log(this.queItem);
|
||||
uni.$http.post('/gunshiApp/tsg/inspect/detail/handle', this.queItem).then(res => {
|
||||
uni.$http.post('/gunshiApp/ykz/inspect/detail/handle', this.queItem).then(res => {
|
||||
uni.$showMsg(res.data.description);
|
||||
if(res.data.code == 200){
|
||||
uni.navigateBack()
|
||||
|
|
@ -195,7 +195,7 @@
|
|||
uploadFilePromise(url, name) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let a = uni.uploadFile({
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/ykz/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
filePath: url,
|
||||
name: 'file',
|
||||
formData: {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@
|
|||
"handleUserId": uni.getStorageSync('value').userId
|
||||
}
|
||||
console.log(params,'dsd');
|
||||
uni.$http.post('/gunshiApp/tsg/inspect/detail/page', params).then(res => {
|
||||
uni.$http.post('/gunshiApp/ykz/inspect/detail/page', params).then(res => {
|
||||
this.list=res.data.data.records
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@
|
|||
uploadFilePromise(url,name) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let a = uni.uploadFile({
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/ykz/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
filePath: url,
|
||||
name: 'file',
|
||||
formData: {
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export default {
|
|||
submitForm(params) {
|
||||
//
|
||||
console.log({...params,...this.formData});
|
||||
uni.$http.post('/gunshiApp/tsg/maintain/service/insert',{...params,...this.formData}).then(res=>{
|
||||
uni.$http.post('/gunshiApp/ykz/maintain/service/insert',{...params,...this.formData}).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
// uni.$u.toast('新增成功')
|
||||
uni.$u.toast('新增成功')
|
||||
|
|
|
|||
|
|
@ -206,8 +206,8 @@
|
|||
return treelist
|
||||
},
|
||||
async getTreeList (){
|
||||
const res = await uni.$http.get('/gunshiApp/tsg/system/dept/list')
|
||||
const resUser = await uni.$http.get('/gunshiApp/tsg/system/user/list?pageNum=1&pageSize=9999')
|
||||
const res = await uni.$http.get('/gunshiApp/ykz/system/dept/list')
|
||||
const resUser = await uni.$http.get('/gunshiApp/ykz/system/user/list?pageNum=1&pageSize=9999')
|
||||
this.deptUserList = resUser.data.rows
|
||||
if (res.data.data?.length > 0 && resUser.data.rows?.length > 0) {
|
||||
// return this.handleTreeList(res.data.data,res.data.rows)
|
||||
|
|
@ -261,7 +261,7 @@
|
|||
console.log(params);
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post(`/gunshiApp/tsg/inspect/task/finish`, params)
|
||||
} = await uni.$http.post(`/gunshiApp/ykz/inspect/task/finish`, params)
|
||||
console.log(data,'2121');
|
||||
if(data.code==200){
|
||||
uni.$showMsg('提交成功');
|
||||
|
|
@ -370,7 +370,7 @@
|
|||
uploadFilePromise(url, name, index, index1) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let a = uni.uploadFile({
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/ykz/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
filePath: url,
|
||||
name: 'file',
|
||||
formData: {
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export default {
|
|||
uploadFilePromise(url,name) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let a = uni.uploadFile({
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
url: 'http://local.gunshiiot.com:18083/gunshiApp/ykz/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||
filePath: url,
|
||||
name: 'file',
|
||||
formData: {
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
if (this.status == 0) {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.get(`/gunshiApp/tsg/inspect/task/startInspect/${this.id}`)
|
||||
} = await uni.$http.get(`/gunshiApp/ykz/inspect/task/startInspect/${this.id}`)
|
||||
if (data.code == 200) {
|
||||
this.btnStatus = 1;
|
||||
this.getXjItem(this.id)
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.get(`/gunshiApp/tsg/inspect/detail/info?taskId=${id}`)
|
||||
} = await uni.$http.get(`/gunshiApp/ykz/inspect/detail/info?taskId=${id}`)
|
||||
if (data.code == 200) {
|
||||
this.xjItem = data.data
|
||||
}
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post(`/gunshiApp/tsg/inspectTaskTrack/insert`, {
|
||||
} = await uni.$http.post(`/gunshiApp/ykz/inspectTaskTrack/insert`, {
|
||||
taskId: this.id,
|
||||
lttd: latitude,
|
||||
lgtd: longitude
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
statusList: [0, 1]
|
||||
}
|
||||
try {
|
||||
const res = await uni.$http.post("/gunshiApp/tsg/inspect/task/list", params)
|
||||
const res = await uni.$http.post("/gunshiApp/ykz/inspect/task/list", params)
|
||||
this.list = [...res.data.data];
|
||||
} catch (error) {
|
||||
uni.$showMsg();
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ export default {
|
|||
},
|
||||
getList() {
|
||||
uni.$http
|
||||
.post("/gunshiApp/tsg/stQxWarnR/home/warn", this.model)
|
||||
.post("/gunshiApp/ykz/stQxWarnR/home/warn", this.model)
|
||||
.then((res) => {
|
||||
this.list = res.data.data;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/attResBase/rainBasinDivision/queryStStbprpPerHour/StcdAndStartTimeAndEndTime", {
|
||||
"/gunshiApp/ykz/attResBase/rainBasinDivision/queryStStbprpPerHour/StcdAndStartTimeAndEndTime", {
|
||||
stcd: this.stcd,
|
||||
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/attResBase/rainBasinDivision/queryStStbprpPerHourChart/StcdAndStartTimeAndEndTime", {
|
||||
"/gunshiApp/ykz/attResBase/rainBasinDivision/queryStStbprpPerHourChart/StcdAndStartTimeAndEndTime", {
|
||||
stcd: "61610700",
|
||||
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
|
||||
|
|
@ -170,7 +170,7 @@
|
|||
const {
|
||||
data
|
||||
} = await uni.$http.post(
|
||||
"/gunshiApp/tsg/weather/short/fore", {
|
||||
"/gunshiApp/ykz/weather/short/fore", {
|
||||
tm: moment(this.projectTime).format('YYYYMMDDHHmm')
|
||||
})
|
||||
if (data.code == 200) {
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
async getTableData(){
|
||||
try{
|
||||
const {data} = await uni.$http.get(
|
||||
"/gunshiApp/tsg/attResBase/rainBasinDivision/queryStPptnDetails/stcd?stcd=716164061")
|
||||
"/gunshiApp/ykz/attResBase/rainBasinDivision/queryStPptnDetails/stcd?stcd=716164061")
|
||||
if(data.code == 200){
|
||||
this.tableData = {...data.data};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/list")
|
||||
} = await uni.$http.post("/gunshiApp/ykz/attCctvBase/list")
|
||||
if (data.code == 200) {
|
||||
const videoList = data.data.map(item => ({
|
||||
...item,
|
||||
|
|
@ -414,7 +414,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post("/gunshiApp/tsg/real/rain/list", {
|
||||
} = await uni.$http.post("/gunshiApp/ykz/real/rain/list", {
|
||||
stm: moment().add(-1, 'days').format('YYYY-MM-DD 08:00:00'),
|
||||
etm: moment(moment().format('YYYY-MM-DD 08:00:00'))
|
||||
})
|
||||
|
|
@ -443,7 +443,7 @@
|
|||
try {
|
||||
const {
|
||||
data
|
||||
} = await uni.$http.post("/gunshiApp/tsg/reservoir/water/list", )
|
||||
} = await uni.$http.post("/gunshiApp/ykz/reservoir/water/list", )
|
||||
if (data.code == 200) {
|
||||
const waterList = data.data.map(item => ({
|
||||
...item,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="matrix(1 0 0 1 -12 -326 )">
|
||||
<path d="M 19.9468331825658 8.36520964226974 C 19.9464763569079 11.0771632606908 17.7151650287829 13.2835861019737 14.9727029399671 13.2835860814145 C 14.0970053224076 13.2851112035255 13.2363623472056 13.055889474165 12.477430859375 12.6190008840461 C 11.5903657483553 13.1049955386513 10.8181980263158 13.2835860814145 9.68189115953947 13.2835860814145 C 8.47992861842105 13.2835860814145 7.36556644736842 12.9506690378289 6.28974130345394 12.2687778782895 C 5.60896741745871 12.8044394251887 4.76603767892972 13.0922330245052 3.89982158717105 13.0847457648026 C 1.77885816200658 13.0848349712171 0.0535236430921053 11.3784121299342 0.0535236430921052 9.28135594161184 C 0.0629834673770326 7.49482504214983 1.31005020308773 5.95372478638771 3.05530775082237 5.57181087582237 C 3.50454950657895 2.36806422697368 6.27011595394737 0.0083853618421061 9.68189115953947 0.008385361842106 C 12.134277503496 0.0119836230547273 14.3927080039934 1.34239953813957 15.5846565583882 3.48563782894737 C 18.0393398848684 3.78528100328947 19.9468331825658 5.85851918174342 19.9468331825658 8.36520964226974 Z M 4.37716324013158 14.5438893914474 C 4.48233719161184 15.4363960731908 6.00446030016447 17.0875111636513 6.00446030016447 18.3817127467105 C 5.99511880472045 19.2737968724194 5.26929628470534 19.9920587054803 4.37716325041118 19.9920587054803 C 3.48503021611703 19.9920587054803 2.75920769610192 19.2737968724194 2.74986620065789 18.3817127467105 C 2.74986620065789 17.1427296875 4.25842997532895 15.4156110608553 4.37716324013158 14.5438893914474 Z M 9.98242639802632 14.5438893914474 C 10.0872435238487 15.4363960731908 11.6097234580592 17.0875111636513 11.6097234580592 18.3817127467105 C 11.6003819626152 19.2737968724194 10.8745594426001 19.9920587054803 9.98242640830592 19.9920587054803 C 9.09029337401178 19.9920587054803 8.36447085399668 19.2737968724194 8.35512935855263 18.3817127467105 C 8.35512935855263 17.1427296875 9.86333630756579 15.4156110608553 9.98242639802632 14.5438893914474 Z M 15.5873327302632 14.5438893914474 C 15.6925066817434 15.4363960731908 17.2147189967105 17.0875111636513 17.2147189967105 18.3817127467105 C 17.2032977941148 19.2722315992518 16.4781478464832 19.9881408931108 15.5875557565789 19.9881408931108 C 14.6969636666747 19.9881408931108 13.9718137190431 19.2722315992518 13.9603925164474 18.3817127467105 C 13.9603925164474 17.1427296875 15.4679750411184 15.4156110608553 15.5873327302632 14.5438893914474 Z " fill-rule="nonzero" fill="#208fee" stroke="none" transform="matrix(1 0 0 1 12 326 )" />
|
||||
</g>
|
||||
</svg>
|
||||
Loading…
Reference in New Issue