mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
修改年份数据展示
This commit is contained in:
@@ -573,14 +573,12 @@ export default defineComponent({
|
|||||||
// 初始化年份选项
|
// 初始化年份选项
|
||||||
const initializeYearOptions = async () => {
|
const initializeYearOptions = async () => {
|
||||||
let res = await getExquisiteYearList({})
|
let res = await getExquisiteYearList({})
|
||||||
const years = res.data.data.result.map((value) => {
|
const years = res.data.data.result.map((year) => {
|
||||||
return {
|
return {
|
||||||
label: `${value.name}`,
|
label: year,
|
||||||
value: value.id.toString()
|
value: year
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
console.log("years", years);
|
|
||||||
|
|
||||||
state.yearOptions = years;
|
state.yearOptions = years;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user