Commit ed4dedfb authored by 黄奎's avatar 黄奎

团控‘报价单保存日本线新增餐厅验证

parent 52172e3a
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
this.goUrl('newQuotation'); this.goUrl('newQuotation');
} }
} else { } else {
this.Error(res.data.message); this.ErrorHtml(res.data.message);
} }
}, },
err => {} err => {}
......
...@@ -595,7 +595,7 @@ ...@@ -595,7 +595,7 @@
this.isSubmit = true; this.isSubmit = true;
} else { } else {
this.FeatureData.IsSave = false; this.FeatureData.IsSave = false;
this.Error(res.data.message); this.ErrorHtml(res.data.message);
this.isSubmit = true; this.isSubmit = true;
this.submitText = "提交"; this.submitText = "提交";
this.$refs.TravelFeature.del_show = true; this.$refs.TravelFeature.del_show = true;
......
...@@ -216,6 +216,16 @@ export default { ...@@ -216,6 +216,16 @@ export default {
}); });
}, },
//错误提示Html格式
Vue.prototype.ErrorHtml = function (msg) {
this.$message({
message: msg,
dangerouslyUseHTMLString: true,
duration: 3000,
type: "error"
});
},
//一般提示 //一般提示
Vue.prototype.Info = function (msg) { Vue.prototype.Info = function (msg) {
this.$message({ this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment