提交 f3b90264 编写于 作者: S shiziyuan9527

修改消息提示

上级 dcef65f7
......@@ -167,10 +167,7 @@
};
this.result = this.$post(this.deletePath, data, () => {
this.$message({
message: this.$t('commons.delete_success'),
type: 'success'
});
this.$success(this.$t('commons.delete_success'));
this.initTableData();
});
},
......
......@@ -306,23 +306,23 @@
let counts = this.groupBy(this.domains, 'domain');
for (let c in counts) {
if (counts[c] > 1) {
this.$message.error(this.$t('load_test.domain_is_duplicate'));
this.$error(this.$t('load_test.domain_is_duplicate'));
return false;
}
}
counts = this.groupBy(this.params, 'name');
for (let c in counts) {
if (counts[c] > 1) {
this.$message.error(this.$t('load_test.param_is_duplicate'));
this.$error(this.$t('load_test.param_is_duplicate'));
return false;
}
}
if (this.domains.filter(d => !d.domain || !d.ip).length > 0) {
this.$message.error(this.$t('load_test.domain_ip_is_empty'));
this.$error(this.$t('load_test.domain_ip_is_empty'));
return false;
}
if (this.params.filter(d => !d.name || !d.value).length > 0) {
this.$message.error(this.$t('load_test.param_name_value_is_empty'));
this.$error(this.$t('load_test.param_name_value_is_empty'));
return false;
}
return true;
......
......@@ -107,7 +107,7 @@
}
if (this.tableData.filter(f => f.name === file.name).length > 0) {
this.$message.error(this.$t('load_test.delete_file'));
this.$error(this.$t('load_test.delete_file'));
return false;
}
......@@ -175,7 +175,7 @@
}
},
handleExceed() {
this.$message.error(this.$t('load_test.delete_file'));
this.$error(this.$t('load_test.delete_file'));
},
fileValidator(file) {
/// todo: 是否需要对文件内容和大小做限制
......
......@@ -281,10 +281,7 @@
},
validConfig() {
if (!this.resourcePool) {
this.$message({
message: this.$t('load_test.resource_pool_is_null'),
type: 'warning'
});
this.$warning(this.$t('load_test.resource_pool_is_null'));
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册