update 报表管理
This commit is contained in:
@@ -300,6 +300,47 @@ export default {
|
||||
});
|
||||
});
|
||||
}
|
||||
case "change-category": {
|
||||
return this.$http.put(this.urls.base, data).then(({ data: res }) => {
|
||||
if (res.code === 0) {
|
||||
this.$message({
|
||||
message: "修改成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.getList();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: `${res.code}: ${res.msg}`,
|
||||
type: "error",
|
||||
duration: 1500,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
case "preview": {
|
||||
console.log("[PREVIEW] data", data);
|
||||
// report preview
|
||||
return this.$router.push({
|
||||
name: "pms-reportPreview",
|
||||
query: {
|
||||
name: data,
|
||||
},
|
||||
});
|
||||
}
|
||||
case "design": {
|
||||
console.log("[DESIGN] data", data);
|
||||
// report design
|
||||
return this.$router.push({
|
||||
name: "pms-reportDesign",
|
||||
query: {
|
||||
name: data,
|
||||
},
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user