From 5053aca455f327d3227b974a037ae26d9ffb14d1 Mon Sep 17 00:00:00 2001 From: yangrd <1020519285@qq.com> Date: Thu, 3 Apr 2025 09:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=BA=A4=E9=AA=8C=20=E6=9D=90=E6=96=99=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=9B=BE=E7=89=87=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/equData/eqDataForm.vue | 3 +++ components/materialCard.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/equData/eqDataForm.vue b/components/equData/eqDataForm.vue index 898644b..2447a96 100644 --- a/components/equData/eqDataForm.vue +++ b/components/equData/eqDataForm.vue @@ -193,6 +193,7 @@ export default { return { form: new EquipmentData(), rules: { + name: [{ required: true, message: '请填写数据名称', trigger: 'blur' }], dateTime: [{ required: true, message: '请选择时间', trigger: 'blur' }], }, isReadonly: false, @@ -222,6 +223,8 @@ export default { this.equipment = this.currentEquipment; this.queryLaboratoryInfo(); if (this.mode === 'details') { + + this.isReadonly=true this.form = this.currentEquData; let { images } = this.form; //图片填充 diff --git a/components/materialCard.vue b/components/materialCard.vue index 06f05c8..95d128d 100644 --- a/components/materialCard.vue +++ b/components/materialCard.vue @@ -76,7 +76,7 @@ + :src="material.compressionUrl">