zhangyu пре 4 година
родитељ
комит
5debfb62ca
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      src/views/equipmentFacilities/MaintenanceRecordView.vue

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

@@ -147,7 +147,12 @@ export default {
     // 初始化
     initData() {
       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) => {
         item.active = "";
         if (index === 0) {