|
@@ -23,23 +23,23 @@ $(document).ready(function() {
|
|
minimumCountColumns: 2,
|
|
minimumCountColumns: 2,
|
|
//是否显示行间隔色
|
|
//是否显示行间隔色
|
|
striped: true,
|
|
striped: true,
|
|
- //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
|
|
|
|
- cache: false,
|
|
|
|
- //是否显示分页(*)
|
|
|
|
- pagination: true,
|
|
|
|
- //排序方式
|
|
|
|
- sortOrder: "asc",
|
|
|
|
|
|
+ //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
|
|
|
|
+ cache: false,
|
|
|
|
+ //是否显示分页(*)
|
|
|
|
+ pagination: true,
|
|
|
|
+ //排序方式
|
|
|
|
+ sortOrder: "asc",
|
|
//初始化加载第一页,默认第一页
|
|
//初始化加载第一页,默认第一页
|
|
- pageNumber:1,
|
|
|
|
- //每页的记录行数(*)
|
|
|
|
|
|
+ pageNumber:1,
|
|
|
|
+ //每页的记录行数(*)
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- //可供选择的每页的行数(*)
|
|
|
|
|
|
+ //可供选择的每页的行数(*)
|
|
pageList: [5,10, 25, 50, 100],
|
|
pageList: [5,10, 25, 50, 100],
|
|
- //这个接口需要处理bootstrap table传递的固定参数,并返回特定格式的json数据
|
|
|
|
|
|
+ //这个接口需要处理bootstrap table传递的固定参数,并返回特定格式的json数据
|
|
url: "${ctx}/managementcenter/activiti/data",
|
|
url: "${ctx}/managementcenter/activiti/data",
|
|
//默认值为 'limit',传给服务端的参数为:limit, offset, search, sort, order Else
|
|
//默认值为 'limit',传给服务端的参数为:limit, offset, search, sort, order Else
|
|
- //queryParamsType:'',
|
|
|
|
- ////查询参数,每次调用是会带上这个参数,可自定义
|
|
|
|
|
|
+ //queryParamsType:'',
|
|
|
|
+ ////查询参数,每次调用是会带上这个参数,可自定义
|
|
queryParams : function(params) {
|
|
queryParams : function(params) {
|
|
var searchParam = $("#searchForm").serializeJSON();
|
|
var searchParam = $("#searchForm").serializeJSON();
|
|
searchParam.pageNo = params.limit === undefined? "1" :params.offset/params.limit+1;
|
|
searchParam.pageNo = params.limit === undefined? "1" :params.offset/params.limit+1;
|
|
@@ -68,169 +68,252 @@ $(document).ready(function() {
|
|
jp.error(data.msg);
|
|
jp.error(data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
onClickRow: function(row, $el){
|
|
onClickRow: function(row, $el){
|
|
},
|
|
},
|
|
onShowSearch: function () {
|
|
onShowSearch: function () {
|
|
$("#search-collapse").slideToggle();
|
|
$("#search-collapse").slideToggle();
|
|
},
|
|
},
|
|
columns: [{
|
|
columns: [{
|
|
- field: 'projectNumber',
|
|
|
|
- title: '工程定义号',
|
|
|
|
|
|
+ field: 'reserveProjectName',
|
|
|
|
+ title: '储备项目暂定名称',
|
|
width:120
|
|
width:120
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
field: 'projectId',
|
|
field: 'projectId',
|
|
title: '项目定义号',
|
|
title: '项目定义号',
|
|
- width:110
|
|
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.requireName',
|
|
|
|
- title: '需求项目名称',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.hasImplemented',
|
|
|
|
+ title: '是否已实施',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.channel',
|
|
|
|
- title: '施工通道',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.sceneDescription',
|
|
|
|
+ title: '现场情况描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.capacity',
|
|
|
|
- title: '设备基础是否可以扩容',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.isImplement',
|
|
|
|
+ title: '是否有实施必要性',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.sceneSize',
|
|
|
|
- title: '现场设备尺寸',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.noImplementation',
|
|
|
|
+ title: '实施无必要描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.capacitySize',
|
|
|
|
- title: '最多可扩容尺寸',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.whetherComplete',
|
|
|
|
+ title: '图纸是否完整',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.hiddenDanger',
|
|
|
|
- title: '方案安全隐患',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.drawingDescription',
|
|
|
|
+ title: '图纸完整性描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.influenceConstruction',
|
|
|
|
- title: '是否存在低压或通信线等影响施工',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.whetherStandard',
|
|
|
|
+ title: '图纸是否规范',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.projectRepetition',
|
|
|
|
- title: '立项重复',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.normativeDrawings',
|
|
|
|
+ title: '图纸规范性描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.implemented',
|
|
|
|
- title: '是否已实施',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.whetherDrawing',
|
|
|
|
+ title: '是否存在典设图问题',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.transformer',
|
|
|
|
- title: '变压器无负荷',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.problemDescription',
|
|
|
|
+ title: '典设图问题描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.explanationOfNecessity',
|
|
|
|
- title: '必要性问题说明',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.whetherChannel',
|
|
|
|
+ title: '是否存在施工通道',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
field: 'disclose.lineName',
|
|
field: 'disclose.lineName',
|
|
title: '线路名称一致性',
|
|
title: '线路名称一致性',
|
|
- width:110
|
|
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.quantities',
|
|
|
|
- title: '工程量是否一致',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.constructionDescription',
|
|
|
|
+ title: '施工通道情况描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.rodNumber',
|
|
|
|
- title: '设备、开关、杆号一致性',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.civilAdjusted',
|
|
|
|
+ title: '土建是否需要调整',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.inconsistentDescription',
|
|
|
|
- title: '图纸现场不一致说明',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.descriptionPlans',
|
|
|
|
+ title: '土建方案变更内容描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.administrationType',
|
|
|
|
- title: '政处类型',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.descriptionAdjustment',
|
|
|
|
+ title: '土建工作量调整内容描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.precondition',
|
|
|
|
- title: '前置条件',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.electricalAdjusted',
|
|
|
|
+ title: '电气方案是否需要调整',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.policyHandlingInstructions',
|
|
|
|
- title: '政策处理说明',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.adjustmentDescription',
|
|
|
|
+ title: '调整原因描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.placementMode',
|
|
|
|
- title: 'DTU安放方式核查',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.doesChange',
|
|
|
|
+ title: '自动化是否需要变更',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.productionDate',
|
|
|
|
- title: '核查环网柜生产日期',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.automatedContent',
|
|
|
|
+ title: '自动化方案调整内容',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.IntegrateModule',
|
|
|
|
- title: '二次是否是集成模块',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.automatedAdjustment',
|
|
|
|
+ title: '自动化工作内容调整',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.needReplace',
|
|
|
|
- title: 'PT是否需要更换',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.otherAdjusted',
|
|
|
|
+ title: '其他方案是否需要调整',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.overallTransformation',
|
|
|
|
- title: '设备是否有整体改造的必要',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.descriptionReasons',
|
|
|
|
+ title: '其他方案调整原因描述',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.otherProblem',
|
|
|
|
- title: '其它问题描述',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.difficultResolve',
|
|
|
|
+ title: '是否存在难以解决的政处',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
,{
|
|
,{
|
|
- field: 'disclose.implementedContent',
|
|
|
|
- title: '已实施内容描述',
|
|
|
|
- width:110
|
|
|
|
|
|
+ field: 'disclose.designChanges',
|
|
|
|
+ title: '是否需要进行设计变更',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.affairsDescription',
|
|
|
|
+ title: '政处问题描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.planningRequired',
|
|
|
|
+ title: '是否需要规划报批',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.highSpeed',
|
|
|
|
+ title: '//是否涉及高铁、高速',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.affairsOffice',
|
|
|
|
+ title: '是否存在复杂民事政处',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.preconditions',
|
|
|
|
+ title: '图纸方案是否存在前置条件',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.preconditionDescription',
|
|
|
|
+ title: '前置条件描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.customizedMaterials',
|
|
|
|
+ title: '是否需要定制物资',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.customizedCan',
|
|
|
|
+ title: '是否能定制',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.reasonDescription',
|
|
|
|
+ title: '定制原因描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.materialDescription',
|
|
|
|
+ title: '定制物资描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.demolitionMaterials',
|
|
|
|
+ title: '拆旧物资是否与设计一致',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.modelDescription',
|
|
|
|
+ title: '型号不一致描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.quantityDescription',
|
|
|
|
+ title: '数量不一致描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.drawingAnnotation',
|
|
|
|
+ title: '图纸标注是否存在问题',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.drawingProblem',
|
|
|
|
+ title: '图纸标注问题描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.powerOutage',
|
|
|
|
+ title: '是否存在停电问题',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.powerProblem',
|
|
|
|
+ title: '停电问题问题描述',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.nearLiveLine',
|
|
|
|
+ title: '是否邻近带电线路',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.highVoltageLine',
|
|
|
|
+ title: '是否下穿高压线路',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.complexPipeline',
|
|
|
|
+ title: '是否存在复杂管线',
|
|
|
|
+ width:160
|
|
|
|
+ },{
|
|
|
|
+ field: 'disclose.complicatedPower',
|
|
|
|
+ title: '是否涉及复杂停电',
|
|
|
|
+ width:160
|
|
}
|
|
}
|
|
]
|
|
]
|
|
-
|
|
|
|
});
|
|
});
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
$('#projectTable').bootstrapTable("toggleView");
|
|
$('#projectTable').bootstrapTable("toggleView");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
$('#projectTable').on('check.bs.table uncheck.bs.table load-success.bs.table ' +
|
|
$('#projectTable').on('check.bs.table uncheck.bs.table load-success.bs.table ' +
|
|
'check-all.bs.table uncheck-all.bs.table', function () {
|
|
'check-all.bs.table uncheck-all.bs.table', function () {
|
|
$('#remove').prop('disabled', ! $('#projectTable').bootstrapTable('getSelections').length);
|
|
$('#remove').prop('disabled', ! $('#projectTable').bootstrapTable('getSelections').length);
|
|
$('#view,#edit').prop('disabled', $('#projectTable').bootstrapTable('getSelections').length!=1);
|
|
$('#view,#edit').prop('disabled', $('#projectTable').bootstrapTable('getSelections').length!=1);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
$("#btnImport").click(function(){
|
|
$("#btnImport").click(function(){
|
|
jp.open({
|
|
jp.open({
|
|
type: 2,
|
|
type: 2,
|
|
@@ -256,7 +339,7 @@ $(document).ready(function() {
|
|
btn2: function(index){
|
|
btn2: function(index){
|
|
// jp.close(index);
|
|
// jp.close(index);
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ });
|
|
});
|
|
});
|
|
$("#btnImportPicking").click(function(){
|
|
$("#btnImportPicking").click(function(){
|
|
jp.open({
|
|
jp.open({
|
|
@@ -292,18 +375,18 @@ $(document).ready(function() {
|
|
// jp.downloadFile('${ctx}/sg/managementcenter/project/export1');
|
|
// jp.downloadFile('${ctx}/sg/managementcenter/project/export1');
|
|
// });
|
|
// });
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
$("#search").click("click", function() {// 绑定查询按扭
|
|
$("#search").click("click", function() {// 绑定查询按扭
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
$("#reset").click("click", function() {// 绑定查询按扭
|
|
$("#reset").click("click", function() {// 绑定查询按扭
|
|
$("#searchForm input").val("");
|
|
$("#searchForm input").val("");
|
|
$("#searchForm select").val("");
|
|
$("#searchForm select").val("");
|
|
$("#searchForm .select-item").html("");
|
|
$("#searchForm .select-item").html("");
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
$('#beginBeginDate').datetimepicker({
|
|
$('#beginBeginDate').datetimepicker({
|
|
format: "YYYY-MM-DD HH:mm:ss"
|
|
format: "YYYY-MM-DD HH:mm:ss"
|
|
});
|
|
});
|
|
@@ -313,19 +396,19 @@ $(document).ready(function() {
|
|
$('#endDate').datetimepicker({
|
|
$('#endDate').datetimepicker({
|
|
format: "YYYY-MM-DD HH:mm:ss"
|
|
format: "YYYY-MM-DD HH:mm:ss"
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
function getIdSelections() {
|
|
function getIdSelections() {
|
|
return $.map($("#projectTable").bootstrapTable('getSelections'), function (row) {
|
|
return $.map($("#projectTable").bootstrapTable('getSelections'), function (row) {
|
|
return row.id
|
|
return row.id
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
function deleteAll(){
|
|
function deleteAll(){
|
|
|
|
|
|
jp.confirm('确认要删除该项目管理表单记录吗?', function(){
|
|
jp.confirm('确认要删除该项目管理表单记录吗?', function(){
|
|
- jp.loading();
|
|
|
|
|
|
+ jp.loading();
|
|
jp.get("${ctx}/sg/managementcenter/project/deleteAll?ids=" + getIdSelections(), function(data){
|
|
jp.get("${ctx}/sg/managementcenter/project/deleteAll?ids=" + getIdSelections(), function(data){
|
|
if(data.success){
|
|
if(data.success){
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
@@ -334,7 +417,7 @@ $(document).ready(function() {
|
|
jp.error(data.msg);
|
|
jp.error(data.msg);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -342,20 +425,20 @@ $(document).ready(function() {
|
|
function refresh(){
|
|
function refresh(){
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
$('#projectTable').bootstrapTable('refresh');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
function add(){
|
|
function add(){
|
|
jp.openSaveDialog('新增项目管理表单', "${ctx}/sg/managementcenter/project/form",'800px', '500px');
|
|
jp.openSaveDialog('新增项目管理表单', "${ctx}/sg/managementcenter/project/form",'800px', '500px');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
function edit(id){//没有权限时,不显示确定按钮
|
|
function edit(id){//没有权限时,不显示确定按钮
|
|
if(id == undefined){
|
|
if(id == undefined){
|
|
id = getIdSelections();
|
|
id = getIdSelections();
|
|
}
|
|
}
|
|
jp.openSaveDialog('编辑项目管理表单', "${ctx}/sg/managementcenter/project/form?id=" + id, '800px', '500px');
|
|
jp.openSaveDialog('编辑项目管理表单', "${ctx}/sg/managementcenter/project/form?id=" + id, '800px', '500px');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
function view(id){//没有权限时,不显示确定按钮
|
|
function view(id){//没有权限时,不显示确定按钮
|
|
if(id == undefined){
|
|
if(id == undefined){
|
|
id = getIdSelections();
|
|
id = getIdSelections();
|