From 53393b4043ba73b9f97556609dabfe346ba5ee97 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 23 十月 2024 10:35:31 +0800
Subject: [PATCH] 1
---
src/views/home/widgets/index.vue | 6 +++---
src/views/mdc/station-live.vue | 13 ++++++++++---
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/home/widgets/index.vue b/src/views/home/widgets/index.vue
index d1497d7..9aca63e 100644
--- a/src/views/home/widgets/index.vue
+++ b/src/views/home/widgets/index.vue
@@ -90,7 +90,7 @@
</div>
</el-main>
<el-footer style="height:51px;">
- <el-button size="small" @click="backDefaul()">鎭㈠榛樿</el-button>
+ <el-button size="small" @click="backDefaul()">鍏抽棴</el-button>
</el-footer>
</el-container>
</div>
@@ -309,8 +309,8 @@
backDefaul(){
this.customizing = false
this.$refs.widgets.style.removeProperty('transform')
- this.grid = JSON.parse(JSON.stringify(this.defaultGrid))
- this.$TOOL.data.remove("grid")
+ // this.grid = JSON.parse(JSON.stringify(this.defaultGrid))
+ // this.$TOOL.data.remove("grid")
},
//鍏抽棴
close(){
diff --git a/src/views/mdc/station-live.vue b/src/views/mdc/station-live.vue
index 967374d..ed36881 100644
--- a/src/views/mdc/station-live.vue
+++ b/src/views/mdc/station-live.vue
@@ -2,7 +2,7 @@
* @Author: lzhe lzhe@example.com
* @Date: 2024-03-26 10:28:33
* @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-10-10 10:17:22
+ * @LastEditTime: 2024-10-23 10:34:29
* @FilePath: /smart-web/src/views/master/person/main/index.vue
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -14,7 +14,7 @@
</div>
<div class="aposcope-right">
<div class="content-machine-box">
- <div class="content-machine-img"><img src="./station.png" alt=""></div>
+ <div class="content-machine-img"><img :src="stationForm.avatar" alt=""></div>
<div class="content-machine-detail">
<div class="content-machine-name">{{stationForm.machineName}}</div>
<el-form :model="stationForm" ref="dialogForm" label-width="80px" label-position="center" style="width: 100%;">
@@ -124,6 +124,7 @@
<save-dialog v-if="dialog.save" ref="saveDialog" @success="addfeedbackSuccess" :workstationId="lastLevelId" @closed="dialog.save=false"></save-dialog>
</template>
<script>
+ import station from "./station.png";
import moment from 'moment'
import * as echarts from 'echarts';
import saveDialog from './add-station-status'
@@ -631,6 +632,9 @@
this.lastLevelId = data.id;
this.$HTTP.get(`/api/blade-cps/workstation/get?workstationId=${this.lastLevelId}`).then(res=> {
if(res.code == 200) {
+ if(res.data.avatar == "") {
+ res.data.avatar = station;
+ }
this.stationForm = res.data;
this.getdmp(this.lastLevelId,this.stationForm.machineId);
//this.newDate(); //鑾峰彇褰撳墠鏃ユ湡
@@ -814,7 +818,10 @@
},
getlist() {
this.$HTTP.get(`/api/blade-cps/workstation/get?workstationId=${this.lastLevelId}`).then(res=> {
- if(res.code == 200) {
+ if(res.code == 200) {
+ if(res.data.avatar == "") {
+ res.data.avatar = station;
+ }
this.stationForm = res.data;
this.getdmp(this.lastLevelId,this.stationForm.machineId);
}
--
Gitblit v1.9.3