Commit 45e38670 by 张杰

修复bug

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