diff --git a/src/App.vue b/src/App.vue
index bcca61a..e45f06a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -186,9 +186,17 @@
}
//公用 顶部筛选样式
.secreen-section{
+
.slot-content{
padding: 30rpx;
}
+ .dropdown-box{
+ &.downClose{
+ .u-dropdown__content{
+ visibility: hidden;
+ }
+ }
+ }
.select-date{
padding: 30rpx;
display: flex;
@@ -322,6 +330,12 @@
.top_box{
height: 96rpx;
padding: 0 40rpx;
+ .title{
+ padding: 20rpx;
+ text-align: center;
+ font-size: 32rpx;
+ font-weight: bold;
+ }
.handle-btns{
height: 100%;
display: flex;
@@ -529,5 +543,6 @@
padding: 20rpx;
}
}
+
diff --git a/src/pages.json b/src/pages.json
index 55369a1..3354395 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -119,6 +119,16 @@
}
}
+ ,{
+ "path" : "pages/device/index",
+ "style" :
+ {
+ "navigationBarTitleText": "设备管理",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+
+ }
],
"globalStyle": {
"navigationBarTextStyle": "white",
diff --git a/src/pages/device/index.vue b/src/pages/device/index.vue
new file mode 100644
index 0000000..073d925
--- /dev/null
+++ b/src/pages/device/index.vue
@@ -0,0 +1,436 @@
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+ 类型:{{ item.type }}
+
+
+
+ 设备编号:{{item.sn}}
+
+
+ 基地:{{ item.base_name }}
+
+
+ 监控点:{{ item.monitoring_point }}
+
+
+ 状态:{{item.status}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/device/warning.vue b/src/pages/device/warning.vue
index cc981e8..eae6299 100644
--- a/src/pages/device/warning.vue
+++ b/src/pages/device/warning.vue
@@ -1,8 +1,9 @@
-
+
-
+
设备类型:{{ item.device_type }}
-->
- 等级:{{ item.lv }}
+ 等级:{{ lvname[item.lv] }}
- 状态:{{ item.status }}
+ 状态:{{ statusname[item.status] }}
时间:{{ item.created_at|timeFormat}}
@@ -42,6 +43,45 @@
+
+
+
@@ -50,6 +90,7 @@
export default {
data() {
return {
+ dropDownShow:false,
per_page:15,
page:1,
loglist:[],
@@ -119,6 +160,25 @@
},
],
statusvalue:-1,
+ statusname:{
+ 0:'未处理',
+ 1:'已处理',
+ 2:'已忽略'
+ },
+ lvname:{
+ 1:'Ⅰ级预警',
+ 2:'Ⅱ级预警',
+ 3:'Ⅲ级预警',
+ 4:'Ⅳ级预警'
+ },
+ devicetypename:{
+ 1:'监控设备',
+ 2:'土壤设备',
+ 3:'水质设备',
+ 4:'气象设备'
+ },
+ popupShow:false,
+ formInfo:{},
};
},
filters:{
@@ -141,7 +201,9 @@
},
methods: {
- showInfo(){
+ showInfo(index){
+ this.formInfo = this.loglist[index];
+ this.popupShow = true;
},
change1(val){
@@ -156,6 +218,12 @@
console.log(val);
this.queryloglist(true);
},
+ dropdownClose(){
+ this.dropDownShow = false;
+ },
+ dropdownOpen(){
+ this.dropDownShow = true;
+ },
queryloglist(refresh){
if(refresh){
this.loading = 'loadmore';
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index fd9ec02..91a65c7 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -90,6 +90,7 @@
children:[
{
label:'设备管理',
+ url:'/pages/device/index'
},
{
label:'警报明细',
diff --git a/src/pages/system/links.vue b/src/pages/system/links.vue
index ac96e76..5accdb6 100644
--- a/src/pages/system/links.vue
+++ b/src/pages/system/links.vue
@@ -6,8 +6,10 @@
新增
+
-
+
@@ -33,6 +35,7 @@
+