ota-升级活动备案-升级目标车型-表单

This commit is contained in:
刘彦泽
2023-03-29 17:52:48 +08:00
parent da36408bd5
commit 44ba3dbf12
@@ -10,7 +10,7 @@
{{$t('templateDownload')}} {{$t('templateDownload')}}
</div> </div>
</div> </div>
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form-model class="formAdd" ref="ruleForm" :model="form" :rules="rules"> <a-form-model class="formAdd" ref="ruleForm" :model="form" :rules="rules">
<a-row :gutter="24"> <a-row :gutter="24">
@@ -20,7 +20,7 @@
<span class="title-text-text" :title="$t('selectTheVehicleTemplate')">{{$t('selectTheVehicleTemplate')}}</span> <span class="title-text-text" :title="$t('selectTheVehicleTemplate')">{{$t('selectTheVehicleTemplate')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="dutyTerritory"> <a-form-model-item class="itemModel" prop="dutyTerritory">
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :placeholder="$t('PleaseSelect')" @change="update"> <a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :placeholder="$t('PleaseSelect')" @change="update">
<a-select-option v-for="(item , key ) in selectListMb" :key="key" :value="item.id" > <a-select-option v-for="(item , key ) in selectListMb" :key="key" :value="item.id" >
{{ item.cpdjbh }} {{ item.cpdjbh }}
</a-select-option> </a-select-option>
@@ -59,7 +59,7 @@
</div> </div>
</div> </div>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text-add"> <div class="box-title-text-add">
<div class="title-text-add plus"> <div class="title-text-add plus">
@@ -82,7 +82,7 @@
</div> </div>
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel">
<a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" :title='form.cpsb' v-model="form.cpsb" :max-length="50"></a-input> <a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" :title='form.cpsb' v-model="form.cpsb" :max-length="50"></a-input>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -93,7 +93,7 @@
</div> </div>
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel">
<a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" :title='form.cpmc' v-model="form.cpmc" :max-length="50"></a-input> <a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" :title='form.cpmc' v-model="form.cpmc" :max-length="50"></a-input>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -104,7 +104,7 @@
</div> </div>
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel">
<a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" :title='form.cpxh' v-model="form.cpxh" :max-length="50"></a-input> <a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" :title='form.cpxh' v-model="form.cpxh" :max-length="50"></a-input>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -143,7 +143,7 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
</a-spin> </a-spin>
@@ -192,7 +192,7 @@ import ImportFile from '@/components/ImportFileData/index'
this.getSelect() this.getSelect()
this.getData() this.getData()
}, },
methods: { methods: {
// 模板下载 // 模板下载
handleModule() { handleModule() {
@@ -220,7 +220,7 @@ import ImportFile from '@/components/ImportFileData/index'
this.form=res.result this.form=res.result
if(res.result.dllx1==null){ if(res.result.dllx1==null){
this.form.dllx1=undefined this.form.dllx1=undefined
} }
if(res.result.dllx2==null){ if(res.result.dllx2==null){
this.form.dllx2=undefined this.form.dllx2=undefined
@@ -233,7 +233,7 @@ import ImportFile from '@/components/ImportFileData/index'
} }
this.$forceUpdate() this.$forceUpdate()
} }
} }
}) })
}, },
@@ -258,7 +258,7 @@ import ImportFile from '@/components/ImportFileData/index'
}) })
} }
}) })
}, },
next(){ next(){
this.save() this.save()
@@ -266,8 +266,8 @@ import ImportFile from '@/components/ImportFileData/index'
if(valid){ if(valid){
this.$emit('basicInformationForm') this.$emit('basicInformationForm')
}}) }})
}, },
getSelect(){ getSelect(){
getAction('/ota/otaBaCxList/list').then(res=>{ getAction('/ota/otaBaCxList/list').then(res=>{
@@ -279,7 +279,7 @@ import ImportFile from '@/components/ImportFileData/index'
obj=item obj=item
this.selectListPc.push(obj) this.selectListPc.push(obj)
} }
}) })
} }
}) })
@@ -306,12 +306,12 @@ import ImportFile from '@/components/ImportFileData/index'
}else{ }else{
this. projectNameList2=['其他'] this. projectNameList2=['其他']
} }
}, },
changeId(value,option){ changeId(value,option){
this.selectListPc.map(item=>{ this.selectListPc.map(item=>{
if(item.id==value){ if(item.id==value){
this.form.cpsb = item.cpsb this.form.cpsb = item.cpsb
this.form.cpmc = item.cpmc this.form.cpmc = item.cpmc
this.form.cpxh = item.cpxh this.form.cpxh = item.cpxh
this.form.babh = item.cpdjbh this.form.babh = item.cpdjbh
@@ -334,9 +334,9 @@ import ImportFile from '@/components/ImportFileData/index'
} }
.box-title-text-add { .box-title-text-add {
line-height: 1.4; //line-height: 1.4;
display: flex; display: flex;
align-items: center;
} }
.title-text-add { .title-text-add {
@@ -350,7 +350,7 @@ import ImportFile from '@/components/ImportFileData/index'
// text-overflow: ellipsis; // text-overflow: ellipsis;
// white-space: nowrap; // white-space: nowrap;
height: 42px; height: 42px;
line-height: 42px; //line-height: 20px;
margin-top: 3px; margin-top: 3px;
} }
@@ -364,7 +364,7 @@ import ImportFile from '@/components/ImportFileData/index'
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
height: 42px; height: 42px;
line-height: 42px; //line-height: 42px;
margin-top: 3px; margin-top: 3px;
margin-bottom: 20px; margin-bottom: 20px;
} }
@@ -396,11 +396,11 @@ import ImportFile from '@/components/ImportFileData/index'
} }
.plus{ .plus{
margin-top: 5px; margin-top: 5px;
line-height: 1.4 !important; line-height: 1.2;
} }
.plus2{ .plus2{
word-break: break-all; word-break: break-all;
line-height: 1.3; line-height: 1.2;
} }
.Required { .Required {
color: red; color: red;