diff --git a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue index 1288f30..45125c7 100644 --- a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue +++ b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue @@ -123,6 +123,8 @@ data () { return { description: '字段管理管理页面', + loadRouteType:false, + tableId:'', // 表头 columns: [ { @@ -244,6 +246,7 @@ }, created() { this.getSuperFieldList(); + this.loadParameter(); }, computed: { importExcelUrl: function(){ @@ -253,6 +256,14 @@ methods: { initDictConfig(){ }, + //加载传递参数 + loadParameter() { + if (this.loadRouteType == false) { + this.tableId = this.$route.query.id; + console.log(this.tableId) + this.loadRouteType = true; + } + }, getSuperFieldList(){ let fieldList=[]; fieldList.push({type:'string',value:'tableId',text:'对应实体id',dictCode:'tablex,table_name,id'}) diff --git a/ant-design-vue-jeecg/src/views/tablex/TablexList.vue b/ant-design-vue-jeecg/src/views/tablex/TablexList.vue index d8cba3f..a30a05c 100644 --- a/ant-design-vue-jeecg/src/views/tablex/TablexList.vue +++ b/ant-design-vue-jeecg/src/views/tablex/TablexList.vue @@ -89,6 +89,9 @@ + 实体管理 + + 编辑 @@ -229,6 +232,12 @@ }, }, methods: { + tablemanage(id) { + this.$router.push({ + path: '/fieldx/FieldxList', + query: {id: id} + }) + }, initDictConfig(){ }, getSuperFieldList(){ diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java index 01e1f93..48b33f2 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java @@ -131,8 +131,8 @@ public class FieldxController extends JeecgController { @ApiOperation(value="字段管理-通过id删除", notes="字段管理-通过id删除") @DeleteMapping(value = "/delete") public Result delete(@RequestParam(name="id",required=true) String id) { - fieldxService.removeById(id); Fieldx fieldx = fieldxService.getById(id); + fieldxService.removeById(id); tablexService.updateSql(fieldx.getTableId(),createSql(fieldx.getTableId())); return Result.OK("删除成功!"); }