|
@@ -22,13 +22,14 @@
|
|
|
</style>
|
|
|
</head>
|
|
|
<body style="text-align: center;">
|
|
|
-<form class="layui-form" action="${ctx}/jkxl/import" method="post">
|
|
|
- <input id="newText1" name="projectId" value=""/>
|
|
|
+<form id="inputForm"class="layui-form" action="${ctx}/jkxl/import" method="post" enctype="multipart/form-data">
|
|
|
+ <input id="newText1" hidden name="projectId" value=""/>
|
|
|
<div class="layui-form-item">
|
|
|
<div class="layui-inline" style="margin-left:30px;margin-top: 10px;">
|
|
|
<input type="button" class="layui-btn-primary layui-btn-sm layui-btn-radius" onclick="uploadwj()" value="选择结算文件" id="btnxz"/>
|
|
|
<span id="myspan">*结算书文件为博微导出xls/xlsx格式文件</span>
|
|
|
- <input type="file" style="display: none;" accept=".xls,.xlsx" lay-verify="context" name="file" id="myfile"/>
|
|
|
+ <input type="file" style="display: none;" accept=".xls,.xlsx" name="file" id="myfile"/>
|
|
|
+ <%--<input type="file" style="display: none;" accept=".xls,.xlsx" id="myfile" name="file"/>--%>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -61,7 +62,7 @@
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label">项目名称</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="name" class="layui-input" id="inputwrite">
|
|
|
+ <input type="text" name="name" class="layui-input" id="inputwrite">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -96,6 +97,9 @@
|
|
|
var newText1 = parent.$('#addtext').val();
|
|
|
$("#newText1").val(newText1);
|
|
|
})
|
|
|
+ function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
+ $("#inputForm").submit();
|
|
|
+ }
|
|
|
</script>
|
|
|
<script>
|
|
|
$("#btnxz").click(function(){
|