From e48137c53bd78960f98434436cd2de3303ccf9e8 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 21:27:58 +0800 Subject: [PATCH] 更新样式 --- src/container/workshop/device.vue | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/container/workshop/device.vue b/src/container/workshop/device.vue index dc86674..2d7adad 100644 --- a/src/container/workshop/device.vue +++ b/src/container/workshop/device.vue @@ -1,13 +1,13 @@ <!-- * @Date: 2024-01-13 20:46:33 * @LastEditors: Sneed - * @LastEditTime: 2024-01-14 13:18:54 + * @LastEditTime: 2024-01-16 01:08:39 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/workshop/device.vue --> <template> <div class="device-item"> <el-checkbox class="care" v-model="care" @change="change"></el-checkbox> - <p>YKX123123213</p> + <p>{{ machineName }}</p> <div class="device-item-box"> <div class="img"> <span class="img-status" v-if="item.status === 'STOP'">鍋滄満</span> @@ -54,6 +54,18 @@ default: function () { return {} } + }, + deviceList: { + type: Array, + default: function() { + return [] + } + }, + plantDeviceList: { + type: Array, + default: function() { + return [] + } } }, data () { @@ -71,6 +83,15 @@ }, cycleCount () { return this.info.cycleCount || 0 + }, + machineName () { + try { + let arr = [...this.deviceList,...this.plantDeviceList] + return arr.find(item => item.machineId=== this.id).machineName + } catch (error) { + return this.id + } + } }, methods: { -- Gitblit v1.9.3