feat(): 主页修改
parent
670f8f7a33
commit
f41bf1d1e0
2
main.js
2
main.js
|
|
@ -8,7 +8,7 @@ import {
|
||||||
} from '@escook/request-miniprogram'
|
} from '@escook/request-miniprogram'
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
uni.$http = $http
|
uni.$http = $http
|
||||||
$http.baseUrl = 'http://local.gunshiiot.com:18083'
|
$http.baseUrl = 'http://223.75.53.141:83'
|
||||||
// 请求拦截器
|
// 请求拦截器
|
||||||
$http.beforeRequest = function (options) {
|
$http.beforeRequest = function (options) {
|
||||||
if (options.url.indexOf('/doLogin') == -1) {
|
if (options.url.indexOf('/doLogin') == -1) {
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@
|
||||||
getImgFlow(imgUrl) {
|
getImgFlow(imgUrl) {
|
||||||
if (imgUrl) {
|
if (imgUrl) {
|
||||||
uni.request({
|
uni.request({
|
||||||
url: 'http://local.gunshiiot.com:18083' +
|
url: 'http://223.75.53.141:83' +
|
||||||
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`,
|
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`,
|
||||||
responseType: 'arraybuffer',
|
responseType: 'arraybuffer',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
|
|
||||||
|
|
@ -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://223.75.53.141:83/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
|
|
||||||
getImgFlow(imgUrl) {
|
getImgFlow(imgUrl) {
|
||||||
uni.request({
|
uni.request({
|
||||||
url: 'http://local.gunshiiot.com:18083' +
|
url: 'http://223.75.53.141:83' +
|
||||||
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`,
|
`/gunshiApp/tsg/common/download/resource?resource=${imgUrl}`,
|
||||||
responseType: 'arraybuffer',
|
responseType: 'arraybuffer',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
|
|
||||||
|
|
@ -1,70 +1,162 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<u-navbar :title="name" :autoBack="true" :titleStyle="{
|
<u-navbar
|
||||||
fontSize:'18px'
|
:title="name"
|
||||||
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
|
:autoBack="true"
|
||||||
|
:titleStyle="{
|
||||||
|
fontSize: '18px',
|
||||||
|
}"
|
||||||
|
:height="44"
|
||||||
|
:safeAreaInsetTop="true"
|
||||||
|
leftIconSize="20"
|
||||||
|
leftIconColor="rgb(153, 153, 153)"
|
||||||
|
>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<view style="margin-top: 70px; padding: 10px;">
|
<view style="margin-top: 70px; padding: 10px">
|
||||||
<SlTable :tableData="slData" v-if="name == '渗流监测'"></SlTable>
|
<SlTable :tableData="slData" v-if="name == '渗流监测'"></SlTable>
|
||||||
<ZwyTable :tableData="zwyData" v-else-if="name == '主坝位移监测'"></ZwyTable>
|
<ZwyTable
|
||||||
<ZwyTable :tableData="zwyData" v-else-if="name == '溢洪道位移监测'"></ZwyTable>
|
:tableData="zwyData"
|
||||||
<ZwyTable :tableData="zwyData" v-else-if="name == '副坝位移监测'"></ZwyTable>
|
v-else-if="name == '主坝位移监测'"
|
||||||
<ZsyTable :tableData="zsyData" v-else-if="name == '主坝渗压监测'"></ZsyTable>
|
></ZwyTable>
|
||||||
<ZsyTable :tableData="sdData" v-else-if="name == '灌溉发电洞渗压监测'"></ZsyTable>
|
<ZwyTable
|
||||||
<ZsyTable :tableData="fbData" v-else-if="name == '副坝渗压监测'"></ZsyTable>
|
:tableData="zwyData"
|
||||||
<ZwyTable :tableData="zwyData" v-else-if="name == '灌溉发电洞变形监测'"></ZwyTable>
|
v-else-if="name == '溢洪道位移监测'"
|
||||||
|
></ZwyTable>
|
||||||
|
<ZwyTable
|
||||||
|
:tableData="zwyData"
|
||||||
|
v-else-if="name == '副坝位移监测'"
|
||||||
|
></ZwyTable>
|
||||||
|
<ZsyTable
|
||||||
|
:tableData="zsyData"
|
||||||
|
v-else-if="name == '主坝渗压监测'"
|
||||||
|
></ZsyTable>
|
||||||
|
<ZsyTable
|
||||||
|
:tableData="sdData"
|
||||||
|
v-else-if="name == '灌溉发电洞渗压监测'"
|
||||||
|
></ZsyTable>
|
||||||
|
<ZsyTable
|
||||||
|
:tableData="fbData"
|
||||||
|
v-else-if="name == '副坝渗压监测'"
|
||||||
|
></ZsyTable>
|
||||||
|
<ZwyTable
|
||||||
|
:tableData="zwyData"
|
||||||
|
v-else-if="name == '灌溉发电洞变形监测'"
|
||||||
|
></ZwyTable>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import SlTable from "./slTable.vue"
|
import SlTable from "./slTable.vue";
|
||||||
import ZwyTable from "./zwyTable.vue"
|
import ZwyTable from "./zwyTable.vue";
|
||||||
import ZsyTable from "./zsyTable.vue"
|
import ZsyTable from "./zsyTable.vue";
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components: {
|
||||||
SlTable,
|
SlTable,
|
||||||
ZwyTable,
|
ZwyTable,
|
||||||
ZsyTable
|
ZsyTable,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
slData:[], //渗流监测
|
slData: [], //渗流监测
|
||||||
zwyData:[],//主坝位移监测
|
zwyData: [], //主坝位移监测
|
||||||
zsyData:[],//主坝渗压监测
|
zsyData: [], //主坝渗压监测
|
||||||
sdData:[],//发电洞渗压监测
|
sdData: [], //发电洞渗压监测
|
||||||
fbData:[],//副坝渗压监测
|
fbData: [], //副坝渗压监测
|
||||||
name:'',
|
name: "",
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getSlData(){
|
filterStationsByCode(array, config) {
|
||||||
|
const { prefix, start, end, digitLength = 1 } = config;
|
||||||
|
console.log("array",array);
|
||||||
|
|
||||||
|
return array.filter((item) => {
|
||||||
|
if (!item.stationCode) return false;
|
||||||
|
|
||||||
|
const code = item.stationCode;
|
||||||
|
if (!code.startsWith(prefix)) return false;
|
||||||
|
|
||||||
|
const numStr = code.substring(prefix.length);
|
||||||
|
const num = parseInt(numStr);
|
||||||
|
|
||||||
|
// 检查数字部分的长度是否符合要求
|
||||||
|
if (digitLength > 1 && numStr.length !== digitLength) return false;
|
||||||
|
|
||||||
|
return num >= start && num <= end;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
async getSlData() {
|
||||||
try {
|
try {
|
||||||
const {data} = await uni.$http.get('/gunshiApp/tsg/osmoticPressR/list/value?type=2')
|
const { data } = await uni.$http.get(
|
||||||
if(data.code == 200){
|
"/gunshiApp/tsg/osmoticPressR/list/value?type=2"
|
||||||
|
);
|
||||||
|
if (data.code == 200) {
|
||||||
this.slData = data.data;
|
this.slData = data.data;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
uni.$showMsg();
|
uni.$showMsg();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getZwyData(){
|
async getZwyData() {
|
||||||
try {
|
try {
|
||||||
const {data} = await uni.$http.get('/gunshiApp/tsg/osmoticShiftR/list/value')
|
const { data } = await uni.$http.get(
|
||||||
if(data.code == 200){
|
"/gunshiApp/tsg/osmoticShiftR/list/value"
|
||||||
this.zwyData = data.data;
|
);
|
||||||
|
|
||||||
|
if (data.code == 200) {
|
||||||
|
let resData = [];
|
||||||
|
if (this.name == "主坝位移监测") {
|
||||||
|
resData = this.filterStationsByCode(data.data, {
|
||||||
|
prefix: "WY-",
|
||||||
|
start: 1,
|
||||||
|
end: 27,
|
||||||
|
digitLength: 2,
|
||||||
|
});
|
||||||
|
}else if(this.name == "溢洪道位移监测"){
|
||||||
|
const wy = this.filterStationsByCode(data.data, {
|
||||||
|
prefix: "WY-",
|
||||||
|
start: 28,
|
||||||
|
end: 31,
|
||||||
|
digitLength: 2,
|
||||||
|
});
|
||||||
|
const zy = this.filterStationsByCode(data.data, {
|
||||||
|
prefix: "ZY-",
|
||||||
|
start: 5,
|
||||||
|
end: 36,
|
||||||
|
digitLength: 2,
|
||||||
|
});
|
||||||
|
resData = [...wy,...zy]
|
||||||
|
}else if(this.name == "副坝位移监测"){
|
||||||
|
resData = this.filterStationsByCode(data.data, {
|
||||||
|
prefix: "ZY-",
|
||||||
|
start: 1,
|
||||||
|
end: 4,
|
||||||
|
digitLength: 2,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
resData = data.data.filter(item => item.stationCode == 'WY-32')
|
||||||
|
}
|
||||||
|
this.zwyData = resData;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
uni.$showMsg();
|
uni.$showMsg();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
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(
|
||||||
if(data.code == 200){
|
"/gunshiApp/tsg/osmoticPressR/list/value?type=1"
|
||||||
|
);
|
||||||
const zb = data.data.filter(item => item?.profileName?.split('+')[0] == 'ZB0')
|
if (data.code == 200) {
|
||||||
const fb = data.data.filter(item => item?.profileName?.split('+')[0] == 'FB0')
|
const zb = data.data.filter(
|
||||||
const sd = data.data.filter(item => item?.profileName?.split('+')[0] == 'SD0')
|
(item) => item?.profileName?.split("+")[0] == "ZB0"
|
||||||
|
);
|
||||||
|
const fb = data.data.filter(
|
||||||
|
(item) => item?.profileName?.split("+")[0] == "FB0"
|
||||||
|
);
|
||||||
|
const sd = data.data.filter(
|
||||||
|
(item) => item?.profileName?.split("+")[0] == "SD0"
|
||||||
|
);
|
||||||
this.zsyData = zb;
|
this.zsyData = zb;
|
||||||
this.fbData = fb;
|
this.fbData = fb;
|
||||||
this.sdData = sd;
|
this.sdData = sd;
|
||||||
|
|
@ -80,10 +172,9 @@ export default {
|
||||||
this.getzsyData();
|
this.getzsyData();
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.name=options.name
|
this.name = options.name;
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
fontSize:'18px'
|
fontSize:'18px'
|
||||||
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
|
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<u-tabs :list="list1" @click="click" :current="tabs" style="background-color: #fff;margin-top: 60px;"></u-tabs>
|
<view style="height:70px"></view>
|
||||||
|
<u-tabs :list="list1" @click="click" :current="tabs" style="background-color: #fff;"></u-tabs>
|
||||||
<Skjj v-if="tabs == 0" :skInfo="skInfo"></Skjj>
|
<Skjj v-if="tabs == 0" :skInfo="skInfo"></Skjj>
|
||||||
<Jcxx v-if="tabs == 1"></Jcxx>
|
<Jcxx v-if="tabs == 1"></Jcxx>
|
||||||
<!-- 基础信息 -->
|
<!-- 基础信息 -->
|
||||||
|
|
|
||||||
|
|
@ -94,16 +94,34 @@
|
||||||
this.list = selectData[e]
|
this.list = selectData[e]
|
||||||
if (e == 0) {
|
if (e == 0) {
|
||||||
this.keyObj = this.skInfo;
|
this.keyObj = this.skInfo;
|
||||||
} else if (e == 1 || e == 2 || e == 6) {
|
}else{
|
||||||
this.getDbData(e)
|
this.getOtherData()
|
||||||
} else if (e == 3) {
|
}
|
||||||
this.getyhdData()
|
// else if (e == 1 || e == 2 || e == 6) {
|
||||||
} else if (e == 4 || e == 5) {
|
// this.getDbData(e)
|
||||||
this.getfdData(e)
|
// } else if (e == 3) {
|
||||||
} else {
|
// this.getyhdData()
|
||||||
this.getfxdData(e)
|
// } else if (e == 4 || e == 5) {
|
||||||
|
// this.getfdData(e)
|
||||||
|
// } else {
|
||||||
|
// this.getfxdData(e)
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
async getOtherData() {
|
||||||
|
try {
|
||||||
|
const {
|
||||||
|
data
|
||||||
|
} = await uni.$http.get('/gunshiApp/tsg/attResBuilding/info')
|
||||||
|
if (data.code == 200) {
|
||||||
|
this.keyObj = data.data
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 主坝,副坝,拦洪坝
|
// 主坝,副坝,拦洪坝
|
||||||
async getDbData(e) {
|
async getDbData(e) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -126,18 +126,34 @@ export default {
|
||||||
mask: true,
|
mask: true,
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const { data } = await uni.$http.post("/gunshiApp/tsg/stWaterR/list", {
|
const { data } = await uni.$http.post(
|
||||||
stcd: this.stcd,
|
"/gunshiApp/tsg/stWaterRReorganize/list",
|
||||||
|
{
|
||||||
|
searchType: 1,
|
||||||
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"),
|
||||||
isAsc: false,
|
isAsc: false,
|
||||||
orderField: "tm",
|
orderField: "tm",
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
let newData = [];
|
||||||
this.tableData = [...data.data];
|
if (this.name == "灌溉供水") {
|
||||||
|
newData = data.data.map((item) => ({
|
||||||
|
...item,
|
||||||
|
v: item.ecologyV,
|
||||||
|
q: item.ecologyQ,
|
||||||
|
}));
|
||||||
|
} else {
|
||||||
|
newData = data.data.map((item) => ({
|
||||||
|
...item,
|
||||||
|
v: item.lifeV,
|
||||||
|
q: item.lifeQ,
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
this.tableData = [...newData];
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
uni.$showMsg();
|
uni.$showMsg();
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ export default function DrpOption(data,num) {
|
||||||
const maxS = Math.ceil(Math.max(...data?.map(s => s.v)));
|
const maxS = Math.ceil(Math.max(...data?.map(s => s.v)));
|
||||||
let eopts = {
|
let eopts = {
|
||||||
title: {
|
title: {
|
||||||
text: `时段总水量:${num.value}${num.unit}m³`,
|
text: `时段总水量:${num.value.toFixed(2)}${num.unit || '万'}m³`,
|
||||||
top: "0%",
|
top: "0%",
|
||||||
right: "12%",
|
right: "12%",
|
||||||
textStyle: {
|
textStyle: {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
export default {
|
export default {
|
||||||
0:[{
|
0:[{
|
||||||
name: "所在河流(水系)名称",
|
name: "所在河流(水系)名称",
|
||||||
key: "rvName"
|
key: "basName"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "倒水全流域面积(km²)",
|
name: "倒水全流域面积(km²)",
|
||||||
|
|
@ -101,166 +101,166 @@ export default {
|
||||||
1: [
|
1: [
|
||||||
{
|
{
|
||||||
name: "坝顶高程(m)",
|
name: "坝顶高程(m)",
|
||||||
key:"damTopElev"
|
key:"mainCrestElevation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "坝顶长度(m)",
|
name: "坝顶长度(m)",
|
||||||
key:"damTopLen"
|
key:"mainCrestLength"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "坝顶宽度(m)",
|
name: "坝顶宽度(m)",
|
||||||
key:"damTopWid"
|
key:"mainCrestWidth"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "最大坝高(m)",
|
name: "最大坝高(m)",
|
||||||
key:"damMaxHeig"
|
key:"mainMaxHeight"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
2: [
|
2: [
|
||||||
{
|
{
|
||||||
name: "坝顶高程(m)",
|
name: "坝顶高程(m)",
|
||||||
key:"damTopElev"
|
key:"auxCrestElevation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "坝顶长度(m)",
|
name: "坝顶长度(m)",
|
||||||
key:"damTopLen"
|
key:"auxCrestLength"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "坝顶宽度(m)",
|
name: "坝顶宽度(m)",
|
||||||
key:"damTopWid"
|
key:"auxCrestWidth"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "最大坝高(m)",
|
name: "最大坝高(m)",
|
||||||
key:"damMaxHeig"
|
key:"auxMaxHeight"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
3: [
|
3: [
|
||||||
{
|
{
|
||||||
name: "堰鼎样式",
|
name: "堰顶型式",
|
||||||
key:"crestType"
|
key:"spillwayCrestType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "地基特性",
|
name: "地基特性",
|
||||||
key:"foundCharacter"
|
key:"spillwayFoundation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "溢流堰顶高程(m)",
|
name: "溢流堰顶高程(m)",
|
||||||
key:"crestEle"
|
key:"spillwayCrestElevation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "溢流堰净宽(m)",
|
name: "溢流堰净宽(m)",
|
||||||
key:"netWidth"
|
key:"spillwayNetWidth"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "消能形式",
|
name: "消能形式",
|
||||||
key:"elimMethod"
|
key:"spillwayEnergyDissipation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "校验洪水下泄流量(m³/s)",
|
name: "校验洪水下泄流量(m³/s)",
|
||||||
key:"caliQ"
|
key:"spillwayCheckFloodDischarge"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "设计洪水下泄流量(m³/s)",
|
name: "设计洪水下泄流量(m³/s)",
|
||||||
key:"desQ"
|
key:"spillwayDesignFloodDischarge"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "消能防冲下泄流量(m³/s)",
|
name: "消能防冲下泄流量(m³/s)",
|
||||||
key:"elimQ"
|
key:"spillwayScouringDischarge"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
4: [
|
4: [
|
||||||
{
|
{
|
||||||
name: "型式",
|
name: "型式",
|
||||||
key:"buildType"
|
key:"irrigationType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "地基特性",
|
name: "地基特性",
|
||||||
key:"foundCharacter"
|
key:"irrigationFoundation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "进口地板高程(m)",
|
name: "进口地板高程(m)",
|
||||||
key:"inletEle"
|
key:"irrigationInletElevation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "断面尺寸(m)",
|
name: "断面尺寸(m)",
|
||||||
key:"sectionSize"
|
key:"irrigationCrossSection"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "洞长(m)",
|
name: "洞长(m)",
|
||||||
key:"tunnelLen"
|
key:"irrigationLength"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "设计流量(m³/s)",
|
name: "设计流量(m³/s)",
|
||||||
key:"desQ"
|
key:"irrigationDesignFlow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "进口闸门型式",
|
name: "进口闸门型式",
|
||||||
key:"valveType"
|
key:"irrigationGateType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "进口启闭机型式",
|
name: "进口启闭机型式",
|
||||||
key:"ocType"
|
key:"irrigationHoistType"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
5: [
|
5: [
|
||||||
{
|
{
|
||||||
name: "型式",
|
name: "型式",
|
||||||
key:"buildType"
|
key:"emptyingType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "衬砌型式",
|
name: "衬砌型式",
|
||||||
key:"liningType"
|
key:"emptyingLiningType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "地基特性",
|
name: "地基特性",
|
||||||
key:"foundCharacter"
|
key:"emptyingFoundation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "进口地板高程(m)",
|
name: "进口地板高程(m)",
|
||||||
key:"inletEle"
|
key:"emptyingInletElevation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "断面尺寸(m)",
|
name: "断面尺寸(m)",
|
||||||
key:"sectionSize"
|
key:"emptyingCrossSection"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "洞长(m)",
|
name: "洞长(m)",
|
||||||
key:"tunnelLen"
|
key:"emptyingLength"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "设计流量(m³/s)",
|
name: "设计流量(m³/s)",
|
||||||
key:"desQ"
|
key:"emptyingDesignFlow"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "进口闸门型式",
|
name: "进口闸门型式",
|
||||||
key:"valveType"
|
key:"emptyingGateType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "进口启闭机型式",
|
name: "进口启闭机型式",
|
||||||
key:"ocType"
|
key:"emptyingHoistType"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
6: [
|
6: [
|
||||||
{
|
{
|
||||||
name: "坝顶高程(m)",
|
name: "坝顶高程(m)",
|
||||||
key:"damTopElev"
|
key:"floodControlCrestElevation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "坝顶长度(m)",
|
name: "坝顶长度(m)",
|
||||||
key:"damTopLen"
|
key:"floodControlCrestLength"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "坝顶宽度(m)",
|
name: "坝顶宽度(m)",
|
||||||
key:"damTopWid"
|
key:"floodControlCrestWidth"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "最大坝高(m)",
|
name: "最大坝高(m)",
|
||||||
key:"damMaxHeig"
|
key:"floodControlMaxHeight"
|
||||||
}
|
}
|
||||||
],7: [
|
],7: [
|
||||||
{
|
{
|
||||||
name: "防汛路长度(m)",
|
name: "防汛路长度(m)",
|
||||||
key:"floodRoadLen"
|
key:"roadLength"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "路面宽度(m)",
|
name: "路面宽度(m)",
|
||||||
|
|
|
||||||
|
|
@ -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://223.75.53.141:83/gunshiApp/tsg/common/download/resource?resource=${this.info.url}`
|
||||||
downloadApp(baseUrl, current => {
|
downloadApp(baseUrl, current => {
|
||||||
//下载进度监听
|
//下载进度监听
|
||||||
this.hasProgress = true
|
this.hasProgress = true
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ export function numberFormat(value) {
|
||||||
param.unit = ''
|
param.unit = ''
|
||||||
} else {
|
} else {
|
||||||
i = Math.floor(Math.log(value) / Math.log(k));
|
i = Math.floor(Math.log(value) / Math.log(k));
|
||||||
param.value = ((value / Math.pow(k, i))).toFixed(2);
|
param.value = ((value / Math.pow(k, i))).toFixed(1);
|
||||||
param.unit = sizes[i];
|
param.unit = sizes[i];
|
||||||
}
|
}
|
||||||
console.log(param)
|
console.log(param)
|
||||||
|
|
|
||||||
|
|
@ -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://223.75.53.141:83/gunshiApp/tsg/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,8 @@
|
||||||
showTime1:false,
|
showTime1:false,
|
||||||
start: '请选择开始时间',
|
start: '请选择开始时间',
|
||||||
end: '请选择结束时间',
|
end: '请选择结束时间',
|
||||||
stm:moment().startOf('year').format('YYYY-MM-DD'),
|
stm:'',
|
||||||
etm:moment().format('YYYY-MM-DD'),
|
etm:'',
|
||||||
list: [
|
list: [
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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://223.75.53.141:83/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
|
|
|
||||||
|
|
@ -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://223.75.53.141:83/gunshiApp/tsg/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
|
|
|
||||||
|
|
@ -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://223.75.53.141:83/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
|
|
|
||||||
|
|
@ -497,7 +497,6 @@
|
||||||
this.getVideoList();
|
this.getVideoList();
|
||||||
this.getRainList();
|
this.getRainList();
|
||||||
this.getWaterList();
|
this.getWaterList();
|
||||||
console.log(wgs84ToGcj02(114.7632670,31.4934740))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue