feat(): 首页模块开发

master
李神峰 2025-01-16 17:35:42 +08:00
parent 9f9ded1a80
commit 0fa3c299f1
41 changed files with 463 additions and 351 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "檀树岗水库", "name" : "盐卡闸站",
"appid" : "__UNI__33ED56F", "appid" : "__UNI__B213959",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : 1, "versionCode" : 1,

View File

@ -3,7 +3,7 @@ import echarts from 'echarts/lib/echarts';
import moment from 'moment'; import moment from 'moment';
export default function DrpOption(data=[]) { 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 = { let eopts = {
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
@ -14,15 +14,16 @@ export default function DrpOption(data=[]) {
x2: 28, x2: 28,
y2: 36, y2: 36,
borderWidth: 0, borderWidth: 0,
top:"12%",
bottom: '10%', bottom: '10%',
left: '8%', left: '10%',
width: '90%', width: '90%',
}, },
calculable: true, calculable: true,
xAxis: [ xAxis: [
{ {
type: 'category', type: 'category',
data: data.map(o => moment(o.time).format("HH:mm")), data: data.map(o => moment(o.tm).format("HH:mm")),
splitLine: { splitLine: {
show: false show: false
}, },
@ -46,6 +47,7 @@ export default function DrpOption(data=[]) {
{ {
type: 'value', type: 'value',
position: 'left', position: 'left',
name:'面雨量(mm)',
splitLine: { splitLine: {
show: true, show: true,
lineStyle: { lineStyle: {
@ -84,7 +86,7 @@ export default function DrpOption(data=[]) {
name: '面雨量(mm)', name: '面雨量(mm)',
type: 'bar', type: 'bar',
barWidth: '60%', barWidth: '60%',
data: data.map(o => o.sumDrp), data: data.map(o => o.val),
itemStyle: { itemStyle: {
normal: { normal: {
color: "#6395f9" color: "#6395f9"

View File

@ -18,21 +18,6 @@
</div> </div>
</div> </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> </view>
<!-- nav --> <!-- nav -->
<view class="navBar" style="display: flex; flex-wrap: wrap"> <view class="navBar" style="display: flex; flex-wrap: wrap">
@ -53,14 +38,41 @@
</div> </div>
</div> </div>
</view> </view>
<view class="warn"> <view class="info_rain">
<sk-info /> <div class="heart" style="display: flex">
</view> <p class="title">
<view class="warn1" v-for="item in Ylzlist" :key="item.stnm"> <image
<ylz-list :item="item" /> :style="{ width: '20px', height: '20px', marginRight: '10px' }"
</view> src="../../static/tabs/rain.svg"
<view class="warn1" v-for="item in swzList" :key="item.stcd"> ></image
<SwzList :item="item" /> ><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>
<view <view
class="info_24" class="info_24"
@ -83,26 +95,34 @@
<script> <script>
import moment from "moment"; import moment from "moment";
import drpOption from './chartOption';
const warnStm = moment().subtract(1, "days").format("YYYY-MM-DD HH:mm:ss"); const warnStm = moment().subtract(1, "days").format("YYYY-MM-DD HH:mm:ss");
const warnetm = moment().format("YYYY-MM-DD HH:mm:ss"); const warnetm = moment().format("YYYY-MM-DD HH:mm:ss");
import SkInfo from "../skInfo/index.vue"; const stm = moment()
import YlzList from "../ylzList/index.vue"; .subtract(1, "days")
import SwzList from "../sws/index.vue"; .startOf("day")
let timer = null; .set({ hour: 8, minute: 0 });
const etm = moment().startOf("day").set({ hour: 8, minute: 0 });
export default { export default {
components: {
SkInfo,
YlzList,
SwzList,
},
data() { data() {
return { return {
Ylzlist: [],
userList: uni.getStorageSync("value"), userList: uni.getStorageSync("value"),
default_src: uni.getStorageSync("avatar"), default_src: uni.getStorageSync("avatar"),
messagelist: [], stm,
ylzList: [], etm,
swzList: [], 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, // warnStatus: false, //
}; };
}, },
@ -156,35 +176,73 @@ export default {
}, },
}, },
methods: { methods: {
getYlzList() { changeTime(params) {
uni.$http.post("/gunshiApp/tsg/stPptnRReal/list").then((res) => { switch (params) {
if (res.data.code == 200) { case 1:
this.Ylzlist = res.data.data; 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 uni.$http
.post("/gunshiApp/tsg/messageCenter/list", { .post("/gunshiApp/ykz/stPptnRReal/his/data", params)
start: "",
end: "",
})
.then((res) => { .then((res) => {
if (res.data.code == 200) { 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) { async setInsert(menu2) {
try { try {
@ -195,7 +253,7 @@ export default {
menu2: menu2 || "首页", menu2: menu2 || "首页",
}; };
const { data } = await uni.$http.post( const { data } = await uni.$http.post(
"/gunshiApp/tsg/visitMenuLog/insert", "/gunshiApp/ykz/visitMenuLog/insert",
params params
); );
} catch (error) {} } catch (error) {}
@ -204,7 +262,7 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: url, // url: url, //
}); });
this.setInsert(menu2); // this.setInsert(menu2);
}, },
// //
@ -244,24 +302,10 @@ export default {
}, },
}, },
onLoad() {
this.getYlzList();
},
onShow() { onShow() {
var that = this; // this.setInsert();
that.getList();
timer = setInterval(function () {
that.getList();
}, 10000);
this.setInsert();
this.getAllList(); this.getAllList();
this.getSwList(); this.getRainData();
},
onHide() {
clearInterval(timer);
timer = null;
}, },
}; };
</script> </script>
@ -274,6 +318,19 @@ export default {
background-color: #f3f5f8; background-color: #f3f5f8;
height: 100%; height: 100%;
overflow: auto; 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 { .info {
@ -362,7 +419,7 @@ export default {
// padding: 15px; // padding: 15px;
background-color: #fff; background-color: #fff;
// margin-bottom: 12rpx; // margin-bottom: 12rpx;
height: 100px; // height: 100px;
} }
.title .line { .title .line {

View File

@ -56,7 +56,7 @@
try { try {
const { const {
data data
} = await uni.$http.get("/gunshiApp/tsg/appVersionRecord/latest"); } = await uni.$http.get("/gunshiApp/ykz/appVersionRecord/latest");
if (data.code == 200) { if (data.code == 200) {
const selfVersionCode = uni.getSystemInfoSync().appWgtVersion //App const selfVersionCode = uni.getSystemInfoSync().appWgtVersion //App
const newVersionCode = data.data.version; //线 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({ uni.showLoading({
title: '努力登录中...', title: '努力登录中...',
mask: true mask: true
@ -131,7 +131,7 @@
if (res.data.token) { if (res.data.token) {
uni.setStorageSync('Gs-Token', 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) this.getImgFlow(res.data.user.avatar)
uni.setStorageSync('value', res.data.user) uni.setStorageSync('value', res.data.user)
setTimeout(function () { setTimeout(function () {
@ -159,7 +159,7 @@
if (imgUrl) { if (imgUrl) {
uni.request({ uni.request({
url: 'http://local.gunshiiot.com:18083' + url: 'http://local.gunshiiot.com:18083' +
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`, `/gunshiApp/ykz/common/download/resource?resource=${imgUrl}`,
responseType: 'arraybuffer', responseType: 'arraybuffer',
success: (res) => { success: (res) => {
// arraybufferBase64 // arraybufferBase64

View File

@ -59,7 +59,7 @@
}, },
methods: { methods: {
yd(item){ yd(item){
uni.$http.post('/gunshiApp/tsg/messageCenter/update',{...item,status:1}) uni.$http.post('/gunshiApp/ykz/messageCenter/update',{...item,status:1})
}, },
confirm(e) { confirm(e) {
console.log(e); console.log(e);

View File

@ -1,35 +1,65 @@
<template> <template>
<view :style="{height:'100vh',overflow:'hidden',backgroundColor: '#f0f0f0'}"> <view
:style="{ height: '100vh', overflow: 'hidden', backgroundColor: '#f0f0f0' }"
>
<u-status-bar></u-status-bar> <u-status-bar></u-status-bar>
<u-navbar title="消息中心" :autoBack="true" :titleStyle="{ <u-navbar
fontSize:'18px' title="消息中心"
:autoBack="true"
}" rightText="一键已读" @rightClick='rightClick' :height='44' :safeAreaInsetTop=true leftIconSize='20' :titleStyle="{
leftIconColor='rgb(153, 153, 153)'> fontSize: '18px',
}"
rightText="一键已读"
@rightClick="rightClick"
:height="44"
:safeAreaInsetTop="true"
leftIconSize="20"
leftIconColor="rgb(153, 153, 153)"
>
</u-navbar> </u-navbar>
<view class="" style="margin-top: 44px;;background-color: #f0f0f0;border-top: 1px solid #f0f0f0;"> <view
class=""
style="
margin-top: 44px;
background-color: #f0f0f0;
border-top: 1px solid #f0f0f0;
"
>
<view style="padding:0 10px,backgroundColor:#fff"> <view style="padding:0 10px,backgroundColor:#fff">
<view class="time-ranger" style="padding:10px;background-color: #fff;"> <view class="time-ranger" style="padding: 10px; background-color: #fff">
<view class="start-time"> <view class="start-time">
<text>开始时间</text> <text>开始时间</text>
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{startTime}}</text> <text
@click="showTime = true"
style="margin-left: 10%; color: #3399ef"
>{{ startTime }}</text
>
</view> </view>
<view class="end-time"> <view class="end-time">
<text>结束时间</text> <text>结束时间</text>
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{endTime}}</text> <text
<view class="search-btn" @click="searchTm"> @click="showTime1 = true"
搜索 style="margin: 0 10%; color: #3399ef"
>{{ endTime }}</text
>
<view class="search-btn" @click="searchTm"> </view>
</view> </view>
</view> </view>
</view> </view>
</view> <view
<view style="height:calc(100vh - 180px); overflow-y:auto;" v-if="list.length !== 0"> style="height: calc(100vh - 180px); overflow-y: auto"
<view class="" v-for="(item,index) in list" :key="index" style="margin: 10px;background-color: #fff;padding: 10px;" @click="toDetail(item)"> 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="item">
<view class="align-center"> <view class="align-center">
<view class="blueTiao"> <view class="blueTiao"> </view>
</view>
<view class="title"> <view class="title">
{{ item.title }} {{ item.title }}
</view> </view>
@ -43,107 +73,125 @@
<view class="itemC"> <view class="itemC">
{{ item.content }} {{ item.content }}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view <view
style="height:calc(100vh - 150px);display: flex;align-items: center;justify-content: center;background-color: #fff;" style="
v-else> height: calc(100vh - 150px);
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
"
v-else
>
<image src="../../static/empty.png" mode=""></image> <image src="../../static/empty.png" mode=""></image>
</view> </view>
</view> </view>
<u-datetime-picker :show="showTime" v-model="stm" mode="datetime" @confirm="showTime=false" <u-datetime-picker
:show="showTime"
v-model="stm"
mode="datetime"
@confirm="showTime = false"
:minDate="minDate" :minDate="minDate"
:maxDate="maxDate" :maxDate="maxDate"
@cancel="showTime=false"></u-datetime-picker> @cancel="showTime = false"
<u-datetime-picker :show="showTime1" v-model="etm" mode="datetime" @confirm="showTime1=false" ></u-datetime-picker>
<u-datetime-picker
:show="showTime1"
v-model="etm"
mode="datetime"
@confirm="showTime1 = false"
:minDate="minDate" :minDate="minDate"
:maxDate="maxDate" :maxDate="maxDate"
@cancel="showTime1=false"></u-datetime-picker> @cancel="showTime1 = false"
></u-datetime-picker>
</view> </view>
</template> </template>
<script> <script>
import moment from 'moment' import moment from "moment";
export default { export default {
data() { data() {
return { return {
minDate:moment().startOf('year').valueOf(), minDate: moment().startOf("year").valueOf(),
maxDate: moment().valueOf(), maxDate: moment().valueOf(),
show: false, show: false,
showTime: false, showTime: false,
showTime1: false, showTime1: false,
start: '请选择开始时间', start: "请选择开始时间",
end: '请选择结束时间', end: "请选择结束时间",
stm:'', stm: "",
etm:'', etm: "",
userList: uni.getStorageSync('value').data, userList: uni.getStorageSync("value").data,
list: [] list: [],
}; };
}, },
onShow(options) { onShow(options) {
this.getList() this.getList();
}, },
computed: { computed: {
startTime: function () { startTime: function () {
return this.stm?moment(this.stm).format('YYYY-MM-DD HH:mm:ss'):this.start return this.stm
? moment(this.stm).format("YYYY-MM-DD HH:mm:ss")
: this.start;
}, },
endTime: function () { endTime: function () {
return this.etm?moment(this.etm).format('YYYY-MM-DD HH:mm:ss'):this.end return this.etm
} ? moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
: this.end;
},
}, },
methods: { methods: {
rightClick() { rightClick() {
uni.$http.get('/gunshiApp/tsg/messageCenter/all/read', { uni.$http
receiveUserId: uni.getStorageSync('value').userId .get("/gunshiApp/ykz/messageCenter/all/read", {
}).then(res => { receiveUserId: uni.getStorageSync("value").userId,
if (res.data.code == 200) {
this.getList()
}
}) })
.then((res) => {
if (res.data.code == 200) {
this.getList();
}
});
}, },
searchTm() { searchTm() {
this.getList() this.getList();
}, },
getList() { getList() {
console.log(111); console.log(111);
uni.$http.post('/gunshiApp/tsg/messageCenter/list', { uni.$http
start:this.stm?moment(this.stm).format('YYYY-MM-DD HH:mm:ss'):'', .post("/gunshiApp/ykz/messageCenter/list", {
end:this.etm?moment(this.etm).format('YYYY-MM-DD HH:mm:ss'):'' start: this.stm ? moment(this.stm).format("YYYY-MM-DD HH:mm:ss") : "",
}).then(res => { end: this.etm ? moment(this.etm).format("YYYY-MM-DD HH:mm:ss") : "",
if (res.data.code == 200) {
this.list = res.data.data
}
}) })
.then((res) => {
if (res.data.code == 200) {
this.list = res.data.data;
}
});
}, },
confirm(e) { confirm(e) {
console.log(e); console.log(e);
this.model.start = e[0] this.model.start = e[0];
this.model.end = e[1] this.model.end = e[1];
this.show = false this.show = false;
}, },
cancel() { cancel() {
this.show = false this.show = false;
}, },
toDetail(item) { toDetail(item) {
console.log(item); console.log(item);
uni.navigateTo({ uni.navigateTo({
url: '/pages/messageList/detail/index?item=' + JSON.stringify(item), url: "/pages/messageList/detail/index?item=" + JSON.stringify(item),
}) });
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.uni-input-placeholder { .uni-input-placeholder {
text-align: center; text-align: center;
} }
@ -179,11 +227,11 @@
.title { .title {
border-width: 0px; border-width: 0px;
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑', sans-serif; font-family: "微软雅黑 Bold", "微软雅黑 Regular", "微软雅黑", sans-serif;
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
font-size: 15px; font-size: 15px;
color: #666666 color: #666666;
} }
.titleRight { .titleRight {
@ -200,11 +248,10 @@
box-shadow: none; box-shadow: none;
width: 58px; width: 58px;
height: 25px; height: 25px;
color: #689FFF; color: #689fff;
text-align: center; text-align: center;
} }
} }
} }
.contentItem { .contentItem {

View File

@ -64,7 +64,7 @@
// new_params.userId = uni.getStorageSync('value').userId // new_params.userId = uni.getStorageSync('value').userId
// console.log(formData) // 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); console.log(res);
if (res.data.code === 200) { if (res.data.code === 200) {
uni.showToast({ uni.showToast({

View File

@ -116,7 +116,7 @@
"isHandle": 1, "isHandle": 1,
"handleUserId": uni.getStorageSync('value').userId "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 this.list = res.data.data.records
}) })
}, },

View File

@ -49,7 +49,7 @@ export default {
submitForm(params) { submitForm(params) {
// //
console.log({...params,...this.formData}); 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){ if(res.data.code == 200){
uni.$u.toast('新增成功') uni.$u.toast('新增成功')
uni.navigateBack() uni.navigateBack()

View File

@ -116,7 +116,7 @@
end:this.etm?moment(this.etm).format('YYYY-MM-DD 23:59:59'):'' 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 this.dataList = res.data.data.records
}) })
}, },
@ -126,7 +126,7 @@
...params, ...params,
...this.formData ...this.formData
}); });
uni.$http.post('/gunshiApp/tsg/maintain/service/insert', { uni.$http.post('/gunshiApp/ykz/maintain/service/insert', {
...params, ...params,
...this.formData ...this.formData
}).then(res => { }).then(res => {

View File

@ -107,7 +107,7 @@ export default {
uploadFilePromise(url,name) { uploadFilePromise(url,name) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let a = uni.uploadFile({ 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, filePath: url,
name: 'file', name: 'file',
formData: { formData: {

View File

@ -94,7 +94,7 @@
try { try {
const { const {
data 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) { if (data.code == 200) {
this.xjItem = data.data this.xjItem = data.data
} }

View File

@ -123,7 +123,7 @@
statusList:[2] statusList:[2]
} }
try { 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]; this.list = [...res.data.data];
} catch (error) { } catch (error) {
uni.$showMsg(); uni.$showMsg();

View File

@ -72,7 +72,7 @@
console.log('--------拍照上传照片--------', res); console.log('--------拍照上传照片--------', res);
this.default_src = tempFilePaths[0] this.default_src = tempFilePaths[0]
uni.uploadFile({ uni.uploadFile({
url: uni.$http.baseUrl + '/gunshiApp/tsg/system/user/profile/avatar', url: uni.$http.baseUrl + '/gunshiApp/ykz/system/user/profile/avatar',
fileType: 'image', fileType: 'image',
filePath: tempFilePaths[0], filePath: tempFilePaths[0],
name: 'avatarfile', name: 'avatarfile',
@ -100,7 +100,7 @@
getImgFlow(imgUrl) { getImgFlow(imgUrl) {
uni.request({ uni.request({
url: 'http://local.gunshiiot.com:18083' + url: 'http://local.gunshiiot.com:18083' +
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`, `/gunshiApp/ykz/common/download/resource?resource=${imgUrl}`,
responseType: 'arraybuffer', responseType: 'arraybuffer',
success: (res) => { success: (res) => {
// arraybufferBase64 // arraybufferBase64
@ -153,7 +153,7 @@
new_userList.phonenumber = this.phone; new_userList.phonenumber = this.phone;
const const
{data} {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) { if (data.code == 200) {
uni.setStorageSync('value', new_userList) uni.setStorageSync('value', new_userList)
uni.reLaunch({ uni.reLaunch({

View File

@ -36,7 +36,7 @@ export default {
methods: { methods: {
async getSlData(){ async getSlData(){
try { 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){ if(data.code == 200){
this.slData = data.data; this.slData = data.data;
} }
@ -46,7 +46,7 @@ export default {
}, },
async getZwyData(){ async getZwyData(){
try { 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){ if(data.code == 200){
this.zwyData = data.data; this.zwyData = data.data;
} }
@ -56,7 +56,7 @@ export default {
}, },
async getzsyData(){ async getzsyData(){
try { 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){ if(data.code == 200){
this.zsyData = data.data; this.zsyData = data.data;
} }

View File

@ -112,7 +112,7 @@
async getTableData(){ async getTableData(){
try{ try{
const {data} = await uni.$http.get( const {data} = await uni.$http.get(
"/gunshiApp/tsg/reservoir/water/detail?stcd=716164061") "/gunshiApp/ykz/reservoir/water/detail?stcd=716164061")
if(data.code == 200){ if(data.code == 200){
this.tableData = {...data.data}; this.tableData = {...data.data};
} }

View File

@ -32,7 +32,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/resSafePersonB/list", { "/gunshiApp/ykz/resSafePersonB/list", {
resCode: "42120250085" resCode: "42120250085"
}) })
if (data.code == 200) { if (data.code == 200) {

View File

@ -64,7 +64,7 @@
this.tabs = item.index; this.tabs = item.index;
}, },
getList(){ 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'); console.log(res,'res');
this.skInfo = res.data.data[0]; this.skInfo = res.data.data[0];
}) })

View File

@ -151,7 +151,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/reservoir/water/real/img", { "/gunshiApp/ykz/reservoir/water/real/img", {
resCode: "42120250085" resCode: "42120250085"
}) })
if (data.code == 200) { if (data.code == 200) {
@ -175,7 +175,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/reservoir/water/list") "/gunshiApp/ykz/reservoir/water/list")
if (data.code == 200) { if (data.code == 200) {
this.info = data.data[0] this.info = data.data[0]
} }
@ -189,7 +189,7 @@
const { const {
data data
} = await uni.$http.get( } = await uni.$http.get(
"/gunshiApp/tsg/reservoir/water/detail?stcd=716164061") "/gunshiApp/ykz/reservoir/water/detail?stcd=716164061")
if (data.code == 200) { if (data.code == 200) {
this.rainInfo = data.data; this.rainInfo = data.data;
} }
@ -204,7 +204,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/reservoir/water/monitor/data", { "/gunshiApp/ykz/reservoir/water/monitor/data", {
stcd: "716164061", stcd: "716164061",
stm: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"), stm: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
etm: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"), etm: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),

View File

@ -37,7 +37,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/stZvarlB/list", { "/gunshiApp/ykz/stZvarlB/list", {
stcd: "716164061" stcd: "716164061"
}) })
if (data.code == 200) { if (data.code == 200) {

View File

@ -109,7 +109,7 @@
try { try {
const { const {
data data
} = await uni.$http.post('/gunshiApp/tsg/attDamBase/list') } = await uni.$http.post('/gunshiApp/ykz/attDamBase/list')
if (data.code == 200) { if (data.code == 200) {
if (e == 1) { if (e == 1) {
this.keyObj = data.data.find(item => item.isMain == 1) this.keyObj = data.data.find(item => item.isMain == 1)
@ -128,7 +128,7 @@
try { try {
const { const {
data data
} = await uni.$http.post('/gunshiApp/tsg/attSpillwayBase/list') } = await uni.$http.post('/gunshiApp/ykz/attSpillwayBase/list')
if (data.code == 200) { if (data.code == 200) {
this.keyObj = data.data[0] this.keyObj = data.data[0]
} }
@ -142,7 +142,7 @@
const params = e == 5 ? 1 : 2; const params = e == 5 ? 1 : 2;
const { const {
data 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) { if (data.code == 200) {
this.keyObj = data.data[0] this.keyObj = data.data[0]
} }
@ -155,7 +155,7 @@
try { try {
const { const {
data data
} = await uni.$http.post('/gunshiApp/tsg/resFloodRoad/list') } = await uni.$http.post('/gunshiApp/ykz/resFloodRoad/list')
if (data.code == 200) { if (data.code == 200) {
this.keyObj = data.data[0] this.keyObj = data.data[0]
} }

View File

@ -86,16 +86,16 @@
}); });
}, },
getDrp(){ 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} 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.dataform={...this.dataform,...res.data.data[0]}
this.tm = res.data.data[0].tm 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=>{ res.data.data.forEach(item=>{
if(item.sttp == 'QQ'){ if(item.sttp == 'QQ'){
this.stgs=item.q 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=>{ res.data.data.forEach(item=>{
if(item.projType == 1){ if(item.projType == 1){
this.imageList = item.files.map((item,index)=> this.imageList = item.files.map((item,index)=>
@ -134,7 +134,7 @@
}) })
}, },
getList(){ 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] this.dataform=res.data.data[0]
}) })
}, },

View File

@ -85,7 +85,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/stWaterR/list", { "/gunshiApp/ykz/stWaterR/list", {
stcd: this.stcd, stcd: this.stcd,
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"), startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"), endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),

View File

@ -58,7 +58,7 @@
}, },
async getVideoList(){ async getVideoList(){
try { 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){ if(data.code == 200){
this.videoList = data.data this.videoList = data.data
} }

View File

@ -74,7 +74,7 @@ export default {
async getVideoSrc(id){ async getVideoSrc(id){
try{ try{
const {data} = await uni.$http.get( const {data} = await uni.$http.get(
`/gunshiApp/tsg/attCctvBase/preview/${id}`) `/gunshiApp/ykz/attCctvBase/preview/${id}`)
if(data.code == 200){ if(data.code == 200){
this.webURL="./static/h5Player/webplayer.html?cameraIndexCode="+id+"&cameraUrl="+data.data this.webURL="./static/h5Player/webplayer.html?cameraIndexCode="+id+"&cameraUrl="+data.data
} }
@ -90,7 +90,7 @@ export default {
speed:30 speed:30
} }
try{ 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) if(this.timer) clearTimeout(this.timer)
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
this.onOperation1(type) this.onOperation1(type)
@ -107,7 +107,7 @@ export default {
speed:30 speed:30
} }
try{ 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){ }catch(error){
uni.$showMsg() uni.$showMsg()
} }

View File

@ -127,7 +127,7 @@
const endTime = moment(this.etm).format("YYYY-MM-DD HH:mm:ss"); const endTime = moment(this.etm).format("YYYY-MM-DD HH:mm:ss");
try{ try{
const {data} = await uni.$http.get( 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){ if(data.code == 200){
this.stData = { this.stData = {
...this.stData, ...this.stData,
@ -143,7 +143,7 @@
async getJcsjData(){ async getJcsjData(){
try{ try{
const {data} = await uni.$http.post( 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"), startTime:moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
endTime:moment(this.etm).format("YYYY-MM-DD HH:mm:ss"), endTime:moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),

View File

@ -86,7 +86,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/reservoir/water/monitor/data", { "/gunshiApp/ykz/reservoir/water/monitor/data", {
stcd: this.stcd, stcd: this.stcd,
stm: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"), stm: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
etm: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"), etm: moment(this.etm).format("YYYY-MM-DD HH:mm:ss"),

View File

@ -86,7 +86,7 @@
if (this.info.url) { if (this.info.url) {
this.isStartDownload = true this.isStartDownload = true
//App //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 => { downloadApp(baseUrl, current => {
// //
this.hasProgress = true this.hasProgress = true

View File

@ -149,7 +149,7 @@
return; return;
}else{ }else{
console.log(this.queItem); 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); uni.$showMsg(res.data.description);
if(res.data.code == 200){ if(res.data.code == 200){
uni.navigateBack() uni.navigateBack()
@ -195,7 +195,7 @@
uploadFilePromise(url, name) { uploadFilePromise(url, name) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let a = uni.uploadFile({ 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, filePath: url,
name: 'file', name: 'file',
formData: { formData: {

View File

@ -113,7 +113,7 @@
"handleUserId": uni.getStorageSync('value').userId "handleUserId": uni.getStorageSync('value').userId
} }
console.log(params,'dsd'); 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 this.list=res.data.data.records
}) })
}, },

View File

@ -142,7 +142,7 @@
uploadFilePromise(url,name) { uploadFilePromise(url,name) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let a = uni.uploadFile({ 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, filePath: url,
name: 'file', name: 'file',
formData: { formData: {

View File

@ -50,7 +50,7 @@ export default {
submitForm(params) { submitForm(params) {
// //
console.log({...params,...this.formData}); 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){ if(res.data.code == 200){
// uni.$u.toast('') // uni.$u.toast('')
uni.$u.toast('新增成功') uni.$u.toast('新增成功')

View File

@ -206,8 +206,8 @@
return treelist return treelist
}, },
async getTreeList (){ async getTreeList (){
const res = await uni.$http.get('/gunshiApp/tsg/system/dept/list') const res = await uni.$http.get('/gunshiApp/ykz/system/dept/list')
const resUser = await uni.$http.get('/gunshiApp/tsg/system/user/list?pageNum=1&pageSize=9999') const resUser = await uni.$http.get('/gunshiApp/ykz/system/user/list?pageNum=1&pageSize=9999')
this.deptUserList = resUser.data.rows this.deptUserList = resUser.data.rows
if (res.data.data?.length > 0 && resUser.data.rows?.length > 0) { if (res.data.data?.length > 0 && resUser.data.rows?.length > 0) {
// return this.handleTreeList(res.data.data,res.data.rows) // return this.handleTreeList(res.data.data,res.data.rows)
@ -261,7 +261,7 @@
console.log(params); console.log(params);
const { const {
data 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'); console.log(data,'2121');
if(data.code==200){ if(data.code==200){
uni.$showMsg('提交成功'); uni.$showMsg('提交成功');
@ -370,7 +370,7 @@
uploadFilePromise(url, name, index, index1) { uploadFilePromise(url, name, index, index1) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let a = uni.uploadFile({ 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, filePath: url,
name: 'file', name: 'file',
formData: { formData: {

View File

@ -107,7 +107,7 @@ export default {
uploadFilePromise(url,name) { uploadFilePromise(url,name) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let a = uni.uploadFile({ 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, filePath: url,
name: 'file', name: 'file',
formData: { formData: {

View File

@ -95,7 +95,7 @@
if (this.status == 0) { if (this.status == 0) {
const { const {
data 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) { if (data.code == 200) {
this.btnStatus = 1; this.btnStatus = 1;
this.getXjItem(this.id) this.getXjItem(this.id)
@ -115,7 +115,7 @@
try { try {
const { const {
data 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) { if (data.code == 200) {
this.xjItem = data.data this.xjItem = data.data
} }
@ -151,7 +151,7 @@
try { try {
const { const {
data data
} = await uni.$http.post(`/gunshiApp/tsg/inspectTaskTrack/insert`, { } = await uni.$http.post(`/gunshiApp/ykz/inspectTaskTrack/insert`, {
taskId: this.id, taskId: this.id,
lttd: latitude, lttd: latitude,
lgtd: longitude lgtd: longitude

View File

@ -116,7 +116,7 @@
statusList: [0, 1] statusList: [0, 1]
} }
try { 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]; this.list = [...res.data.data];
} catch (error) { } catch (error) {
uni.$showMsg(); uni.$showMsg();

View File

@ -134,7 +134,7 @@ export default {
}, },
getList() { getList() {
uni.$http uni.$http
.post("/gunshiApp/tsg/stQxWarnR/home/warn", this.model) .post("/gunshiApp/ykz/stQxWarnR/home/warn", this.model)
.then((res) => { .then((res) => {
this.list = res.data.data; this.list = res.data.data;
}); });

View File

@ -115,7 +115,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/attResBase/rainBasinDivision/queryStStbprpPerHour/StcdAndStartTimeAndEndTime", { "/gunshiApp/ykz/attResBase/rainBasinDivision/queryStStbprpPerHour/StcdAndStartTimeAndEndTime", {
stcd: this.stcd, stcd: this.stcd,
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"), startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss") endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
@ -134,7 +134,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/attResBase/rainBasinDivision/queryStStbprpPerHourChart/StcdAndStartTimeAndEndTime", { "/gunshiApp/ykz/attResBase/rainBasinDivision/queryStStbprpPerHourChart/StcdAndStartTimeAndEndTime", {
stcd: "61610700", stcd: "61610700",
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"), startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss") endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
@ -170,7 +170,7 @@
const { const {
data data
} = await uni.$http.post( } = await uni.$http.post(
"/gunshiApp/tsg/weather/short/fore", { "/gunshiApp/ykz/weather/short/fore", {
tm: moment(this.projectTime).format('YYYYMMDDHHmm') tm: moment(this.projectTime).format('YYYYMMDDHHmm')
}) })
if (data.code == 200) { if (data.code == 200) {

View File

@ -102,7 +102,7 @@
async getTableData(){ async getTableData(){
try{ try{
const {data} = await uni.$http.get( 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){ if(data.code == 200){
this.tableData = {...data.data}; this.tableData = {...data.data};
} }

View File

@ -389,7 +389,7 @@
try { try {
const { const {
data data
} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/list") } = await uni.$http.post("/gunshiApp/ykz/attCctvBase/list")
if (data.code == 200) { if (data.code == 200) {
const videoList = data.data.map(item => ({ const videoList = data.data.map(item => ({
...item, ...item,
@ -414,7 +414,7 @@
try { try {
const { const {
data 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'), stm: moment().add(-1, 'days').format('YYYY-MM-DD 08:00:00'),
etm: moment(moment().format('YYYY-MM-DD 08:00:00')) etm: moment(moment().format('YYYY-MM-DD 08:00:00'))
}) })
@ -443,7 +443,7 @@
try { try {
const { const {
data data
} = await uni.$http.post("/gunshiApp/tsg/reservoir/water/list", ) } = await uni.$http.post("/gunshiApp/ykz/reservoir/water/list", )
if (data.code == 200) { if (data.code == 200) {
const waterList = data.data.map(item => ({ const waterList = data.data.map(item => ({
...item, ...item,

6
static/tabs/rain.svg Normal file
View File

@ -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>