万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

266 lines
11 KiB

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<th:block th:include="include :: header('青舟燃气系统|应付款明细')" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-datepicker-css" />
<th:block th:include="include :: bootstrap-table-css" />
<th:block th:include="include :: fileinput-css" />
<th:block th:include="include :: cgwcss" />
<style type="text/css">
html, body {
height: 100%;
}
</style>
<!-- 风格样式 -->
<th:block th:include="include :: theme" />
</head>
<body style="overflow-x: hidden;">
<div style="background-color: #eff3f8; padding-top: 1px; height: 100%;">
<div class="row">
<div class="col-md-12">
<div class="portlet box green">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-gift"></i>查询
</div>
</div>
<div class="portlet-body form">
<!-- BEGIN FORM-->
<form id="formId">
<div class="select-list">
<ul>
<li>
<p>KEY:</p>
<input type="text" name="key"/>
</li>
<li>
<p>名称:</p>
<input type="text" name="name"/>
</li>
<!--<li class="select-time">
<p>创建时间:</p>
<input type="text" class="time-input" id="craateStartTime" placeholder="开始时间" name="params[craateStartTime]"/>
<span>-</span>
<input type="text" class="time-input" id="createEndTime" placeholder="结束时间" name="params[createEndTime]"/>
</li>
<li class="select-time">
<p>最后更新时间:</p>
<input type="text" class="time-input" id="lastUpdateStartTime" placeholder="开始时间" name="params[lastUpdateStartTime]"/>
<span>-</span>
<input type="text" class="time-input" id="lastUpdateEndHandleTime" placeholder="结束时间" name="params[lastUpdateEndHandleTime]"/>
</li>-->
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
<!-- END FORM-->
</div>
</div>
<div class="portlet light">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs font-green-sharp"></i> <span
class="caption-subject font-green-sharp bold uppercase">结余明细表单</span>
<button class="btn green-haze btn-circle" id="addModal" >
<i class="fa fa-plus"></i>创建新模型
</button>
<!-- <a class="btn btn-success" onclick="$.operate.add()" >
<i class="fa fa-plus"></i> 创建新模型
</a> -->
</div>
</div>
<div class="portlet-body">
<div class="table-responsive">
<table id="wstable" class="table table-striped table-responsive">
<thead>
<tr>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-datepicker-js" />
<th:block th:include="include :: bootstrap-table-js" />
<th:block th:include="include :: fileinput-js" />
<th:block th:include="include :: cgwjs" />
<th:block th:include="include :: page-js" />
<script th:src="@{/assets/admin/pages/scripts/components-pickers.js}"
type="text/javascript"></script>
<script >
var prefix = ctx + "process/definition";
jQuery(document).ready(function() {
Metronic.init(); // init metronic core components
Layout.init(); // init current layout
Demo.init(); // init demo features
ComponentsPickers.init();
var wsTable = new wsTableInit();
wsTable.Init();
});
var wsTableInit = function() {
var wsTableInit = new Object();
//初始化Table
wsTableInit.Init = function() {
$('#wstable').bootstrapTable({
url: prefix + "/list",
method : 'post',
striped : true, //是否显示行间隔色
cache : false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
pagination : true, //是否显示分页(*)
queryParams : wsTableInit.queryParams, //传递参数(*)
sidePagination : "server", //分页方式:client客户端分页,server服务端分页(*)
pageNumber : 1, //初始化加载第一页,默认第一页
pageSize : 25, //每页的记录行数(*)
pageList : [ 5, 10, 25, 50, 100, 'ALL' ], //可供选择的每页的行数(*)
//clickToSelect : true, //是否启用点击选中行
uniqueId : "userId", //每一行的唯一标识,一般为主键列
showToggle : false, //是否显示详细视图和列表视图的切换按钮
cardView : false, //是否显示详细视图
detailView : false, //是否显示父子表
smartDisplay : false, //加了这个才显示每页显示的行数
showExport : true, //是否显示导出按钮
height : 550,
columns: [{
checkbox: true
},
{
field : 'id',
title : 'ID'
},
{
field : 'key',
title : 'KEY'
},
{
field : 'name',
title : '名称'
},
{
field : 'version',
title : '版本'
},
{
field : 'createTime',
title : '创建时间'
},
{
field : 'lastUpdateTime',
title : '最后更新时间'
},
{
field : 'metaInfo',
title : '元数据'
},
{
title: '操作',
align: 'center',
/* formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="successCallback(\'' + row.id + '\')"><i class="fa fa-edit"></i> 编辑</a> ');
actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="deployModel(\'' + row.id + '\')"><i class="fa fa-cloud-upload"></i> 部署</a> ');
actions.push('<input type="button" value="编辑" class="btn yellow" id="edit">');
actions.push('<input type="button" value="部署" class="btn yellow" id="edit">');
return actions.join('');
} */
formatter: operateFormatter,
events: operateEvents,//给按钮注册事件
}]
});
}
return wsTableInit;
}
$("#addModal").click(function() {
myAdd(ctx + "process/modeler/addModal");
})
function operateFormatter(value, row, index) {
return [
'<input type="button" value="编辑" class="btn yellow" id="successCallback">',
'<input type="button" value="部署" class="btn yellow" id="deployModel">',
].join('');
}
window.operateEvents = {
'click #successCallback': function (e, value, row, index) {
successCallback(row.id);
}
};
/* function showVerifyDialog(taskId, module, pageName, nodeName, todoUserId) {
if (todoUserId !== currentUser.loginName) {
$.modal.alertWarning("不允许非待办人办理待办事项!");
return;
}
var url = prefix + "/showVerifyDialog/" + taskId + "?module=" + module + "&formPageName=" + pageName;
$.modal.open(nodeName, url);
}
function export2Bpmn(modelId) {
// $.operate.submit(prefix + "/export/" + modelId, "get", "", "");
window.location.href = prefix + "/export/" + modelId;
// $.modal.loading("正在导出数据,请稍后...");
// $.post(prefix + "/export/" + modelId, "", function(result) {
// if (result.code == web_status.SUCCESS) {
// window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true;
// } else if (result.code == web_status.WARNING) {
// $.modal.alertWarning(result.msg)
// } else {
// $.modal.alertError(result.msg);
// }
// $.modal.closeLoading();
// });
} */
function successCallback(modelId) {
createMyMenuItem("/modeler/modeler.html?modelId=" + modelId, "模型在线设计");
}
function createMyMenuItem(dataUrl, menuName) {
console.log(dataUrl);
var panelUrl = window.frameElement.getAttribute('data-id');
dataIndex = $.common.random(1,100), flag = true;
if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false;
var topWindow = $(window.parent.document);
// 选项卡菜单不存在
if (flag) {
var str = '<a href="javascript:;" class="active menuTab" data-id="' + dataUrl + '" data-panel="' + panelUrl + '">' + menuName + ' <i class="fa fa-times-circle"></i></a>';
$('.menuTab', topWindow).removeClass('active');
// 添加选项卡对应的iframe
var str1 = '<iframe class="RuoYi_iframe" name="iframe' + dataIndex + '" width="100%" height="100%" src="' + dataUrl + '" frameborder="0" data-id="' + dataUrl + '" data-panel="' + panelUrl + '" seamless></iframe>';
$('.mainContent', topWindow).find('iframe.RuoYi_iframe').hide().parents('.mainContent').append(str1);
// 添加选项卡
$('.menuTabs .page-tabs-content', topWindow).append(str);
}
return false;
}
function deployModel(modelId) {
$.modal.confirm("确认要部署至流程定义吗?", function() {
$.post(prefix + "/deploy/" + modelId, "", function(result) {
$.modal.msgSuccess(result.msg);
});
});
}
</script>
</body>
<!-- END BODY -->
</html>