|
|
@ -164,6 +164,16 @@ const buttonTableClick = async (val, row) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
if('update'==type){ |
|
|
|
let cycle = [] |
|
|
|
let week = ['monday','tuesday','wednesday','thursday','friday','saturday','sunday'] |
|
|
|
week.forEach(item=>{ |
|
|
|
if(row[item]==1){ |
|
|
|
cycle.push(item) |
|
|
|
} |
|
|
|
}) |
|
|
|
row.cycle = cycle |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
|
|
|
|