| | |
| | | |
| | | //车间管理 |
| | | const queryProductionTreeList = (params)=>getAction("/mdc/mdcProduction/queryTreeList",params); |
| | | const queryProductionTreeListByMdc = (params)=>getAction("/mdc/mdcProduction/queryTreeListByMdc",params); |
| | | const queryById = (params)=>getAction("/mdc/mdcProduction/queryIdTree",params); |
| | | const deleteByProduction = (params)=>deleteAction("/mdc/mdcProduction/delete",params); |
| | | |
| | |
| | | getUserNoticeInfo, |
| | | getDictItemsFromCache, |
| | | queryProductionTreeList, |
| | | queryProductionTreeListByMdc, |
| | | deleteByProduction, |
| | | queryById, |
| | | addEquipment, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { queryProductionTreeList } from '@/api/api' |
| | | import { queryProductionTreeListByMdc } from '@/api/api' |
| | | import { getAction } from '@/api/manage' |
| | | export default { |
| | | name: 'JSelectEquipmentProductionModal', |
| | |
| | | }, |
| | | loadDepart(){ |
| | | // 这个方法是找到所有的部门信息 |
| | | queryProductionTreeList().then(res=>{ |
| | | queryProductionTreeListByMdc().then(res=>{ |
| | | if(res.success){ |
| | | let arr = [...res.result] |
| | | this.reWriterWithSlot(arr) |
| | |
| | | <script> |
| | | import dncApi from '@/api/dnc' |
| | | import UserPermissionTransfer from './UserPermissionTransfer' |
| | | import { queryProductionTreeList } from '@/api/api' |
| | | |
| | | export default { |
| | | name: 'AssignPermissionModal', |
| | |
| | | <script> |
| | | import UserModal from './modules/EquipmentList/UserModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { queryProductionTreeList } from '@/api/api' |
| | | import { queryProductionTreeListByMdc } from '@/api/api' |
| | | import { mapActions } from 'vuex' |
| | | |
| | | export default { |
| | |
| | | * 调用接口获取查询区域车间树列表 |
| | | */ |
| | | getWorkshopListByApi() { |
| | | queryProductionTreeList().then(res => { |
| | | queryProductionTreeListByMdc().then(res => { |
| | | if (res.success) { |
| | | this.workshopTreeData = res.result |
| | | this.treeDefaultExpandedKeys = [...res.result].map(item => item.key) |