diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs index 3e72548..29774e3 100644 --- a/electron.vite.config.mjs +++ b/electron.vite.config.mjs @@ -2,8 +2,12 @@ import { resolve } from 'path' import { defineConfig, externalizeDepsPlugin } from 'electron-vite' import vue from '@vitejs/plugin-vue' import VueDevTools from 'vite-plugin-vue-devtools'; +import pkg from './package.json' export default defineConfig({ + define: { + 'import.meta.env.VITE_APP_VERSION': JSON.stringify(pkg.version) + }, main: { plugins: [externalizeDepsPlugin()] }, diff --git a/package.json b/package.json index 7ac4e50..1cbba41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calibration-pc", - "version": "1.0.0", + "version": "1.0.9", "description": "谷云开发部开发的断路器标定软件", "main": "./out/main/index.js", "author": "example.com", @@ -21,12 +21,10 @@ "@electron-toolkit/preload": "^3.0.1", "@electron-toolkit/utils": "^3.0.0", "axios": "^1.7.2", - "calibration-pc": "file:", "dayjs": "^1.11.13", "electron-updater": "^6.1.7", "element-plus": "^2.7.6", "file-saver": "^2.0.5", - "gateway-app": "file:", "pinia": "^2.1.7", "vue-router": "^4.4.0", "xlsx": "^0.18.5" diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index f6df065..6e771ca 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4622943 */ - src: url('iconfont.woff2?t=1743060096253') format('woff2'), - url('iconfont.woff?t=1743060096253') format('woff'), - url('iconfont.ttf?t=1743060096253') format('truetype'); + src: url('iconfont.woff2?t=1750322442953') format('woff2'), + url('iconfont.woff?t=1750322442953') format('woff'), + url('iconfont.ttf?t=1750322442953') format('truetype'); } .iconfont { @@ -13,6 +13,46 @@ -moz-osx-font-smoothing: grayscale; } +.icon-rizhi:before { + content: "\e61c"; +} + +.icon-bug:before { + content: "\e725"; +} + +.icon-caozuorizhi:before { + content: "\e610"; +} + +.icon-rizhishenji:before { + content: "\e666"; +} + +.icon-chenggong:before { + content: "\e615"; +} + +.icon-rizhi1:before { + content: "\e613"; +} + +.icon-chenggong1:before { + content: "\e616"; +} + +.icon-bug-fill:before { + content: "\e773"; +} + +.icon-bug-line:before { + content: "\e774"; +} + +.icon-kongtiaoguizhuduanluqiAA:before { + content: "\e68e"; +} + .icon--_saomaqiang:before { content: "\e640"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index 6123c12..a19d60a 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index 78308d8..d4dd5d7 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 904d683..c673084 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/views/calibration/index.vue b/src/renderer/src/views/calibration/index.vue index 626f897..18e7686 100644 --- a/src/renderer/src/views/calibration/index.vue +++ b/src/renderer/src/views/calibration/index.vue @@ -2,7 +2,7 @@
- + 开始执行 @@ -13,6 +13,20 @@ 设置
+
+ 系列: {{ activeScheme.series }} + 框架: {{ activeScheme.framework }} + 类型: {{ activeScheme.schemeType }} + {{ item.unit ? item.name + '(' + item.unit + ')' : item.name }}: {{ item.value }} +
@@ -46,16 +60,42 @@
- +
- {{ item }} + + + + + + + + + + + + + + + + + + {{ item.time }} {{ item.msg }}
@@ -96,14 +144,33 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + 断路器校准参数
@@ -121,7 +188,7 @@ 校准精度(%)
- +
@@ -132,21 +199,26 @@ 添加步骤
- - - + + + + + + + + - + - + @@ -160,11 +232,11 @@ - + @@ -562,6 +706,23 @@ const deleteCalibrationStep = index => { color: white; flex-shrink: 0; } +.scheme-list { + background: #ccc; + padding: 10px; + font-size: 13px; + display: flex; + align-items: center; + justify-content: space-between; + .scheme-item { + margin-left: 10px; + &:first-child { + margin-left: 0; + } + .scheme-value { + font-weight: bold; + } + } +} .header-left, .header-center, @@ -627,6 +788,9 @@ const deleteCalibrationStep = index => { display: flex; flex-direction: column; flex-shrink: 0; + &.open-log { + height: 350px; + } } .log-output { @@ -680,6 +844,19 @@ const deleteCalibrationStep = index => { display: flex; align-items: center; justify-content: space-between; + .btn-box { + display: flex; + align-items: center; + .log-box-operate-item { + display: flex; + align-items: center; + margin-right: 10px; + cursor: pointer; + .icon-icon_gengxin { + margin-left: 2px; + } + } + } } .version-info { text-align: right;