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

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

上级 c1320870
......@@ -4,22 +4,21 @@ 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;
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params: {type: 1}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$(".layui-colla-title").html(j.bean.title);
$(".layui-colla-content").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(1, function(json){
$(".layui-colla-title").html(json.bean.title);
$(".layui-colla-content").html(json.bean.content);
});
element.init();
var editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), {
mode : "text/x-java", // 模式
......
......@@ -23,14 +23,11 @@ layui.config({
ajaxSendLoadBefore: function(hdb){
},
ajaxSendAfter:function(json){
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params: {type: 1}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$(".layui-colla-title").html(j.bean.title);
$(".layui-colla-content").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(1, function(json){
$(".layui-colla-title").html(json.bean.title);
$(".layui-colla-content").html(json.bean.content);
});
element.init();
editor = CodeMirror.fromTextArea(document.getElementById("modelContent"), {
......
......@@ -6,24 +6,22 @@ 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;
//表单内容列表
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 2}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintodsformcontentTitle").html(j.bean.title);
$("#exexplaintodsformcontentContent").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(2, function(json) {
$(".layui-colla-title").html(json.bean.title);
$(".layui-colla-content").html(json.bean.content);
});
element.init();
//是否关联数据
form.on('switch(linkedData)', function (data) {
//关联数据值
......@@ -203,11 +201,10 @@ layui.config({
return false;
});
//取消
// 取消
$("body").on("click", "#cancle", function(){
parent.layer.close(index);
});
});
});
\ No newline at end of file
......@@ -6,12 +6,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 htmlEditor, jsEditor;
......@@ -42,16 +43,14 @@ layui.config({
}
});
},
ajaxSendAfter:function(json){
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 2}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintodsformcontentTitle").html(j.bean.title);
$("#exexplaintodsformcontentContent").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
ajaxSendAfter: function(json) {
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(2, function(json){
$(".layui-colla-title").html(json.bean.title);
$(".layui-colla-content").html(json.bean.content);
});
element.init();
htmlEditor = CodeMirror.fromTextArea(document.getElementById("htmlContent"), {
mode : "xml", // 模式
theme : "eclipse", // CSS样式选择
......
......@@ -9,16 +9,13 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 3}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintodsformdisplaytemplateTitle").html(j.bean.title);
$("#exexplaintodsformdisplaytemplateContent").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(3, function(json){
$("#exexplaintodsformdisplaytemplateTitle").html(json.bean.title);
$("#exexplaintodsformdisplaytemplateContent").html(json.bean.content);
});
var templateContent = CodeMirror.fromTextArea(document.getElementById("templateContent"), {
mode : "xml", // 模式
theme : "eclipse", // CSS样式选择
......
......@@ -35,16 +35,12 @@ layui.config({
matchingLanguage();
form.render();
//模板规范说明
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 3}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintodsformdisplaytemplateTitle").html(j.bean.title);
$("#exexplaintodsformdisplaytemplateContent").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(3, function(json){
$("#exexplaintodsformdisplaytemplateTitle").html(json.bean.title);
$("#exexplaintodsformdisplaytemplateContent").html(json.bean.content);
});
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
......
......@@ -69,6 +69,8 @@
position: fixed;
width: 320px;
right: 0px;
padding-right: 5px;
padding-top: 5px;
}
.droppable-active {
background-color: #eaeaf6!important;
......
......@@ -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="exexplaintodsformcontentTitle"></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="exexplaintodsformcontentContent" 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="exexplaintodsformcontentTitle"></span><hr>
</div>
<div class="layui-form-item layui-col-xs12" id="exexplaintodsformcontentContent" 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>
......
......@@ -14,16 +14,13 @@ layui.config({
form.render();
$("#dataShowModel").hide();
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 4}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintormpropertyTitle").html(j.bean.title);
$("#exexplaintormpropertyContent").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(4, function(json){
$("#exexplaintormpropertyTitle").html(json.bean.title);
$("#exexplaintormpropertyContent").html(json.bean.content);
});
var htmlModelContent = CodeMirror.fromTextArea(document.getElementById("htmlModelContent"), {
mode : "xml", // 模式
theme : "eclipse", // CSS样式选择
......
......@@ -149,17 +149,13 @@ layui.config({
form.render('select');
}
});
//展示规范说明
AjaxPostUtil.request({url:reqBasePath + "exexplain004", params:{type: 4}, type: 'json', callback: function(j){
if(j.returnCode == 0){
$("#exexplaintormpropertyTitle").html(j.bean.title);
$("#exexplaintormpropertyContent").html(j.bean.content);
}else{
winui.window.msg(j.returnMessage, {icon: 2,time: 2000});
}
}});
// 根据类型获取部分功能的使用说明
systemCommonUtil.queryExplainMationByType(4, function(json){
$("#exexplaintormpropertyTitle").html(json.bean.title);
$("#exexplaintormpropertyContent").html(json.bean.content);
});
form.on('select(selectParent)', function(data){
AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){
if(json.returnCode == 0){
......
var rowId = "";
var type = 1;
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -15,8 +13,10 @@ layui.config({
var $ = layui.$,
form = layui.form;
var type = GetUrlParam("type");
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(!isNull(json.bean)){
rowId = json.bean.id;
......@@ -29,7 +29,7 @@ layui.config({
});
matchingLanguage();
}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({
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
if(isNull(ue.getContent())){
winui.window.msg('请输入内容。', {icon: 2,time: 2000});
winui.window.msg('请输入内容。', {icon: 2, time: 2000});
}else{
var params = {
title: $("#title").val(),
......@@ -45,21 +45,21 @@ layui.config({
type: type
};
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){
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{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
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){
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});
winui.window.msg(systemLanguage["com.skyeye.addOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
}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 @@
<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">
layui.config({base: '../../js/exexplain/'}).use('exexplaintocodemodel');
layui.config({base: '../../js/exExplain/'}).use('exExplainDesign');
</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('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 = {
* @param url
*/
getHasVersionUrl: function (url) {
// 判断是否有问号
url += (url.indexOf("?") == -1 ? "?" : "&");
url = url + 'v='+ skyeyeVersion;
var versionStr = 'v='+ skyeyeVersion;
if(url.indexOf(versionStr) == -1) {
// 判断是否有问号
url += (url.indexOf("?") == -1 ? "?" : "&");
url = url + versionStr;
}
return url;
},
......@@ -337,13 +340,30 @@ var systemCommonUtil = {
"probationPeriod": {"id": 4, "name": "试用期(用于未转正的员工)"},
"retire": {"id": 5, "name": "退休"}
},
getSysUserStaffStateList: function (){
var list = [];
$.each(systemCommonUtil.sysUserStaffState, function (key, value){
list.push(value);
});
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.
先完成此消息的编辑!
想要评论请 注册