提交 8f8e393b 编写于 作者: doc_wei's avatar doc_wei

代码生成器新增属性

上级 63abe29f
......@@ -14,8 +14,8 @@ layui.config({
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params: {type: 1}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintocodemodelTitle").html(j.bean.title);
$("#exexplaintocodemodelContent").html(j.bean.content);
$(".layui-colla-title").html(j.bean.title);
$(".layui-colla-content").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
......
......@@ -4,12 +4,13 @@ layui.config({
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
}).define(['window', 'table', 'jquery', 'winui', 'element'], function (exports) {
winui.renderColor();
layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx',
'solr', 'sql', 'vue'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
element = layui.element,
form = layui.form;
var editor;
......@@ -24,12 +25,13 @@ layui.config({
ajaxSendAfter:function(json){
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params: {type: 1}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintocodemodelTitle").html(j.bean.title);
$("#exexplaintocodemodelContent").html(j.bean.content);
$(".layui-colla-title").html(j.bean.title);
$(".layui-colla-content").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
element.init();
editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), {
mode : returnModel(json.bean.modelType), // 模式
......
......@@ -31,7 +31,6 @@ layui.config({
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
groupName: $("#groupName").val(),
......
......@@ -95,7 +95,7 @@ layui.config({
url: "../../tpl/codemodelgroup/codemodelgroupedit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "codemodelgroupedit",
area: ['700px', '90vh'],
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
......@@ -150,7 +150,7 @@ layui.config({
url: "../../tpl/codemodelgroup/codemodelgroupadd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "codemodelgroupadd",
area: ['700px', '90vh'],
area: ['90vw', '90vh'],
callBack: function(refreshCode){
if (refreshCode == '0') {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
......
......@@ -10,11 +10,14 @@
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item layui-col-xs12">
<span class="hr-title" id="exexplaintocodemodelTitle"></span><hr>
<div class="layui-collapse">
<div class="layui-colla-item">
<h2 class="layui-colla-title"></h2>
<div class="layui-colla-content">
</div>
</div>
</div>
<div class="layui-form-item layui-col-xs12" id="exexplaintocodemodelContent" style="padding: 0px 15px; font-size: 12px; color: grey; display: contents;">
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">基本信息</span><hr>
</div>
......
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<span class="hr-title" id="exexplaintocodemodelTitle"></span><hr>
</div>
<div class="layui-form-item layui-col-xs12" id="exexplaintocodemodelContent" style="padding: 0px 15px; font-size: 12px; color: grey; display: contents;">
<div class="layui-collapse">
<div class="layui-colla-item">
<h2 class="layui-colla-title"></h2>
<div class="layui-colla-content">
</div>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">基本信息</span><hr>
......
......@@ -12,6 +12,8 @@ var codeDocUtil = {
'tableFirstISlowerName': /[$]{{objectName}}/g,
'tableISlowerName': /[$]{{urlName}}/g,
'tableBzName': /[$]{{notesName}}/g,
'currentTime': /[$]{{currentTime}}/g,
'table': /[$]{{table}}/g,
},
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册