🐛 Fixing a bug. 查询时前端查询时参数类型接收错误

This commit is contained in:
aeizzz 2022-12-20 19:14:25 +08:00
parent 7497760b2c
commit dd92c956f3
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class GenDsConfController {
* @return R * @return R
*/ */
@GetMapping("/{id}") @GetMapping("/{id}")
public R<GenDatasourceConf> getById(@PathVariable("id") Integer id) { public R<GenDatasourceConf> getById(@PathVariable("id") Long id) {
return R.ok(datasourceConfService.getById(id)); return R.ok(datasourceConfService.getById(id));
} }

View File

@ -58,6 +58,7 @@
init (id) { init (id) {
this.visible = true; this.visible = true;
this.canSubmit = true; this.canSubmit = true;
this.dataForm.${pk.lowerAttrName} = undefined
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (id) { if (id) {