精度参数添加设备类型分类,改造台账维护精度参数功能
| | |
| | | dataIndex: 'parameterCategory_dictText' |
| | | }, |
| | | { |
| | | title: '设备种类', |
| | | align: 'center', |
| | | dataIndex: 'equipmentType_dictText', |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | |
| | | <j-dict-select-tag dict-code="precision_parameters_category" placeholder="请选择参数分类" |
| | | v-model="model.parameterCategory"></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | <a-form-model-item prop="equipmentType" :labelCol="labelCol" :wrapperCol="wrapperCol" label="设备种类"> |
| | | <j-tree-dict placeholder="请选择设备种类" v-model="model.equipmentType" parent-code="equipment_category" field="code" :async="true"></j-tree-dict> |
| | | </a-form-model-item> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | |
| | | <eam-equipment-process-list ref="tabPaneTableListRef7" :isDisplayOperation="false"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备精度" :key="8" v-if="isOpenPrecision"> |
| | | <eam-equipment-precision-list ref="tabPaneTableListRef8" :isDisplayOperation="false"/> |
| | | <eam-equipment-precision-list ref="tabPaneTableListRef8" :equipment-type="currentEquipment.equipmentType" :isDisplayOperation="false"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备油液" :key="9"> |
| | | <eam-equipment-fluid-list ref="tabPaneTableListRef9" :isDisplayOperation="false"/> |
| | |
| | | data() { |
| | | return { |
| | | description: '设备台账管理页面', |
| | | currentEquipment: {}, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | * @param id 设备台账行记录Id |
| | | */ |
| | | loadTabPaneTableData(id) { |
| | | this.currentEquipment = this.dataSource.find(row => row.id === id) |
| | | this.$refs['tabPaneTableListRef' + this.activeTabKey].queryParam.equipmentId = id |
| | | this.$refs['tabPaneTableListRef' + this.activeTabKey].loadData(1) |
| | | }, |
| | |
| | | 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] |
| | | } |