| | |
| | | import { deleteAction, getAction, httpAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | props: { |
| | | equipmentType: { |
| | | type: String, |
| | | default: '' |
| | | } |
| | | }, |
| | | name: 'EamEquipmentPrecisionList', |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.loadPrecisionParameterList() |
| | | // this.loadPrecisionParameterList() |
| | | }, |
| | | watch: { |
| | | equipmentType: { |
| | | immediate: true, |
| | | handler(newVal) { |
| | | this.equipmentType = newVal |
| | | this.loadPrecisionParameterList() |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | handleParamSelectChange($event, value) { |
| | |
| | | $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] |
| | | } |