feat: 飞猪自动化调试完成
This commit is contained in:
@@ -1,46 +1,27 @@
|
||||
import pms from '@assets/images/channel/pms.png'
|
||||
import xc from '@assets/images/channel/xc.png'
|
||||
import qne from '@assets/images/channel/qne.png'
|
||||
import fz from '@assets/images/channel/fz.png'
|
||||
import mt from '@assets/images/channel/mt.png'
|
||||
import dy from '@assets/images/channel/dy.png'
|
||||
|
||||
// 菜单列表申明
|
||||
interface Item {
|
||||
export interface Item {
|
||||
id: number
|
||||
name: string
|
||||
icon: any
|
||||
channelName: string
|
||||
}
|
||||
|
||||
export const channel: Item[] = [
|
||||
{
|
||||
id: 1,
|
||||
name: 'PMS',
|
||||
icon: pms,
|
||||
channelName: 'pms',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '携程',
|
||||
icon: xc,
|
||||
channelName: 'xc',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: '去哪儿',
|
||||
icon: qne,
|
||||
channelName: 'fz',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: '飞猪',
|
||||
icon: fz,
|
||||
channelName: 'mt',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: '美团',
|
||||
icon: mt,
|
||||
channelName: 'dy',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: '抖音',
|
||||
icon: dy,
|
||||
}
|
||||
]
|
||||
@@ -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