From 7e98f35f5bf60e1eed72f43e9df0b94481eeb567 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Tue, 26 Dec 2023 11:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=82=E5=B8=B8=E6=83=85?= =?UTF-8?q?=E5=86=B5=E7=BD=91=E5=85=83=E5=B1=95=E7=A4=BASN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 3 +++ src/utils/execl-utils.ts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 42843ee4..ae576f49 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -36,6 +36,8 @@ export async function listMain() { const [key, value] = Object.entries(obj)[0]; const ipAddress = (value as any).ipAddress; const systemState = (value as any).systemState; + const serialNum = (value as any).serialNum; + const errCode = systemState && systemState['errorCode']; var time = new Date(); // console.log(key, value); @@ -53,6 +55,7 @@ export async function listMain() { version: '-', refresh: parseDateToStr(time), ipAddress: ipAddress, + serialNum: serialNum, name: key.split('/').join('_'), status: 'Abnormal', }; diff --git a/src/utils/execl-utils.ts b/src/utils/execl-utils.ts index 9578360e..cc1ad49d 100644 --- a/src/utils/execl-utils.ts +++ b/src/utils/execl-utils.ts @@ -75,7 +75,6 @@ export async function writeSheet( } const workSheet = utils.json_to_sheet(data, opts); - console.log(workSheet); // 设置列宽度,单位厘米 workSheet['!cols'] = Object.keys(data[0]).map(() => {