@@ -28,7 +34,13 @@
@@ -81,5 +111,12 @@ export default {
align-items: center;
height: 48px;
border-bottom: 1px solid #dfdfdf;
+}
+.redDot{
+ margin-right: 10px;
+ width: 8px;
+ height: 8px;
+ border-radius: 4px;
+ background-color: red;
}
diff --git a/pages/gqzq/zqxx/table.vue b/pages/gqzq/zqxx/table.vue
index 0eeb614..fabd5cb 100644
--- a/pages/gqzq/zqxx/table.vue
+++ b/pages/gqzq/zqxx/table.vue
@@ -59,8 +59,11 @@
-
按上报时间
-
+
+ 按上报时间
+
+
+
至
-
+
(o.projectName?.indexOf(this.searchVal)>-1 || o.address?.indexOf(this.searchVal)>-1))
+ return this.list.filter(o => (o.reporter?.indexOf(this.searchVal)>-1 || o.address?.indexOf(this.searchVal)>-1))
}else{
return this.list
}
@@ -158,6 +162,7 @@ import moment from 'moment'
this.show = false
},
reSet() {
+ this.isTime = false
this.stm = Number(moment(new Date()).add(-7,'days'))
this.etm = Number(new Date())
this.check1 = ['1','2','3','4']
@@ -173,68 +178,18 @@ import moment from 'moment'
}
try{
const params = {
- timeSo:{
+ severitys:this.check1.length===0?['999']:this.check1,
+ }
+ if(this.isTime){
+ params.timeSo = {
start:moment(this.stm).format('YYYY-MM-DD HH:mm:ss'),
end:moment(this.etm).format('YYYY-MM-DD HH:mm:ss'),
- },
- severitys:this.check1,
+ }
}
console.log('params',params)
const res = await uni.$http.post('/gunshiApp/xfflood/iaCHsfwater/queryList',params)
console.log('res',res)
- this.list = [
- ...res.data.data
- // ,{
- // // id:'1',
- // mtcd:'12121',//山洪灾害编码
- // wscd:'22222',//小流域代码
- // otime:'2022-12-12 10:22:22',//灾害发生时间
- // severity:'22222',//小流域代码
- // wscd:'3',//严重程度(1一般灾情 2较大灾情 3重大灾情 4特别重大灾情)
- // address:'灾害发生地点',//灾害发生地点
- // lgtd:'111.21',//经度
- // lttd:'32.12',//纬度
- // ddscrib:'灾害描述',//灾害描述
- // dpcount:'2',//死亡人数(人)
- // mpcount:'12',//失踪人数(人)
- // spcount:'2211',//转移人数(人)
- // chcount:'41',//损毁房屋(人)
- // elose:'6623',//直接经济损失(万元)
- // pfrain:'41',//过程降雨量(mm)
- // reporter:'张三',//上报人
- // reportTime:'2022-11-21 10:21:11',//上报时间
- // reportUnit:'上报单位',
- // moditime:'时间戳',
- // remark:'情况说明',
- // isRead:0,//是否已读(0 否 1 是)
- // severity:'1',//严重程度(1一般险情 2较大险情 3重大险情 4特别重大险情)
- // },
- // {
- // // id:'1',
- // mtcd:'12121',//山洪灾害编码
- // wscd:'22222',//小流域代码
- // otime:'2022-12-12 10:22:22',//灾害发生时间
- // severity:'22222',//小流域代码
- // wscd:'3',//严重程度(1一般灾情 2较大灾情 3重大灾情 4特别重大灾情)
- // address:'灾害发生地点2',//灾害发生地点
- // lgtd:'111.21',//经度
- // lttd:'32.12',//纬度
- // ddscrib:'灾害描述',//灾害描述
- // dpcount:'2',//死亡人数(人)
- // mpcount:'12',//失踪人数(人)
- // spcount:'2211',//转移人数(人)
- // chcount:'41',//损毁房屋(人)
- // elose:'6623',//直接经济损失(万元)
- // pfrain:'41',//过程降雨量(mm)
- // reporter:'张三',//上报人
- // reportTime:'2022-11-21 10:21:11',//上报时间
- // reportUnit:'上报单位',
- // moditime:'时间戳',
- // remark:'情况说明',
- // isRead:1,//是否已读(0 否 1 是)
- // severity:'1',//严重程度(1一般险情 2较大险情 3重大险情 4特别重大险情)
- // },
- ]
+ this.list = res.data.data
this.close()
}catch(e){
//TODO handle the exception
diff --git a/pages/hdDetail/hdDetail.vue b/pages/hdDetail/hdDetail.vue
index 3c22e8a..7ae8acc 100644
--- a/pages/hdDetail/hdDetail.vue
+++ b/pages/hdDetail/hdDetail.vue
@@ -69,6 +69,8 @@
diff --git a/pages/water/hdWater/table.vue b/pages/water/hdWater/table.vue
index 3a5609b..64116b7 100644
--- a/pages/water/hdWater/table.vue
+++ b/pages/water/hdWater/table.vue
@@ -8,17 +8,17 @@
|
站名
- |
+ |
监测时间
|
-
+ |
实时水位(m)
|
-
@@ -74,6 +75,7 @@
flex: 1;
padding-top: 0px;
overflow-x: scroll;
+ padding: 0 10px;
}
/*table样式*/
.table_cur {
@@ -86,6 +88,11 @@
display: flex;
line-height: 80rpx;
}
+ .scroll-table{
+ height: calc(100vh - 125px);
+ overflow-y: auto;
+ width:'100%'
+ }
.table_cur th {
height: 80rpx;
color: #3399ef;
diff --git a/pages/water/skWater/table.vue b/pages/water/skWater/table.vue
index a9ba23d..774ec7a 100644
--- a/pages/water/skWater/table.vue
+++ b/pages/water/skWater/table.vue
@@ -6,7 +6,7 @@
序号
|
-
+ |
站名
|
监测时间
@@ -14,14 +14,14 @@
|
实时水位(m)
|
-
+ |
超汛限(m)
|
-
@@ -79,6 +80,8 @@
flex: 1;
padding-top: 0px;
overflow-x: scroll;
+ padding: 0 10px;
+
}
/*table样式*/
.table_cur {
@@ -91,6 +94,11 @@
display: flex;
line-height: 80rpx;
}
+ .scroll-table{
+ height: calc(100vh - 125px);
+ overflow-y: auto;
+ width:'100%'
+ }
.table_cur th {
height: 80rpx;
color: #3399ef;
diff --git a/pages/water/water.vue b/pages/water/water.vue
index 54a0e87..72e49ec 100644
--- a/pages/water/water.vue
+++ b/pages/water/water.vue
@@ -1,5 +1,5 @@
-
+
@@ -43,7 +43,6 @@
}
},
onReady(){
- console.log(123333);
let that = this
uni.getSystemInfo({
success: (res) => {
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 7b8168f..8d335c1 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
@@ -53,7 +53,10 @@ const cfe = {
},
legendFormat:function(name){
return "自定义图例+"+name;
- },
+ },
+ "xAxisFormat": function (value) {
+ return value.substr('2020--'.length, 11)
+ },
yAxisFormatDemo:function (value, index) {
return value + '元';
},