From dd92c956f344e8ff5854e5c966397de5c3491856 Mon Sep 17 00:00:00 2001 From: aeizzz <1129603149@qq.com> Date: Tue, 20 Dec 2022 19:14:25 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=97=B6=E5=89=8D=E7=AB=AF=E6=9F=A5=E8=AF=A2=E6=97=B6=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B=E6=8E=A5=E6=94=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pig4cloud/pig/codegen/controller/GenDsConfController.java | 2 +- .../pig-codegen/src/main/resources/template/element/form.vue.vm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java index 78092372..60bd7ae9 100755 --- a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java +++ b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java @@ -71,7 +71,7 @@ public class GenDsConfController { * @return R */ @GetMapping("/{id}") - public R getById(@PathVariable("id") Integer id) { + public R getById(@PathVariable("id") Long id) { return R.ok(datasourceConfService.getById(id)); } diff --git a/pig-visual/pig-codegen/src/main/resources/template/element/form.vue.vm b/pig-visual/pig-codegen/src/main/resources/template/element/form.vue.vm index d5fb0cf8..f7fbf7f6 100644 --- a/pig-visual/pig-codegen/src/main/resources/template/element/form.vue.vm +++ b/pig-visual/pig-codegen/src/main/resources/template/element/form.vue.vm @@ -58,6 +58,7 @@ init (id) { this.visible = true; this.canSubmit = true; + this.dataForm.${pk.lowerAttrName} = undefined this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (id) {