|
@@ -21,11 +21,11 @@
|
|
|
treeLinkage: false,
|
|
|
elem: '#table1',
|
|
|
cols: [[
|
|
|
-{field: 'gcmc',width:200,title: '工程名称'},
|
|
|
-{field:'xmsl',width:180,title:"项目数量"},
|
|
|
-{field:'cjsq',width:200,title: '创建时期'},
|
|
|
-{field:'djr',width:200,title:'登记人'},
|
|
|
-{field:'op',align:'center',title:"操作",minWidth:200,templet:function(d){
|
|
|
+ {field: 'gcmc',width:200,title: '工程名称'},
|
|
|
+ {field:'xmsl',width:180,title:"项目数量"},
|
|
|
+ {field:'cjsq',width:200,title: '创建时期'},
|
|
|
+ {field:'djr',width:200,title:'登记人'},
|
|
|
+ {field:'op',align:'center',title:"操作",minWidth:200,templet:function(d){
|
|
|
////对操作进行初始化
|
|
|
var xml = "";
|
|
|
if(d.status==1){
|
|
@@ -73,9 +73,8 @@
|
|
|
"type":"${items.type}",
|
|
|
"gcmc":"${items.itemName}",
|
|
|
"xmsl": "某施工单位一",
|
|
|
- <%--"cjsq": <c:if test="${items.type eq '1'}">"架空线路"</c:if><c:if test="${items.type eq '2'}">"电缆线路"</c:if>,--%>
|
|
|
- "cjsq":<c:if test="${items.type eq '1'}">"架空线路"</c:if><c:if test="${items.type eq '2'}">"电缆线路"</c:if>,
|
|
|
- "djr":"<fmt:formatDate value="${items.createDate}" pattern="yyyy/MM/dd"/>",
|
|
|
+ "cjsq":"<c:if test="${items.type eq '1'}">架空线路</c:if><c:if test="${items.type eq '2'}">电缆线路</c:if>",
|
|
|
+ "djr":"<fmt:formatDate value="${items.createDate}" pattern="yyyy/MM/dd"/>",
|
|
|
"status":"3",
|
|
|
"pid": "${items.projectId}"
|
|
|
},
|
|
@@ -90,7 +89,8 @@
|
|
|
});
|
|
|
};
|
|
|
renderTable1();
|
|
|
- treetable.foldAll('#table1');
|
|
|
+ //表格下拉关闭
|
|
|
+ // treetable.foldAll('#table1');
|
|
|
table.on('tool(table1)', function(obj,target){
|
|
|
var data = obj.data;
|
|
|
//console.log(obj)
|
|
@@ -106,8 +106,6 @@
|
|
|
content: '${ctxp}/webpage/modules/sg/projecttem/addItem.jsp'
|
|
|
, btn: ['确定','关闭']
|
|
|
,yes: function(index, layero){
|
|
|
- // var bodyparent = layer.getChildFrame('body', index);
|
|
|
- // bodyparent.find('#newProject').click();
|
|
|
var body = layer.getChildFrame('body', index);
|
|
|
var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
var inputForm = body.find('#inputForm');
|
|
@@ -200,11 +198,5 @@ function update(url) {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-$(document).ready(function(e) {
|
|
|
-
|
|
|
- $("#noneBtn").click(function(e) {
|
|
|
- $("#noneDiv").toggle(400);
|
|
|
- })
|
|
|
-});
|
|
|
</script>
|
|
|
|