ota-升级影响评估增加文本框

ota-升级活动备案增加列表字段
This commit is contained in:
zyx.net
2023-05-11 09:48:40 +08:00
parent 43aef8c539
commit d54281a3fe
2 changed files with 49 additions and 21 deletions
@@ -255,6 +255,13 @@ export default {
ellipsis: true,
width: 170
},
{
title: this.$t('taskname'),
align: 'left',
dataIndex: 'rwmc',
ellipsis: true,
width: 170
},
{
title: this.$t('noticebatch'),
align: 'left',
@@ -105,15 +105,24 @@
</tr>
<tr>
<td colspan="2" align="left" height="50px">{{$t('upgradefailureorinterruption')}}</td>
<td height="50px" style='position: relative'>
<j-multi-select-tag class="box-input1"
v-model="form.aqjz"
style='margin-top: 2px'
:disabled="disable"
dictCode="upgrade_failed"
:placeholder="$t('PleaseSelect')"
:type="'select'"
:triggerChange="false"/>
<td :height="this.flag == true ? '100px' : '50px'" style='position: relative'>
<div>
<j-multi-select-tag class="box-input1"
v-model="form.aqjz"
style='margin-top: 2px'
:disabled="disable"
dictCode="upgrade_failed"
:placeholder="$t('PleaseSelect')"
:type="'select'"
@changeQuery='changeQuery'
:triggerChange="false"/>
</div>
<div v-if='flag'>
<a-input class="box-input2"
v-model="form.wbk"
:title="form.wbk ? form.wbk : $t('PleaseEnter')"
:placeholder="$t('PleaseEnter')"></a-input>
</div>
</td>
</tr>
<tr>
@@ -190,6 +199,7 @@ export default {
exportData: '/ota/otaBaSjSjyxpg/exportData',
importZipUrl: '/ota/otaBaSjSjyxpg/importData?otaId=' + localStorage.getItem('otaId'),//导入
},
flag:false,
loading: false,
disable:false,
columns: [
@@ -379,18 +389,14 @@ this.$forceUpdate()
if(res.result.zxsj==null){
res.result.zxsj=undefined
}
this.form=res.result==null ? {
sjmd:'',
// fhgd:1,
// zdjsxg:2,
// sfyxaq:2,
// yhqr:1,
// aqkkx:1,
// zxsj:2,
// aqjz:'2',
// sjbcs:'3,4'
} : res.result
this.form=res.result==null ? { sjmd:'' } : res.result
}
console.log(this.form.aqjz)
if(this.form.aqjz == '2'){
this.flag = true
}else{
this.flag = false
}
})
},
save(){
@@ -417,6 +423,13 @@ this.$forceUpdate()
this.save()
this.$emit('safetyPrecautionsdown')
},
changeQuery(val) {
if(val.indexOf('将车辆置于安全状态') != -1 || val.indexOf('Put the vehicle in a safe position') != -1){
this.flag = true
}else{
this.flag = false
}
},
}
}
</script>
@@ -446,13 +459,21 @@ this.$forceUpdate()
margin-left: 40px;
}
.box-input1 {
display: inline-block;
//display: inline-block;
width: calc(100% - 80px);
position: absolute;
height: 38px;
margin-left: 40px;
top: 4px;
}
.box-input2 {
//display: inline-block;
width: calc(100% - 80px);
position: absolute;
height: 38px;
margin-left: 40px;
top: 50px;
}
::v-deep .ant-table-row-cell-ellipsis .ant-table-column-title {
white-space: pre-wrap!important;
}