|
@@ -209,16 +209,17 @@ export default {
|
|
|
};
|
|
|
api.staticKnowledgeTest(formData, header).then((res) => {
|
|
|
if (res.data.code === '00000001') {
|
|
|
- this.$message.error('数据存在异常');
|
|
|
+ this.$message.error(res.data.msg || '数据存在异常');
|
|
|
this.getDataList(this.hospitalId); // 重新获取列表
|
|
|
- } else if (res.data === '' && res.status === 200) {
|
|
|
+ } else if (res.data.code === '0' && res.data.data) {
|
|
|
this.$message({
|
|
|
message: '测试成功',
|
|
|
type: 'success',
|
|
|
});
|
|
|
this.getDataList(this.hospitalId); // 重新获取列表
|
|
|
} else {
|
|
|
- this.$message.error('数据存在异常');
|
|
|
+ this.$message.error(res.data.msg || '数据存在异常');
|
|
|
+ this.getDataList(this.hospitalId);
|
|
|
}
|
|
|
this.runningStatusArr = [0, 0, 0, 0, 0];
|
|
|
});
|