feat: 飞猪自动化调试完成
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user