处理下拉组件不能清空的问题

修改表格字段
This commit is contained in:
renpy 2023-08-18 11:20:56 +08:00
parent d57e7da6c6
commit b684831e78
2 changed files with 12 additions and 46 deletions

View File

@ -217,56 +217,20 @@ const columns = [{
const columns_info = [{ const columns_info = [{
title: 'NUCLIDE', title: 'NUCLIDE',
align: 'left', align: 'left',
dataIndex: 'nuclide' dataIndex: 'nuclide',
width:200
},{ },{
title: 'THRESHOLD ', title: 'THRESHOLD ',
align: 'left', align: 'left',
dataIndex: 'threshold' dataIndex: 'threshold',
width:200
},{ },{
title: 'ARMDARR', title: 'VALUE ',
align: 'left', align: 'left',
dataIndex: 'ARMDARR', dataIndex: 'value',
customRender: (val) => { width:200
if(!val){ },
return "--"
} else{
return val
}
}
},{
title: 'ARMDRRR',
align: 'left',
dataIndex: 'ARMDRRR',
customRender: (val) => {
if(!val){
return "--"
} else{
return val
}
}
},{
title: 'IDCARR',
align: 'left',
dataIndex: 'IDCARR',
customRender: (val) => {
if(!val){
return "--"
} else{
return val
}
}
},{
title: 'IDCRRR',
align: 'left',
dataIndex: 'IDCRRR',
customRender: (val) => {
if(!val){
return "--"
} else{
return val
}
}
}
] ]
export default { export default {
components: { components: {

View File

@ -19,6 +19,7 @@
:maxTagCount="1" :maxTagCount="1"
:filter-option="filterOption" :filter-option="filterOption"
show-arrow show-arrow
allowClear
:options="stationOptions" :options="stationOptions"
@change="onStationChange" @change="onStationChange"
> >
@ -33,7 +34,7 @@
dictCode="alarm_analyse_rule_source" dictCode="alarm_analyse_rule_source"
/> />
</a-col> </a-col>
<a-col flex="265px"> <a-col flex="275px">
<span class="item-label">Nuclide</span> <span class="item-label">Nuclide</span>
<a-select style="width:180px" <a-select style="width:180px"
v-model="queryParams.nuclide" v-model="queryParams.nuclide"
@ -42,6 +43,7 @@
:maxTagCount="1" :maxTagCount="1"
:filter-option="filterOption" :filter-option="filterOption"
show-arrow show-arrow
allowClear
:options="nuclideOptions" :options="nuclideOptions"
@change="onNuclideChange" @change="onNuclideChange"
> >