From 24d9e4fecbd2b006ae49f32f1608e9a9f9d1eca6 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Mon, 9 Feb 2026 18:05:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/index.js | 35 -------------------------------- src/views/board/board1/index.vue | 24 +++++++++++----------- src/views/board/board4/index.vue | 24 +++++++++++----------- src/views/board/board5/index.vue | 34 +++++++++++++++---------------- src/views/model/model.vue | 26 ++++++++++++------------ 5 files changed, 54 insertions(+), 89 deletions(-) delete mode 100644 build/index.js diff --git a/build/index.js b/build/index.js deleted file mode 100644 index 0c57de2..0000000 --- a/build/index.js +++ /dev/null @@ -1,35 +0,0 @@ -const { run } = require('runjs') -const chalk = require('chalk') -const config = require('../vue.config.js') -const rawArgv = process.argv.slice(2) -const args = rawArgv.join(' ') - -if (process.env.npm_config_preview || rawArgv.includes('--preview')) { - const report = rawArgv.includes('--report') - - run(`vue-cli-service build ${args}`) - - const port = 9526 - const publicPath = config.publicPath - - var connect = require('connect') - var serveStatic = require('serve-static') - const app = connect() - - app.use( - publicPath, - serveStatic('./dist', { - index: ['index.html', '/'] - }) - ) - - app.listen(port, function () { - console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) - if (report) { - console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) - } - - }) -} else { - run(`vue-cli-service build ${args}`) -} diff --git a/src/views/board/board1/index.vue b/src/views/board/board1/index.vue index a651e24..3d27d5a 100644 --- a/src/views/board/board1/index.vue +++ b/src/views/board/board1/index.vue @@ -39,7 +39,7 @@
报警 - {{ runningData.STANDBYCOUNT }} + {{ runningData.ALARMCOUNT }}
@@ -122,12 +122,12 @@
待机时长
-
- -
-
- -
+ + + + + +
配置
@@ -379,7 +379,7 @@ export default { }) timer = setInterval(() => { this.getData() - }, 1000 * 60 * 3) + }, 1000 * 60 * 2) }, methods: { async getData() { @@ -521,7 +521,7 @@ export default { } .num { - color: #FFEB3B; + color: #FFC107; } } @@ -535,7 +535,7 @@ export default { } .num { - color: #D8070D; + color: #FB0102; //color: #E1B00D; } } @@ -567,7 +567,7 @@ export default { position: absolute; top: 17%; left: 3.3%; - width: 74.8%; + width: 93.4%; height: 78%; overflow: auto; @@ -577,7 +577,7 @@ export default { .item { display: inline-block; - width: calc(33% - 1vw); + width: calc(25% - 1vw); height: 13.91vw; margin: 0.5vw; position: relative; diff --git a/src/views/board/board4/index.vue b/src/views/board/board4/index.vue index 0ce2a71..ccdf95c 100644 --- a/src/views/board/board4/index.vue +++ b/src/views/board/board4/index.vue @@ -22,14 +22,14 @@ style="color: #6AFD81">{{ form.isSimulate ? form.text8 : Math.min((runningData.RUNNINGCOUNT || 0) + 5, (runningData.TOTALCOUNT || 0)) }} -
告警: {{ form.isSimulate ? form.text9 : runningData.STOPPEDCOUNT }} -
-
停机: {{ - form.isSimulate ? form.text10 : Math.max((runningData.NOTSTARTEDCOUNT || 0) - 5, 0) +
停机: {{ + form.isSimulate ? form.text10 : runningData.STOPPEDCOUNT }}
+
报警: {{ form.isSimulate ? form.text9 : runningData.ALARMCOUNT }} +
{{ (form.isSimulate ? form.text5 : productionTotalData.dayTotal) || '00000' }}
@@ -244,19 +244,19 @@
+ class="scrollTableItem" style="width: 25%;font-size: 0.8vw" :style="`color:${item.shutEndTime ? '#65cdf9':'#000'}`"> {{ form.isSimulate ? item.text1 : item.deviceName }}
+ class="scrollTableItem" style="width: 25%;font-size: 0.8vw" :style="`color:${item.shutEndTime ? '#65cdf9':'#000'}`"> {{ form.isSimulate ? item.text2 : item.shutReason }}
+ class="scrollTableItem" style="width: 25%;font-size: 0.8vw" :style="`color:${item.shutEndTime ? '#65cdf9':'#000'}`"> {{ form.isSimulate ? item.text3 : item.shutBeginTime }}
+ class="scrollTableItem" style="width: 25%;font-size: 0.8vw" :style="`color:${item.shutEndTime ? '#65cdf9':'#000'}`"> {{ form.isSimulate ? item.text3 : item.shutEndTime }}
@@ -686,7 +686,7 @@ export default { await this.getData() setInterval(async () => { await this.getData() - }, 1000 * 60 * 10) + }, 1000 * 60 * 2) }, methods: { @@ -883,7 +883,7 @@ export default { top: 20, right: 20, bottom: 40, - left: 50 + left: 70 }, tooltip: { trigger: "item", diff --git a/src/views/board/board5/index.vue b/src/views/board/board5/index.vue index c87e245..2398594 100644 --- a/src/views/board/board5/index.vue +++ b/src/views/board/board5/index.vue @@ -47,7 +47,7 @@
设备巡检执行情况
故障原因统计TOP5
报警数量曲线(最近30天)
-
机台产量TOP5
+
机台当日产量TOP5
计划保养
已保养
待保养
@@ -79,9 +79,9 @@
-
累计应检设备{{ +
累计巡检次数{{ form.isSimulate ? form.text16 : inspectStatisticsData.deviceCount - }}台
+ }}次
{{ form.isSimulate ? form.text17 : inspectStatisticsData.completeRate }}% @@ -364,7 +364,7 @@ export default { await this.getData() setInterval(async () => { await this.getData() - }, 1000 * 60 * 10) + }, 1000 * 60 * 2) }, methods: { async getData() { @@ -396,19 +396,19 @@ export default { }, chartInit() { let data = [ - { - value: this.form.isSimulate ? this.form.value1 : this.deviceStatusDistributionData.experimentPercent, - name: '实验设备', - index: 0, - itemStyle: { - color: '#24ACFF', - borderColor: '#000', - borderWidth: 2 - }, - }, + // { + // value: this.form.isSimulate ? this.form.value1 : this.deviceStatusDistributionData.experimentPercent, + // name: '实验设备', + // index: 0, + // itemStyle: { + // color: '#24ACFF', + // borderColor: '#000', + // borderWidth: 2 + // }, + // }, { value: this.form.isSimulate ? this.form.value2 : this.deviceStatusDistributionData.uncheckedPercent, - name: '未检设备', + name: '未检率', index: 1, itemStyle: { color: '#3CFD96', @@ -418,7 +418,7 @@ export default { }, { value: this.form.isSimulate ? this.form.value3 : this.deviceStatusDistributionData.normalPercent, - name: '正常设备', + name: '正常率', index: 2, itemStyle: { color: '#FEE924', @@ -429,7 +429,7 @@ export default { { value: this.form.isSimulate ? this.form.value4 : this.deviceStatusDistributionData.abnormalPercent, index: 3, - name: '异常设备', + name: '异常率', itemStyle: { color: '#FE6624', borderColor: '#000', diff --git a/src/views/model/model.vue b/src/views/model/model.vue index c06f62b..26984c5 100644 --- a/src/views/model/model.vue +++ b/src/views/model/model.vue @@ -11,16 +11,16 @@
- - - - + + + +
- - - - + + + +
当前位置
当前位置
@@ -609,7 +609,7 @@ export default { // appsecret: 'rXmhoLAiOPNKzbl7g2qxCV8tFwRdYuZM' // } const viewer = new AMRT.Viewer('container', {offline: true}) - viewer.sceneManager.setBackground('http://10.100.72.10:8900/bg.jpg') + viewer.sceneManager.setBackground('http://localhost:1024/bg.jpg') viewer.controls.setTarget(285.6140415831262, -66.96447327588656, -15.909577343207037) viewer.controls.setPosition(289.21362270826876, 1559.17755547545135, 1298.62483706445185) let modelArr = [ @@ -852,7 +852,7 @@ export default { onComplete: function (m) { that.num1 += 1 if (that.num1 === modelArr.length) { - viewer.renderManager.setLoop(false) + // viewer.renderManager.setLoop(false) } num += 1 @@ -884,9 +884,9 @@ export default { // viewer.operator.enabled = true - viewer.controls.enablePan = false - viewer.controls.enableRotate = false - viewer.controls.enableZoom = false + viewer.controls.enablePan = true + viewer.controls.enableRotate = true + viewer.controls.enableZoom = true // viewer.addEventListener(AMRT.Event.UPDATE, () => { // console.log('update')