From c2910d752beadf7a87f77d77feec9a2497cf4db1 Mon Sep 17 00:00:00 2001 From: lichong <18518571399@163.com> Date: Wed, 25 Dec 2024 14:32:02 +0800 Subject: [PATCH] 1225 --- electron-builder.yml | 4 +- package.json | 2 +- src/main/index.js | 2 +- src/renderer/src/App.vue | 8 +- .../assets/excel/19年1月销售汇总.xls | Bin 891392 -> 891392 bytes src/renderer/src/assets/js/db.js | 2 +- src/renderer/src/assets/json/sale.json | 7 + .../src/components/tablecomponent.vue | 47 ++- src/renderer/src/views/sale.vue | 371 +++++++++++++++--- 9 files changed, 361 insertions(+), 82 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 057bd06..301637b 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,5 +1,5 @@ appId: com.electron.lichong -productName: 数据计算 +productName: 销售统计 directories: buildResources: build files: @@ -14,7 +14,7 @@ win: executableName: lichong-app nsis: oneClick: false - artifactName: 数据计算-${version}-setup.${ext} + artifactName: 销售统计-${version}-setup.${ext} allowToChangeInstallationDirectory: true shortcutName: ${productName} uninstallDisplayName: ${productName} diff --git a/package.json b/package.json index 3a6c1a6..55de5b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron", - "version": "1.0.4", + "version": "1.0.0", "description": "An Electron application with Vue", "main": "./out/main/index.js", "author": "lichong", diff --git a/src/main/index.js b/src/main/index.js index a4bfc05..55f94be 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -23,7 +23,7 @@ function createWindow() { }) mainWindow.on('ready-to-show', () => { mainWindow.show() - // mainWindow.webContents.openDevTools() + mainWindow.webContents.openDevTools() }) mainWindow.webContents.setWindowOpenHandler((details) => { shell.openExternal(details.url) diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index f07d9d2..3dc0446 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -1,6 +1,6 @@