소스 검색

'bug处理'

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) {