|
@@ -15,7 +15,7 @@
|
|
|
</el-tooltip>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <equip-rules v-if="curType=='设备'" ref="equip" :typeName="curType"></equip-rules>
|
|
|
+ <equip-rules v-if="curType=='设备'" ref="equip" :typeName="curType" @refresh="equipRefresh"></equip-rules>
|
|
|
<!-- <parts-rules v-if="!curType=='设备'" ref="parts" :typeName="'设备'"></parts-rules> -->
|
|
|
<!-- 应用规则弹窗 -->
|
|
|
<apply-rules-dialog ref="apply"></apply-rules-dialog>
|
|
@@ -62,6 +62,10 @@ export default {
|
|
|
partsRules
|
|
|
},
|
|
|
created() {
|
|
|
+ let typeName = this.$route.query.typeName;
|
|
|
+ if(typeName){
|
|
|
+ this.curType = typeName
|
|
|
+ }
|
|
|
this.init();
|
|
|
},
|
|
|
mounted() { },
|
|
@@ -107,7 +111,6 @@ export default {
|
|
|
//记录上次操作的tab页
|
|
|
this.curType =
|
|
|
this.curType != 0 ? this.curType : this.typeList[0].Name;
|
|
|
- // this.getTableData();
|
|
|
} else {
|
|
|
this.tableData = [];
|
|
|
}
|
|
@@ -129,6 +132,11 @@ export default {
|
|
|
},
|
|
|
//现在执行
|
|
|
nowDo() { },
|
|
|
+ //刷新设备类表
|
|
|
+ equipRefresh(val){
|
|
|
+ this.curType = val;
|
|
|
+ this.getTypeNames()
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
projectId() {
|