|
|
@ -86,7 +86,7 @@ import { |
|
|
|
TabsList, |
|
|
|
Team, |
|
|
|
Workstation, |
|
|
|
WorkstationRules, teamPopList,equipmentPopList,processPopList,stepPopList |
|
|
|
WorkstationRules,equipmentPopList,processPopList,stepPopList |
|
|
|
} from './workstation.data' |
|
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
@ -97,8 +97,8 @@ import { |
|
|
|
} from "@/api/mes/workstation"; |
|
|
|
import Detail from './components/Detail.vue' |
|
|
|
defineOptions({ name: 'Workstation' }) |
|
|
|
let tabsDeleteApi = WorkstationApi.deleteTeamRelation |
|
|
|
let tabsCreateApi = WorkstationApi.createTeamRelation |
|
|
|
let tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
|
let tabsCreateApi = WorkstationApi.createEquipmentRelation |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const route = useRoute() // 路由信息 |
|
|
@ -271,19 +271,13 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
} |
|
|
|
// 子包装数据 |
|
|
|
const detailAllSchemas = ref(Team.allSchemas) |
|
|
|
const apiPage = ref(WorkstationApi.getTeamPage) |
|
|
|
const apiPage = ref(WorkstationApi.getEquipmentPage) |
|
|
|
const tableKey = ref("Team"); |
|
|
|
let tmpPopList = teamPopList.allSchemas |
|
|
|
let tmpPopList = equipmentPopList.allSchemas |
|
|
|
// tabs 切换事件 |
|
|
|
const changeTabs = (data) =>{ |
|
|
|
tableKey.value = data.prop |
|
|
|
if(data.prop == 'Team'){ |
|
|
|
apiPage.value = WorkstationApi.getTeamPage |
|
|
|
detailAllSchemas.value = Team.allSchemas |
|
|
|
tabsDeleteApi = WorkstationApi.deleteTeamRelation |
|
|
|
tabsCreateApi = WorkstationApi.createTeamRelation |
|
|
|
tmpPopList = teamPopList.allSchemas |
|
|
|
}else if(data.prop == 'Equipment'){ |
|
|
|
if(data.prop == 'Equipment'){ |
|
|
|
apiPage.value = WorkstationApi.getEquipmentPage |
|
|
|
detailAllSchemas.value = Equipment.allSchemas |
|
|
|
tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
|