diff --git a/frontend/src/business/components/performance/test/components/EditMonitor.vue b/frontend/src/business/components/performance/test/components/EditMonitor.vue
index 811a6b9199..6ac7515e32 100644
--- a/frontend/src/business/components/performance/test/components/EditMonitor.vue
+++ b/frontend/src/business/components/performance/test/components/EditMonitor.vue
@@ -20,7 +20,7 @@
-
+
@@ -61,7 +61,11 @@ export default {
result: {},
form: {},
dialogVisible: false,
- rule: {},
+ rule: {
+ name: {required: true, message: "名称必填", trigger: 'blur'},
+ ip: {required: true, message: "ip必填", trigger: 'blur'},
+ port: {required: true, message: "port必填", trigger: 'blur'},
+ },
index: '',
};
},
@@ -86,23 +90,23 @@ export default {
if (valid) {
this.list.splice(this.index, 1, this.form);
this.$emit("update:list", this.list);
+ this.dialogVisible = false;
} else {
return false;
}
});
- this.dialogVisible = false;
},
create() {
this.$refs.monitorForm.validate(valid => {
if (valid) {
- this.form.monitorStatus = CONFIG_TYPE.NOT;
+ // this.form.monitorStatus = CONFIG_TYPE.NOT;
this.list.push(this.form);
this.$emit("update:list", this.list);
+ this.dialogVisible = false;
} else {
return false;
}
});
- this.dialogVisible = false;
},
}
};
diff --git a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue
index 2ef0ea15ea..b20f925a9e 100644
--- a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue
+++ b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue
@@ -173,10 +173,19 @@
-
+
+
+
+
+ prop="ip"
+ label="IP">
+
+