|
@ -58,7 +58,7 @@ |
|
|
:apiDelete="tabsDeleteApi" |
|
|
:apiDelete="tabsDeleteApi" |
|
|
:allSchemas="Workstation.allSchemas" |
|
|
:allSchemas="Workstation.allSchemas" |
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
:searchTableSchema="popList.allSchemas" |
|
|
:searchTableSchema="tmpPopList" |
|
|
:detailAllSchemasRules="WorkstationRules" |
|
|
:detailAllSchemasRules="WorkstationRules" |
|
|
:apiPage="apiPage" |
|
|
:apiPage="apiPage" |
|
|
:tabs="TabsList" |
|
|
:tabs="TabsList" |
|
@ -70,7 +70,7 @@ |
|
|
/> |
|
|
/> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="teamListRef" |
|
|
ref="teamListRef" |
|
|
:formAllSchemas="popList.allSchemas" |
|
|
:formAllSchemas="tmpPopList" |
|
|
:isBusiness="false" |
|
|
:isBusiness="false" |
|
|
/> |
|
|
/> |
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
@ -86,7 +86,7 @@ import { |
|
|
TabsList, |
|
|
TabsList, |
|
|
Team, |
|
|
Team, |
|
|
Workstation, |
|
|
Workstation, |
|
|
WorkstationRules, popList |
|
|
WorkstationRules, teamPopList,equipmentPopList,processPopList,stepPopList |
|
|
} from './workstation.data' |
|
|
} from './workstation.data' |
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
@ -273,6 +273,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const detailAllSchemas = ref(Team.allSchemas) |
|
|
const detailAllSchemas = ref(Team.allSchemas) |
|
|
const apiPage = ref(WorkstationApi.getTeamPage) |
|
|
const apiPage = ref(WorkstationApi.getTeamPage) |
|
|
const tableKey = ref("Team"); |
|
|
const tableKey = ref("Team"); |
|
|
|
|
|
let tmpPopList = teamPopList.allSchemas |
|
|
// tabs 切换事件 |
|
|
// tabs 切换事件 |
|
|
const changeTabs = (data) =>{ |
|
|
const changeTabs = (data) =>{ |
|
|
tableKey.value = data.prop |
|
|
tableKey.value = data.prop |
|
@ -281,23 +282,25 @@ const changeTabs = (data) =>{ |
|
|
detailAllSchemas.value = Team.allSchemas |
|
|
detailAllSchemas.value = Team.allSchemas |
|
|
tabsDeleteApi = WorkstationApi.deleteTeamRelation |
|
|
tabsDeleteApi = WorkstationApi.deleteTeamRelation |
|
|
tabsCreateApi = WorkstationApi.createTeamRelation |
|
|
tabsCreateApi = WorkstationApi.createTeamRelation |
|
|
|
|
|
tmpPopList = teamPopList.allSchemas |
|
|
}else if(data.prop == 'Equipment'){ |
|
|
}else if(data.prop == 'Equipment'){ |
|
|
apiPage.value = WorkstationApi.getEquipmentPage |
|
|
apiPage.value = WorkstationApi.getEquipmentPage |
|
|
detailAllSchemas.value = Equipment.allSchemas |
|
|
detailAllSchemas.value = Equipment.allSchemas |
|
|
tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
tabsCreateApi = WorkstationApi.createEquipmentRelation |
|
|
tabsCreateApi = WorkstationApi.createEquipmentRelation |
|
|
|
|
|
tmpPopList = equipmentPopList.allSchemas |
|
|
}else if(data.prop == 'Process'){ |
|
|
}else if(data.prop == 'Process'){ |
|
|
apiPage.value = WorkstationApi.getProcessPage |
|
|
apiPage.value = WorkstationApi.getProcessPage |
|
|
detailAllSchemas.value = Process.allSchemas |
|
|
detailAllSchemas.value = Process.allSchemas |
|
|
tabsDeleteApi = WorkstationApi.deleteProcessRelation |
|
|
tabsDeleteApi = WorkstationApi.deleteProcessRelation |
|
|
tabsCreateApi = WorkstationApi.createProcessRelation |
|
|
tabsCreateApi = WorkstationApi.createProcessRelation |
|
|
|
|
|
tmpPopList = processPopList.allSchemas |
|
|
}else if(data.prop == 'Opersteps'){ |
|
|
}else if(data.prop == 'Opersteps'){ |
|
|
apiPage.value = WorkstationApi.getOperstepsPage |
|
|
apiPage.value = WorkstationApi.getOperstepsPage |
|
|
detailAllSchemas.value = Opersteps.allSchemas |
|
|
detailAllSchemas.value = Opersteps.allSchemas |
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
tabsCreateApi = WorkstationApi.createOperstepsRelation |
|
|
tabsCreateApi = WorkstationApi.createOperstepsRelation |
|
|
|
|
|
tmpPopList = stepPopList.allSchemas |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const teamListRef = ref() |
|
|
const teamListRef = ref() |
|
|