|
|
@@ -120,6 +120,7 @@
|
|
|
Debounce,
|
|
|
Throttle
|
|
|
} from '../../util/anitthro.js';
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -199,7 +200,6 @@
|
|
|
this.pur_id = this.menuList.find(item => item.pur_id == this.pur_id)?.pur_id || '';
|
|
|
this.current = this.menuList.findIndex(item => item.pur_id == this.pur_id);
|
|
|
}
|
|
|
-
|
|
|
if(this.list.length > 1){
|
|
|
if(this.list[0].purview_name != '全部'){
|
|
|
this.list.unshift({
|
|
|
@@ -208,7 +208,13 @@
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- this.type_id = this.list[0].device_type_id;
|
|
|
+ const firstChild = this.list[0];
|
|
|
+ this.type_id = firstChild.device_type_id;
|
|
|
+ if(firstChild.device_type_id !== ''){
|
|
|
+ this.device_model = firstChild?.device_model || '';
|
|
|
+ }else{
|
|
|
+ this.device_model = '';
|
|
|
+ }
|
|
|
this.initPage();
|
|
|
},
|
|
|
async eqlist(tf) {
|
|
|
@@ -249,18 +255,18 @@
|
|
|
list.push(item)
|
|
|
}
|
|
|
})
|
|
|
- if(list.length > 1){
|
|
|
- if(this.list[0].purview_name != '全部'){
|
|
|
- this.list.unshift({
|
|
|
- device_type_id: '',
|
|
|
- purview_name: '全部'
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(list.length > 1){
|
|
|
+ // if(this.list[0].purview_name != '全部'){
|
|
|
+ // this.list.unshift({
|
|
|
+ // device_type_id: '',
|
|
|
+ // purview_name: '全部'
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.current = index;
|
|
|
const item = this.list[0];
|
|
|
this.pur_id = itemData.pur_id || '';
|
|
|
- this.changeDevice(item,0);
|
|
|
+ // this.changeDevice(item,0);
|
|
|
},
|
|
|
changeDevice(item,index){
|
|
|
this.currents = index;
|
|
|
@@ -278,6 +284,8 @@
|
|
|
this.device_model = 14;
|
|
|
}else if(name === 'gkcbd1'){
|
|
|
this.device_model = 15;
|
|
|
+ } else if(name === 'zhiCbd'){
|
|
|
+ this.device_model = 16;
|
|
|
} else {
|
|
|
this.device_model = item.device_model || '';
|
|
|
}
|
|
|
@@ -306,7 +314,6 @@
|
|
|
historys(item) {
|
|
|
const type_id = item.type_id;
|
|
|
item.pur_id = this.pur_id;
|
|
|
- console.log(type_id,'type_idtype_idtype_id')
|
|
|
switch (type_id) {
|
|
|
// 水肥新设备
|
|
|
case 22:
|
|
|
@@ -334,6 +341,9 @@
|
|
|
uni.navigateTo({
|
|
|
url: '../prevention/equipmentdetails?shebei=' + JSON.stringify(item),
|
|
|
});
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: '../scd/detail?info=' + JSON.stringify(item),
|
|
|
+ // });
|
|
|
break;
|
|
|
case 38:
|
|
|
var obj = {};
|
|
|
@@ -363,7 +373,7 @@
|
|
|
break;
|
|
|
case 6:
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/webview?device_id=' +
|
|
|
+ url: '/pages/webview/webview?device_id=' +
|
|
|
item.id +
|
|
|
'&accessToken=' +
|
|
|
this.accessToken,
|
|
|
@@ -372,7 +382,7 @@
|
|
|
case 44:
|
|
|
uni.navigateTo({
|
|
|
url:
|
|
|
- '/pages/webviewdgp?device_id=' +
|
|
|
+ '/pages/webviewdgp/webviewdgp?device_id=' +
|
|
|
item.id +
|
|
|
'&accessToken=' +
|
|
|
uni.getStorageSync('session_key') +
|
|
|
@@ -414,16 +424,18 @@
|
|
|
case 7:
|
|
|
item.addtime = item.uptime;
|
|
|
item.type = item.type_id;
|
|
|
-
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: '../bzy/detail?info=' + JSON.stringify(item),
|
|
|
+ // });
|
|
|
if(item.pur_id == 458){
|
|
|
uni.navigateTo({
|
|
|
url: '../bzy/detail?info=' + JSON.stringify(item),
|
|
|
});
|
|
|
- }else{
|
|
|
- uni.navigateTo({
|
|
|
- url: '../cb/equip-detail/equip-detail?info=' + JSON.stringify(item),
|
|
|
- });
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '../cb/equip-detail/equip-detail?info=' + JSON.stringify(item),
|
|
|
+ });
|
|
|
+ }
|
|
|
break;
|
|
|
case 8:
|
|
|
uni.navigateTo({
|
|
|
@@ -727,8 +739,8 @@
|
|
|
}
|
|
|
|
|
|
.inputs {
|
|
|
- width: calc(100% - 72rpx);
|
|
|
- margin-left: 36rpx;
|
|
|
+ width: 65%;
|
|
|
+ margin-left: 12rpx;
|
|
|
|
|
|
/deep/.u-content {
|
|
|
background-color: #fff !important;
|
|
|
@@ -876,7 +888,6 @@
|
|
|
position: relative;
|
|
|
background-color: #ffffff;
|
|
|
border-radius: 16rpx;
|
|
|
- position: relative;
|
|
|
.list_item_top {
|
|
|
.p1 {
|
|
|
width: 86%;
|