From ee79f53fd9385b087ebd7a93af638d91a9825d10 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期三, 23 八月 2023 18:04:35 +0800 Subject: [PATCH] lnl,设备台账导入功能+页面字段调整 --- src/views/eam/modules/inspectionProject/InspectionProjectModel.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue b/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue index 1f3d2c8..b397106 100644 --- a/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue +++ b/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue @@ -114,7 +114,7 @@ </a-form-item> </a-col> --> <a-col - v-if="analysisMethod == '2'" + v-if="testValueType == '2'" :span="12" > <a-form-item @@ -131,7 +131,7 @@ </a-form-item> </a-col> <a-col - v-if="analysisMethod == '1'" + v-if="testValueType == '1'" :span="12" > <a-form-item @@ -150,7 +150,7 @@ </a-col> </a-row> <a-row - v-if="analysisMethod == '1'" + v-if="testValueType == '1'" :gutter="24" > <a-col :span="12"> @@ -277,7 +277,7 @@ codeDisable: true, disableSubmit: false, inspectionProjectCategoryId: '', - analysisMethod: null, + testValueType: null, model: {}, labelCol: { xs: { span: 24 }, @@ -304,11 +304,11 @@ { validator: this.validateName }, ] }, - analysisMethod: { - rules: [ - { required: true, message: '璇烽�夋嫨鍒嗘瀽鏂规硶!' }, - ] - }, + // analysisMethod: { + // rules: [ + // { required: true, message: '璇烽�夋嫨鍒嗘瀽鏂规硶!' }, + // ] + // }, surfaceValue: { rules: [ { required: true, message: '璇疯緭鍏ュ悕涔夊��!' }, @@ -353,12 +353,12 @@ this.model = Object.assign({}, record); this.visible = true; this.disableSubmit = false; - this.analysisMethod = record.analysisMethod + this.testValueType = record.testValueType this.$nextTick(() => { this.form.setFieldsValue(pick(this.model, 'inspectionProjectCategoryNumName', - 'num', 'name', 'unitId', 'testValueType', 'analysisMethod', 'inspectionMethod', 'inspectionTool', 'remark')) + 'num', 'name', 'unitId', 'testValueType', 'inspectionMethod', 'inspectionTool', 'remark')) }); - if (record.analysisMethod == '1') { + if (record.testValueType == '1') { this.$nextTick(() => { this.form.setFieldsValue(pick(this.model, 'surfaceValue', 'upValue', 'downValue')) }); @@ -440,7 +440,7 @@ }, handleChange(val) { - this.analysisMethod = val + this.testValueType = val }, validateDownValue(rule, value, callback) { -- Gitblit v1.9.3