字典数据source字段增加下拉icon

修改规则的接口参数调整
This commit is contained in:
renpy 2023-08-04 17:45:39 +08:00
parent c7bcfe1ff0
commit d16bbfc718
2 changed files with 28 additions and 5 deletions

View File

@ -25,7 +25,7 @@
<img slot="suffixIcon" src="@/assets/images/global/select-down.png" alt="" />
</a-select>
</a-col>
<a-col flex="336px">
<a-col flex="294px">
<span class="item-label">Sources</span>
<DicSelect
v-model="queryParams.source"
@ -359,7 +359,6 @@ export default {
value: `${item.stationId}`
}
})
console.log(this.stationOptions);
} else {
this.stationOptions=[]
}
@ -430,7 +429,6 @@ export default {
this.currId = id
getAction("/alarmAnalysisRule/finInfo", { id }).then( res => {
if (res.success) {
console.log(res.result.sourceChecked.join(','));
this.isAdd = false
this.visible = true
this.$nextTick(() => {
@ -516,7 +514,6 @@ export default {
remark:values.remark,
stations:values.station.join(","),
source: values.source,
enabled: 1,
nuclides:values.nuclide.join(","),
contactGroup:values.contactGroup,
spectralQualifier: values.qualifier,
@ -762,4 +759,14 @@ export default {
transform: translateX(-50%);
}
}
.ant-select {
.ant-select-arrow-icon {
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
&-open {
.ant-select-arrow-icon {
transform: rotate(180deg);
}
}
}
</style>

View File

@ -21,7 +21,10 @@
:getPopupContainer="getParentContainer"
optionFilterProp="children"
:filterOption="filterOption"
allowClear>
allowClear
show-arrow
>
<img slot="suffixIcon" src="@/assets/images/global/select-down.png" alt="" />
<a-select-option
v-for="(item,index) in dictOptions"
:key="index"
@ -139,3 +142,16 @@
}
}
</script>
<style lang="less" scoped>
.ant-select {
.ant-select-arrow-icon {
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
&-open {
.ant-select-arrow-icon {
transform: rotate(180deg);
}
}
}
</style>