|
@@ -43,7 +43,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right_main middle_sty" v-loading="rightLoading">
|
|
|
|
|
|
+ <div class="right_main" v-loading="rightLoading">
|
|
<el-tabs v-if="labelKey.length && tabsFalg" tab-position="left" style="height: 100%;">
|
|
<el-tabs v-if="labelKey.length && tabsFalg" tab-position="left" style="height: 100%;">
|
|
<el-tab-pane v-for="(item,index) in labelKey" :key="index">
|
|
<el-tab-pane v-for="(item,index) in labelKey" :key="index">
|
|
<span slot="label">{{item.FirstTag || '信息'}}</span>
|
|
<span slot="label">{{item.FirstTag || '信息'}}</span>
|
|
@@ -55,7 +55,7 @@
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
- <div v-else class="center">
|
|
|
|
|
|
+ <div v-else class="center" style="margin-top:260px;">
|
|
<i class="iconwushuju iconfont"></i> 请选择设备族
|
|
<i class="iconwushuju iconfont"></i> 请选择设备族
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -80,6 +80,10 @@
|
|
getEqCode,
|
|
getEqCode,
|
|
getBussTypes
|
|
getBussTypes
|
|
} from "@/api/scan/request";
|
|
} from "@/api/scan/request";
|
|
|
|
+ import {
|
|
|
|
+ mapGetters,
|
|
|
|
+ mapActions
|
|
|
|
+ } from "vuex";
|
|
export default {
|
|
export default {
|
|
name: "family",
|
|
name: "family",
|
|
components: {
|
|
components: {
|
|
@@ -110,7 +114,7 @@
|
|
code: '',
|
|
code: '',
|
|
letterArr: [], //出现的a-z字符
|
|
letterArr: [], //出现的a-z字符
|
|
UserId: "18612660722", //用户id
|
|
UserId: "18612660722", //用户id
|
|
- ProjId: "Pj4201050001", //项目id
|
|
|
|
|
|
+ ProjId: "", //项目id
|
|
labelKey: [], // 右侧主体数据承接数组
|
|
labelKey: [], // 右侧主体数据承接数组
|
|
searchArr: [], // 搜索后的数据
|
|
searchArr: [], // 搜索后的数据
|
|
searchVal: "", //搜索内容
|
|
searchVal: "", //搜索内容
|
|
@@ -496,6 +500,13 @@
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters("layout", [
|
|
|
|
+ "projectId",
|
|
|
|
+ "secret",
|
|
|
|
+ "userId"
|
|
|
|
+ ])
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
this.getAllFamily();
|
|
this.getAllFamily();
|
|
},
|
|
},
|
|
@@ -505,6 +516,7 @@
|
|
},
|
|
},
|
|
//获取所有设备族
|
|
//获取所有设备族
|
|
getAllFamily() {
|
|
getAllFamily() {
|
|
|
|
+ this.ProjId = this.projectId
|
|
if (this.value == "property") {
|
|
if (this.value == "property") {
|
|
getAllFamily().then(result => {
|
|
getAllFamily().then(result => {
|
|
this.isLoading = false
|
|
this.isLoading = false
|
|
@@ -810,6 +822,15 @@
|
|
}
|
|
}
|
|
return arrRslt;
|
|
return arrRslt;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ watch: {
|
|
|
|
+ projectId(){
|
|
|
|
+ this.getAllFamily()
|
|
|
|
+ this.main = null
|
|
|
|
+ this.active = ""
|
|
|
|
+ this.code = ""
|
|
|
|
+ this.tabsFalg = false
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|