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

工作流整改

上级 ab570eab
......@@ -19,7 +19,7 @@ layui.config({
classUrl: data.field.classUrl,
desc: $("#desc").val()
};
AjaxPostUtil.request({url:reqBasePath + "actbaseclass002", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "actbaseclass002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -13,7 +13,7 @@ layui.config({
var beanTemplate = $('#beanTemplate').html();
showGrid({
id: "showForm",
url: reqBasePath + "actbaseclass006",
url: flowableBasePath + "actbaseclass006",
params: {rowId: parent.rowId},
pagination: false,
template: beanTemplate,
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "actbaseclass004",
url: flowableBasePath + "actbaseclass004",
params: {rowId:parent.rowId},
pagination: false,
template: $('#beanTemplate').html(),
......@@ -26,7 +26,7 @@ layui.config({
classUrl: $("#classUrl").val(),
desc: $("#desc").val()
};
AjaxPostUtil.request({url:reqBasePath + "actbaseclass005", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "actbaseclass005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'actbaseclass001',
url: flowableBasePath + 'actbaseclass001',
where: getTableParams(),
even: true,
page: true,
......@@ -67,7 +67,7 @@ layui.config({
function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actbaseclass003", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "actbaseclass003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -25,7 +25,7 @@ layui.config({
processInstanceId: processInstanceId,
hisTaskId: hisTaskId
};
AjaxPostUtil.request({url:reqBasePath + "activitimode026", params: jStr, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode026", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -27,7 +27,7 @@ layui.config({
tableTemplate = $("#tableTemplate").html(),//表格展示
voucherTemplate = $("#voucherTemplate").html();//凭证展示
AjaxPostUtil.request({url:reqBasePath + "activitimode025", params: {processInstanceId: processInstanceId}, type: 'json', callback: function(j){
AjaxPostUtil.request({url:flowableBasePath + "activitimode025", params: {processInstanceId: processInstanceId}, type: 'json', callback: function(j){
if(j.returnCode == 0){
var jsonStr = "";//实体json对象
var str = "";
......@@ -111,7 +111,7 @@ layui.config({
done: function(page, next) { //到达临界点(默认滚动触发),触发下一页
var lis = [];
//以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回)
AjaxPostUtil.request({url:reqBasePath + "activitimode017", params:{processInstanceId: parent.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode017", params:{processInstanceId: parent.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
var jsonStr = "";//实体json对象
$.each(json.rows, function(index, bean) {
......
......@@ -16,7 +16,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'activitimode002',
url: flowableBasePath + 'activitimode002',
where: getTableParams(),
even:true,
page: true,
......@@ -89,7 +89,7 @@ layui.config({
var msg = obj ? '确认删除模型【' + obj.data.name + '】吗?' : '确认删除选中数据吗?';
layer.confirm(msg, { icon: 3, title: '删除模型' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode006", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode006", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......@@ -124,7 +124,7 @@ layui.config({
var msg = data ? '确认发布模型【' + data.name + '】吗?' : '确认发布选中数据吗?';
layer.confirm(msg, { icon: 3, title: '发布模型' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode003", params:{modelId: rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode003", params:{modelId: rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("发布成功", {icon: 1,time: 2000});
loadTable();
......@@ -141,7 +141,7 @@ layui.config({
var msg = data ? '确认升级模型【' + data.name + '】版本吗?' : '确认升级选中数据吗?';
layer.confirm(msg, { icon: 3, title: '版本升级' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode003", params:{modelId: rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode003", params:{modelId: rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("升级成功", {icon: 1,time: 2000});
loadTable();
......@@ -157,7 +157,7 @@ layui.config({
var msg = obj ? '确认取消发布【' + obj.data.name + '】吗?' : '确认取消发布选中数据吗?';
layer.confirm(msg, { icon: 3, title: '取消发布' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode007", params:{deploymentId: data.deploymentId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode007", params:{deploymentId: data.deploymentId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("取消发布成功", {icon: 1,time: 2000});
loadTable();
......@@ -172,7 +172,7 @@ layui.config({
function copyModel(data){
layer.confirm('确认拷贝选中数据吗?', { icon: 3, title: '模型拷贝' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode028", params:{modelId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode028", params:{modelId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("拷贝成功", {icon: 1,time: 2000});
loadTable();
......@@ -185,12 +185,12 @@ layui.config({
// 导出xml
function ecportXML(data){
window.open(reqBasePath + "activitimode010?modelId=" + data.id);
window.open(flowableBasePath + "activitimode010?modelId=" + data.id);
}
//新增
$("body").on("click", "#addBean", function(){
AjaxPostUtil.request({url:reqBasePath + "activitimode001", params:{}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode001", params:{}, type: 'json', callback: function(json){
if(json.returnCode == 0){
_openNewWindows({
url: "../../static/modeler.html?modelId=" + json.bean.id,
......
......@@ -12,7 +12,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "actmodletype021",
url: flowableBasePath + "actmodletype021",
params: {rowId:parent.rowId},
pagination: false,
template: $("#beanTemplate").html(),
......
......@@ -16,7 +16,7 @@ layui.config({
function initDsForm(id){
showGrid({
id: "dsFormId",
url: reqBasePath + "actmodletype020",
url: flowableBasePath + "actmodletype020",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -29,7 +29,7 @@ layui.config({
showGrid({
id: "showForm",
url: reqBasePath + "actmodletype011",
url: flowableBasePath + "actmodletype011",
params: {rowId:parent.rowId},
pagination: false,
template: getFileContent('tpl/actmodletype/actmodleeditTemplate.tpl'),
......@@ -201,7 +201,7 @@ layui.config({
return false;
}
AjaxPostUtil.request({url:reqBasePath + "actmodletype012", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype012", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -65,7 +65,7 @@ layui.config({
showGrid({
id: "actId",
url: reqBasePath + "activitimode009",
url: flowableBasePath + "activitimode009",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option.tpl'),
......@@ -94,7 +94,7 @@ layui.config({
function initDsForm(){
showGrid({
id: "dsFormId",
url: reqBasePath + "actmodletype020",
url: flowableBasePath + "actmodletype020",
params: {},
pagination: false,
template: getFileContent('tpl/template/select-option-must.tpl'),
......@@ -168,7 +168,7 @@ layui.config({
return false;
}
AjaxPostUtil.request({url:reqBasePath + "actmodletype003", params:params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype003", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -22,7 +22,7 @@ layui.config({
//初始化左侧菜单申请类型数据
function showLeft(){
var modleTypeTemplate = $('#modleTypeTemplate').html();
AjaxPostUtil.request({url:reqBasePath + "actmodletype002", params: {}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype002", params: {}, type: 'json', callback: function(json){
if(json.returnCode == 0){
var str = getDataUseHandlebars(modleTypeTemplate, json);
$("#setting").html(str);
......@@ -100,7 +100,7 @@ layui.config({
var value = obj.find("input").val();
if(!isNull(value)){
if(html != value){
AjaxPostUtil.request({url:reqBasePath + "actmodletype004", params: {rowId: clickId, title: value}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype004", params: {rowId: clickId, title: value}, type: 'json', callback: function(json){
if(json.returnCode == 0){
obj.find("a[rowid='" + clickId + "']").find("span").html(value);
}else{
......@@ -137,7 +137,7 @@ layui.config({
function deleteModleType(){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actmodletype005", params:{rowId: clickId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype005", params:{rowId: clickId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
$("#setting").find("a[rowid='" + clickId + "']").remove();
......@@ -160,7 +160,7 @@ layui.config({
var msg = '确认上线该申请类型吗?';
layer.confirm(msg, { icon: 3, title: '上线申请类型实体' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actmodletype015", params:{rowId: clickId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype015", params:{rowId: clickId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#setting").find("a[rowid='" + clickId + "']").find("div").remove();
$("#setting").find("a[rowid='" + clickId + "']").find("span").after('<div class="up-state-point"></div>');
......@@ -177,7 +177,7 @@ layui.config({
var msg = '确认下线该申请类型吗?';
layer.confirm(msg, { icon: 3, title: '下线申请类型实体' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actmodletype016", params:{rowId: clickId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype016", params:{rowId: clickId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
$("#setting").find("a[rowid='" + clickId + "']").find("div").remove();
$("#setting").find("a[rowid='" + clickId + "']").find("span").after('<div class="down-state-point"></div>');
......@@ -191,7 +191,7 @@ layui.config({
//上移申请类型
function upMoveModleType(){
AjaxPostUtil.request({url:reqBasePath + "actmodletype017", params:{rowId: clickId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype017", params:{rowId: clickId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
var a = $("#setting").find("a[rowid='" + clickId + "']").prev();
......@@ -205,7 +205,7 @@ layui.config({
//下移申请类型
function downMoveModleType(){
AjaxPostUtil.request({url:reqBasePath + "actmodletype018", params:{rowId: clickId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype018", params:{rowId: clickId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
var a = $("#setting").find("a[rowid='" + clickId + "']").next();
......@@ -250,7 +250,7 @@ layui.config({
$(this).select();
return;
}
AjaxPostUtil.request({url:reqBasePath + "actmodletype001", params: {title: value}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype001", params: {title: value}, type: 'json', callback: function(json){
if(json.returnCode == 0){
obj.find("input").remove();
clickId = json.bean.id;
......@@ -283,7 +283,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'actmodletype007',
url: flowableBasePath + 'actmodletype007',
where: {typeId: clickId, title: $("#title").val()},
even: true,
page: true,
......@@ -362,7 +362,7 @@ layui.config({
function del(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actmodletype006", params: {rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype006", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......@@ -378,7 +378,7 @@ layui.config({
var msg = '确认上线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '上线申请类型实体' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actmodletype009", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype009", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("上线成功", {icon: 1,time: 2000});
loadTable();
......@@ -394,7 +394,7 @@ layui.config({
var msg = '确认下线选中数据吗?';
layer.confirm(msg, { icon: 3, title: '下线申请类型实体' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "actmodletype010", params:{rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype010", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("下线成功", {icon: 1,time: 2000});
loadTable();
......@@ -439,7 +439,7 @@ layui.config({
//上移申请类型实体
function upMove(data){
AjaxPostUtil.request({url:reqBasePath + "actmodletype013", params:{rowId: data.id, typeId: data.typeId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype013", params:{rowId: data.id, typeId: data.typeId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......@@ -451,7 +451,7 @@ layui.config({
//下移申请类型实体
function downMove(data){
AjaxPostUtil.request({url:reqBasePath + "actmodletype014", params:{rowId: data.id, typeId: data.typeId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "actmodletype014", params:{rowId: data.id, typeId: data.typeId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable();
......
......@@ -53,7 +53,7 @@ layui.config({
taskId: taskId,
chooseUserMation: JSON.stringify(table.cache.messageTable)
};
AjaxPostUtil.request({url:reqBasePath + "activitiTask004", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitiTask004", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -53,7 +53,7 @@ layui.config({
taskId: taskId,
chooseUserMation: JSON.stringify(table.cache.messageTable)
};
AjaxPostUtil.request({url:reqBasePath + "activitiTask003", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitiTask003", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -18,7 +18,7 @@ layui.config({
var taskBean;
// 获取会签节点信息
AjaxPostUtil.request({url: reqBasePath + "activitiTask006", params: {taskId: taskId}, method: "GET", type: 'json', callback: function(json) {
AjaxPostUtil.request({url: flowableBasePath + "activitiTask006", params: {taskId: taskId}, method: "GET", type: 'json', callback: function(json) {
if(json.returnCode == 0) {
taskBean = json.bean;
if(json.bean.isSequential){
......@@ -112,7 +112,7 @@ layui.config({
taskId: taskId,
chooseUserMation: JSON.stringify(table.cache.messageTable)
};
AjaxPostUtil.request({url: reqBasePath + "activitiTask005", params: params, type: 'json', method: "POST", callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "activitiTask005", params: params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -15,7 +15,7 @@ layui.config({
id: 'messageAllComplateTable',
elem: '#messageAllComplateTable',
method: 'post',
url: reqBasePath + 'activitimode018',
url: flowableBasePath + 'activitimode018',
where:{},
even:true,
page: true,
......
......@@ -15,7 +15,7 @@ layui.config({
id: 'messageAllConductTable',
elem: '#messageAllConductTable',
method: 'post',
url: reqBasePath + 'activitimode019',
url: flowableBasePath + 'activitimode019',
where:{},
even:true,
page: true,
......@@ -68,7 +68,7 @@ layui.config({
var msg = '确认挂起该流程吗?';
layer.confirm(msg, { icon: 3, title: '挂起' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode020", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode020", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("该流程已挂起", {icon: 1,time: 2000});
reloadAllConductTable();
......@@ -84,7 +84,7 @@ layui.config({
var msg = '确认激活该流程吗?';
layer.confirm(msg, { icon: 3, title: '激活' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "activitimode021", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode021", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("该流程已激活", {icon: 1,time: 2000});
reloadAllConductTable();
......
......@@ -17,7 +17,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'activitiProcess001',
url: flowableBasePath + 'activitiProcess001',
where: getTableParams(),
even: true,
page: false,
......
......@@ -36,7 +36,7 @@ layui.config({
tableTemplate = $("#tableTemplate").html(),//表格展示
voucherTemplate = $("#voucherTemplate").html();//凭证展示
AjaxPostUtil.request({url:reqBasePath + "activitimode016", params: {taskId: taskId, processInstanceId: processInstanceId}, type: 'json', callback: function(j){
AjaxPostUtil.request({url:flowableBasePath + "activitimode016", params: {taskId: taskId, processInstanceId: processInstanceId}, type: 'json', callback: function(j){
if(j.returnCode == 0){
pageTypes = isNull(j.bean.pageTypes) ? '1' : j.bean.pageTypes;
var jsonStr = "";//实体json对象
......@@ -349,7 +349,7 @@ layui.config({
pageTypes: pageTypes,
approverId: activitiUtil.getApprovalPersonId()
};
AjaxPostUtil.request({url:reqBasePath + "activitimode005", params: jStr, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode005", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......@@ -371,7 +371,7 @@ layui.config({
done: function(page, next) { //到达临界点(默认滚动触发),触发下一页
var lis = [];
//以jQuery的Ajax请求为例,请求下一页数据(注意:page是从2开始返回)
AjaxPostUtil.request({url:reqBasePath + "activitimode017", params:{processInstanceId: parent.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode017", params:{processInstanceId: parent.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
var jsonStr = "";//实体json对象
$.each(json.rows, function(index, bean) {
......
......@@ -42,7 +42,7 @@ layui.config({
pageId: parent.dsFormId,
approvalId: approvalId
};
AjaxPostUtil.request({url:reqBasePath + "activitimode022", params: jStr, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode022", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("申请提交成功,等待审核...", {icon: 1,time: 2000}, function(){
parent.layer.close(index);
......
......@@ -13,7 +13,7 @@ layui.config({
// 动态表单草稿状态下的详情
var rowId = parent.rowId;
AjaxPostUtil.request({url:reqBasePath + "pagesequence006", params: {rowId: rowId}, type: 'json', callback: function(j){
AjaxPostUtil.request({url: flowableBasePath + "pagesequence006", params: {rowId: rowId}, type: 'json', callback: function(j){
if(j.returnCode == 0){
dsFormUtil.initSequenceDataDetails("showForm", j.rows);
matchingLanguage();
......
......@@ -13,7 +13,7 @@ layui.config({
form = layui.form;
// 编辑动态表单时进行回显
AjaxPostUtil.request({url:reqBasePath + "pagesequence003", params:{rowId: parent.rowId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "pagesequence003", params:{rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
dsFormUtil.loadDsFormItemToEdit("showForm", json.rows);
$("#showForm").append('<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">' +
......@@ -29,7 +29,7 @@ layui.config({
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = dsFormUtil.getPageData($("#showForm"));
AjaxPostUtil.request({url:reqBasePath + "pagesequence004", params: {jsonStr: JSON.stringify(params)}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "pagesequence004", params: {jsonStr: JSON.stringify(params)}, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -13,7 +13,7 @@ layui.config({
form = layui.form;
// 获取动态表单内容用于编辑申请类型实体
AjaxPostUtil.request({url:reqBasePath + "activitimode023", params:{rowId: parent.sequenceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode023", params:{rowId: parent.sequenceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
dsFormUtil.loadDsFormItemToEdit("showForm", json.rows);
$("#showForm").append('<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">' +
......@@ -33,7 +33,7 @@ layui.config({
taskId: parent.taskId,
processInstanceId: parent.processInstanceId
};
AjaxPostUtil.request({url:reqBasePath + "activitimode024", params: jStr, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode024", params: jStr, type: 'json', callback: function(json){
if(json.returnCode == 0){
parent.layer.close(index);
parent.refreshCode = '0';
......
......@@ -24,7 +24,7 @@ layui.config({
id: 'messageMyStartTable',
elem: '#messageMyStartTable',
method: 'post',
url: reqBasePath + 'pagesequence001',
url: flowableBasePath + 'pagesequence001',
where: getTableParams(),
even:true,
page: true,
......@@ -104,7 +104,7 @@ layui.config({
pageId: data.pageId,
approvalId: approvalId
};
AjaxPostUtil.request({url: reqBasePath + "pagesequence005", params: params, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "pagesequence005", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg("申请提交成功,等待审核...", {icon: 1, time: 2000});
reloadMyStartTable();
......@@ -120,7 +120,7 @@ layui.config({
function deleteRow(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "pagesequence002", params: {rowId: data.id}, type: 'json', callback: function(json){
AjaxPostUtil.request({url: flowableBasePath + "pagesequence002", params: {rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
reloadMyStartTable();
......
......@@ -33,7 +33,7 @@ layui.config({
id: 'messageMyStartTable',
elem: '#messageMyStartTable',
method: 'post',
url: reqBasePath + 'activitimode013',
url: flowableBasePath + 'activitimode013',
where:{startTime: startTime, endTime: endTime, processInstanceId: $("#processInstanceId").val()},
even:true,
page: true,
......@@ -136,7 +136,7 @@ layui.config({
function refreshPic(data){
layer.confirm('确认重新生成流程图吗?', { icon: 3, title: '刷新流程图操作' }, function (i) {
layer.close(i);
AjaxPostUtil.request({url:reqBasePath + "activitimode027", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode027", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
}else{
......
......@@ -19,7 +19,7 @@ layui.config({
id: 'messageMyHistoryTaskTable',
elem: '#messageMyHistoryTaskTable',
method: 'post',
url: reqBasePath + 'activitimode014',
url: flowableBasePath + 'activitimode014',
where:{},
even:true,
page: true,
......@@ -104,7 +104,7 @@ layui.config({
function refreshPic(data){
layer.confirm('确认重新生成流程图吗?', { icon: 3, title: '刷新流程图操作' }, function (i) {
layer.close(i);
AjaxPostUtil.request({url:reqBasePath + "activitimode027", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
AjaxPostUtil.request({url:flowableBasePath + "activitimode027", params: {processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
}else{
......
......@@ -120,7 +120,7 @@
"displayLength": that.data.pageInfo.pageSize, // 每页记录条数,默认为10
"serverSide": true,
"ajaxDataProp": "data",
"ajaxSource": reqBasePath + "activitimode011",
"ajaxSource": flowableBasePath + "activitimode011",
"fnServerData": $.proxy(that.fillDataTable, that),
"fnInitComplete": $.proxy(that.fnInitComplete, that),
"singleSelect": true, //单选
......@@ -492,7 +492,7 @@
dataCache.data("pageInfo", pageInfo);
var retData = null;
//注释以上部分,统一用ajaxPost处理,以便处理session超时(ajax请求超时)
ajaxPost(reqBasePath + "activitimode011", {
ajaxPost(flowableBasePath + "activitimode011", {
"reqObj": this.toJSONString(reqParam)
}, function(result, status) {
retData = result;
......
......@@ -120,7 +120,7 @@
"displayLength": that.data.pageInfo.pageSize, // 每页记录条数,默认为10
"serverSide": true,
"ajaxDataProp": "data",
"ajaxSource": reqBasePath + "activitimode012",
"ajaxSource": flowableBasePath + "activitimode012",
"fnServerData": $.proxy(that.fillDataTable, that),
"fnInitComplete": $.proxy(that.fnInitComplete, that),
"singleSelect": true, //单选
......@@ -492,7 +492,7 @@
dataCache.data("pageInfo", pageInfo);
var retData = null;
//注释以上部分,统一用ajaxPost处理,以便处理session超时(ajax请求超时)
ajaxPost(reqBasePath + "activitimode012", {
ajaxPost(flowableBasePath + "activitimode012", {
"reqObj": this.toJSONString(reqParam)
}, function(result, status) {
retData = result;
......
......@@ -62,7 +62,7 @@ var activitiUtil = {
flag: flag
};
// 优先请求一次获取下个用户节点的信息,如果没有审批节点信息,则不加载审批人选项
AjaxPostUtil.request({url:reqBasePath + "activitiProcess001", params: params, type: 'json', callback: function(json) {
AjaxPostUtil.request({url: flowableBasePath + "activitiProcess001", params: params, type: 'json', callback: function(json) {
if (json.returnCode == 0) {
if(!isNull(json.bean)){
var approvalPersonChooseDom = '<div class="layui-form-item layui-col-xs12">' +
......@@ -161,7 +161,7 @@ var activitiUtil = {
sequential: false,
userIds: JSON.stringify(["300b878c5c6744f2b48e6bc40beefd11", "0f17e3da88bc4e22841156388964e12e"])
};
AjaxPostUtil.request({url: reqBasePath + "activitiProcess003", params: params, method: "POST", type: 'json', callback: function(json) {
AjaxPostUtil.request({url: flowableBasePath + "activitiProcess003", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) {
if (typeof callback === 'function') {
callback();
......@@ -219,7 +219,7 @@ var activitiUtil = {
taskId: task.taskId,
principalUserId: staffChooseList[0].id
};
AjaxPostUtil.request({url: reqBasePath + "activitiTask001", params: params, method: "POST", type: 'json', callback: function(json) {
AjaxPostUtil.request({url: flowableBasePath + "activitiTask001", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) {
if (typeof callback === 'function') {
callback();
......@@ -243,7 +243,7 @@ var activitiUtil = {
taskId: task.taskId,
transferredPersonId: staffChooseList[0].id
};
AjaxPostUtil.request({url: reqBasePath + "activitiTask002", params: params, method: "POST", type: 'json', callback: function(json) {
AjaxPostUtil.request({url: flowableBasePath + "activitiTask002", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) {
if (typeof callback === 'function') {
callback();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册