+
+ 查看设备
@@ -508,6 +509,25 @@ export default {
},
},
methods: {
+ goDeviceList(){
+ console.log(this.$route.path)
+ if(this.$route.path == "/project_tenant/project_tenant"){
+ this.$router.push({
+ path: "/device_tenant/device_tenant",
+ query: {
+ projectId: this.infoData.projectId,
+ },
+ });
+ }else if(this.$route.path == "/project/project"){
+ this.$router.push({
+ path: "/device/device",
+ query: {
+ projectId: this.infoData.projectId,
+ },
+ });
+ }
+
+ },
mapEvent(data) {
this.mapForm.lng = data.lng;
this.mapForm.lat = data.lat;
diff --git a/src/views/tenant/device/index.vue b/src/views/tenant/device/index.vue
index 6fbb115e..73abfa72 100644
--- a/src/views/tenant/device/index.vue
+++ b/src/views/tenant/device/index.vue
@@ -278,6 +278,10 @@ export default {
isAsc: 'desc'
}).then(response => {
this.inProjectList = response.rows;
+ if(this.$route.query.projectId){
+ this.queryParams.inProject = parseInt(this.$route.query.projectId);
+ this.getList();
+ }
});
},
// 查询设备类型列表