|
@@ -2281,14 +2281,14 @@ const getDataSource = async (e) => {
|
|
|
if (e === 'excel') {
|
|
|
let data = await importExcel();
|
|
|
if (Array.isArray(data) && Array.isArray(data[0])) {
|
|
|
- meta2d.setValue({ id: props.pen.id, data: data, styles: [], mergeCells: [], colHeaders: false }, { doEvent: false });
|
|
|
+ meta2d.setValue({ id: props.pen.id, data: data, styles: [], mergeCells: [], colHeaders: false ,columns:[]}, { doEvent: false });
|
|
|
} else {
|
|
|
MessagePlugin.warning($t("数据格式必需是二维数组"));
|
|
|
}
|
|
|
} else if (e === 'csv') {
|
|
|
let data = await importCSV();
|
|
|
if (Array.isArray(data) && Array.isArray(data[0])) {
|
|
|
- meta2d.setValue({ id: props.pen.id, data: data, styles: [], mergeCells: [], colHeaders: false }, { doEvent: false });
|
|
|
+ meta2d.setValue({ id: props.pen.id, data: data, styles: [], mergeCells: [], colHeaders: false ,columns:[]}, { doEvent: false });
|
|
|
} else {
|
|
|
MessagePlugin.warning($t("数据格式必需是二维数组"));
|
|
|
}
|