字典数据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="" /> <img slot="suffixIcon" src="@/assets/images/global/select-down.png" alt="" />
</a-select> </a-select>
</a-col> </a-col>
<a-col flex="336px"> <a-col flex="294px">
<span class="item-label">Sources</span> <span class="item-label">Sources</span>
<DicSelect <DicSelect
v-model="queryParams.source" v-model="queryParams.source"
@ -359,7 +359,6 @@ export default {
value: `${item.stationId}` value: `${item.stationId}`
} }
}) })
console.log(this.stationOptions);
} else { } else {
this.stationOptions=[] this.stationOptions=[]
} }
@ -430,7 +429,6 @@ export default {
this.currId = id this.currId = id
getAction("/alarmAnalysisRule/finInfo", { id }).then( res => { getAction("/alarmAnalysisRule/finInfo", { id }).then( res => {
if (res.success) { if (res.success) {
console.log(res.result.sourceChecked.join(','));
this.isAdd = false this.isAdd = false
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
@ -516,7 +514,6 @@ export default {
remark:values.remark, remark:values.remark,
stations:values.station.join(","), stations:values.station.join(","),
source: values.source, source: values.source,
enabled: 1,
nuclides:values.nuclide.join(","), nuclides:values.nuclide.join(","),
contactGroup:values.contactGroup, contactGroup:values.contactGroup,
spectralQualifier: values.qualifier, spectralQualifier: values.qualifier,
@ -762,4 +759,14 @@ export default {
transform: translateX(-50%); 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> </style>

View File

@ -21,7 +21,10 @@
:getPopupContainer="getParentContainer" :getPopupContainer="getParentContainer"
optionFilterProp="children" optionFilterProp="children"
:filterOption="filterOption" :filterOption="filterOption"
allowClear> allowClear
show-arrow
>
<img slot="suffixIcon" src="@/assets/images/global/select-down.png" alt="" />
<a-select-option <a-select-option
v-for="(item,index) in dictOptions" v-for="(item,index) in dictOptions"
:key="index" :key="index"
@ -139,3 +142,16 @@
} }
} }
</script> </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>