处理下拉组件不能清空的问题
修改表格字段
This commit is contained in:
parent
d57e7da6c6
commit
b684831e78
|
@ -217,56 +217,20 @@ const columns = [{
|
|||
const columns_info = [{
|
||||
title: 'NUCLIDE',
|
||||
align: 'left',
|
||||
dataIndex: 'nuclide'
|
||||
dataIndex: 'nuclide',
|
||||
width:200
|
||||
},{
|
||||
title: 'THRESHOLD ',
|
||||
align: 'left',
|
||||
dataIndex: 'threshold'
|
||||
dataIndex: 'threshold',
|
||||
width:200
|
||||
},{
|
||||
title: 'ARMDARR',
|
||||
title: 'VALUE ',
|
||||
align: 'left',
|
||||
dataIndex: 'ARMDARR',
|
||||
customRender: (val) => {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
dataIndex: 'value',
|
||||
width:200
|
||||
},
|
||||
|
||||
]
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
:maxTagCount="1"
|
||||
:filter-option="filterOption"
|
||||
show-arrow
|
||||
allowClear
|
||||
:options="stationOptions"
|
||||
@change="onStationChange"
|
||||
>
|
||||
|
@ -33,7 +34,7 @@
|
|||
dictCode="alarm_analyse_rule_source"
|
||||
/>
|
||||
</a-col>
|
||||
<a-col flex="265px">
|
||||
<a-col flex="275px">
|
||||
<span class="item-label">Nuclide</span>
|
||||
<a-select style="width:180px"
|
||||
v-model="queryParams.nuclide"
|
||||
|
@ -42,6 +43,7 @@
|
|||
:maxTagCount="1"
|
||||
:filter-option="filterOption"
|
||||
show-arrow
|
||||
allowClear
|
||||
:options="nuclideOptions"
|
||||
@change="onNuclideChange"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue
Block a user