Commit 45e38670 by 张杰

修复bug

1 parent 70614668
...@@ -1096,20 +1096,25 @@ export default { ...@@ -1096,20 +1096,25 @@ export default {
} }
api(params).then((res) => { api(params).then((res) => {
const { code, message } = res; const { code, message } = res;
if (code == 200) { if (code != 200) {
this.$message({ this.$message({
message: "操作成功", message: "操作成功",
type: "success", type: "danger",
}); });
this.vehicleVisible = !this.vehicleVisible; return false;
this.snForm = {};
this.dialogType = "";
this.$refs.snForm.clearValidate();
//this.$refs.serchButton.$el.click();
this.getList();
//this.$refs.vehicleForm.refreshTable();
//this.$refs.snForm.refreshTable();
} }
this.$message({
message: "操作成功",
type: "success",
});
this.vehicleVisible = !this.vehicleVisible;
this.snForm = {};
this.dialogType = "";
this.$refs.snForm.clearValidate();
//this.$refs.serchButton.$el.click();
this.getList();
//this.$refs.vehicleForm.refreshTable();
//this.$refs.snForm.refreshTable();
}); });
}); });
break; break;
...@@ -1527,9 +1532,9 @@ export default { ...@@ -1527,9 +1532,9 @@ export default {
gotoMonitor(row) { gotoMonitor(row) {
console.log(this.snForm); console.log(this.snForm);
let o = row || this.snForm; let o = row || this.snForm;
let path = `/oEshield#/monitor/monitor?vin=${o.vin}`; let path = `/oEshield#/monitor/monitor`;
//this.$root.parentCommon.setBreadCrumbs(path); this.$root.parentCommon.setBreadCrumbs(path);
window.open(path); window.open(`${path}?vin=${o.vin}`);
// history.pushState( // history.pushState(
// null, // null,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!