提交 8025abce 编写于 作者: W weizhiqiang

工作流详情接口调用修改

上级 814a6f82
......@@ -27,7 +27,7 @@ layui.config({
tableTemplate = $("#tableTemplate").html(),//表格展示
voucherTemplate = $("#voucherTemplate").html();//凭证展示
AjaxPostUtil.request({url: flowableBasePath + "activitimode025", params: {processInstanceId: processInstanceId}, type: 'json', callback: function(j){
AjaxPostUtil.request({url: flowableBasePath + "activitimode025", params: {processInstanceId: processInstanceId}, type: 'json', method: 'GET', callback: function(j){
var jsonStr = "";//实体json对象
var str = "";
$.each(j.rows, function(i, item) {
......@@ -98,22 +98,19 @@ layui.config({
return val;
}
//加载时间线审批历史
// 加载时间线审批历史
function inboxTimeTreeApprovalHistory(){
flow.load({
elem: '#timeTreeApprovalHistoryList', //指定列表容器
elem: '#timeTreeApprovalHistoryList',
scrollElem: '#timeTreeApprovalHistoryList',
isAuto: true,
done: function(page, next) { //到达临界点(默认滚动触发),触发下一页
done: function(page, next) {
var lis = [];
//以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回)
AjaxPostUtil.request({url: flowableBasePath + "activitimode017", params: {processInstanceId: parent.processInstanceId}, type: 'json', callback: function (json) {
$.each(json.rows, function(index, bean) {
bean.showClass = 'date02';
lis.push(getDataUseHandlebars(timeTreeApprovalHistory, {bean: bean}));
});
//执行下一页渲染,第二参数为:满足“加载更多”的条件,即后面仍有分页
//pages为Ajax返回的总页数,只有当前页小于总页数的情况下,才会继续出现加载更多
next(lis.join(''), (page * 1000) < json.total);
}});
}
......
......@@ -36,7 +36,7 @@ layui.config({
tableTemplate = $("#tableTemplate").html(),//表格展示
voucherTemplate = $("#voucherTemplate").html();//凭证展示
AjaxPostUtil.request({url: flowableBasePath + "activitimode016", params: {taskId: taskId, processInstanceId: processInstanceId}, type: 'json', callback: function(j){
AjaxPostUtil.request({url: flowableBasePath + "activitimode016", params: {taskId: taskId, processInstanceId: processInstanceId}, type: 'json', method: 'GET', callback: function(j){
pageTypes = isNull(j.bean.pageTypes) ? '1' : j.bean.pageTypes;
var jsonStr = "";//实体json对象
var str = "";
......@@ -48,7 +48,7 @@ layui.config({
bean: item
};
jsonArray.push(item);
//判断表单项在该流程节点是否可以编辑
// 判断表单项在该流程节点是否可以编辑
if((!isNull(editableNodeId) && ("," + item.editableNodeId + ",").indexOf("," + editableNodeId + ",") > -1)
|| (!isNull(editableNodeName) && ("," + item.editableNodeName + ",").indexOf("," + editableNodeName + ",") > -1)){
var formItem = item.formItem;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册