Browse Source

'bug处理'

zhangyu 4 years ago
parent
commit
5debfb62ca
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/equipmentFacilities/MaintenanceRecordView.vue

+ 6 - 1
src/views/equipmentFacilities/MaintenanceRecordView.vue

@@ -147,7 +147,12 @@ export default {
     // 初始化
     // 初始化
     initData() {
     initData() {
       this.active = 0;
       this.active = 0;
-      this.keyword = "";
+      if (this.$refs.repair && this.$refs.repair.keyword) {
+        this.$refs.repair.keyword = "";
+      }
+      if (this.$refs.maintenance && this.$refs.maintenance.keyword) {
+        this.$refs.maintenance.keyword = "";
+      }
       this.sfghpjList.map((item, index) => {
       this.sfghpjList.map((item, index) => {
         item.active = "";
         item.active = "";
         if (index === 0) {
         if (index === 0) {