src/views/eam/equipment/modules/EamEquipmentPrecisionList.vue
@@ -94,6 +94,12 @@
import { deleteAction, getAction, httpAction } from '@/api/manage'
export default {
  props: {
    equipmentType: {
      type: String,
      default: ''
    }
  },
  name: 'EamEquipmentPrecisionList',
  data() {
    return {
@@ -136,7 +142,16 @@
    }
  },
  created() {
    this.loadPrecisionParameterList()
    // this.loadPrecisionParameterList()
  },
  watch: {
    equipmentType: {
      immediate: true,
      handler(newVal) {
        this.equipmentType = newVal
        this.loadPrecisionParameterList()
      }
    }
  },
  methods: {
    handleParamSelectChange($event, value) {
@@ -147,8 +162,9 @@
        $event.row.parameterCode = undefined
      }
    },
    // 接收设备种类参数并加载列表
    loadPrecisionParameterList() {
      getAction(this.url.precisionParamList).then(res => {
      getAction(this.url.precisionParamList, { equipmentType: this.equipmentType }).then(res => {
        if (res.success) {
          this.precisionParameterList = [...res.result]
        }