Commit 97d38aa0 authored by chase's avatar chase

fix bug

parent 1f403a54
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table>--> </table>-->
<table tableName="data_validate_log" domainObjectName="DataValidateLog"> <table tableName="report_file_upload" domainObjectName="ReportFileUpload">
<property name="useActualColumnNames" value="false"/> <property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/> <property name="ignoreQualifiersAtRuntime" value="true"/>
</table> </table>
......
...@@ -116,11 +116,10 @@ ...@@ -116,11 +116,10 @@
cellTemplate: function (container, options) { cellTemplate: function (container, options) {
try { try {
$("<a href='javascript:void(0)'>上传</a>").on('click', function () { $("<a href='javascript:void(0)'>上传</a>").on('click', function () {
$('#uploadBut' + options.rowIndex).click(); $('#uploadBut' + options.data.reportType).click();
}).appendTo(container); }).appendTo(container);
$('<input type="file" style="display:none;" id="uploadBut' + options.rowIndex + '" />').on('change', function () { $('<input type="file" style="display:none;" id="uploadBut' + options.data.reportType + '" />').on('change', function () {
console.log($('#uploadBut' + options.rowIndex)[0].files[0]); uploadFile($('#uploadBut' + options.data.reportType)[0].files[0], options.data.reportType);
uploadFile($('#uploadBut' + options.rowIndex)[0].files[0], options.data.reportType);
}).appendTo(container); }).appendTo(container);
} catch (e) { } catch (e) {
$log.error(e); $log.error(e);
...@@ -212,11 +211,10 @@ ...@@ -212,11 +211,10 @@
cellTemplate: function (container, options) { cellTemplate: function (container, options) {
try { try {
$("<a href='javascript:void(0)'>上传</a>").on('click', function () { $("<a href='javascript:void(0)'>上传</a>").on('click', function () {
$('#uploadBut' + options.rowIndex).click(); $('#uploadBut' + options.data.reportType).click();
}).appendTo(container); }).appendTo(container);
$('<input type="file" style="display:none;" id="uploadBut' + options.rowIndex + '" />').on('change', function () { $('<input type="file" style="display:none;" id="uploadBut' + options.data.reportType + '" />').on('change', function () {
console.log($('#uploadBut' + options.rowIndex)[0].files[0]); uploadFile($('#uploadBut' + options.data.reportType)[0].files[0], options.data.reportType);
uploadFile($('#uploadBut' + options.rowIndex)[0].files[0], options.data.reportType);
}).appendTo(container); }).appendTo(container);
} catch (e) { } catch (e) {
$log.error(e); $log.error(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment