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

动态表单整改

上级 bb1d7336
...@@ -59,7 +59,7 @@ layui.config({ ...@@ -59,7 +59,7 @@ layui.config({
tplContent = getDataUseHandlebars(formItem.templateContent, obj); tplContent = getDataUseHandlebars(formItem.templateContent, obj);
formItem.context = tplContent; formItem.context = tplContent;
}else if(formItem.associatedDataTypes == 2){//接口 }else if(formItem.associatedDataTypes == 2){//接口
AjaxPostUtil.request({url:reqBasePath + "dsformpage011", params:{interfa: formItem.aData}, type: 'json', callback: function(j){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage011", params:{interfa: formItem.aData}, type: 'json', callback: function(j){
if(j.returnCode == 0){ if(j.returnCode == 0){
var obj = JSON.parse(j.bean.aData); var obj = JSON.parse(j.bean.aData);
tplContent = getDataUseHandlebars(formItem.templateContent, obj); tplContent = getDataUseHandlebars(formItem.templateContent, obj);
......
...@@ -15,7 +15,7 @@ layui.config({ ...@@ -15,7 +15,7 @@ layui.config({
var actKey = parent.actKey; var actKey = parent.actKey;
// 加载动态表单页 // 加载动态表单页
AjaxPostUtil.request({url:reqBasePath + "dsformpage004", params:{rowId: parent.dsFormId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage004", params:{rowId: parent.dsFormId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
dsFormUtil.loadDsFormItemToEdit("showForm", json.rows); dsFormUtil.loadDsFormItemToEdit("showForm", json.rows);
$("#showForm").append('<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">' + $("#showForm").append('<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">' +
......
...@@ -25,7 +25,7 @@ layui.config({ ...@@ -25,7 +25,7 @@ layui.config({
}); });
form.on('select(showModel)', function(data){ form.on('select(showModel)', function(data){
AjaxPostUtil.request({url:reqBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var mode = returnModel(json.bean.htmlType); var mode = returnModel(json.bean.htmlType);
if (!isNull(mode.length)) { if (!isNull(mode.length)) {
...@@ -54,7 +54,7 @@ layui.config({ ...@@ -54,7 +54,7 @@ layui.config({
//展现形式 //展现形式
showGrid({ showGrid({
id: "showModel", id: "showModel",
url: reqBasePath + "dsform006", url: flowableBasePath + "dsform006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -65,7 +65,7 @@ layui.config({ ...@@ -65,7 +65,7 @@ layui.config({
//限制条件 //限制条件
showGrid({ showGrid({
id: "limitRequire", id: "limitRequire",
url: reqBasePath + "dsformlimitrequirement006", url: flowableBasePath + "dsformlimitrequirement006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/checkbox-limit.tpl'), template: getFileContent('tpl/template/checkbox-limit.tpl'),
......
...@@ -101,7 +101,7 @@ layui.config({ ...@@ -101,7 +101,7 @@ layui.config({
function revoke(data){ function revoke(data){
layer.confirm('确认撤销该商机审批申请吗?', { icon: 3, title: '撤销操作' }, function (index) { layer.confirm('确认撤销该商机审批申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "opportunity027", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity027", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
......
...@@ -99,7 +99,7 @@ layui.config({ ...@@ -99,7 +99,7 @@ layui.config({
function revoke(data){ function revoke(data){
layer.confirm('确认撤销该商机审批申请吗?', { icon: 3, title: '撤销操作' }, function (index) { layer.confirm('确认撤销该商机审批申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "opportunity027", params:{rowId: data.id, processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity027", params:{rowId: data.id, processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
......
...@@ -59,7 +59,7 @@ layui.config({ ...@@ -59,7 +59,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入初期沟通状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入初期沟通状态吗?';
layer.confirm(msg, { icon: 3, title: '初期沟通' }, function (i) { layer.confirm(msg, { icon: 3, title: '初期沟通' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity019", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity019", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -75,7 +75,7 @@ layui.config({ ...@@ -75,7 +75,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入方案与报价状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入方案与报价状态吗?';
layer.confirm(msg, { icon: 3, title: '方案与报价' }, function (i) { layer.confirm(msg, { icon: 3, title: '方案与报价' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity020", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity020", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -91,7 +91,7 @@ layui.config({ ...@@ -91,7 +91,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入竞争与投标状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入竞争与投标状态吗?';
layer.confirm(msg, { icon: 3, title: '竞争与投标' }, function (i) { layer.confirm(msg, { icon: 3, title: '竞争与投标' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity021", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity021", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -107,7 +107,7 @@ layui.config({ ...@@ -107,7 +107,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入商务谈判状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入商务谈判状态吗?';
layer.confirm(msg, { icon: 3, title: '商务谈判' }, function (i) { layer.confirm(msg, { icon: 3, title: '商务谈判' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity022", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity022", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -123,7 +123,7 @@ layui.config({ ...@@ -123,7 +123,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入成交状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入成交状态吗?';
layer.confirm(msg, { icon: 3, title: '成交' }, function (i) { layer.confirm(msg, { icon: 3, title: '成交' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity023", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity023", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -139,7 +139,7 @@ layui.config({ ...@@ -139,7 +139,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入丢单状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入丢单状态吗?';
layer.confirm(msg, { icon: 3, title: '丢单' }, function (i) { layer.confirm(msg, { icon: 3, title: '丢单' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity024", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity024", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
...@@ -155,7 +155,7 @@ layui.config({ ...@@ -155,7 +155,7 @@ layui.config({
var msg = '确认【' + stateChangeData.title + '】进入搁置状态吗?'; var msg = '确认【' + stateChangeData.title + '】进入搁置状态吗?';
layer.confirm(msg, { icon: 3, title: '搁置' }, function (i) { layer.confirm(msg, { icon: 3, title: '搁置' }, function (i) {
layer.close(i); layer.close(i);
AjaxPostUtil.request({url:flowableBasePath + "opportunity025", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity025", params:{rowId: stateChangeData.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -193,7 +193,7 @@ layui.config({ ...@@ -193,7 +193,7 @@ layui.config({
var msg = '确认执行该合同吗?'; var msg = '确认执行该合同吗?';
layer.confirm(msg, { icon: 3, title: '执行申请提交' }, function (index) { layer.confirm(msg, { icon: 3, title: '执行申请提交' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "mycrmcontract010", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract010", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -209,7 +209,7 @@ layui.config({ ...@@ -209,7 +209,7 @@ layui.config({
var msg = '确认关闭该合同吗?'; var msg = '确认关闭该合同吗?';
layer.confirm(msg, { icon: 3, title: '关闭申请提交' }, function (index) { layer.confirm(msg, { icon: 3, title: '关闭申请提交' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "mycrmcontract011", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract011", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -225,7 +225,7 @@ layui.config({ ...@@ -225,7 +225,7 @@ layui.config({
var msg = '确认搁置该合同吗?'; var msg = '确认搁置该合同吗?';
layer.confirm(msg, { icon: 3, title: '搁置申请提交' }, function (index) { layer.confirm(msg, { icon: 3, title: '搁置申请提交' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "mycrmcontract012", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract012", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -241,7 +241,7 @@ layui.config({ ...@@ -241,7 +241,7 @@ layui.config({
var msg = '确认恢复该合同吗?'; var msg = '确认恢复该合同吗?';
layer.confirm(msg, { icon: 3, title: '恢复申请提交' }, function (index) { layer.confirm(msg, { icon: 3, title: '恢复申请提交' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "mycrmcontract013", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract013", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -257,7 +257,7 @@ layui.config({ ...@@ -257,7 +257,7 @@ layui.config({
var msg = '确认撤销该合同吗?'; var msg = '确认撤销该合同吗?';
layer.confirm(msg, { icon: 3, title: '撤销申请提交' }, function (index) { layer.confirm(msg, { icon: 3, title: '撤销申请提交' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:flowableBasePath + "mycrmcontract016", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract016", params:{processInstanceId: data.processInstanceId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
......
...@@ -41,7 +41,7 @@ layui.config({ ...@@ -41,7 +41,7 @@ layui.config({
remark: $("#remark").val(), remark: $("#remark").val(),
dsFormPageIds: formPageId.join(",") dsFormPageIds: formPageId.join(",")
}; };
AjaxPostUtil.request({url: reqBasePath + "dsFormObjectRelation002", params: params, type: 'json', method: "POST", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsFormObjectRelation002", params: params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsFormObjectRelation004", url: flowableBasePath + "dsFormObjectRelation004",
params: {id: parent.rowId}, params: {id: parent.rowId},
pagination: false, pagination: false,
method: 'GET', method: 'GET',
......
...@@ -14,7 +14,7 @@ layui.config({ ...@@ -14,7 +14,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsFormObjectRelation004", url: flowableBasePath + "dsFormObjectRelation004",
params: {id: parent.rowId}, params: {id: parent.rowId},
pagination: false, pagination: false,
method: 'GET', method: 'GET',
...@@ -64,7 +64,7 @@ layui.config({ ...@@ -64,7 +64,7 @@ layui.config({
dsFormPageIds: formPageId.join(","), dsFormPageIds: formPageId.join(","),
id: parent.rowId id: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "dsFormObjectRelation005", params: params, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsFormObjectRelation005", params: params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -25,7 +25,7 @@ layui.config({ ...@@ -25,7 +25,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsFormObjectRelation001', url: flowableBasePath + 'dsFormObjectRelation001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -84,7 +84,7 @@ layui.config({ ...@@ -84,7 +84,7 @@ layui.config({
function delet(data){ function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "dsFormObjectRelation003", params: {id: data.id}, type: 'json', method: "DELETE", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsFormObjectRelation003", params: {id: data.id}, type: 'json', method: "DELETE", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
authBtn('1567732055673');//保存控件 authBtn('1567732055673');//保存控件
AjaxPostUtil.request({url:reqBasePath + "dsformpage004", params:{rowId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage004", params:{rowId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
// 加载表单控件 // 加载表单控件
loadLeftBoxItem(); loadLeftBoxItem();
...@@ -42,7 +42,7 @@ layui.config({ ...@@ -42,7 +42,7 @@ layui.config({
} }
item.context = getDataUseHandlebars(item.templateContent, obj); item.context = getDataUseHandlebars(item.templateContent, obj);
}else if(item.associatedDataTypes == 2){//接口 }else if(item.associatedDataTypes == 2){//接口
AjaxPostUtil.request({url:reqBasePath + "dsformpage011", params:{interfa: item.aData}, type: 'json', callback: function(j){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage011", params:{interfa: item.aData}, type: 'json', callback: function(j){
if(j.returnCode == 0){ if(j.returnCode == 0){
var obj = JSON.parse(j.bean.aData); var obj = JSON.parse(j.bean.aData);
item.context = getDataUseHandlebars(item.templateContent, obj); item.context = getDataUseHandlebars(item.templateContent, obj);
...@@ -98,7 +98,7 @@ layui.config({ ...@@ -98,7 +98,7 @@ layui.config({
function loadLeftBoxItem(){ function loadLeftBoxItem(){
showGrid({ showGrid({
id: "btnBox", id: "btnBox",
url: reqBasePath + "dsform006", url: flowableBasePath + "dsform006",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: $("#leftBoxItem").html(), template: $("#leftBoxItem").html(),
...@@ -194,7 +194,7 @@ layui.config({ ...@@ -194,7 +194,7 @@ layui.config({
// 获取该控件的脚本信息 // 获取该控件的脚本信息
function getDataScript(params){ function getDataScript(params){
AjaxPostUtil.request({url:reqBasePath + "dsform007", params:{rowId: params.formContentId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: params.formContentId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
params.htmlContent = encodeURIComponent(json.bean.htmlContent); params.htmlContent = encodeURIComponent(json.bean.htmlContent);
params.jsContent = encodeURIComponent(json.bean.jsContent); params.jsContent = encodeURIComponent(json.bean.jsContent);
...@@ -207,7 +207,7 @@ layui.config({ ...@@ -207,7 +207,7 @@ layui.config({
// 保存“新增控件” // 保存“新增控件”
function reqSaveData(params, templateContent){ function reqSaveData(params, templateContent){
AjaxPostUtil.request({url: reqBasePath + "dsformpage003", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage003", params: params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1,time: 2000});
var templateJson = json.bean; var templateJson = json.bean;
...@@ -415,7 +415,7 @@ layui.config({ ...@@ -415,7 +415,7 @@ layui.config({
// 初始化限制条件 // 初始化限制条件
function initRequire(item){ function initRequire(item){
AjaxPostUtil.request({url:reqBasePath + "dsformlimitrequirement006", params:{}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformlimitrequirement006", params:{}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
var contentModel = getFileContent('tpl/template/select-option.tpl');//获取html模板 var contentModel = getFileContent('tpl/template/select-option.tpl');//获取html模板
var jsonStr = getDataUseHandlebars(contentModel, json);//模板和数据结合 var jsonStr = getDataUseHandlebars(contentModel, json);//模板和数据结合
...@@ -441,7 +441,7 @@ layui.config({ ...@@ -441,7 +441,7 @@ layui.config({
winui.window.msg('保存页面不能为空!', {icon: 2,time: 2000}); winui.window.msg('保存页面不能为空!', {icon: 2,time: 2000});
return; return;
} }
AjaxPostUtil.request({url:reqBasePath + "dsformpage009", params:{formedit: JSON.stringify(jsonArray)}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage009", params:{formedit: JSON.stringify(jsonArray)}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg("保存成功", {icon: 1,time: 2000}); winui.window.msg("保存成功", {icon: 1,time: 2000});
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -47,7 +47,7 @@ layui.config({ ...@@ -47,7 +47,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsformpage001', url: flowableBasePath + 'dsformpage001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
...@@ -28,7 +28,7 @@ layui.config({ ...@@ -28,7 +28,7 @@ layui.config({
firstTypeId: $("#firstTypeId").val(), firstTypeId: $("#firstTypeId").val(),
secondTypeId: $("#secondTypeId").val() secondTypeId: $("#secondTypeId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformpage002", params:params, type: 'json', method: "POST", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage002", params:params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsformpage006", url: flowableBasePath + "dsformpage006",
params: {rowId:parent.rowId}, params: {rowId:parent.rowId},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -42,7 +42,7 @@ layui.config({ ...@@ -42,7 +42,7 @@ layui.config({
firstTypeId: $("#firstTypeId").val(), firstTypeId: $("#firstTypeId").val(),
secondTypeId: $("#secondTypeId").val() secondTypeId: $("#secondTypeId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformpage007", params:params, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage007", params:params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsformpage001', url: flowableBasePath + 'dsformpage001',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -89,7 +89,7 @@ layui.config({ ...@@ -89,7 +89,7 @@ layui.config({
function delet(data){ function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "dsformpage005", params:{rowId: data.id}, type: 'json', method: "DELETE", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage005", params:{rowId: data.id}, type: 'json', method: "DELETE", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -22,7 +22,7 @@ layui.config({ ...@@ -22,7 +22,7 @@ layui.config({
encoded: $("#encoded").val(), encoded: $("#encoded").val(),
parentId: isNull($("#parentId").val()) ? "0" : $("#parentId").val() parentId: isNull($("#parentId").val()) ? "0" : $("#parentId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformpagetype002", params:params, type: 'json', method: "POST", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpagetype002", params:params, type: 'json', method: "POST", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsformpagetype004", url: flowableBasePath + "dsformpagetype004",
params: {id: parent.rowId}, params: {id: parent.rowId},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -33,7 +33,7 @@ layui.config({ ...@@ -33,7 +33,7 @@ layui.config({
encoded: $("#encoded").val(), encoded: $("#encoded").val(),
parentId: isNull($("#parentId").val()) ? "0" : $("#parentId").val() parentId: isNull($("#parentId").val()) ? "0" : $("#parentId").val()
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformpagetype005", params:params, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpagetype005", params:params, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id', idField: 'id',
url: reqBasePath + 'dsformpagetype001', url: flowableBasePath + 'dsformpagetype001',
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称 treeId: 'id',//树形id字段名称
treeUpId: 'parentId',//树形父id字段名称 treeUpId: 'parentId',//树形父id字段名称
...@@ -72,7 +72,7 @@ layui.config({ ...@@ -72,7 +72,7 @@ layui.config({
function delet(data){ function delet(data){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "dsformpagetype003", params:{id: data.id}, type: 'json', method: "DELETE", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformpagetype003", params:{id: data.id}, type: 'json', method: "DELETE", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -44,7 +44,7 @@ layui.config({ ...@@ -44,7 +44,7 @@ layui.config({
initDatatpl = true; initDatatpl = true;
showGrid({ showGrid({
id: "dataShowTpl", id: "dataShowTpl",
url: reqBasePath + "dsformdisplaytemplate006", url: flowableBasePath + "dsformdisplaytemplate006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -190,7 +190,7 @@ layui.config({ ...@@ -190,7 +190,7 @@ layui.config({
params.dataShowTpl = ""; params.dataShowTpl = "";
params.defaultData = ""; params.defaultData = "";
} }
AjaxPostUtil.request({url:reqBasePath + "dsform002", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -17,7 +17,7 @@ layui.config({ ...@@ -17,7 +17,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsform004", url: flowableBasePath + "dsform004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/dsformcontent/dsformcontenteditTemplate.tpl'), template: getFileContent('tpl/dsformcontent/dsformcontenteditTemplate.tpl'),
...@@ -108,7 +108,7 @@ layui.config({ ...@@ -108,7 +108,7 @@ layui.config({
initDatatpl = true; initDatatpl = true;
showGrid({ showGrid({
id: "dataShowTpl", id: "dataShowTpl",
url: reqBasePath + "dsformdisplaytemplate006", url: flowableBasePath + "dsformdisplaytemplate006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -230,7 +230,7 @@ layui.config({ ...@@ -230,7 +230,7 @@ layui.config({
params.dataShowTpl = ''; params.dataShowTpl = '';
params.defaultData = ""; params.defaultData = "";
} }
AjaxPostUtil.request({url:reqBasePath + "dsform005", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsform001', url: flowableBasePath + 'dsform001',
where:{contentName:$("#contentName").val()}, where:{contentName:$("#contentName").val()},
even:true, even:true,
page: true, page: true,
...@@ -109,7 +109,7 @@ layui.config({ ...@@ -109,7 +109,7 @@ layui.config({
function del(data, obj){ function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "dsform003", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -40,7 +40,7 @@ layui.config({ ...@@ -40,7 +40,7 @@ layui.config({
templateName:$("#templateName").val(), templateName:$("#templateName").val(),
templateContent:encodeURI(templateContent.getValue().replace(/\+/g, "%2B").replace(/\&/g, "%26")) templateContent:encodeURI(templateContent.getValue().replace(/\+/g, "%2B").replace(/\&/g, "%26"))
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformdisplaytemplate002", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformdisplaytemplate002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsformdisplaytemplate004", url: flowableBasePath + "dsformdisplaytemplate004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/dsformdisplaytemplate/dsformdisplaytemplateeditTemplate.tpl'), template: getFileContent('tpl/dsformdisplaytemplate/dsformdisplaytemplateeditTemplate.tpl'),
...@@ -52,7 +52,7 @@ layui.config({ ...@@ -52,7 +52,7 @@ layui.config({
templateContent:encodeURI(templateContent.getValue().replace(/\+/g, "%2B").replace(/\&/g, "%26")), templateContent:encodeURI(templateContent.getValue().replace(/\+/g, "%2B").replace(/\&/g, "%26")),
rowId:parent.rowId rowId:parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformdisplaytemplate005", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformdisplaytemplate005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -31,7 +31,7 @@ layui.config({ ...@@ -31,7 +31,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsformdisplaytemplate001', url: flowableBasePath + 'dsformdisplaytemplate001',
where:{templateName: $("#templateName").val()}, where:{templateName: $("#templateName").val()},
even:true, even:true,
page: true, page: true,
...@@ -88,7 +88,7 @@ layui.config({ ...@@ -88,7 +88,7 @@ layui.config({
function del(data, obj){ function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "dsformdisplaytemplate003", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformdisplaytemplate003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
formerRequirement: $("#formerRequirement").val(), formerRequirement: $("#formerRequirement").val(),
afterRequirement: $("#afterRequirement").val(), afterRequirement: $("#afterRequirement").val(),
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformlimitrequirement002", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformlimitrequirement002", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "dsformlimitrequirement004", url: flowableBasePath + "dsformlimitrequirement004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: getFileContent('tpl/dsformlimitrequirement/dsformlimitrequirementeditTemplate.tpl'), template: getFileContent('tpl/dsformlimitrequirement/dsformlimitrequirementeditTemplate.tpl'),
...@@ -30,7 +30,7 @@ layui.config({ ...@@ -30,7 +30,7 @@ layui.config({
afterRequirement: $("#afterRequirement").val(), afterRequirement: $("#afterRequirement").val(),
rowId: parent.rowId rowId: parent.rowId
}; };
AjaxPostUtil.request({url:reqBasePath + "dsformlimitrequirement005", params:params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformlimitrequirement005", params:params, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
...@@ -18,7 +18,7 @@ layui.config({ ...@@ -18,7 +18,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsformlimitrequirement001', url: flowableBasePath + 'dsformlimitrequirement001',
where:{requireName:$("#requireName").val(), formerRequirement:$("#formerRequirement").val(), afterRequirement:$("#afterRequirement").val()}, where:{requireName:$("#requireName").val(), formerRequirement:$("#formerRequirement").val(), afterRequirement:$("#afterRequirement").val()},
even:true, even:true,
page: true, page: true,
...@@ -60,7 +60,7 @@ layui.config({ ...@@ -60,7 +60,7 @@ layui.config({
function del(data, obj){ function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
AjaxPostUtil.request({url:reqBasePath + "dsformlimitrequirement003", params:{rowId: data.id}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsformlimitrequirement003", params:{rowId: data.id}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1,time: 2000});
loadTable(); loadTable();
......
...@@ -92,7 +92,7 @@ layui.config({ ...@@ -92,7 +92,7 @@ layui.config({
//展现形式 //展现形式
showGrid({ showGrid({
id: "dsFormContentId", id: "dsFormContentId",
url: reqBasePath + "dsform006", url: flowableBasePath + "dsform006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -111,7 +111,7 @@ layui.config({ ...@@ -111,7 +111,7 @@ layui.config({
$("#dataShowModel").show(); $("#dataShowModel").show();
showGrid({ showGrid({
id: "displayTemplateId", id: "displayTemplateId",
url: reqBasePath + "dsformdisplaytemplate006", url: flowableBasePath + "dsformdisplaytemplate006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -130,7 +130,7 @@ layui.config({ ...@@ -130,7 +130,7 @@ layui.config({
}); });
form.on('select(selectParent)', function(data){ form.on('select(selectParent)', function(data){
AjaxPostUtil.request({url:reqBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
htmlModelContent.setValue(json.bean.htmlContent); htmlModelContent.setValue(json.bean.htmlContent);
jsModelContent.setValue(json.bean.jsContent); jsModelContent.setValue(json.bean.jsContent);
......
...@@ -93,7 +93,7 @@ layui.config({ ...@@ -93,7 +93,7 @@ layui.config({
$("#dataShowModel").show(); $("#dataShowModel").show();
showGrid({ showGrid({
id: "displayTemplateId", id: "displayTemplateId",
url: reqBasePath + "dsformdisplaytemplate006", url: flowableBasePath + "dsformdisplaytemplate006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -115,7 +115,7 @@ layui.config({ ...@@ -115,7 +115,7 @@ layui.config({
$("#dataShowModel").show(); $("#dataShowModel").show();
showGrid({ showGrid({
id: "displayTemplateId", id: "displayTemplateId",
url: reqBasePath + "dsformdisplaytemplate006", url: flowableBasePath + "dsformdisplaytemplate006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -138,7 +138,7 @@ layui.config({ ...@@ -138,7 +138,7 @@ layui.config({
//展现形式 //展现形式
showGrid({ showGrid({
id: "dsFormContentId", id: "dsFormContentId",
url: reqBasePath + "dsform006", url: flowableBasePath + "dsform006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
...@@ -161,7 +161,7 @@ layui.config({ ...@@ -161,7 +161,7 @@ layui.config({
}}); }});
form.on('select(selectParent)', function(data){ form.on('select(selectParent)', function(data){
AjaxPostUtil.request({url:reqBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "dsform007", params:{rowId: data.value}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
htmlModelContent.setValue(json.bean.htmlContent); htmlModelContent.setValue(json.bean.htmlContent);
jsModelContent.setValue(json.bean.jsContent); jsModelContent.setValue(json.bean.jsContent);
......
...@@ -144,7 +144,7 @@ layui.config({ ...@@ -144,7 +144,7 @@ layui.config({
//展现形式 //展现形式
showGrid({ showGrid({
id: "dsFormContentId", id: "dsFormContentId",
url: reqBasePath + "dsform006", url: flowableBasePath + "dsform006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
......
//下拉框模板 展现形式 例如:输入框,选择框 //下拉框模板 展现形式 例如:输入框,选择框
showGrid({ showGrid({
id: "showModel", id: "showModel",
url: reqBasePath + "dsform006", url: flowableBasePath + "dsform006",
params: {}, params: {},
pagination: false, pagination: false,
template: getFileContent('tpl/template/select-option.tpl'), template: getFileContent('tpl/template/select-option.tpl'),
......
...@@ -93,7 +93,7 @@ var dsFormUtil = { ...@@ -93,7 +93,7 @@ var dsFormUtil = {
loadDsFormPageTypeByPId: function (domId, parentId){ loadDsFormPageTypeByPId: function (domId, parentId){
showGrid({ showGrid({
id: domId, id: domId,
url: reqBasePath + "dsformpagetype006", url: flowableBasePath + "dsformpagetype006",
params: {parentId: parentId, language: languageType}, params: {parentId: parentId, language: languageType},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -116,7 +116,7 @@ var dsFormUtil = { ...@@ -116,7 +116,7 @@ var dsFormUtil = {
dsFormObjectRelationCode: isNull(code) ? "" : code, dsFormObjectRelationCode: isNull(code) ? "" : code,
dsFormObjectRelationId: isNull(dsFormObjectRelationId) ? "" : dsFormObjectRelationId dsFormObjectRelationId: isNull(dsFormObjectRelationId) ? "" : dsFormObjectRelationId
}; };
AjaxPostUtil.request({url: reqBasePath + "dsFormObjectRelation006", params: params, method: "GET", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "dsFormObjectRelation006", params: params, method: "GET", type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
dsFormUtil.loadDsFormItem(showBoxId, json); dsFormUtil.loadDsFormItem(showBoxId, json);
} else { } else {
...@@ -143,7 +143,7 @@ var dsFormUtil = { ...@@ -143,7 +143,7 @@ var dsFormUtil = {
} }
item.context = getDataUseHandlebars(item.templateContent, obj); item.context = getDataUseHandlebars(item.templateContent, obj);
}else if(item.associatedDataTypes == 2){//接口 }else if(item.associatedDataTypes == 2){//接口
AjaxPostUtil.request({url:reqBasePath + "dsformpage011", params:{interfa: item.aData}, type: 'json', callback: function(j){ AjaxPostUtil.request({url: flowableBasePath + "dsformpage011", params:{interfa: item.aData}, type: 'json', callback: function(j){
if(j.returnCode == 0){ if(j.returnCode == 0){
var obj = JSON.parse(j.bean.aData); var obj = JSON.parse(j.bean.aData);
item.context = getDataUseHandlebars(item.templateContent, obj); item.context = getDataUseHandlebars(item.templateContent, obj);
...@@ -210,7 +210,7 @@ var dsFormUtil = { ...@@ -210,7 +210,7 @@ var dsFormUtil = {
dataJson: JSON.stringify(result), dataJson: JSON.stringify(result),
objectId: objectId objectId: objectId
} }
AjaxPostUtil.request({url: reqBasePath + "dsformpage014", params: params, type: 'json', method: "POST", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "dsformpage014", params: params, type: 'json', method: "POST", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
} else { } else {
...@@ -306,7 +306,7 @@ var dsFormUtil = { ...@@ -306,7 +306,7 @@ var dsFormUtil = {
* @param objectId 绑定的objectId * @param objectId 绑定的objectId
*/ */
loadPageShowDetailsByObjectId: function(showBoxId, objectId){ loadPageShowDetailsByObjectId: function(showBoxId, objectId){
AjaxPostUtil.request({url: reqBasePath + "dsformpage015", params: {objectId: objectId}, method: "GET", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "dsformpage015", params: {objectId: objectId}, method: "GET", type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
$.each(json.rows, function(j, bean) { $.each(json.rows, function(j, bean) {
var customBoxId = bean.id; var customBoxId = bean.id;
...@@ -350,7 +350,7 @@ var dsFormUtil = { ...@@ -350,7 +350,7 @@ var dsFormUtil = {
* @param objectId 绑定的objectId * @param objectId 绑定的objectId
*/ */
loadPageToEditByObjectId: function(showBoxId, objectId) { loadPageToEditByObjectId: function(showBoxId, objectId) {
AjaxPostUtil.request({url: reqBasePath + "dsformpage015", params: {objectId: objectId}, method: "GET", type: 'json', callback: function (json) { AjaxPostUtil.request({url: flowableBasePath + "dsformpage015", params: {objectId: objectId}, method: "GET", type: 'json', callback: function (json) {
if (json.returnCode == 0) { if (json.returnCode == 0) {
dsFormUtil.loadDsFormItem(showBoxId, json); dsFormUtil.loadDsFormItem(showBoxId, json);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册