希望大家一起能参与我的新开源项目nbmade-boot: 宁波智能制造低代码实训平台
总体是在原有的单表代码生成基础上增加主子表的代码生成功能,同时增加更多的功能,类似支持子表其它表的选择,字段数字变化的同步更新等,以后可能会增加更多的功能。
今天主要讲主子表的前端和Mapper的模版部分,主要是指增加的部分:
6、index.vue.vm
<template>
<div class="p-2">
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div class="search" v-show="showSearch">
<el-form :model="queryParams" ref="queryFormRef" :inline="true" label-width="68px">
#foreach($column in $columns)
#if($column.query)
#set($dictType=$column.dictType)
#set($AttrName=$column.j