alarm 模块 serverMonitor/instances 页面中 /alarmRule/getItems 接口参数调整

This commit is contained in:
任珮宇 2023-12-06 10:06:53 +08:00
parent aabd5c8827
commit 03f85b098c

View File

@ -263,7 +263,8 @@ export default {
this.units = option.data.props.units this.units = option.data.props.units
}, },
getItems(val) { getItems(val) {
getAction('/alarmRule/getItems', { sourceName: val }).then((res) => { getAction('/alarmRule/getItems', { sourceType: this.form.sourceType, sourceId: this.form.sourceId }).then(
(res) => {
if (res.success) { if (res.success) {
this.itemOptions = res.result.map((item) => { this.itemOptions = res.result.map((item) => {
return { return {
@ -275,7 +276,8 @@ export default {
} else { } else {
this.$message.warning('This operation fails. Contact your system administrator') this.$message.warning('This operation fails. Contact your system administrator')
} }
}) }
)
}, },
resetForm() { resetForm() {
this.$refs.al_ruleForm.resetFields() this.$refs.al_ruleForm.resetFields()