feat: 飞猪自动化调试完成

This commit is contained in:
duanshuwen
2026-03-10 21:26:17 +08:00
parent 15a7d115cb
commit 8a6544ede2
7 changed files with 124 additions and 130 deletions

View File

@@ -26,6 +26,7 @@ import { taskCenterItem } from '@constant/taskCenterList'
import { hotelStaffTypeMappingListUsingPost } from '@api/index'
const isVisible = ref(false)
const roomList: any = ref([])
const title = ref('')
const formRef = ref()
const form = ref({
@@ -83,13 +84,19 @@ const confirm = () => {
}
close()
console.log(form.value)
// 将roomList.value数组处理成标准数组
const newList = roomList.value.map((item: any) => ({ ...item }))
const options = {
roomType: form.value.roomType,
startTime: form.value.range[0],
endTime: form.value.range[1],
operation: form.value.operation,
roomList: newList
}
console.log(options)
/**
* 坑传给进程的参数不能是ref包裹的reactive对象
*/
@@ -100,7 +107,6 @@ const confirm = () => {
}
// 获取房型列表
const roomList: any = ref([])
const getRoomTypeList = async () => {
const res = await hotelStaffTypeMappingListUsingPost({ body: {} })
roomList.value = res.data
@@ -110,4 +116,4 @@ defineExpose({
open,
close,
})
</script>
</script>