2024-07-22 10:35:01 +08:00
|
|
|
<template>
|
2024-09-26 10:01:41 +08:00
|
|
|
<div class="default-main device">
|
2024-10-16 16:57:04 +08:00
|
|
|
<currentDevice ref="currentDeviceRef" />
|
2024-07-22 10:35:01 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
2024-08-26 14:21:46 +08:00
|
|
|
<script lang="ts" setup>
|
2024-10-16 16:57:04 +08:00
|
|
|
import { ref, onMounted, watch, nextTick } from 'vue'
|
2024-08-26 14:21:46 +08:00
|
|
|
import currentDevice from './supplementaryRecruitment/currentDevice.vue'
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const activeName = ref('0')
|
2024-10-16 16:57:04 +08:00
|
|
|
const currentDeviceRef = ref()
|
2024-08-26 14:21:46 +08:00
|
|
|
watch(
|
2024-10-16 16:57:04 +08:00
|
|
|
() => activeName.value,
|
|
|
|
|
(val, oldVal) => {
|
|
|
|
|
if (val == '0') {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
currentDeviceRef.value && currentDeviceRef.value.getMakeUpDataList(route.query)
|
2024-08-26 14:21:46 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-10-16 16:57:04 +08:00
|
|
|
immediate: true,
|
|
|
|
|
deep: true
|
2024-08-26 14:21:46 +08:00
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
console.log()
|
2024-10-16 16:57:04 +08:00
|
|
|
currentDeviceRef.value && currentDeviceRef.value.getMakeUpDataList(route.query)
|
2024-07-22 10:35:01 +08:00
|
|
|
})
|
|
|
|
|
</script>
|
2024-09-26 10:01:41 +08:00
|
|
|
<style lang="scss" scoped>
|
2024-10-16 16:57:04 +08:00
|
|
|
.device {
|
2024-11-06 13:25:42 +08:00
|
|
|
height: calc(100vh - 130px);
|
2024-09-26 10:01:41 +08:00
|
|
|
}
|
|
|
|
|
</style>
|