Commit 616df1c2 by Nattana Chaiyamat

แก้ไข รายงาน Excel portal

parent 0b2fd967
......@@ -71,6 +71,7 @@ export class ExcelReportComponent implements OnInit {
this.variableSheet.push({
...data, value: data.valueDefault || '', key: key
})
this.select[key] = data.value
} else if (data.type == 'list') {
this.variableSheet.push({
...data, value: data.valueDefault || '', key: key, option: data.option.split('customize|')[1].split(',').map((x: any) => {
......@@ -78,6 +79,7 @@ export class ExcelReportComponent implements OnInit {
return { value: value || '', text: text || '' }
})
})
this.select[key] = data.value
} else if (data.type == 'radio') {
this.variableSheet.push({
...data, value: data.valueDefault || '', key: key, option: data.option.split('customize|')[1].split(',').map((x: any) => {
......@@ -85,8 +87,10 @@ export class ExcelReportComponent implements OnInit {
return { value: value || '', text: text || '' }
})
})
this.select[key] = data.value
} else if (data.type == 'help') {
this.variableSheet.push({ ...data, value: data.valueDefault ? { id: data.valueDefault, tdesc: data.valueDefault, edesc: data.valueDefault } : { id: "", tdesc: "", edesc: "" }, key: key })
this.select[key] = data.value
} else if (data.type == 'calendar') {
this.variableSheet.push({ ...data, value: data.valueDefault || '', key: key })
const [d, m, y] = data.valueDefault ? data.valueDefault.split('-').map(Number) : [null, null, null]
......
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