| | |
| | | <script> |
| | | import UserModal from './modules/EquipmentList/UserModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { queryProductionTreeListByMdc } from '@/api/api' |
| | | import { queryFactoryTreeList } from '@/api/api' |
| | | import { mapActions } from 'vuex' |
| | | |
| | | export default { |
| | |
| | | width: 200 |
| | | // sorter: true |
| | | }, |
| | | { |
| | | title: '安装位置', |
| | | align: 'center', |
| | | width: 200, |
| | | dataIndex: 'equipmentAddress' |
| | | }, |
| | | // { |
| | | // title: '安装位置', |
| | | // align: 'center', |
| | | // width: 200, |
| | | // dataIndex: 'equipmentAddress' |
| | | // }, |
| | | { |
| | | title: '车间', |
| | | align: 'center', |
| | |
| | | * 调用接口获取查询区域车间树列表 |
| | | */ |
| | | getWorkshopListByApi() { |
| | | queryProductionTreeListByMdc().then(res => { |
| | | queryFactoryTreeList().then(res => { |
| | | if (res.success) { |
| | | this.workshopTreeData = res.result |
| | | this.treeDefaultExpandedKeys = [...res.result].map(item => item.key) |