提交 6308d8e3 编写于 作者: doc_wei's avatar doc_wei

系统部分功能的说明规范设置修改,解决版本号加载两次的问题

上级 c1320870
...@@ -4,22 +4,21 @@ layui.config({ ...@@ -4,22 +4,21 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'element'], function (exports) {
winui.renderColor(); winui.renderColor();
layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx', layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx',
'solr', 'sql', 'vue'], function (form) { 'solr', 'sql', 'vue'], function (form) {
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$, var $ = layui.$,
element = layui.element,
form = layui.form; form = layui.form;
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params: {type: 1}, type: 'json', callback: function(j){ // 根据类型获取部分功能的使用说明
if(j.returnCode == 0){ systemCommonUtil.queryExplainMationByType(1, function(json){
$(".layui-colla-title").html(j.bean.title); $(".layui-colla-title").html(json.bean.title);
$(".layui-colla-content").html(j.bean.content); $(".layui-colla-content").html(json.bean.content);
}else{ });
winui.window.msg(j.returnMessage, {icon: 2,time: 2000}); element.init();
}
}});
var editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), { var editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), {
mode : "text/x-java", // 模式 mode : "text/x-java", // 模式
......
...@@ -23,14 +23,11 @@ layui.config({ ...@@ -23,14 +23,11 @@ layui.config({
ajaxSendLoadBefore: function(hdb){ ajaxSendLoadBefore: function(hdb){
}, },
ajaxSendAfter:function(json){ ajaxSendAfter:function(json){
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params: {type: 1}, type: 'json', callback: function(j){ // 根据类型获取部分功能的使用说明
if(j.returnCode == 0){ systemCommonUtil.queryExplainMationByType(1, function(json){
$(".layui-colla-title").html(j.bean.title); $(".layui-colla-title").html(json.bean.title);
$(".layui-colla-content").html(j.bean.content); $(".layui-colla-content").html(json.bean.content);
}else{ });
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
element.init(); element.init();
editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), { editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), {
......
...@@ -6,24 +6,22 @@ layui.config({ ...@@ -6,24 +6,22 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'element'], function (exports) {
winui.renderColor(); winui.renderColor();
layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx', layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx',
'solr', 'sql', 'vue'], function (form) { 'solr', 'sql', 'vue'], function (form) {
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$, var $ = layui.$,
element = layui.element,
form = layui.form; form = layui.form;
//表单内容列表 // 根据类型获取部分功能的使用说明
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 2}, type: 'json', callback: function(j){ systemCommonUtil.queryExplainMationByType(2, function(json) {
if(j.returnCode == 0){ $(".layui-colla-title").html(json.bean.title);
$("#exexplaintodsformcontentTitle").html(j.bean.title); $(".layui-colla-content").html(json.bean.content);
$("#exexplaintodsformcontentContent").html(j.bean.content); });
}else{ element.init();
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
//是否关联数据 //是否关联数据
form.on('switch(linkedData)', function (data) { form.on('switch(linkedData)', function (data) {
//关联数据值 //关联数据值
...@@ -203,11 +201,10 @@ layui.config({ ...@@ -203,11 +201,10 @@ layui.config({
return false; return false;
}); });
//取消 // 取消
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
}); });
\ No newline at end of file
...@@ -6,12 +6,13 @@ layui.config({ ...@@ -6,12 +6,13 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'element'], function (exports) {
winui.renderColor(); winui.renderColor();
layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx', layui.use(['form', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx',
'solr', 'sql', 'vue'], function (form) { 'solr', 'sql', 'vue'], function (form) {
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$, var $ = layui.$,
element = layui.element,
form = layui.form; form = layui.form;
var htmlEditor, jsEditor; var htmlEditor, jsEditor;
...@@ -42,16 +43,14 @@ layui.config({ ...@@ -42,16 +43,14 @@ layui.config({
} }
}); });
}, },
ajaxSendAfter:function(json){ ajaxSendAfter: function(json) {
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 2}, type: 'json', callback: function(j){ // 根据类型获取部分功能的使用说明
if(j.returnCode == 0){ systemCommonUtil.queryExplainMationByType(2, function(json){
$("#exexplaintodsformcontentTitle").html(j.bean.title); $(".layui-colla-title").html(json.bean.title);
$("#exexplaintodsformcontentContent").html(j.bean.content); $(".layui-colla-content").html(json.bean.content);
}else{ });
winui.window.msg(j.returnMessage, {icon: 2,time: 2000}); element.init();
}
}});
htmlEditor = CodeMirror.fromTextArea(document.getElementById("htmlContent"), { htmlEditor = CodeMirror.fromTextArea(document.getElementById("htmlContent"), {
mode : "xml", // 模式 mode : "xml", // 模式
theme : "eclipse", // CSS样式选择 theme : "eclipse", // CSS样式选择
......
...@@ -9,16 +9,13 @@ layui.config({ ...@@ -9,16 +9,13 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$, var $ = layui.$,
form = layui.form; form = layui.form;
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 3}, type: 'json', callback: function(j){ // 根据类型获取部分功能的使用说明
if(j.returnCode == 0){ systemCommonUtil.queryExplainMationByType(3, function(json){
$("#exexplaintodsformdisplaytemplateTitle").html(j.bean.title); $("#exexplaintodsformdisplaytemplateTitle").html(json.bean.title);
$("#exexplaintodsformdisplaytemplateContent").html(j.bean.content); $("#exexplaintodsformdisplaytemplateContent").html(json.bean.content);
}else{ });
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
var templateContent = CodeMirror.fromTextArea(document.getElementById("templateContent"), { var templateContent = CodeMirror.fromTextArea(document.getElementById("templateContent"), {
mode : "xml", // 模式 mode : "xml", // 模式
theme : "eclipse", // CSS样式选择 theme : "eclipse", // CSS样式选择
......
...@@ -35,16 +35,12 @@ layui.config({ ...@@ -35,16 +35,12 @@ layui.config({
matchingLanguage(); matchingLanguage();
form.render(); form.render();
//模板规范说明 // 根据类型获取部分功能的使用说明
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 3}, type: 'json', callback: function(j){ systemCommonUtil.queryExplainMationByType(3, function(json){
if(j.returnCode == 0){ $("#exexplaintodsformdisplaytemplateTitle").html(json.bean.title);
$("#exexplaintodsformdisplaytemplateTitle").html(j.bean.title); $("#exexplaintodsformdisplaytemplateContent").html(json.bean.content);
$("#exexplaintodsformdisplaytemplateContent").html(j.bean.content); });
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
form.on('submit(formEditBean)', function (data) { form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
var params = { var params = {
......
...@@ -69,6 +69,8 @@ ...@@ -69,6 +69,8 @@
position: fixed; position: fixed;
width: 320px; width: 320px;
right: 0px; right: 0px;
padding-right: 5px;
padding-top: 5px;
} }
.droppable-active { .droppable-active {
background-color: #eaeaf6!important; background-color: #eaeaf6!important;
......
...@@ -10,11 +10,14 @@ ...@@ -10,11 +10,14 @@
<body> <body>
<div style="margin:0 auto;padding:20px;"> <div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off"> <form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item layui-col-xs12"> <div class="layui-collapse">
<span class="hr-title" id="exexplaintodsformcontentTitle"></span><hr> <div class="layui-colla-item">
<h2 class="layui-colla-title"></h2>
<div class="layui-colla-content">
</div>
</div>
</div> </div>
<div class="layui-form-item layui-col-xs12" id="exexplaintodsformcontentContent" style="padding: 0px 15px; font-size: 12px; color: grey; display: contents;">
</div>
<div class="layui-form-item layui-col-xs12"> <div class="layui-form-item layui-col-xs12">
<span class="hr-title">模板内容</span><hr> <span class="hr-title">模板内容</span><hr>
</div> </div>
......
{{#bean}} {{#bean}}
<div class="layui-form-item layui-col-xs12"> <div class="layui-collapse">
<span class="hr-title" id="exexplaintodsformcontentTitle"></span><hr> <div class="layui-colla-item">
</div> <h2 class="layui-colla-title"></h2>
<div class="layui-form-item layui-col-xs12" id="exexplaintodsformcontentContent" style="padding: 0px 15px; font-size: 12px; color: grey; display: contents;"> <div class="layui-colla-content">
</div>
</div>
</div> </div>
<div class="layui-form-item layui-col-xs12"> <div class="layui-form-item layui-col-xs12">
<span class="hr-title">模板内容</span><hr> <span class="hr-title">模板内容</span><hr>
......
...@@ -14,16 +14,13 @@ layui.config({ ...@@ -14,16 +14,13 @@ layui.config({
form.render(); form.render();
$("#dataShowModel").hide(); $("#dataShowModel").hide();
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 4}, type: 'json', callback: function(j){ // 根据类型获取部分功能的使用说明
if(j.returnCode == 0){ systemCommonUtil.queryExplainMationByType(4, function(json){
$("#exexplaintormpropertyTitle").html(j.bean.title); $("#exexplaintormpropertyTitle").html(json.bean.title);
$("#exexplaintormpropertyContent").html(j.bean.content); $("#exexplaintormpropertyContent").html(json.bean.content);
}else{ });
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
var htmlModelContent = CodeMirror.fromTextArea(document.getElementById("htmlModelContent"), { var htmlModelContent = CodeMirror.fromTextArea(document.getElementById("htmlModelContent"), {
mode : "xml", // 模式 mode : "xml", // 模式
theme : "eclipse", // CSS样式选择 theme : "eclipse", // CSS样式选择
......
...@@ -149,17 +149,13 @@ layui.config({ ...@@ -149,17 +149,13 @@ layui.config({
form.render('select'); form.render('select');
} }
}); });
//展示规范说明 // 根据类型获取部分功能的使用说明
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 4}, type: 'json', callback: function(j){ systemCommonUtil.queryExplainMationByType(4, function(json){
if(j.returnCode == 0){ $("#exexplaintormpropertyTitle").html(json.bean.title);
$("#exexplaintormpropertyTitle").html(j.bean.title); $("#exexplaintormpropertyContent").html(json.bean.content);
$("#exexplaintormpropertyContent").html(j.bean.content); });
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
form.on('select(selectParent)', function(data){ form.on('select(selectParent)', function(data){
AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
......
var rowId = ""; var rowId = "";
var type = 1;
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -15,8 +13,10 @@ layui.config({ ...@@ -15,8 +13,10 @@ layui.config({
var $ = layui.$, var $ = layui.$,
form = layui.form; form = layui.form;
var type = GetUrlParam("type");
var ue var ue
AjaxPostUtil.request({url:reqBasePath + "exexplain002", params: {type: type}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: reqBasePath + "exexplain002", params: {type: type}, type: 'json', callback: function(json) {
if(json.returnCode == 0){ if(json.returnCode == 0){
if(!isNull(json.bean)){ if(!isNull(json.bean)){
rowId = json.bean.id; rowId = json.bean.id;
...@@ -29,7 +29,7 @@ layui.config({ ...@@ -29,7 +29,7 @@ layui.config({
}); });
matchingLanguage(); matchingLanguage();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
...@@ -37,7 +37,7 @@ layui.config({ ...@@ -37,7 +37,7 @@ layui.config({
form.on('submit(formAddBean)', function (data) { form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
if(isNull(ue.getContent())){ if(isNull(ue.getContent())){
winui.window.msg('请输入内容。', {icon: 2,time: 2000}); winui.window.msg('请输入内容。', {icon: 2, time: 2000});
}else{ }else{
var params = { var params = {
title: $("#title").val(), title: $("#title").val(),
...@@ -45,21 +45,21 @@ layui.config({ ...@@ -45,21 +45,21 @@ layui.config({
type: type type: type
}; };
if(isNull(rowId)){ if(isNull(rowId)){
AjaxPostUtil.request({url:reqBasePath + "exexplain001", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: reqBasePath + "exexplain001", params: params, type: 'json', callback: function(json) {
if(json.returnCode == 0){ if(json.returnCode == 0){
rowId = json.bean.id; rowId = json.bean.id;
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}else{ }else{
params.rowId = rowId; params.rowId = rowId;
AjaxPostUtil.request({url:reqBasePath + "exexplain003", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: reqBasePath + "exexplain003", params: params, type: 'json', callback: function(json) {
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
var rowId = "";
var type = 2;
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form', 'layedit'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form,
layedit = layui.layedit;
var layContent;
AjaxPostUtil.request({url:reqBasePath + "exexplain002", params: {type: type}, type: 'json', callback: function(json){
if(json.returnCode == 0){
if(!isNull(json.bean)){
rowId = json.bean.id;
$("#title").val(json.bean.title);
$("#content").val(json.bean.content);
}
layContent = layedit.build('content', {
tool: [
'strong' //加粗
,'italic' //斜体
,'underline' //下划线
,'del' //删除线
,'|' //分割线
,'left' //左对齐
,'center' //居中对齐
,'right' //右对齐
,'link' //超链接
,'unlink' //清除链接
,'face' //表情
]
});
matchingLanguage();
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
if(isNull(layedit.getContent(layContent))){
winui.window.msg('请输入内容。', {icon: 2,time: 2000});
}else{
var params = {
title: $("#title").val(),
content: encodeURI(layedit.getContent(layContent)),
type: type
};
if(isNull(rowId)){
AjaxPostUtil.request({url:reqBasePath + "exexplain001", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
rowId = json.bean.id;
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
}else{
params.rowId = rowId;
AjaxPostUtil.request({url:reqBasePath + "exexplain003", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
}
}
}
return false;
});
});
});
\ No newline at end of file
var rowId = "";
var type = 3;
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window',
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form', 'layedit'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form,
layedit = layui.layedit;
var layContent;
AjaxPostUtil.request({url:reqBasePath + "exexplain002", params:{type: type}, type: 'json', callback: function(json){
if(json.returnCode == 0){
if(!isNull(json.bean)){
rowId = json.bean.id;
$("#title").val(json.bean.title);
$("#content").val(json.bean.content);
}
layContent = layedit.build('content', {
tool: [
'strong' //加粗
,'italic' //斜体
,'underline' //下划线
,'del' //删除线
,'|' //分割线
,'left' //左对齐
,'center' //居中对齐
,'right' //右对齐
,'link' //超链接
,'unlink' //清除链接
,'face' //表情
]
});
matchingLanguage();
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
if(isNull(layedit.getContent(layContent))){
winui.window.msg('请输入内容。', {icon: 2,time: 2000});
}else{
var params = {
title: $("#title").val(),
content: encodeURI(layedit.getContent(layContent)),
type: type
};
if(isNull(rowId)){
AjaxPostUtil.request({url:reqBasePath + "exexplain001", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
rowId = json.bean.id;
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
}else{
params.rowId = rowId;
AjaxPostUtil.request({url:reqBasePath + "exexplain003", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
}
}
}
return false;
});
});
});
\ No newline at end of file
var rowId = "";
var type = 4;
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form', 'layedit'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form,
layedit = layui.layedit;
var layContent;
AjaxPostUtil.request({url:reqBasePath + "exexplain002", params:{type: type}, type: 'json', callback: function(json){
if(json.returnCode == 0){
if(!isNull(json.bean)){
rowId = json.bean.id;
$("#title").val(json.bean.title);
$("#content").val(json.bean.content);
}
layContent = layedit.build('content', {
tool: [
'strong' //加粗
,'italic' //斜体
,'underline' //下划线
,'del' //删除线
,'|' //分割线
,'left' //左对齐
,'center' //居中对齐
,'right' //右对齐
,'link' //超链接
,'unlink' //清除链接
,'face' //表情
,'code'
]
});
matchingLanguage();
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
if(isNull(layedit.getContent(layContent))){
winui.window.msg('请输入内容。', {icon: 2,time: 2000});
}else{
var params = {
title: $("#title").val(),
content: encodeURI(layedit.getContent(layContent)),
type: type
};
if(isNull(rowId)){
AjaxPostUtil.request({url:reqBasePath + "exexplain001", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
rowId = json.bean.id;
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
}else{
params.rowId = rowId;
AjaxPostUtil.request({url:reqBasePath + "exexplain003", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
}else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
}});
}
}
}
return false;
});
});
});
\ No newline at end of file
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"></script> <script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"></script> <script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript"> <script type="text/javascript">
layui.config({base: '../../js/exexplain/'}).use('exexplaintocodemodel'); layui.config({base: '../../js/exExplain/'}).use('exExplainDesign');
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="width:600px;margin:0 auto;padding-top:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item">
<label class="layui-form-label">标题<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="title" name="title" win-verify="required" placeholder="请输入标题" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">内容</label>
<div class="layui-input-block">
<textarea id="content" name="content" style="display: none;"></textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/exexplain/'}).use('exexplaintodsformcontent');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="width:600px;margin:0 auto;padding-top:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item">
<label class="layui-form-label">标题<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="title" name="title" win-verify="required" placeholder="请输入标题" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">内容</label>
<div class="layui-input-block">
<textarea id="content" name="content" style="display: none;"></textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/exexplain/'}).use('exexplaintodsformdisplaytemplate');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="width:600px;margin:0 auto;padding-top:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item">
<label class="layui-form-label">标题<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="title" name="title" win-verify="required" placeholder="请输入标题" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">内容</label>
<div class="layui-input-block">
<textarea id="content" name="content" style="display: none;"></textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/exexplain/'}).use('exexplaintormproperty');
</script>
</body>
</html>
\ No newline at end of file
...@@ -310,9 +310,12 @@ var systemCommonUtil = { ...@@ -310,9 +310,12 @@ var systemCommonUtil = {
* @param url * @param url
*/ */
getHasVersionUrl: function (url) { getHasVersionUrl: function (url) {
// 判断是否有问号 var versionStr = 'v='+ skyeyeVersion;
url += (url.indexOf("?") == -1 ? "?" : "&"); if(url.indexOf(versionStr) == -1) {
url = url + 'v='+ skyeyeVersion; // 判断是否有问号
url += (url.indexOf("?") == -1 ? "?" : "&");
url = url + versionStr;
}
return url; return url;
}, },
...@@ -337,13 +340,30 @@ var systemCommonUtil = { ...@@ -337,13 +340,30 @@ var systemCommonUtil = {
"probationPeriod": {"id": 4, "name": "试用期(用于未转正的员工)"}, "probationPeriod": {"id": 4, "name": "试用期(用于未转正的员工)"},
"retire": {"id": 5, "name": "退休"} "retire": {"id": 5, "name": "退休"}
}, },
getSysUserStaffStateList: function (){ getSysUserStaffStateList: function (){
var list = []; var list = [];
$.each(systemCommonUtil.sysUserStaffState, function (key, value){ $.each(systemCommonUtil.sysUserStaffState, function (key, value){
list.push(value); list.push(value);
}); });
return list; return list;
} },
/**
* 根据类型获取部分功能的使用说明
*
* @param type 类型 1.代码生成器模板介绍 2.动态表单内容项说明介绍 3.动态表单数据展示模板说明介绍 4.小程序标签属性说明介绍
* @param callback 回调函数
*/
queryExplainMationByType: function (type, callback) {
AjaxPostUtil.request({url: reqBasePath + "queryExExplainMationToShow", params: {type: type}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) {
if(typeof(callback) == "function") {
callback(json);
}
} else {
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}, async: false});
},
}; };
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册