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

轻应用页面地址调整

上级 872db64e
......@@ -10,7 +10,6 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
// 初始化应用类型
function initAppType(id){
showGrid({
id: "typeId",
......@@ -40,9 +39,8 @@ layui.config({
url: sysMainMation.lightAppBasePath + "lightapp003",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/lightapp/lightappeditTemplate.tpl'),
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
},
ajaxSendAfter:function (json) {
$("#iconShow").attr("class", "fa fa-fw " + $("#appLogo").val());
......@@ -52,7 +50,6 @@ layui.config({
form.render();
initAppType(json.bean.typeId);
// 初始化上传
$("#appLogo").upload(systemCommonUtil.uploadCommon003Config('appLogo', 12, json.bean.appLogo, 1));
form.on('submit(formEditMenu)', function (data) {
......
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -16,14 +18,14 @@ layui.config({
elem: '#messageTable',
method: 'post',
url: sysMainMation.lightAppBasePath + 'lightapp001',
where: {appName: $("#appName").val(), state: $("#state").val()},
where: getTableParams(),
even: true,
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'appName', title: '应用名称', align: 'center', width: 120 },
{ field: 'appName', title: '应用名称', width: 120 },
{ field: 'appLogo', title: 'logo', width: 60, templet: function (d) {
if(isNull(d.appLogo)){
return '';
......@@ -32,8 +34,8 @@ layui.config({
return str;
}
}},
{ field: 'appUrl', title: '应用链接', align: 'center', width: 220},
{ field: 'typeName', title: '所属类型', align: 'center', width: 120},
{ field: 'appUrl', title: '应用链接', align: 'center', width: 220 },
{ field: 'typeName', title: '所属类型', align: 'center', width: 120 },
{ field: 'state', title: '状态', width: 100, align: 'center', templet: function (d) {
if(d.state == '1'){
return "<span class='state-new'>新建</span>";
......@@ -45,12 +47,15 @@ layui.config({
return "参数错误";
}
}},
{ field: 'createId', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120},
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 200},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 250, toolbar: '#tableBar'}
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#tableBar' }
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
......@@ -69,53 +74,35 @@ layui.config({
systemCommonUtil.showPicImg(fileBasePath + data.appLogo);
}
});
form.render();
$("body").on("click", "#formSearchLightApp", function() {
refreshTable();
});
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where:{appName: $("#appName").val(),state: $("#state").val()}});
}
function refreshTable(){
table.reloadData("messageTable", {page: {curr: 1}, where:{appName: $("#appName").val(),state: $("#state").val()}});
}
//新增
// 新增
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/lightapp/lightappadd.html",
title: "新增轻应用",
pageId: "lightappadd",
area: ['800px', '60vh'],
url: "../../tpl/lightApp/lightAppAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "lightAppAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
//编辑
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/lightapp/lightappedit.html",
title: "编辑轻应用",
pageId: "lightappedit",
area: ['800px', '60vh'],
url: "../../tpl/lightApp/lightAppEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "lightAppEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
}
//删除
// 删除
function del(data, obj) {
var msg = obj ? '确认删除【' + obj.data.appName + '】吗?' : '确认删除选中数据吗?';
layer.confirm(msg, { icon: 3, title: '删除轻应用' }, function (index) {
......@@ -127,7 +114,7 @@ layui.config({
});
}
//上线
// 上线
function up(data, obj){
var msg = obj ? '确认将【' + obj.data.appName + '】上线吗?' : '确认将选中数据上线吗?';
layer.confirm(msg, { icon: 3, title: '轻应用上线' }, function (index) {
......@@ -139,7 +126,7 @@ layui.config({
});
}
//下线
// 下线
function down(data, obj){
var msg = obj ? '确认将【' + obj.data.appName + '】下线吗?' : '确认将选中数据下线吗?';
layer.confirm(msg, { icon: 3, title: '轻应用下线' }, function (index) {
......@@ -150,6 +137,18 @@ layui.config({
}});
});
}
form.render();
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('lightapplist', {});
exports('lightAppList', {});
});
......@@ -15,7 +15,7 @@ layui.config({
url: sysMainMation.lightAppBasePath + "lightapp008",
params: {typeId: typeId},
pagination: false,
template: getFileContent('tpl/lightappshow/lightappshowlistTemplate.tpl'),
template: getFileContent('tpl/lightAppShow/lightAppShowListTemplate.tpl'),
ajaxSendLoadBefore: function(hdb) {
},
ajaxSendAfter:function (json) {
......@@ -29,7 +29,7 @@ layui.config({
url: sysMainMation.lightAppBasePath + "lightapptype010",
params: {},
pagination: false,
template: getFileContent('tpl/lightappshow/lightappshowaTemplate.tpl'),
template: getFileContent('tpl/lightAppShow/lightAppShowItemTemplate.tpl'),
ajaxSendLoadBefore: function(hdb) {
},
ajaxSendAfter:function (json) {
......@@ -75,5 +75,5 @@ layui.config({
form.render();
exports('lightappshow', {});
exports('lightAppShow', {});
});
......@@ -15,7 +15,7 @@ layui.config({
url: sysMainMation.lightAppBasePath + "lightapptype003",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/lightapptype/lightapptypeeditTemplate.tpl'),
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function(hdb) {
},
ajaxSendAfter:function (json) {
......
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -16,14 +18,14 @@ layui.config({
elem: '#messageTable',
method: 'post',
url: sysMainMation.lightAppBasePath + 'lightapptype001',
where: {typeName: $("#typeName").val(), state: $("#state").val()},
where: getTableParams(),
even: true,
page: true,
limits: [8, 16, 24, 32, 40, 48, 56],
limit: 8,
limits: getLimits(),
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'typeName', title: '类型名称', align: 'center', width: 120 },
{ field: 'typeName', title: '名称', width: 120 },
{ field: 'iconPath', title: 'logo', width: 60, templet: function (d) {
if(isNull(d.iconPath)){
return '';
......@@ -39,7 +41,7 @@ layui.config({
return str;
}
}},
{ field: 'useNum', title: '轻应用数量', align: 'center', width: 120},
{ field: 'useNum', title: '轻应用数量', align: 'center', width: 120 },
{ field: 'state', title: '状态', width: 100, align: 'center', templet: function (d) {
if(d.state == '1'){
return "<span class='state-new'>新建</span>";
......@@ -51,12 +53,15 @@ layui.config({
return "参数错误";
}
}},
{ field: 'createId', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120},
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 200},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 250, toolbar: '#tableBar'}
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 250, toolbar: '#tableBar' }
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
......@@ -80,52 +85,34 @@ layui.config({
}
});
form.render();
$("body").on("click", "#formSearchLightApp", function() {
refreshTable();
});
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where:{typeName: $("#typeName").val(),state: $("#state").val()}});
}
function refreshTable(){
table.reloadData("messageTable", {page: {curr: 1}, where:{typeName: $("#typeName").val(),state: $("#state").val()}});
}
//新增
// 新增
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/lightapptype/lightapptypeadd.html",
title: "新增轻应用类型",
pageId: "lightapptypeadd",
area: ['800px', '60vh'],
url: "../../tpl/lightAppType/lightAppTypeAdd.html",
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "lightAppTypeAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
//编辑
// 编辑
function edit(data) {
rowId = data.id;
_openNewWindows({
url: "../../tpl/lightapptype/lightapptypeedit.html",
title: "编辑轻应用类型",
pageId: "lightapptypeedit",
area: ['800px', '60vh'],
url: "../../tpl/lightAppType/lightAppTypeEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "lightAppTypeEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
}
//删除
// 删除
function del(data, obj) {
var msg = obj ? '确认删除【' + obj.data.typeName + '】吗?' : '确认删除选中数据吗?';
layer.confirm(msg, { icon: 3, title: '删除轻应用类型' }, function (index) {
......@@ -137,7 +124,7 @@ layui.config({
});
}
//上线
// 上线
function up(data, obj){
var msg = obj ? '确认将【' + obj.data.typeName + '】上线吗?' : '确认将选中数据上线吗?';
layer.confirm(msg, { icon: 3, title: '轻应用类型上线' }, function (index) {
......@@ -149,7 +136,7 @@ layui.config({
});
}
//下线
// 下线
function down(data, obj){
var msg = obj ? '确认将【' + obj.data.typeName + '】下线吗?' : '确认将选中数据下线吗?';
layer.confirm(msg, { icon: 3, title: '轻应用类型下线' }, function (index) {
......@@ -161,7 +148,7 @@ layui.config({
});
}
//上移
// 上移
function topOne(data) {
AjaxPostUtil.request({url: sysMainMation.lightAppBasePath + "lightapptype005", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
......@@ -169,13 +156,25 @@ layui.config({
}});
}
//下移
// 下移
function lowerOne(data) {
AjaxPostUtil.request({url: sysMainMation.lightAppBasePath + "lightapptype006", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
}
form.render();
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('lightapptypelist', {});
exports('lightAppTypeList', {});
});
......@@ -53,7 +53,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightapp/'}).use('lightappadd');
layui.config({base: '../../js/lightApp/'}).use('lightAppAdd');
</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="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">应用名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="appName" name="appName" win-verify="required" placeholder="请输入应用名称" class="layui-input" maxlength="10" value="{{appName}}" />
</div>
</div>
<div class="layui-form-item menuIcon">
<label class="layui-form-label">logo<i class="red">*</i></label>
<div class="layui-input-block">
<div class="upload" id="appLogo"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">应用类型<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="typeId" lay-search="" id="typeId" win-verify="required">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">应用地址<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="appUrl" name="appUrl" win-verify="required|url" placeholder="请输入应用地址" class="layui-input" value="{{appUrl}}" />
<div class="layui-form-mid layui-word-aux">地址格式为http://xxxxxxxxxx</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">应用描述</label>
<div class="layui-input-block">
<input type="text" id="desc" name="desc" placeholder="" class="layui-input" value="{{appdesc}}"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditMenu"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightApp/'}).use('lightAppEdit');
</script>
</body>
</html>
\ No newline at end of file
......@@ -7,33 +7,10 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">应用名称</label>
<div class="layui-input-inline">
<input type="text" id="appName" name="appName" placeholder="请输入应用名称" class="layui-input" />
</div>
<label class="layui-form-label">状态</label>
<div class="layui-input-inline">
<select id="state" name="state">
<option value="">全部</option>
<option value="1">新建</option>
<option value="2">上线</option>
<option value="3">下线</option>
</select>
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" type="button" id="formSearchLightApp"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1560418136905"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1560418136905"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
......@@ -41,7 +18,7 @@
<script type="text/html" id="tableBar">
{{# if(d.state == 1||d.state == 3){ }}
{{# if(auth('1560418152289')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# } }}
{{# if((d.state == 1||d.state == 3)){ }}
......@@ -64,7 +41,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightapp/'}).use('lightapplist');
layui.config({base: '../../js/lightApp/'}).use('lightAppList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -24,7 +24,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightappshow/'}).use('lightappshow');
layui.config({base: '../../js/lightAppShow/'}).use('lightAppShow');
</script>
</body>
</html>
\ No newline at end of file
......@@ -55,7 +55,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightapptype/'}).use('lightapptypeadd');
layui.config({base: '../../js/lightAppType/'}).use('lightAppTypeAdd');
</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="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">类型名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="typeName" name="typeName" win-verify="required" placeholder="请输入类型名称" class="layui-input" maxlength="10" value="{{typeName}}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">logo类型<i class="red">*</i></label>
<div class="layui-input-block winui-radio">
<input type="radio" name="iconType" value="1" title="Icon" lay-filter="iconType" checked/>
<input type="radio" name="iconType" value="2" title="图片" lay-filter="iconType" />
</div>
</div>
<div class="layui-form-item menuIconTypeIsOne">
<label class="layui-form-label">logo</label>
<div class="layui-input-block">
<input type="text" id="iconPath" name="iconPath" placeholder="请输入图标src或者class" class="layui-input" value="{{iconPath}}" />
</div>
</div>
<div class="layui-form-item menuIconTypeIsOne">
<label class="layui-form-label">logo预览</label>
<div class="layui-input-block">
<div class="layui-col-xs12">
<div class="layui-col-xs2">
<div class="winui-icon winui-icon-font" style="width: 60px; height: 60px;"><i id="iconShow" class="" style="font-size: 48px; line-height: 65px;"></i></div>
</div>
</div>
</div>
</div>
<div class="layui-form-item menuIconTypeIsTwo layui-hide">
<label class="layui-form-label">logo图片</label>
<div class="layui-input-block">
<div class="upload" id="iconpicPath"></div>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditMenu"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightAppType/'}).use('lightAppTypeEdit');
</script>
</body>
</html>
\ No newline at end of file
......@@ -7,33 +7,10 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">类型名称</label>
<div class="layui-input-inline">
<input type="text" id="typeName" name="typeName" placeholder="请输入类型名称" class="layui-input" />
</div>
<label class="layui-form-label">状态</label>
<div class="layui-input-inline">
<select id="state" name="state">
<option value="">全部</option>
<option value="1">新建</option>
<option value="2">上线</option>
<option value="3">下线</option>
</select>
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" type="button" id="formSearchLightApp"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1559201340836"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1559201340836"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;">
......@@ -41,7 +18,7 @@
<script type="text/html" id="tableBar">
{{# if(d.state == 1||d.state == 3){ }}
{{# if(auth('1559267011961')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# } }}
{{# if((d.state == 1||d.state == 3)&&(d.useNum==0)){ }}
......@@ -70,7 +47,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/lightapptype/'}).use('lightapptypelist');
layui.config({base: '../../js/lightAppType/'}).use('lightAppTypeList');
</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="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</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/lightapp/'}).use('lightappedit');
</script>
</body>
</html>
\ No newline at end of file
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">应用名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="appName" name="appName" win-verify="required" placeholder="请输入应用名称" class="layui-input" maxlength="10" value="{{appName}}" />
</div>
</div>
<div class="layui-form-item menuIcon">
<label class="layui-form-label">logo<i class="red">*</i></label>
<div class="layui-input-block">
<div class="upload" id="appLogo"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">应用类型<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="typeId" lay-search="" id="typeId" win-verify="required">
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">应用地址<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="appUrl" name="appUrl" win-verify="required|url" placeholder="请输入应用地址" class="layui-input" value="{{appUrl}}" />
<div class="layui-form-mid layui-word-aux">地址格式为:http://xxxxxxxxxx</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">应用描述</label>
<div class="layui-input-block">
<input type="text" id="desc" name="desc" placeholder="" class="layui-input" value="{{appdesc}}"/>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditMenu"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
\ 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="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</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/lightapptype/'}).use('lightapptypeedit');
</script>
</body>
</html>
\ No newline at end of file
{{#bean}}
<div class="layui-form-item">
<label class="layui-form-label">类型名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="typeName" name="typeName" win-verify="required" placeholder="请输入类型名称" class="layui-input" maxlength="10" value="{{typeName}}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">logo类型<i class="red">*</i></label>
<div class="layui-input-block winui-radio">
<input type="radio" name="iconType" value="1" title="Icon" lay-filter="iconType" checked/>
<input type="radio" name="iconType" value="2" title="图片" lay-filter="iconType" />
</div>
</div>
<div class="layui-form-item menuIconTypeIsOne">
<label class="layui-form-label">logo</label>
<div class="layui-input-block">
<input type="text" id="iconPath" name="iconPath" placeholder="请输入图标src或者class" class="layui-input" value="{{iconPath}}" />
</div>
</div>
<div class="layui-form-item menuIconTypeIsOne">
<label class="layui-form-label">logo预览</label>
<div class="layui-input-block">
<div class="layui-col-xs12">
<div class="layui-col-xs2">
<div class="winui-icon winui-icon-font" style="width: 60px; height: 60px;"><i id="iconShow" class="" style="font-size: 48px; line-height: 65px;"></i></div>
</div>
</div>
</div>
</div>
<div class="layui-form-item menuIconTypeIsTwo layui-hide">
<label class="layui-form-label">logo图片</label>
<div class="layui-input-block">
<div class="upload" id="iconpicPath"></div>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditMenu"><language showName="com.skyeye.save"></language></button>
</div>
</div>
{{/bean}}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册