diff --git a/App.vue b/App.vue
index 3069563..7d3e0ab 100644
--- a/App.vue
+++ b/App.vue
@@ -89,4 +89,21 @@
display: flex;
justify-content: space-between;
}
+
+ .time-ranger {
+ margin-bottom: 10px;
+
+ .start-time,
+ .end-time {
+ display: flex;
+ align-items: center;
+ padding: 10px 0;
+ border-bottom: 1px solid #dfdfdf;
+ }
+
+ .search-btn {
+ margin: 3px 0 0 5px;
+ // color: #3399ef;
+ }
+ }
diff --git a/manifest.json b/manifest.json
index a86662d..498a326 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
- "name" : "小玉潭水库",
- "appid" : "__UNI__7573222",
+ "name" : "檀树岗水库",
+ "appid" : "__UNI__33ED56F",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : 1,
diff --git a/pages.json b/pages.json
index 2119879..2b6cb13 100644
--- a/pages.json
+++ b/pages.json
@@ -198,8 +198,13 @@
"style": {
"navigationBarTitleText": ""
}
+ },
+ {
+ "path": "pages/sws/detail/index",
+ "style": {
+ "navigationBarTitleText": ""
+ }
}
-
],
"usingComponents": {
"map": "/uni_modules/@dcloudio/uni-map/components/uni-map/uni-map"
diff --git a/pages/aqjc/index.vue b/pages/aqjc/index.vue
index 86f66eb..8301244 100644
--- a/pages/aqjc/index.vue
+++ b/pages/aqjc/index.vue
@@ -34,7 +34,7 @@
-
-
+
@@ -244,7 +244,7 @@
const {
data
} = await uni.$http.post(
- `/gunshiApp/xyt/attDamProfile/list`, )
+ `/gunshiApp/tsg/attDamProfile/list`, )
if (data.code == 200) {
this.array = data.data
this.profileCode = data.data[0].profileCode;
@@ -260,7 +260,7 @@
const {
data
} = await uni.$http.post(
- "/gunshiApp/xyt/osmoticPressR/infiltra/line", {
+ "/gunshiApp/tsg/osmoticPressR/infiltra/line", {
stationCodes: this.trData,
dateTimeRangeSo: {
start: moment(this.stm).format("YYYY-MM-DD HH:mm:00"),
@@ -301,11 +301,7 @@
...obj,
}
})
- let res1 = result.map(item => ({
- ...item,
- rz: (item.rz - 100).toFixed(2)
- })) //为了测试 最后需要删除
- this.dataSources = [...res1];
+ this.dataSources = [...result];
}
} catch (error) {
uni.$showMsg();
@@ -316,7 +312,7 @@
try {
const {
data
- } = await uni.$http.post("/gunshiApp/xyt/attDamProfile/tree")
+ } = await uni.$http.post("/gunshiApp/tsg/attDamProfile/tree")
if (data.code == 200) {
console.log("data", data);
@@ -365,25 +361,6 @@
.jcsj-box {
padding: 0 10px;
- .time-ranger {
- // display: flex;
- // align-items: center;
- margin-bottom: 10px;
-
- .start-time,
- .end-time {
- display: flex;
- align-items: center;
- padding: 10px 0;
- border-bottom: 1px solid #dfdfdf;
- }
-
- .search-btn {
- margin: 3px 0 0 5px;
- // color: #3399ef;
- }
- }
-
.jcsj-content {
max-height: 100vh;
width: 100%;
diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue
index f948f63..04b5a09 100644
--- a/pages/homeIndex/index.vue
+++ b/pages/homeIndex/index.vue
@@ -29,8 +29,7 @@
{{ item.value }}
@@ -43,6 +42,9 @@
+
+
+
@@ -53,17 +55,17 @@
\ No newline at end of file
diff --git a/pages/skDetail/tjsj/tjsj.vue b/pages/skDetail/tjsj/tjsj.vue
index f7a4880..421b451 100644
--- a/pages/skDetail/tjsj/tjsj.vue
+++ b/pages/skDetail/tjsj/tjsj.vue
@@ -112,7 +112,7 @@
async getTableData(){
try{
const {data} = await uni.$http.get(
- "/gunshiApp/xyt/reservoir/water/detail?stcd=716164061")
+ "/gunshiApp/tsg/reservoir/water/detail?stcd=716164061")
if(data.code == 200){
this.tableData = {...data.data};
}
diff --git a/pages/skDetail/zrtx/card.vue b/pages/skDetail/zrtx/card.vue
index 7a1e407..70237b9 100644
--- a/pages/skDetail/zrtx/card.vue
+++ b/pages/skDetail/zrtx/card.vue
@@ -102,7 +102,7 @@
.zrtx-box{
border: 1px solid #c1f2ce;
border-radius: 2px;
- padding:10px 10px 5px 10px;
+ padding:10px 5px 12px 5px;
background-color: #ebfbef;
margin-bottom: 10px;
.table_div {
@@ -128,7 +128,7 @@
}
.table_cur tr {
display: flex;
- line-height: 65rpx;
+ // line-height: 65rpx;
}
.table_cur th {
height: 65rpx;
diff --git a/pages/skDetail/zrtx/zrtx.vue b/pages/skDetail/zrtx/zrtx.vue
index 88e2ba0..561329b 100644
--- a/pages/skDetail/zrtx/zrtx.vue
+++ b/pages/skDetail/zrtx/zrtx.vue
@@ -23,7 +23,7 @@
async getData(){
try{
const {data} = await uni.$http.post(
- "/gunshiApp/xyt/resSafePersonB/list",
+ "/gunshiApp/tsg/resSafePersonB/list",
{
resCode:"42120250085"
})
diff --git a/pages/skInfo/detail/basicInfo.vue b/pages/skInfo/detail/basicInfo.vue
index e47c78a..97123e7 100644
--- a/pages/skInfo/detail/basicInfo.vue
+++ b/pages/skInfo/detail/basicInfo.vue
@@ -1,12 +1,12 @@
-
+
+
工程概况:
{{skInfo.projOverview}}
+
+
+ 水库水位定位信息
+
+
+ {{skInfo.resLoc}}
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/skInfo/detail/krqx/index.vue b/pages/skInfo/detail/krqx/index.vue
index c9955a2..c5f0227 100644
--- a/pages/skInfo/detail/krqx/index.vue
+++ b/pages/skInfo/detail/krqx/index.vue
@@ -28,7 +28,9 @@ export default {
async getKrData(){
try {
const {data} = await uni.$http.post(
- "/gunshiApp/xyt/stZvarlB/list")
+ "/gunshiApp/tsg/stZvarlB/list",{
+ stcd:"716164061"
+ })
if(data.code == 200){
this.tableData = [...data.data];
diff --git a/pages/skInfo/detail/tzcs.vue b/pages/skInfo/detail/tzcs.vue
index fe4f9e5..cce7a30 100644
--- a/pages/skInfo/detail/tzcs.vue
+++ b/pages/skInfo/detail/tzcs.vue
@@ -1,119 +1,128 @@
-
-
-
-
-
-
- {{item.name}}
- {{item.value||"-"}}
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+ {{item.value||"-"}}
+
-
+
\ No newline at end of file
diff --git a/pages/skInfo/index.vue b/pages/skInfo/index.vue
index 2c003e8..57f842d 100644
--- a/pages/skInfo/index.vue
+++ b/pages/skInfo/index.vue
@@ -63,7 +63,7 @@
shStcd:'',
imageList:[],
baseUrl:'http://223.75.53.141:9102/test.by-lyf.tmp',
- showImg:''
+ showImg:'../../static/empty.png'
}
},
@@ -87,16 +87,16 @@
});
},
getDrp(){
- uni.$http.get('/gunshiApp/xyt/reservoir/water/detail?stcd=716164061&_=1731028927554').then(res=>{
+ uni.$http.get('/gunshiApp/tsg/reservoir/water/detail?stcd=716164061&_=1731028927554').then(res=>{
this.dataform={...this.dataform,...res.data.data}
})
- uni.$http.post('/gunshiApp/xyt/reservoir/water/list').then(res=>{
+ uni.$http.post('/gunshiApp/tsg/reservoir/water/list').then(res=>{
this.dataform={...this.dataform,...res.data.data[0]}
this.tm = res.data.data[0].tm
})
- uni.$http.post('/gunshiApp/xyt/stWaterRReal/list').then(res=>{
+ uni.$http.post('/gunshiApp/tsg/stWaterRReal/list').then(res=>{
res.data.data.forEach(item=>{
if(item.sttp == 'QQ'){
this.stgs=item.q
@@ -108,11 +108,12 @@
}
})
})
- uni.$http.post('/gunshiApp/xyt/resProjectImg/list',{resCode:42120250085}).then(res=>{
+ uni.$http.post('/gunshiApp/tsg/resProjectImg/list',{resCode:42120250085}).then(res=>{
res.data.data.forEach(item=>{
if(item.projType == 1){
this.imageList = item.files.map((item,index)=>
- {item.url = this.baseUrl + item.filePath
+ {
+ item.url = this.baseUrl + item.filePath
if(index == 0){
this.showImg = item.url
@@ -134,7 +135,7 @@
})
},
getList(){
- uni.$http.post('/gunshiApp/xyt/attResBase/list').then(res=>{
+ uni.$http.post('/gunshiApp/tsg/attResBase/list').then(res=>{
this.dataform=res.data.data[0]
})
},
@@ -167,6 +168,7 @@
height: 22px;
.item-text{
width: 50%;
+ white-space: nowrap;
}
}
}
@@ -180,5 +182,8 @@
.withd-2{
width: 50%;
text-align: center;
+ background-color: #caf982;
+ margin-right: 5px;
+ padding: 5px;
}
\ No newline at end of file
diff --git a/pages/skInfo/waterDatail/index.vue b/pages/skInfo/waterDatail/index.vue
index 28cf75a..6b7181b 100644
--- a/pages/skInfo/waterDatail/index.vue
+++ b/pages/skInfo/waterDatail/index.vue
@@ -85,7 +85,7 @@
const {
data
} = await uni.$http.post(
- "/gunshiApp/xyt/stWaterR/list", {
+ "/gunshiApp/tsg/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"),
diff --git a/pages/spjk/index.vue b/pages/spjk/index.vue
index 56eabe8..9df3a0b 100644
--- a/pages/spjk/index.vue
+++ b/pages/spjk/index.vue
@@ -58,7 +58,7 @@
},
async getVideoList(){
try {
- const {data} = await uni.$http.post("/gunshiApp/xyt/attCctvBase/list")
+ const {data} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/list")
if(data.code == 200){
this.videoList = data.data
}
diff --git a/pages/spjk/spbf/index.vue b/pages/spjk/spbf/index.vue
index 0ed128d..204f36c 100644
--- a/pages/spjk/spbf/index.vue
+++ b/pages/spjk/spbf/index.vue
@@ -74,7 +74,7 @@ export default {
async getVideoSrc(id){
try{
const {data} = await uni.$http.get(
- `/gunshiApp/xyt/attCctvBase/preview/${id}`)
+ `/gunshiApp/tsg/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/xyt/attCctvBase/control",params)
+ const {data} = await uni.$http.post("/gunshiApp/tsg/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/xyt/attCctvBase/control",params)
+ const {data} = await uni.$http.post("/gunshiApp/tsg/attCctvBase/control",params)
}catch(error){
uni.$showMsg()
}
diff --git a/pages/staticData.js b/pages/staticData.js
new file mode 100644
index 0000000..92d183e
--- /dev/null
+++ b/pages/staticData.js
@@ -0,0 +1,115 @@
+
+
+export default {
+ 0:[{
+ name: "所在河流(水系)名称",
+ key: "rvName"
+ },
+ {
+ name: "倒水全流域面积(km²)",
+ key: "rvName"
+ },
+
+ {
+ name: "坝址以上流域面积(km²)",
+ key: "watShedArea"
+ },
+ {
+ name: "坝址以上主河床长度(km)",
+ key: "watShedArea"
+ },
+ {
+ name: "坝址以上主河床长度(‰)",
+ key: "watShedArea"
+ },
+ {
+ name: "多处平均降雨量(mm)",
+ key: "watShedArea"
+ },
+ {
+ name: "设计洪水标准及洪峰流量(m³/s)",
+ key: "watShedArea"
+ },
+ {
+ name: "校核洪水标准及洪峰流量(m³/s)",
+ key: "watShedArea"
+ },
+
+ {
+ name: "校核洪水位(m)",
+ key: "calFloodLev"
+ },
+ {
+ name: "设计洪水位(m)",
+ key: "desFloodLev"
+ },
+ {
+ name: "正常蓄水位(m)",
+ key: "normWatLev"
+ },
+ {
+ name: "死水位(m)",
+ key: "deadLev"
+ },
+ {
+ name: "汛期限制水位(m)",
+ key: "flLowLimLev"
+ },
+ {
+ name: "总库容(万m³)",
+ key: "totCap"
+ },
+
+ {
+ name: "调洪库容(万m³)",
+ key: "storFlCap"
+ },
+
+ {
+ name: "兴利库容(万m³)",
+ key: "benResCap"
+ },
+ // {
+ // name: "防洪高水位(m)",
+ // key: "uppLevFlco"
+ // },
+ // {
+ // name: "防洪库容(万m³)",
+ // key: "flcoCap"
+ // },
+ {
+ name: "死库容(万m³)",
+ key: "deadCap"
+ },
+
+ {
+ name: "工程规模",
+ key: "engScal"
+ },
+ {
+ name: "设计灌溉面积(万亩)",
+ key: 'designIrrArea'
+ },
+ {
+ name: "保护人口(万)",
+ key: 'designIrrArea'
+ },
+ {
+ name: "保护农田(万亩)",
+ key: 'designIrrArea'
+ },
+ {
+ name: "地震基本烈度",
+ key: 'designIrrArea'
+ },
+ {
+ name: "地震动参数设计值",
+ key: 'designIrrArea'
+ },
+
+ // {
+ // name: "堰顶高程(m)",
+ // key: "wcrstel"
+ // },
+]
+}
\ No newline at end of file
diff --git a/pages/stlljk/chartOption.js b/pages/stlljk/chartOption.js
index cb7f9fe..9f08ce0 100644
--- a/pages/stlljk/chartOption.js
+++ b/pages/stlljk/chartOption.js
@@ -70,7 +70,7 @@ export default function drpOption (obj) {
{
type: 'category',
data: data.map(o => o.tm),
- // inverse: true,
+ inverse: true,
splitLine: {
show: false
},
diff --git a/pages/stlljk/index.vue b/pages/stlljk/index.vue
index db604dc..dd22449 100644
--- a/pages/stlljk/index.vue
+++ b/pages/stlljk/index.vue
@@ -31,7 +31,7 @@
-
+
@@ -39,6 +39,11 @@
+
+
+
obj.drp))
+ const maxSw = Math.ceil(Math.max(...data.map(obj => obj.rz)))
+ const minSw = Math.floor(Math.min(...data.map(obj => obj.rz)))
+ const maxKr = Math.max(...data.map(obj => obj.w))
+ const minKr = Math.min(...data.map(obj => obj.w))
+ let eopts = {
+ tooltip: {
+ trigger: 'axis',
+ },
+ grid: {
+ bottom: "8%",
+ left: "10%",
+ right: "8%",
+ width: '80%',
+ height: '80%'
+ },
+ legend: {
+ // 显示图例
+ show: false,
+ },
+ xAxis: [
+ {
+ type: 'category',
+ data: data.map(o => o.tm.substr("2020-".length,11)),
+ inverse: true,
+ splitLine: {
+ show: false
+ },
+ axisLabel: {
+ color: '#333',
+ fontSize: 12,
+ formatter: val => val.substr('2020-'.length, 11)
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#07a6ff',
+ width: 0.5
+ }
+ },
+ axisTick: {
+ show: false
+ }
+ }
+ ]
+
+ ,
+ yAxis: [
+ {
+ type: 'value',
+ position: 'left',
+ name: '水位(m)',
+ splitLine: {
+ show: true,
+ lineStyle: {
+ color: '#07a6ff',
+ width: 0.25,
+ type: 'dotted'
+ }
+ },
+ axisLabel: {
+ color: '#333',
+ fontSize: 12
+ },
+ axisLine: {
+ show: false
+ },
+ axisTick: {
+ show: false
+ },
+ min: minSw,
+ max: maxSw
+ },
+ {
+ type: 'value',
+ position: 'right',
+ name: '库容(万m³)',
+ splitLine: {
+ show: false,
+ lineStyle: {
+ color: '#07a6ff',
+ width: 0.25,
+ type: 'dotted'
+ }
+ },
+ axisLabel: {
+ color: '#333',
+ fontSize: 12
+ },
+ axisLine: {
+ show: false
+ },
+ axisTick: {
+ show: false
+ },
+ min: minKr,
+ max: maxKr
+ }
+ ],
+ }
+ let chartData = {
+ series: [
+ {
+
+ // yAxisIndex: 0,
+ name: '水位',
+ type: 'line',
+ symbol: 'none',
+ color: '#0AE0B5',
+ label: {
+ show: false
+ },
+ data: data.map(o => o.rz ? o.rz.toFixed(2):null )
+ },
+ {
+ yAxisIndex: 1,
+ name: '库容',
+ type: 'line',
+ color: '#007AFD',
+ symbol: 'none',
+ showSymbol: false,
+ label: {
+ show: false
+ },
+ data: data.map(o => o.w)
+ }
+ ],
+ }
+ return {
+ eopts,
+ chartData
+ }
+}
+
diff --git a/pages/sws/detail/index.vue b/pages/sws/detail/index.vue
new file mode 100644
index 0000000..4398b16
--- /dev/null
+++ b/pages/sws/detail/index.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+ 开始时间
+ {{stm}}
+
+
+ 结束时间
+ {{etm}}
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/sws/detail/jcTable.vue b/pages/sws/detail/jcTable.vue
new file mode 100644
index 0000000..a6237de
--- /dev/null
+++ b/pages/sws/detail/jcTable.vue
@@ -0,0 +1,97 @@
+
+
+
+
+
+ |
+ 序号
+ |
+
+ 时间
+ |
+ 水位(m) |
+ 库容(万m³) |
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/sws/index.vue b/pages/sws/index.vue
new file mode 100644
index 0000000..94c53f1
--- /dev/null
+++ b/pages/sws/index.vue
@@ -0,0 +1,96 @@
+
+
+
+
+ {{item.stnm}}水位站
+
+
+ {{item.tm}}
+
+
+
+
+ 实时水位
+ {{item.rz}}
+ m
+
+
+ 汛限水位
+ {{item.flLowLimLev}}
+ m
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/upgrade/index.vue b/pages/upgrade/index.vue
index 0b1d25a..d65f800 100644
--- a/pages/upgrade/index.vue
+++ b/pages/upgrade/index.vue
@@ -86,7 +86,7 @@
if (this.info.url) {
this.isStartDownload = true
//开始下载App
- const baseUrl = `http://local.gunshiiot.com:18083/gunshiApp/xyt/common/download/resource?resource=${this.info.url}`
+ const baseUrl = `http://local.gunshiiot.com:18083/gunshiApp/tsg/common/download/resource?resource=${this.info.url}`
downloadApp(baseUrl, current => {
//下载进度监听
this.hasProgress = true
diff --git a/pages/wtcl/detail/index.vue b/pages/wtcl/detail/index.vue
index a348c99..2652216 100644
--- a/pages/wtcl/detail/index.vue
+++ b/pages/wtcl/detail/index.vue
@@ -149,7 +149,7 @@
return;
}else{
console.log(this.queItem);
- uni.$http.post('/gunshiApp/xyt/inspect/detail/handle', this.queItem).then(res => {
+ uni.$http.post('/gunshiApp/tsg/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/xyt/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
+ url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
filePath: url,
name: 'file',
formData: {
diff --git a/pages/wtcl/index.vue b/pages/wtcl/index.vue
index b02e63e..35af855 100644
--- a/pages/wtcl/index.vue
+++ b/pages/wtcl/index.vue
@@ -113,7 +113,7 @@
"handleUserId": uni.getStorageSync('value').userId
}
console.log(params,'dsd');
- uni.$http.post('/gunshiApp/xyt/inspect/detail/page', params).then(res => {
+ uni.$http.post('/gunshiApp/tsg/inspect/detail/page', params).then(res => {
this.list=res.data.data.records
})
},
diff --git a/pages/wxyh/formZdy/formBottom.vue b/pages/wxyh/formZdy/formBottom.vue
index cbdea3f..7106c7f 100644
--- a/pages/wxyh/formZdy/formBottom.vue
+++ b/pages/wxyh/formZdy/formBottom.vue
@@ -142,7 +142,7 @@
uploadFilePromise(url,name) {
return new Promise((resolve, reject) => {
let a = uni.uploadFile({
- url: 'http://local.gunshiiot.com:18083/gunshiApp/xyt/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
+ url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
filePath: url,
name: 'file',
formData: {
diff --git a/pages/wxyh/index.vue b/pages/wxyh/index.vue
index cfb5a89..942246d 100644
--- a/pages/wxyh/index.vue
+++ b/pages/wxyh/index.vue
@@ -50,7 +50,7 @@ export default {
submitForm(params) {
//
console.log({...params,...this.formData});
- uni.$http.post('/gunshiApp/xyt/maintain/service/insert',{...params,...this.formData}).then(res=>{
+ uni.$http.post('/gunshiApp/tsg/maintain/service/insert',{...params,...this.formData}).then(res=>{
if(res.data.code == 200){
// uni.$u.toast('新增成功')
uni.$u.toast('新增成功')
diff --git a/pages/xcrw/detail/dbForm.vue b/pages/xcrw/detail/dbForm.vue
index 14e2caf..421a94e 100644
--- a/pages/xcrw/detail/dbForm.vue
+++ b/pages/xcrw/detail/dbForm.vue
@@ -206,8 +206,8 @@
return treelist
},
async getTreeList (){
- const res = await uni.$http.get('/gunshiApp/xyt/system/dept/list')
- const resUser = await uni.$http.get('/gunshiApp/xyt/system/user/list?pageNum=1&pageSize=9999')
+ 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')
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/xyt/inspect/task/finish`, params)
+ } = await uni.$http.post(`/gunshiApp/tsg/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/xyt/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
+ url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址
filePath: url,
name: 'file',
formData: {
diff --git a/pages/xcrw/detail/formZdy.vue b/pages/xcrw/detail/formZdy.vue
index 91575f0..1b49a2a 100644
--- a/pages/xcrw/detail/formZdy.vue
+++ b/pages/xcrw/detail/formZdy.vue
@@ -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/xyt/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
+ url: 'http://local.gunshiiot.com:18083/gunshiApp/tsg/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址
filePath: url,
name: 'file',
formData: {
diff --git a/pages/xcrw/detail/index.vue b/pages/xcrw/detail/index.vue
index df7e771..c5992da 100644
--- a/pages/xcrw/detail/index.vue
+++ b/pages/xcrw/detail/index.vue
@@ -95,7 +95,7 @@
if (this.status == 0) {
const {
data
- } = await uni.$http.get(`/gunshiApp/xyt/inspect/task/startInspect/${this.id}`)
+ } = await uni.$http.get(`/gunshiApp/tsg/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/xyt/inspect/detail/info?taskId=${id}`)
+ } = await uni.$http.get(`/gunshiApp/tsg/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/xyt/inspectTaskTrack/insert`, {
+ } = await uni.$http.post(`/gunshiApp/tsg/inspectTaskTrack/insert`, {
taskId: this.id,
lttd: latitude,
lgtd: longitude
diff --git a/pages/xcrw/index.vue b/pages/xcrw/index.vue
index fdd2553..06a06eb 100644
--- a/pages/xcrw/index.vue
+++ b/pages/xcrw/index.vue
@@ -116,7 +116,7 @@
statusList: [0, 1]
}
try {
- const res = await uni.$http.post("/gunshiApp/xyt/inspect/task/list", params)
+ const res = await uni.$http.post("/gunshiApp/tsg/inspect/task/list", params)
this.list = [...res.data.data];
} catch (error) {
uni.$showMsg();
diff --git a/pages/yj/index.vue b/pages/yj/index.vue
index 900be00..26fa544 100644
--- a/pages/yj/index.vue
+++ b/pages/yj/index.vue
@@ -105,7 +105,7 @@
}
},
getList(){
- uni.$http.post('/gunshiApp/xyt/stQxWarnR/home/warn',this.model).then(res=>{
+ uni.$http.post('/gunshiApp/tsg/stQxWarnR/home/warn',this.model).then(res=>{
this.list = res.data.data
})
},
diff --git a/pages/ylzList/detail/barOptions.js b/pages/ylzList/detail/barOptions.js
new file mode 100644
index 0000000..bb17ecf
--- /dev/null
+++ b/pages/ylzList/detail/barOptions.js
@@ -0,0 +1,48 @@
+import echarts from 'echarts/lib/echarts';
+export default function DrpOption(data) {
+ let eopts = {
+ tooltip: {
+ trigger: 'axis',
+ },
+ grid: {
+ x: 40,
+ y: 30,
+ x2: 30,
+ y2: 28,
+ // borderWidth: 0
+ },
+ legend: {
+ // 显示图例
+ show: true,
+
+ },
+ xAxis: [
+ {
+ type: 'category',
+ data: ["1h","2h"],
+ }
+ ],
+ yAxis: {
+ type: 'value',
+ axisLabel: {
+ // format: 'projectFormat'
+ formatter:'{value} mm'
+ }
+ },
+ };
+ let chartData = {
+ series: [{
+ name: '降雨量',
+ type: 'bar',
+ barWidth: '60%',
+ data: [6, 8],
+ itemStyle: {
+ color:"#6395fa"
+ }
+ }, ]
+ };
+ return {
+ eopts,
+ chartData
+ }
+}
\ No newline at end of file
diff --git a/pages/ylzList/detail/index.vue b/pages/ylzList/detail/index.vue
index 931cefd..4a0fa14 100644
--- a/pages/ylzList/detail/index.vue
+++ b/pages/ylzList/detail/index.vue
@@ -33,10 +33,27 @@
+
+
+
+ 短临预报
+
+ 预报时间:{{projectTime}}
+
+
+
+
+
+
+
+
+
@@ -173,4 +222,20 @@
.ylz-table-area{
background-color: #fff;
}
+ .yl-dl-yb{
+ display: flex;
+ align-items: center;
+ margin-top: 20px;
+ }
+ .yl-bluetiao{
+ width: 5px;
+ height: 15px;
+ background-color: #02a7f0;
+ margin-right: 10px;
+ }
+ .ylzpro-chart-area{
+ width: 100%;
+ height: 250px;
+ background-color: #fff;
+ }
\ No newline at end of file
diff --git a/pages/ylzList/detail/jcOptions.js b/pages/ylzList/detail/jcOptions.js
index fbdbf4b..571b918 100644
--- a/pages/ylzList/detail/jcOptions.js
+++ b/pages/ylzList/detail/jcOptions.js
@@ -1,22 +1,20 @@
-
import echarts from 'echarts/lib/echarts';
-export default function DrpOption(echartData) {
- console.log("echartData",echartData);
-
- let totalDrp = 0;
+export default function DrpOption(echartData) {
+
+ let totalDrp = 0;
const DRPLEVEL = [10, 20, 50, 100, 250];
const maxVal = DRPLEVEL.find(o => o > totalDrp);
- const xMaxVal = echartData?.actual ? DRPLEVEL.find(o => {
- let max = Math.max(...echartData?.actual || [])
+ const xMaxVal = echartData ?.actual ? DRPLEVEL.find(o => {
+ let max = Math.max(...echartData ?.actual || [])
return o > max
- }):maxVal
+ }) : maxVal
// const xMaxVal = Math.ceil(Math.max(...echartData.actual)) + 2
- const yMaxVal = echartData?.actual ? DRPLEVEL.find(o => {
- let max = Math.max(...echartData?.total)
- return o > max
- }): maxVal
- let eopts = {
- tooltip: {
+ const yMaxVal = echartData ?.actual ? DRPLEVEL.find(o => {
+ let max = Math.max(...echartData ?.total)
+ return o > max
+ }) : maxVal
+ let eopts = {
+ tooltip: {
trigger: 'axis',
},
grid: {
@@ -33,34 +31,31 @@ export default function DrpOption(echartData) {
data: ['实测', '累计']
},
calculable: true,
- xAxis: [
- {
- type: 'category',
- data: echartData.time,
- splitLine: {
- show: false
- },
- axisLabel: {
- color: '#333',
- fontSize: 12,
- format:"jcDataFormat"
- },
- axisLine: {
- lineStyle: {
- color: '#07a6ff',
- width: 0.5,
- }
- },
- axisTick: {
- show: false,
- },
- }
- ],
- yAxis: [
- {
+ xAxis: [{
+ type: 'category',
+ data: echartData.time,
+ splitLine: {
+ show: false
+ },
+ axisLabel: {
+ color: '#333',
+ fontSize: 12,
+ format: "jcDataFormat"
+ },
+ axisLine: {
+ lineStyle: {
+ color: '#07a6ff',
+ width: 0.5,
+ }
+ },
+ axisTick: {
+ show: false,
+ },
+ }],
+ yAxis: [{
type: 'value',
position: 'left',
- name:"雨量mm",
+ name: "雨量mm",
splitLine: {
show: true,
lineStyle: {
@@ -85,7 +80,7 @@ export default function DrpOption(echartData) {
{
type: 'value',
position: 'right',
- name:"累计mm",
+ name: "累计mm",
splitLine: {
show: true,
lineStyle: {
@@ -108,10 +103,9 @@ export default function DrpOption(echartData) {
max: yMaxVal
}
],
- };
- let chartData = {
- series: [
- {
+ };
+ let chartData = {
+ series: [{
name: '实测',
type: 'bar',
barWidth: '60%',
@@ -121,10 +115,18 @@ export default function DrpOption(echartData) {
barBorderRadius: [3, 3, 0, 0],
color: new echarts.graphic.LinearGradient(
0, 0, 0, 1,
- [
- { offset: 0, color: '#3876cd' },
- { offset: 0.5, color: '#45b4e7' },
- { offset: 1, color: '#54ffff' }
+ [{
+ offset: 0,
+ color: '#3876cd'
+ },
+ {
+ offset: 0.5,
+ color: '#45b4e7'
+ },
+ {
+ offset: 1,
+ color: '#54ffff'
+ }
]
),
},
@@ -133,9 +135,13 @@ export default function DrpOption(echartData) {
show: false,
},
markPoint: {
- data: [
- { type: 'max', name: '最大值', symbol: 'circle', symbolSize: 1, symbolOffset: [0, -12] },
- ]
+ data: [{
+ type: 'max',
+ name: '最大值',
+ symbol: 'circle',
+ symbolSize: 1,
+ symbolOffset: [0, -12]
+ }, ]
},
},
{
@@ -160,8 +166,7 @@ export default function DrpOption(echartData) {
}, {
offset: 0.8,
color: 'rgba(3, 194, 236, 0)'
- }
- ], false),
+ }], false),
shadowColor: 'rgba(0, 0, 0, 0.1)',
shadowBlur: 10
}
@@ -173,9 +178,9 @@ export default function DrpOption(echartData) {
},
}
]
- };
- return {
- eopts,
- chartData
- }
+ };
+ return {
+ eopts,
+ chartData
+ }
}
\ No newline at end of file
diff --git a/pages/ylzList/detail/tjsjTable.vue b/pages/ylzList/detail/tjsjTable.vue
index 527de70..c9ff3d8 100644
--- a/pages/ylzList/detail/tjsjTable.vue
+++ b/pages/ylzList/detail/tjsjTable.vue
@@ -102,7 +102,7 @@
async getTableData(){
try{
const {data} = await uni.$http.get(
- "/gunshiApp/xyt/attResBase/rainBasinDivision/queryStPptnDetails/stcd?stcd=716164061")
+ "/gunshiApp/tsg/attResBase/rainBasinDivision/queryStPptnDetails/stcd?stcd=716164061")
if(data.code == 200){
this.tableData = {...data.data};
}
diff --git a/static/images/060.png b/static/images/060.png
index 1fcda64..77466a8 100644
Binary files a/static/images/060.png and b/static/images/060.png differ
diff --git a/static/images/090.png b/static/images/090.png
index 16340de..f8aa37e 100644
Binary files a/static/images/090.png and b/static/images/090.png differ
diff --git a/static/images/092.png b/static/images/092.png
new file mode 100644
index 0000000..468670f
Binary files /dev/null and b/static/images/092.png differ
diff --git a/static/images/loc.png b/static/images/loc.png
new file mode 100644
index 0000000..87fbacf
Binary files /dev/null and b/static/images/loc.png differ
diff --git a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-echarts.js b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-echarts.js
index 9ef8019..509bb36 100644
--- a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-echarts.js
+++ b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-echarts.js
@@ -57,6 +57,9 @@ const cfe = {
"xAxisFormat": function (value) {
return value.substr('2020--'.length, 11)
},
+ "projectFormat":function (value) {
+ return value + 'mm';
+ },
"stList": function (val)
{
let value = val.substr('2020-'.length, 11)