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