Commit ed1745d9 by yancanhua

fix: 测试问题修改

1 parent c9f285e5
...@@ -11,9 +11,11 @@ ...@@ -11,9 +11,11 @@
<a-spin :spinning="submitted" style="margin-top: 16px;"> <a-spin :spinning="submitted" style="margin-top: 16px;">
<a-form layout="vertical" :model="postData" :label-col="labelCol" :wrapper-col="wrapperCol" <a-form layout="vertical" :model="postData" :label-col="labelCol" :wrapper-col="wrapperCol"
ref="formRef"> ref="formRef">
<a-form-item name="vehicleId" style="width: 100%;" label="车辆信息" <a-form-item v-if="!postData.vehicleId" name="vehicleId" style="width: 100%;" label="车辆信息"
:rules="[{ required: true, message: '请选择车辆' }]"> :rules="[{ required: true, message: '请选择车辆' }]">
<a-button v-if="!postData.vehicleId" @click="addVehicle()">选择车辆</a-button> <a-button v-if="!postData.vehicleId" @click="addVehicle()">选择车辆</a-button>
</a-form-item>
<a-form-item v-if="postData.vehicleId" name="vehicleId" style="width: 100%;" label="车辆信息">
<div v-if="postData.vehicleId" class="vehicleData"> <div v-if="postData.vehicleId" class="vehicleData">
<div v-if="!postData.id" class="vehicleDelete"> <div v-if="!postData.id" class="vehicleDelete">
<a-button type="link" title="点击删除车辆" @click="deleteVehicle()">删除</a-button> <a-button type="link" title="点击删除车辆" @click="deleteVehicle()">删除</a-button>
...@@ -128,10 +130,6 @@ export default class OrderAddForm extends EnhanceFormComponent<User> { ...@@ -128,10 +130,6 @@ export default class OrderAddForm extends EnhanceFormComponent<User> {
this.inspectorData.custodianName = data?.vehicle?.custodianInfo?.custodianName || ""; this.inspectorData.custodianName = data?.vehicle?.custodianInfo?.custodianName || "";
this.inspectorData.custodianPhone = data?.vehicle?.custodianInfo?.custodianPhone || ""; this.inspectorData.custodianPhone = data?.vehicle?.custodianInfo?.custodianPhone || "";
this.inspectorData.handoverAddress = data?.vehicle?.custodianInfo?.handoverAddress || ""; this.inspectorData.handoverAddress = data?.vehicle?.custodianInfo?.handoverAddress || "";
//重置表单
setTimeout(() => {
this.$refs.formRef.resetFields()
}, 500);
this.dialogVisible = true; this.dialogVisible = true;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!