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