|
@@ -40,6 +40,7 @@ var ExcelUtil = /** @class */ (function () {
|
|
|
* @param sheetname
|
|
|
*/
|
|
|
ExcelUtil.getExcelInfo = function (excelPath) {
|
|
|
+ var _a;
|
|
|
var workbook = xlsx.readFile(excelPath, { cellStyles: true, bookFiles: true });
|
|
|
var sheetname = workbook.SheetNames[0];
|
|
|
var worksheet = workbook.Sheets[sheetname];
|
|
@@ -122,7 +123,16 @@ var ExcelUtil = /** @class */ (function () {
|
|
|
if (ret.keys.findIndex(function (v) { return v == name_1; }) != -1) {
|
|
|
Config_1.Config.checkState(Config_1.RetCode.COL_NAME_REPEAT, "".concat(StringUtil_1.default.getCheckString(address, ret), " \n\u540C\u4E00\u4E2A\u8868\u4E2D\u53D1\u73B0\u5217\u540D\u91CD\u590D\uFF01").concat(name_1));
|
|
|
}
|
|
|
- ret.keys.push({ name: name_1, outputclient: outputclient, outputserver: outputserver, type: type, isUniq: isUniq, isArray: isArray, canZeroStr: canZeroStr });
|
|
|
+ ret.keys.push({
|
|
|
+ name: name_1,
|
|
|
+ outputclient: outputclient,
|
|
|
+ outputserver: outputserver,
|
|
|
+ type: type,
|
|
|
+ isUniq: isUniq,
|
|
|
+ isArray: isArray,
|
|
|
+ canZeroStr: canZeroStr,
|
|
|
+ des: (_a = worksheet[col + 2]) === null || _a === void 0 ? void 0 : _a.v
|
|
|
+ });
|
|
|
delete worksheet[address]; // 删除表头信息
|
|
|
}
|
|
|
};
|