From 119eeb221c2b6f7e27e200ebbb790c4052e825bd Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期二, 07 十一月 2023 09:54:42 +0800
Subject: [PATCH] 修改主页
---
src/views/eam/modules/inspectionProject/InspectionProjectModel.vue | 81 ++++++++++++++++++++++------------------
1 files changed, 44 insertions(+), 37 deletions(-)
diff --git a/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue b/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue
index d8a3288..b78c688 100644
--- a/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue
+++ b/src/views/eam/modules/inspectionProject/InspectionProjectModel.vue
@@ -29,7 +29,7 @@
/>
</a-form-item>
</a-col>
- </a-row>
+ <!-- </a-row>
<a-row :gutter="24">
<a-col :span="12">
<a-form-item
@@ -39,12 +39,12 @@
>
<a-input
allow-clear
- :disabled="codeDisable"
+ :disabled="disableSubmit"
:placeholder="disableSubmit?'':'璇疯緭鍏ョ偣妫�椤圭洰缂栧彿'"
v-decorator="['num', validatorRules.num ]"
/>
</a-form-item>
- </a-col>
+ </a-col> -->
<a-col :span="12">
<a-form-item
label="鐐规椤圭洰鍚嶇О"
@@ -61,22 +61,7 @@
</a-col>
</a-row>
<a-row :gutter="24">
- <a-col :span="12">
- <a-form-item
- label="璁¢噺鍗曚綅"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- >
- <j-dict-select-tag
- allow-clear
- :disabled="disableSubmit"
- :placeholder="disableSubmit?'':'璇烽�夋嫨璁¢噺鍗曚綅'"
- :triggerChange="true"
- dictCode="mom_base_unit,name,id,status!='0' and del_flag!='1'"
- v-decorator="['unitId', validatorRules.unitId]"
- />
- </a-form-item>
- </a-col>
+
<a-col :span="12">
<a-form-item
label="妫�楠屽�肩被鍨�"
@@ -91,6 +76,23 @@
dictCode="test_value_type"
v-decorator="['testValueType', validatorRules.testValueType]"
@change="(e)=>handleChange(e)"
+ />
+ </a-form-item>
+ </a-col>
+ <a-col
+ v-if="testValueType == '2'"
+ :span="12"
+ >
+ <a-form-item
+ label="妫�娴嬫爣鍑�"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ >
+ <a-input
+ allow-clear
+ :disabled="disableSubmit"
+ :placeholder="disableSubmit?'':'璇疯緭鍏ユ娴嬫爣鍑�'"
+ v-decorator="['detectionStandard', validatorRules.detectionStandard ]"
/>
</a-form-item>
</a-col>
@@ -113,23 +115,7 @@
/>
</a-form-item>
</a-col> -->
- <a-col
- v-if="testValueType == '2'"
- :span="12"
- >
- <a-form-item
- label="妫�娴嬫爣鍑�"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- >
- <a-input
- allow-clear
- :disabled="disableSubmit"
- :placeholder="disableSubmit?'':'璇疯緭鍏ユ娴嬫爣鍑�'"
- v-decorator="['detectionStandard', validatorRules.detectionStandard ]"
- />
- </a-form-item>
- </a-col>
+
<a-col
v-if="testValueType == '1'"
:span="12"
@@ -203,6 +189,22 @@
</a-col>
<a-col :span="12">
<a-form-item
+ label="璁¢噺鍗曚綅"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="disableSubmit"
+ :placeholder="disableSubmit?'':'璇烽�夋嫨璁¢噺鍗曚綅'"
+ :triggerChange="true"
+ dictCode="mom_base_unit,name,id,status!='0' and del_flag!='1'"
+ v-decorator="['unitId', validatorRules.unitId]"
+ />
+ </a-form-item>
+ </a-col>
+ <!-- <a-col :span="12">
+ <a-form-item
label="鐐规宸ュ叿"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -214,7 +216,7 @@
v-decorator="['inspectionTool', validatorRules.inspectionTool ]"
/>
</a-form-item>
- </a-col>
+ </a-col> -->
</a-row>
<a-row :gutter="24">
@@ -372,7 +374,12 @@
if (record.id) {
this.codeDisable = true;
} else {
+ debugger
this.codeDisable = false;
+ this.$nextTick(() => {
+ this.form.setFieldsValue({ "testValueType": '2' })
+ this.testValueType = '2'
+ });
}
},
--
Gitblit v1.9.3