|
|
@ -162,8 +162,21 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
if(row){ |
|
|
|
beginDay.value = row['beginDay'] |
|
|
|
endDay.value = row['endDay'] |
|
|
|
let days = [] |
|
|
|
let maxday = dayjs(`${row['beginMonth']}-01`).daysInMonth() |
|
|
|
if(row['beginMonth']==2) maxday = 29 |
|
|
|
|
|
|
|
for (let i=1;i<=maxday;i++){ |
|
|
|
days.push({ |
|
|
|
value:i, |
|
|
|
label:i |
|
|
|
}) |
|
|
|
} |
|
|
|
daysInMonths.value = days |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|