| | |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <div style="display: flex"> |
| | | <el-button v-waves icon="el-icon-c-scale-to-original" @click="deviceTypeButton">设备类型</el-button> |
| | | <el-button v-waves icon="el-icon-document-copy" @click="deviceGroupButton">设备组</el-button> |
| | | <!-- <el-button v-waves icon="el-icon-document-copy" @click="deviceGroupButton">设备组</el-button>--> |
| | | <el-button v-waves icon="el-icon-download" @click="upload">导入</el-button> |
| | | |
| | | </div> |
| | |
| | | DeviceMangerSearch, |
| | | DeviceTypeSearch, |
| | | DeviceTypeSelect, |
| | | DeviceTypeSelectGroup, |
| | | |
| | | WorkShopSelect, WorkShopSelectLine |
| | | } from '@/api/deviceManager' |
| | | import { handleDatetime, validateCode } from '@/utils/global' |
| | |
| | | const { data: res } = await DeviceTypeSelect() |
| | | this.DeviceTypeArr = res |
| | | }, |
| | | // 设备类型改变时 |
| | | async deviceTypeChange(val) { |
| | | this.form.DeviceGroup = '' |
| | | const { data: res } = await DeviceTypeSelectGroup({ eqptypecode: val }) |
| | | this.DeviceGroupArr = res |
| | | }, |
| | | |
| | | |
| | | // 排序改变时 |
| | | sortChange({ column, prop, order }) { |
| | |
| | | this.WorkLineArr = res |
| | | // this.dialogForm.linecode = '' |
| | | }, |
| | | // 对话框设备类型下拉选择改变时 |
| | | async devicetypecodeChange(val) { |
| | | const { data: res } = await DeviceTypeSelectGroup({ eqptypecode: val }) |
| | | this.DeviceGroupDialogArr = res |
| | | this.dialogForm.devicegroupcode = '' |
| | | }, |
| | | |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |