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">