浏览代码

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