提交 3288e7db 编写于 作者: Skyeye云's avatar Skyeye云

接口信息修改

上级 181029d4
...@@ -25,7 +25,7 @@ layui.config({ ...@@ -25,7 +25,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "sysenclosure001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + "sysenclosure001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
checkEnable: false, checkEnable: false,
loadEnable: true,//异步加载 loadEnable: true,//异步加载
showLine: false, showLine: false,
......
...@@ -51,7 +51,7 @@ layui.config({ ...@@ -51,7 +51,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "fileconsole001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + "fileconsole001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
checkEnable: false, checkEnable: false,
loadEnable: true,//异步加载 loadEnable: true,//异步加载
showLine: false, showLine: false,
......
...@@ -16,7 +16,7 @@ layui.config({ ...@@ -16,7 +16,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "fileconsole001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + "fileconsole001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
checkEnable: true, checkEnable: true,
loadEnable: true,//异步加载 loadEnable: true,//异步加载
showLine: false, showLine: false,
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "dsFormObjectRelation007?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"] + "&firstTypeCode=" + firstTypeCode + "&language=" + languageType, url: flowableBasePath + "dsFormObjectRelation007?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"] + "&firstTypeCode=" + firstTypeCode + "&language=" + languageType,
clickCallback: onClickTree, clickCallback: onClickTree,
onDblClick: onClickTree onDblClick: onClickTree
}, function(id){ }, function(id){
......
...@@ -84,7 +84,7 @@ layui.config({ ...@@ -84,7 +84,7 @@ layui.config({
var el5; var el5;
el5 = eleTree.render({ el5 = eleTree.render({
elem: '.ele5', elem: '.ele5',
url: "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=",
defaultExpandAll: true, defaultExpandAll: true,
expandOnClickNode: false, expandOnClickNode: false,
highlightCurrent: true highlightCurrent: true
......
...@@ -179,7 +179,7 @@ layui.config({ ...@@ -179,7 +179,7 @@ layui.config({
function getTableParams(){ function getTableParams(){
// 单据的开始时间、结束时间 // 单据的开始时间、结束时间
var startTime = "", endTime = ""; var startTime = "", endTime = "";
if(!isNull($("#operTime").val())){//一定要记得,当createTime为空时 if(!isNull($("#operTime").val())){
startTime = $("#operTime").val().split('~')[0].trim() + ' 00:00:00'; startTime = $("#operTime").val().split('~')[0].trim() + ' 00:00:00';
endTime = $("#operTime").val().split('~')[1].trim() + ' 23:59:59'; endTime = $("#operTime").val().split('~')[1].trim() + ' 23:59:59';
} }
......
...@@ -153,7 +153,7 @@ layui.config({ ...@@ -153,7 +153,7 @@ layui.config({
// 导出excel // 导出excel
$("body").on("click", "#downloadExcel", function () { $("body").on("click", "#downloadExcel", function () {
postDownLoadFile({ postDownLoadFile({
url : reqBasePath + 'assemblysheet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"], url : flowableBasePath + 'assemblysheet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(), params: getTableParams(),
method : 'post' method : 'post'
}); });
......
...@@ -14,7 +14,7 @@ layui.config({ ...@@ -14,7 +14,7 @@ layui.config({
var orderId = GetUrlParam("rowId"); var orderId = GetUrlParam("rowId");
var type = GetUrlParam("type"); var type = GetUrlParam("type");
// 加载订单流水线信息 // 加载订单流水线信息
AjaxPostUtil.request({url: reqBasePath + "erpcommon002", params: {rowId: orderId, type: type}, type: 'json', method: 'GET', callback: function(data) { AjaxPostUtil.request({url: flowableBasePath + "erpcommon002", params: {rowId: orderId, type: type}, type: 'json', method: 'GET', callback: function(data) {
if(data.returnCode == 0) { if(data.returnCode == 0) {
var newData = dealWithData(data.bean); var newData = dealWithData(data.bean);
$('#chart-container').orgchart({ $('#chart-container').orgchart({
......
...@@ -38,7 +38,7 @@ layui.config({ ...@@ -38,7 +38,7 @@ layui.config({
var materialCategoryType; var materialCategoryType;
fsTree.render({ fsTree.render({
id: "materialCategoryType", id: "materialCategoryType",
url: "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: false, checkEnable: false,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
...@@ -104,7 +104,7 @@ layui.config({ ...@@ -104,7 +104,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'material010', url: flowableBasePath + 'material010',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
...@@ -180,13 +180,13 @@ layui.config({ ...@@ -180,13 +180,13 @@ layui.config({
var selectedData = tableCheckBoxUtil.getValue({ var selectedData = tableCheckBoxUtil.getValue({
gridId: 'messageTable' gridId: 'messageTable'
}); });
AjaxPostUtil.request({url:reqBasePath + "material013", params: {ids: selectedData.toString()}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material013", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
parent.productMationList = [].concat(json.rows); parent.productMationList = [].concat(json.rows);
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -6,10 +6,8 @@ layui.config({ ...@@ -6,10 +6,8 @@ layui.config({
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'tableCheckBoxUtil', 'fsCommon', 'fsTree'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'form', 'tableCheckBoxUtil', 'fsCommon', 'fsTree'], function (exports) {
winui.renderColor(); winui.renderColor();
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
table = layui.table, table = layui.table,
...@@ -29,7 +27,7 @@ layui.config({ ...@@ -29,7 +27,7 @@ layui.config({
var materialCategoryType; var materialCategoryType;
fsTree.render({ fsTree.render({
id: "materialCategoryType", id: "materialCategoryType",
url: "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: false, checkEnable: false,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
...@@ -167,7 +165,7 @@ layui.config({ ...@@ -167,7 +165,7 @@ layui.config({
winui.window.msg("请选择商品", {icon: 2,time: 2000}); winui.window.msg("请选择商品", {icon: 2,time: 2000});
return false; return false;
} }
AjaxPostUtil.request({url:reqBasePath + "material014", params: {ids: selectedData.toString()}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material014", params: {ids: selectedData.toString()}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
productMationList = json.rows; productMationList = json.rows;
$step.nextStep(); $step.nextStep();
...@@ -180,7 +178,7 @@ layui.config({ ...@@ -180,7 +178,7 @@ layui.config({
}); });
form.render(); form.render();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
......
...@@ -84,7 +84,7 @@ layui.config({ ...@@ -84,7 +84,7 @@ layui.config({
var el5; var el5;
el5 = eleTree.render({ el5 = eleTree.render({
elem: '.ele5', elem: '.ele5',
url: "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=",
defaultExpandAll: true, defaultExpandAll: true,
expandOnClickNode: false, expandOnClickNode: false,
highlightCurrent: true highlightCurrent: true
......
...@@ -94,7 +94,7 @@ layui.config({ ...@@ -94,7 +94,7 @@ layui.config({
var el5; var el5;
el5 = eleTree.render({ el5 = eleTree.render({
elem: '.ele5', elem: '.ele5',
url: "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=",
defaultExpandAll: true, defaultExpandAll: true,
expandOnClickNode: false, expandOnClickNode: false,
highlightCurrent: true highlightCurrent: true
......
...@@ -52,7 +52,7 @@ layui.config({ ...@@ -52,7 +52,7 @@ layui.config({
var materialCategoryType; var materialCategoryType;
fsTree.render({ fsTree.render({
id: "materialCategoryType", id: "materialCategoryType",
url: "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
chkStyle: "radio", chkStyle: "radio",
...@@ -70,7 +70,7 @@ layui.config({ ...@@ -70,7 +70,7 @@ layui.config({
function initManyUnitSelect(){ function initManyUnitSelect(){
showGrid({ showGrid({
id: "unitGroupId", id: "unitGroupId",
url: reqBasePath + "materialunit006", url: flowableBasePath + "materialunit006",
params: {}, params: {},
pagination: false, pagination: false,
template: selTemplate, template: selTemplate,
...@@ -207,12 +207,12 @@ layui.config({ ...@@ -207,12 +207,12 @@ layui.config({
params.extendData = JSON.stringify(extendData); params.extendData = JSON.stringify(extendData);
//工序信息 //工序信息
params.procedureJsonStr = JSON.stringify(procedureMationList); params.procedureJsonStr = JSON.stringify(procedureMationList);
AjaxPostUtil.request({url:reqBasePath + "material003", params: params, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "material003", 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';
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
} }
......
...@@ -96,7 +96,7 @@ layui.config({ ...@@ -96,7 +96,7 @@ layui.config({
fsTree.render({ fsTree.render({
id: "materialCategoryType", id: "materialCategoryType",
url: "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
chkStyle: "radio", chkStyle: "radio",
......
...@@ -74,7 +74,7 @@ layui.config({ ...@@ -74,7 +74,7 @@ layui.config({
var el5; var el5;
el5 = eleTree.render({ el5 = eleTree.render({
elem: '.ele5', elem: '.ele5',
url: "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=",
defaultExpandAll: true, defaultExpandAll: true,
expandOnClickNode: false, expandOnClickNode: false,
highlightCurrent: true highlightCurrent: true
......
...@@ -24,7 +24,7 @@ layui.config({ ...@@ -24,7 +24,7 @@ layui.config({
//加载树信息 //加载树信息
fsTree.render({ fsTree.render({
id: "materialCategoryType", id: "materialCategoryType",
url: "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory008?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
chkStyle: "radio", chkStyle: "radio",
...@@ -50,7 +50,7 @@ layui.config({ ...@@ -50,7 +50,7 @@ layui.config({
remark: $("#remark").val(), remark: $("#remark").val(),
parentId: checkNodes[0].id parentId: checkNodes[0].id
}; };
AjaxPostUtil.request({url: reqBasePath + "materialcategory002", params: params, type: 'json', method: "POST", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialcategory002", 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';
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "materialcategory004", url: flowableBasePath + "materialcategory004",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
method: "GET", method: "GET",
...@@ -35,7 +35,7 @@ layui.config({ ...@@ -35,7 +35,7 @@ layui.config({
name: $("#typeName").val(), name: $("#typeName").val(),
remark: $("#remark").val() remark: $("#remark").val()
}; };
AjaxPostUtil.request({url: reqBasePath + "materialcategory005", params: params, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialcategory005", 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';
......
...@@ -18,7 +18,7 @@ layui.config({ ...@@ -18,7 +18,7 @@ layui.config({
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id', idField: 'id',
url: reqBasePath + 'materialcategory001', url: flowableBasePath + 'materialcategory001',
cellMinWidth: 100, cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称 treeId: 'id',//树形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 + "materialcategory003", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialcategory003", 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();
...@@ -104,7 +104,7 @@ layui.config({ ...@@ -104,7 +104,7 @@ layui.config({
// 上移 // 上移
function upMove(data){ function upMove(data){
AjaxPostUtil.request({url: reqBasePath + "materialcategory006", params: {rowId: data.id}, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialcategory006", params: {rowId: data.id}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.moveUpOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -116,7 +116,7 @@ layui.config({ ...@@ -116,7 +116,7 @@ layui.config({
// 下移 // 下移
function downMove(data){ function downMove(data){
AjaxPostUtil.request({url: reqBasePath + "materialcategory007", params: {rowId: data.id}, type: 'json', method: "PUT", callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "materialcategory007", params: {rowId: data.id}, type: 'json', method: "PUT", callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.moveDownOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -17,7 +17,7 @@ layui.config({ ...@@ -17,7 +17,7 @@ layui.config({
var materialCategoryType; var materialCategoryType;
fsTree.render({ fsTree.render({
id: "materialCategoryType", id: "materialCategoryType",
url: "salesorder011?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "salesorder011?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: false, checkEnable: false,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -13,7 +13,7 @@ layui.config({ ...@@ -13,7 +13,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
...@@ -12,7 +12,7 @@ layui.config({ ...@@ -12,7 +12,7 @@ layui.config({
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: reqBasePath + "erpcommon001", url: flowableBasePath + "erpcommon001",
params: {rowId: parent.rowId}, params: {rowId: parent.rowId},
pagination: false, pagination: false,
template: beanTemplate, template: beanTemplate,
......
var rowId = ""; var rowId = "";
//单据的开始时间、结束时间
var startTime = "", endTime = "";
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -27,8 +24,8 @@ layui.config({ ...@@ -27,8 +24,8 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'splitlist001', url: flowableBasePath + 'splitlist001',
where: {defaultNumber: $("#defaultNumber").val(), material: $("#material").val(), startTime: startTime, endTime: endTime}, where: getTableParams(),
even: true, even: true,
page: true, page: true,
limits: getLimits(), limits: getLimits(),
...@@ -78,23 +75,15 @@ layui.config({ ...@@ -78,23 +75,15 @@ layui.config({
} }
}); });
form.render(); // 删除
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
loadTable();
}
return false;
});
//删除
function deletemember(data){ function deletemember(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){
AjaxPostUtil.request({url:reqBasePath + "delcommon009", params: {rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "delcommon009", 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -103,12 +92,12 @@ layui.config({ ...@@ -103,12 +92,12 @@ layui.config({
//提交审批 //提交审批
function subExamine(data){ function subExamine(data){
layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) { layer.confirm('确认要提交审核吗?', { icon: 3, title: '提交审核操作' }, function (index) {
AjaxPostUtil.request({url:reqBasePath + "splitlist006", params: {rowId: data.id}, type:'json', callback:function(json){ AjaxPostUtil.request({url: flowableBasePath + "splitlist006", 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();
}else{ }else{
winui.window.msg(json.returnMessage, {icon: 2,time: 2000}); winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
} }
}}); }});
}); });
...@@ -161,40 +150,39 @@ layui.config({ ...@@ -161,40 +150,39 @@ layui.config({
}}); }});
}); });
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'splitlist005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
});
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()})
}
return false;
});
$("body").on("click", "#reloadTable", function() { $("body").on("click", "#reloadTable", function() {
loadTable(); loadTable();
}); });
$("body").on("click", "#formSearch", function () { // 刷新
refreshTable();
});
//刷新
function loadTable(){ function loadTable(){
table.reload("messageTable", {where: getTableParams()}); table.reload("messageTable", {where: getTableParams()});
} }
//搜索
function refreshTable(){
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()})
}
//导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : reqBasePath + 'splitlist005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
});
function getTableParams(){ function getTableParams(){
if(isNull($("#operTime").val())){//一定要记得,当createTime为空时 var startTime = "", endTime = "";
if(!isNull($("#operTime").val())){
startTime = ""; startTime = "";
endTime = ""; endTime = "";
}else { startTime = $("#operTime").val().split('~')[0].trim() + ' 00:00:00';
startTime = $("#operTime").val().split('~')[0].trim() + ' 00:00:00'; endTime = $("#operTime").val().split('~')[1].trim() + ' 23:59:59';
endTime = $("#operTime").val().split('~')[1].trim() + ' 23:59:59';
} }
return { return {
defaultNumber: $("#defaultNumber").val(), defaultNumber: $("#defaultNumber").val(),
......
...@@ -137,7 +137,7 @@ layui.config({ ...@@ -137,7 +137,7 @@ layui.config({
var el5; var el5;
el5 = eleTree.render({ el5 = eleTree.render({
elem: '.ele5', elem: '.ele5',
url: "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=", url: flowableBasePath + "materialcategory009?userToken=" + getCookie('userToken') + "&loginPCIp=",
defaultExpandAll: true, defaultExpandAll: true,
expandOnClickNode: false, expandOnClickNode: false,
highlightCurrent: true highlightCurrent: true
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
<div class="layui-inline" style="width: 100%"> <div class="layui-inline" style="width: 100%">
<ul id="materialCategoryType" class="ztree fsTree" method="get" isRoot="1" <ul id="materialCategoryType" class="ztree fsTree" method="get" isRoot="1"
treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul> treeIdKey="id" inputs="parentId" treePIdKey="pId" clickCallbackInputs="parentId:$id" treeName="name" style="overflow-y: auto; height: 100%;"></ul>
</div> </div>
</div> </div>
<div style="width: calc(100% - 200px); float: left;"> <div style="width: calc(100% - 200px); float: left;">
......
...@@ -75,7 +75,7 @@ layui.config({ ...@@ -75,7 +75,7 @@ layui.config({
function initHotActModel(){ function initHotActModel(){
showGrid({ showGrid({
id: "actModelShow", id: "actModelShow",
url: reqBasePath + "actmodletype022", url: flowableBasePath + "actmodletype022",
params: {}, params: {},
pagination: false, pagination: false,
template: $("#actModelTemplate").html(), template: $("#actModelTemplate").html(),
......
...@@ -90,7 +90,7 @@ layui.config({ ...@@ -90,7 +90,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "dsFormObjectRelation007?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"] + "&firstTypeCode=IFS" + "&language=" + languageType, url: flowableBasePath + "dsFormObjectRelation007?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"] + "&firstTypeCode=IFS" + "&language=" + languageType,
clickCallback: onClickTree, clickCallback: onClickTree,
onDblClick: onClickTree onDblClick: onClickTree
}, function(id){ }, function(id){
......
...@@ -15,7 +15,7 @@ layui.config({ ...@@ -15,7 +15,7 @@ layui.config({
var parentType; var parentType;
fsTree.render({ fsTree.render({
id: "parentType", id: "parentType",
url: "knowledgetype001?userToken=" + getCookie('userToken') + "&loginPCIp=", url: reqBasePath + "knowledgetype001?userToken=" + getCookie('userToken') + "&loginPCIp=",
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
chkStyle: "radio", chkStyle: "radio",
......
...@@ -36,7 +36,7 @@ layui.config({ ...@@ -36,7 +36,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "mynote001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + "mynote001?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
checkEnable: false, checkEnable: false,
dragEnable: true, dragEnable: true,
loadEnable: true,//异步加载 loadEnable: true,//异步加载
......
...@@ -20,7 +20,7 @@ layui.config({ ...@@ -20,7 +20,7 @@ layui.config({
var ztree = null; var ztree = null;
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "mynote012?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"]+ "&moveId=" + clickId, url: reqBasePath + "mynote012?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"]+ "&moveId=" + clickId,
checkEnable: true, checkEnable: true,
chkStyle: "radio", chkStyle: "radio",
loadEnable: true,//异步加载 loadEnable: true,//异步加载
......
...@@ -40,7 +40,7 @@ layui.config({ ...@@ -40,7 +40,7 @@ layui.config({
function initTree(){ function initTree(){
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: 'planprojectflow001?projectId=' + parent.rowId + "&userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + 'planprojectflow001?projectId=' + parent.rowId + "&userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
loadEnable: false, loadEnable: false,
clickCallback: onClickTree, clickCallback: onClickTree,
onDblClick: onClickTree, onDblClick: onClickTree,
......
...@@ -157,7 +157,7 @@ layui.config({ ...@@ -157,7 +157,7 @@ layui.config({
var tree = fsTree.render({ var tree = fsTree.render({
id: treeId, id: treeId,
funcNo: funcNo, funcNo: funcNo,
url: url + "?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + url + "?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
clickCallback: onClickTree, clickCallback: onClickTree,
onDblClick: onClickTree, onDblClick: onClickTree,
getTree: getTree getTree: getTree
......
...@@ -60,7 +60,7 @@ layui.config({ ...@@ -60,7 +60,7 @@ layui.config({
var tree = fsTree.render({ var tree = fsTree.render({
id: treeId, id: treeId,
funcNo: funcNo, funcNo: funcNo,
url: url + "?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + url + "?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
getTree: getTree, getTree: getTree,
checkEnable: true, checkEnable: true,
loadEnable: false, loadEnable: false,
......
...@@ -80,7 +80,7 @@ layui.config({ ...@@ -80,7 +80,7 @@ layui.config({
var tree = fsTree.render({ var tree = fsTree.render({
id: treeId, id: treeId,
funcNo: funcNo, funcNo: funcNo,
url: url + "?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + url + "?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
getTree: getTree, getTree: getTree,
checkEnable: true, checkEnable: true,
loadEnable: false, loadEnable: false,
......
...@@ -246,7 +246,7 @@ function auth(urlNum){ ...@@ -246,7 +246,7 @@ function auth(urlNum){
while (win != win.top){ while (win != win.top){
win = win.top; win = win.top;
} }
win.location.href = reqBasePath + "/tpl/index/login.html"; win.location.href = "../../tpl/index/login.html";
}); });
} }
return false; return false;
......
...@@ -57,7 +57,7 @@ var erpOrderUtil = { ...@@ -57,7 +57,7 @@ var erpOrderUtil = {
getSubmitTypeByOrderType: function (orderType){ getSubmitTypeByOrderType: function (orderType){
// 1需要审核;2不需要审核 // 1需要审核;2不需要审核
var submitType = ""; var submitType = "";
AjaxPostUtil.request({url: reqBasePath + "erpcommon004", params: {orderType: orderType}, method: "GET", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpcommon004", params: {orderType: orderType}, method: "GET", type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
submitType = json.bean.needExamine; submitType = json.bean.needExamine;
} else { } else {
...@@ -105,7 +105,7 @@ var erpOrderUtil = { ...@@ -105,7 +105,7 @@ var erpOrderUtil = {
*/ */
deleteOrderMation: function (id, orderType, callback){ deleteOrderMation: function (id, orderType, callback){
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){
AjaxPostUtil.request({url: reqBasePath + "erpcommon005", params: {rowId: id, orderType: orderType}, method: "DELETE", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpcommon005", params: {rowId: id, orderType: orderType}, method: "DELETE", 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});
if(typeof(callback) == "function") { if(typeof(callback) == "function") {
...@@ -144,7 +144,7 @@ var erpOrderUtil = { ...@@ -144,7 +144,7 @@ var erpOrderUtil = {
orderType: orderType, orderType: orderType,
approvalId: approvalId approvalId: approvalId
}; };
AjaxPostUtil.request({url: reqBasePath + "erpcommon006", params: params, method: "PUT", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "erpcommon006", params: params, method: "PUT", 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});
if(typeof(callback) == "function") { if(typeof(callback) == "function") {
...@@ -164,7 +164,11 @@ var erpOrderUtil = { ...@@ -164,7 +164,11 @@ var erpOrderUtil = {
*/ */
revokeOrderMation: function (processInstanceId, orderType, callback){ revokeOrderMation: function (processInstanceId, orderType, callback){
layer.confirm('确认要撤销吗?', { icon: 3, title: '撤销操作' }, function (index) { layer.confirm('确认要撤销吗?', { icon: 3, title: '撤销操作' }, function (index) {
AjaxPostUtil.request({url: reqBasePath + "erpcommon003", params: {processInstanceId: processInstanceId, orderType: orderType}, method: "GET", type: 'json', callback: function(json) { var params = {
processInstanceId: processInstanceId,
orderType: orderType
};
AjaxPostUtil.request({url: flowableBasePath + "erpcommon003", params: params, method: "GET", 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});
if(typeof(callback) == "function") { if(typeof(callback) == "function") {
...@@ -207,7 +211,7 @@ var erpOrderUtil = { ...@@ -207,7 +211,7 @@ var erpOrderUtil = {
* @param callback 回执函数 * @param callback 回执函数
*/ */
getDepotList: function (callback){ getDepotList: function (callback){
AjaxPostUtil.request({url: reqBasePath + "storehouse008", params: {}, type: 'json', method: "GET", callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "storehouse008", params: {}, type: 'json', method: "GET", callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
if(typeof(callback) == "function") { if(typeof(callback) == "function") {
callback(json); callback(json);
......
...@@ -427,7 +427,7 @@ dataGrid.prototype = { ...@@ -427,7 +427,7 @@ dataGrid.prototype = {
win = win.top; win = win.top;
} }
result = eval('(' + '{"returnMessage":"登录超时。","returnCode":-9999,"total":0,"rows":"","bean":""}' + ')'); result = eval('(' + '{"returnMessage":"登录超时。","returnCode":-9999,"total":0,"rows":"","bean":""}' + ')');
win.location.href = reqBasePath + "/tpl/index/login.html";//XMLHttpRequest.getResponseHeader("CONTEXTPATH"); win.location.href = "../../tpl/index/login.html";//XMLHttpRequest.getResponseHeader("CONTEXTPATH");
}else if(sessionstatus == "NOAUTHPOINT"){ }else if(sessionstatus == "NOAUTHPOINT"){
result = eval('(' + '{"returnMessage":"您不具备该权限。","returnCode":-9999,"total":0,"rows":"","bean":""}' + ')'); result = eval('(' + '{"returnMessage":"您不具备该权限。","returnCode":-9999,"total":0,"rows":"","bean":""}' + ')');
} }
......
...@@ -161,7 +161,7 @@ layui.define(['jquery','layer','element','form'], function(exports) { ...@@ -161,7 +161,7 @@ layui.define(['jquery','layer','element','form'], function(exports) {
while (win != win.top){ while (win != win.top){
win = win.top; win = win.top;
} }
win.location.href = reqBasePath + "/tpl/index/login.html";//XMLHttpRequest.getResponseHeader("CONTEXTPATH"); win.location.href = "../../tpl/index/login.html";//XMLHttpRequest.getResponseHeader("CONTEXTPATH");
}else if(sessionstatus == "NOAUTHPOINT"){ }else if(sessionstatus == "NOAUTHPOINT"){
layer.msg('您不具备该权限。',{icon:5, shift:6}); layer.msg('您不具备该权限。',{icon:5, shift:6});
} }
......
...@@ -392,7 +392,7 @@ layui.define(["laytpl", "laypage", "layer", "form", "util"], function(e) { ...@@ -392,7 +392,7 @@ layui.define(["laytpl", "laypage", "layer", "form", "util"], function(e) {
while(win != win.top) { while(win != win.top) {
win = win.top; win = win.top;
} }
win.location.href = reqBasePath + "/tpl/index/login.html"; //XMLHttpRequest.getResponseHeader("CONTEXTPATH"); win.location.href = "../../tpl/index/login.html"; //XMLHttpRequest.getResponseHeader("CONTEXTPATH");
} else if(sessionstatus == "NOAUTHPOINT") { } else if(sessionstatus == "NOAUTHPOINT") {
i.layMain.html('<div class="' + f + '">' + systemLanguage["com.skyeye.permission"][languageType] + '</div>'), i.layMain.html('<div class="' + f + '">' + systemLanguage["com.skyeye.permission"][languageType] + '</div>'),
i.renderForm(), i.renderForm(),
......
...@@ -1523,7 +1523,7 @@ layui.config({}).extend({}).define(['laytpl', 'laypage', 'layer', 'form'], funct ...@@ -1523,7 +1523,7 @@ layui.config({}).extend({}).define(['laytpl', 'laypage', 'layer', 'form'], funct
while(win != win.top) { while(win != win.top) {
win = win.top; win = win.top;
} }
win.location.href = reqBasePath + "/tpl/index/login.html"; //XMLHttpRequest.getResponseHeader("CONTEXTPATH"); win.location.href = "../../tpl/index/login.html"; //XMLHttpRequest.getResponseHeader("CONTEXTPATH");
} else if(sessionstatus == "NOAUTHPOINT") { } else if(sessionstatus == "NOAUTHPOINT") {
that.layMain.html('<div class="' + NONE + '">您不具备该权限。</div>'); that.layMain.html('<div class="' + NONE + '">您不具备该权限。</div>');
that.renderForm(); that.renderForm();
......
...@@ -34,9 +34,6 @@ layui.define(['layer', 'form', 'fsButtonCommon'], function(exports) { ...@@ -34,9 +34,6 @@ layui.define(['layer', 'form', 'fsButtonCommon'], function(exports) {
fsCommon.invoke(url, param, callBackFunc, async, method); fsCommon.invoke(url, param, callBackFunc, async, method);
}, },
invoke: function(url, param, callBackFunc, async, method) { invoke: function(url, param, callBackFunc, async, method) {
if(!isNull(reqBasePath)) {
url = reqBasePath + url;
}
if(isNull(async)) { if(isNull(async)) {
async = true; async = true;
} }
...@@ -69,7 +66,7 @@ layui.define(['layer', 'form', 'fsButtonCommon'], function(exports) { ...@@ -69,7 +66,7 @@ layui.define(['layer', 'form', 'fsButtonCommon'], function(exports) {
while (win != win.top){ while (win != win.top){
win = win.top; win = win.top;
} }
win.location.href = reqBasePath + "/tpl/index/login.html";//XMLHttpRequest.getResponseHeader("CONTEXTPATH"); win.location.href = "../../tpl/index/login.html";//XMLHttpRequest.getResponseHeader("CONTEXTPATH");
}else if(sessionstatus == "NOAUTHPOINT"){ }else if(sessionstatus == "NOAUTHPOINT"){
fsCommon.errorMsg('您不具备该权限。'); fsCommon.errorMsg('您不具备该权限。');
} }
......
...@@ -134,13 +134,6 @@ layui.define(['layer', "fsCommon"], function(exports) { ...@@ -134,13 +134,6 @@ layui.define(['layer', "fsCommon"], function(exports) {
fsCommon.warnMsg("功能号或请求地址为空!"); fsCommon.warnMsg("功能号或请求地址为空!");
return; return;
} }
if (isNull(url)) {
url = "/fsbus/" + funcNo;
}
var servletUrl = reqBasePath;
if (!isNull(servletUrl)) {
url = servletUrl + url;
}
if (isNull(_this.config.chkboxType)) { if (isNull(_this.config.chkboxType)) {
_this.config.chkboxType = { _this.config.chkboxType = {
"Y" : "ps", "Y" : "ps",
...@@ -171,7 +164,7 @@ layui.define(['layer', "fsCommon"], function(exports) { ...@@ -171,7 +164,7 @@ layui.define(['layer', "fsCommon"], function(exports) {
async : { // 异步加载 async : { // 异步加载
type : "get", type : "get",
enable : _this.config.loadEnable, enable : _this.config.loadEnable,
url : reqBasePath + _this.config.url, url : _this.config.url,
autoParam : ["id=parentId"],// 异步加载时需要自动提交父节点属性的参数 autoParam : ["id=parentId"],// 异步加载时需要自动提交父节点属性的参数
dataType : "json", dataType : "json",
dataFilter : function(treeId, treeNode, responseData) { dataFilter : function(treeId, treeNode, responseData) {
...@@ -266,7 +259,6 @@ layui.define(['layer', "fsCommon"], function(exports) { ...@@ -266,7 +259,6 @@ layui.define(['layer', "fsCommon"], function(exports) {
var _this = this; var _this = this;
var funcNo = _this.config.funcNo; var funcNo = _this.config.funcNo;
var url = _this.config.url; // 请求url var url = _this.config.url; // 请求url
if (isNull(funcNo) && isNull(url)) { if (isNull(funcNo) && isNull(url)) {
fsCommon.warnMsg("功能号或请求地址为空!"); fsCommon.warnMsg("功能号或请求地址为空!");
return; return;
...@@ -315,28 +307,28 @@ layui.define(['layer', "fsCommon"], function(exports) { ...@@ -315,28 +307,28 @@ layui.define(['layer', "fsCommon"], function(exports) {
} }
} }
fsCommon.invoke(url, otherParam, function(data) { fsCommon.invoke(url, otherParam, function(data) {
if (data.returnCode == 0) { if (data.returnCode == 0) {
var array = data.rows; var array = data.rows;
if (!$.isArray(array)) { if (!$.isArray(array)) {
array = new Array(); array = new Array();
} }
if (domTree.attr("isRoot") !== "0") { // 是否显示根目录 if (domTree.attr("isRoot") !== "0") { // 是否显示根目录
var arr = {}; var arr = {};
arr["open"] = true; arr["open"] = true;
arr["isParent"] = true; arr["isParent"] = true;
arr["drag"] = false; arr["drag"] = false;
arr[_this.config.treeName] = "全部"; arr[_this.config.treeName] = "全部";
arr[_this.config.treeIdKey] = 0; arr[_this.config.treeIdKey] = 0;
array.push(arr); array.push(arr);
} }
_this.showTree(array); _this.showTree(array);
} else { } else {
// 提示错误消息 // 提示错误消息
fsCommon.warnMsg(data.returnMessage, { fsCommon.warnMsg(data.returnMessage, {
icon : 0 icon : 0
}); });
} }
}, false, method); }, false, method);
} }
} }
......
...@@ -38,7 +38,7 @@ layui.config({ ...@@ -38,7 +38,7 @@ layui.config({
function loadMyEnclosureList(){ function loadMyEnclosureList(){
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
url: "sysenclosure010?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"], url: reqBasePath + "sysenclosure010?userToken=" + getCookie('userToken') + "&loginPCIp=" + returnCitySN["cip"],
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
......
...@@ -229,7 +229,7 @@ layui.config({ ...@@ -229,7 +229,7 @@ layui.config({
allPeopleFirstLoad = true; allPeopleFirstLoad = true;
fsTree.render({ fsTree.render({
id: "allPeopleTree", id: "allPeopleTree",
url: "commonselpeople001" + urlParams, url: reqBasePath + "commonselpeople001" + urlParams,
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
chkStyle: ztreeCheckType, chkStyle: ztreeCheckType,
...@@ -263,7 +263,7 @@ layui.config({ ...@@ -263,7 +263,7 @@ layui.config({
accordingCompanyFirstLoad = true; accordingCompanyFirstLoad = true;
fsTree.render({ fsTree.render({
id: "accordingCompanyTree", id: "accordingCompanyTree",
url: "commonselpeople002" + urlParams, url: reqBasePath + "commonselpeople002" + urlParams,
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
...@@ -297,7 +297,7 @@ layui.config({ ...@@ -297,7 +297,7 @@ layui.config({
accordingDepartmentFirstLoad = true; accordingDepartmentFirstLoad = true;
fsTree.render({ fsTree.render({
id: "accordingDepartmentTree", id: "accordingDepartmentTree",
url: "commonselpeople003" + urlParams, url: reqBasePath + "commonselpeople003" + urlParams,
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
...@@ -331,7 +331,7 @@ layui.config({ ...@@ -331,7 +331,7 @@ layui.config({
accordingJobFirstLoad = true; accordingJobFirstLoad = true;
fsTree.render({ fsTree.render({
id: "accordingJobTree", id: "accordingJobTree",
url: "commonselpeople004" + urlParams, url: reqBasePath + "commonselpeople004" + urlParams,
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
...@@ -365,7 +365,7 @@ layui.config({ ...@@ -365,7 +365,7 @@ layui.config({
accordingSimpleDepartmentFirstLoad = true; accordingSimpleDepartmentFirstLoad = true;
fsTree.render({ fsTree.render({
id: "accordingSimpleDepartmentTree", id: "accordingSimpleDepartmentTree",
url: "commonselpeople005" + urlParams, url: reqBasePath + "commonselpeople005" + urlParams,
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
...@@ -399,7 +399,7 @@ layui.config({ ...@@ -399,7 +399,7 @@ layui.config({
accordingGroupFirstLoad = true; accordingGroupFirstLoad = true;
fsTree.render({ fsTree.render({
id: "accordingGroupTree", id: "accordingGroupTree",
url: "commonselpeople006" + urlParams, url: reqBasePath + "commonselpeople006" + urlParams,
checkEnable: true, checkEnable: true,
loadEnable: false,//异步加载 loadEnable: false,//异步加载
showLine: false, showLine: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册