2024-07-22 10:35:01 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="default-main">
|
|
|
|
|
<el-tabs v-model="activeName" type="border-card">
|
|
|
|
|
<el-tab-pane label="当前设备补招" name="0">
|
2024-08-26 14:21:46 +08:00
|
|
|
<!-- <current v-if="activeName == '0'" /> -->
|
|
|
|
|
<currentDevice v-if="activeName == '0'" ref="currentDeviceRef"/>
|
2024-07-22 10:35:01 +08:00
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="历史设备补招" name="1">
|
|
|
|
|
<history v-if="activeName == '1'" />
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2024-08-26 14:21:46 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref, onMounted,watch ,nextTick} from 'vue'
|
|
|
|
|
// import current from './supplementaryRecruitment/current.vue'
|
|
|
|
|
import currentDevice from './supplementaryRecruitment/currentDevice.vue'
|
2024-07-22 10:35:01 +08:00
|
|
|
import history from './supplementaryRecruitment/history.vue'
|
2024-08-26 14:21:46 +08:00
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const activeName = ref('0')
|
|
|
|
|
const currentDeviceRef=ref()
|
|
|
|
|
watch(
|
|
|
|
|
()=>activeName.value,
|
|
|
|
|
(val,oldVal)=>{
|
|
|
|
|
if(val=='0'){
|
|
|
|
|
nextTick(()=>{
|
|
|
|
|
currentDeviceRef.value&¤tDeviceRef.value.getMakeUpDataList(route.query)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
immediate:true,
|
|
|
|
|
deep:true
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
console.log()
|
|
|
|
|
currentDeviceRef.value&¤tDeviceRef.value.getMakeUpDataList(route.query)
|
2024-07-22 10:35:01 +08:00
|
|
|
})
|
|
|
|
|
</script>
|
2024-08-26 14:21:46 +08:00
|
|
|
<style lang="scss" scoped></style>
|