1

parent 8532d3ee
...@@ -39,12 +39,19 @@ onMounted(async () => { ...@@ -39,12 +39,19 @@ onMounted(async () => {
getStartDateList(); getStartDateList();
}); });
const selectItem = (index, item) => { const selectItem = (index, item) => {
console.log('item', item);
selectedItem.value = index; selectedItem.value = index;
emit('dataParams', item); emit('dataParams', item);
}; };
// 查询出发日期 // 查询出发日期
const getStartDateList = () => { const getStartDateList = () => {
getStartDate(params).then((res) => { getStartDate(params).then((res) => {
console.log('res.data', res.data);
const transformedData = Object.keys(res.data).reduce((acc, key) => {
acc[key] = { [key]: res.data[key] };
return acc;
}, {});
dataList.value = res.data; dataList.value = res.data;
console.log(Object.keys(dataList.value, 232)); console.log(Object.keys(dataList.value, 232));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment