OTA管理工具-车型基本信息-表单样式

This commit is contained in:
刘彦泽
2023-03-31 13:26:30 +08:00
parent fc90c0537d
commit 7fc7c84473
@@ -155,17 +155,19 @@
<div class="title-text-add">
<span class="title-text-text plus3" :title="$t('Vehicledynamictype')">{{$t('Vehicledynamictype')}}</span>
</div>
<a-form-model-item class="itemModel" style="width: 38%">
<a-select class="box-input" v-model="form.dllx1" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="changeSelect($event,target)">
<a-select-option v-for="(item, key) in projectNameList1"
:key="key"
:value="item">
{{ item }}
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item class="itemModel" style="width: 40%;margin-left:20px">
<a-select v-model="form.dllx2" class="box-input" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="update">
<a-form-model-item class="itemModel">
<div style="display:flex;flex-wrap: nowrap;width: 100%;">
<div style="width: 90%;margin-right: 20px;">
<a-select class="box-input" style="width: 100%;" v-model="form.dllx1" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="changeSelect($event,target)">
<a-select-option v-for="(item, key) in projectNameList1"
:key="key"
:value="item">
{{ item }}
</a-select-option>
</a-select>
</div>
<div style="width: 100%;">
<a-select v-model="form.dllx2" class="box-input" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="update">
<a-select-option v-for="(item, key) in projectNameList2"
:key="key"
:value="item">
@@ -175,7 +177,9 @@
</span> -->
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</div>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
@@ -343,7 +347,7 @@ import { message } from 'ant-design-vue'
if(res.result.dllx2 == null){
res.result.dllx2 = undefined
}
if(res.result.cplb == null){
res.result.cplb = undefined
}
@@ -380,7 +384,7 @@ import { message } from 'ant-design-vue'
if(otaId==null || otaId == undefined){
otaId=''
}
postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => {
if(res.code == 200){
localStorage.setItem('otaId', res.result.otaId)
@@ -419,7 +423,7 @@ import { message } from 'ant-design-vue'
if(this.form.dllx1=='其他'){
this. projectNameList2=['其他']
}
},
update(){