qushaowei
2024-01-12 2b4abfa6fc83152b800a7696636fe682b7ec6cbf
src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue
@@ -35,6 +35,7 @@
                :triggerChange="true"
                dictCode="maintenance_type"
                v-model="model.type"
                @change="(e)=>handleClearTable(e)"
              />
            </a-form-model-item>
          </a-col>
@@ -70,7 +71,7 @@
            <a-button
              type='primary'
              @click='standardSelect'
              :disabled="formDisabled"
              :disabled="formDisabled||model.type===null||model.type===undefined||model.type===''"
              icon="plus"
            >设备-保养标准
            </a-button>
@@ -79,7 +80,8 @@
      </a-tab-pane>
    </a-tabs>
    <standard-select
      @selectionRows='selectionRows'
      @selectionEquipmentRows='selectionRows'
      :maintenanceType="model.type"
      ref='standardSelectModel'
    ></standard-select>
  </a-spin>
@@ -322,7 +324,7 @@
        ids.push(tableData[i].standardId)
      }
      this.$refs.standardSelectModel.showModal(ids)
      this.$refs.standardSelectModel.title = '选择精度参数'
      this.$refs.standardSelectModel.title = '选择设备'
      this.$refs.standardSelectModel.disableSubmit = false
    },
    addSelected(data) {
@@ -374,6 +376,10 @@
        }
      })
    },
    handleClearTable(e) {
      this.equipmentMaintenancePlanDetailTable.dataSource = []
    }
  }
}
</script>