| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.code.BaseGenerator; |
| | | import com.java110.code.back.BaseGenerator; |
| | | |
| | | public class GeneratorManagerComponent extends BaseGenerator { |
| | | |
| | |
| | | //处理组件 |
| | | generatorComponentHtml(data); |
| | | generatorComponentJs(data); |
| | | generatorComponentJava(data); |
| | | genneratorIListSmo(data); |
| | | genneratorListSmoImpl(data); |
| | | //generatorComponentJava(data); |
| | | //genneratorIListSmo(data); |
| | | //genneratorListSmoImpl(data); |
| | | genneratorListListener(data); |
| | | genneratorVo(data); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | conditionInput.append("<select class=\"custom-select\" v-model=\"add" + toUpperCaseFirstOne(data.getString("templateCode")) + "Info."+tmpCond.getString("code")+"\">\n" + |
| | | conditionInput.append("<select class=\"custom-select\" v-model=\"" + data.getString("templateCode") + "ManageInfo.conditions." + tmpCond.getString("code") +"\">\n" + |
| | | " <option selected value=\"\">请选择" + tmpCond.getString("name") + "</option>\n" + |
| | | " " +option+ |
| | | " </select>" |
| | |
| | | fileContext = fileContext.replace("@@vcCreate@@", vcCreate.toString()); |
| | | |
| | | if (tmpConditions.size() > 3) { |
| | | fileContext = fileContext.replace("@@moreCondition@@", "<button type=\"button\" class=\"btn btn-link btn-sm\" style=\"margin-right:10px;\" v-on:click=\"_moreCondition()\">更多</button>"); |
| | | fileContext = fileContext.replace("@@moreCondition@@", "<button type=\"button\" class=\"btn btn-link btn-sm\" style=\"margin-right:10px;\" v-on:click=\"_moreCondition()\">{{"+ data.getString("templateCode") +"ManageInfo.moreCondition == true?'隐藏':'更多'}}</button>"); |
| | | } else { |
| | | fileContext = fileContext.replace("@@moreCondition@@", ""); |
| | | |