Commit 97d38aa0 authored by chase's avatar chase

fix bug

parent 1f403a54
......@@ -46,7 +46,7 @@
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>-->
<table tableName="data_validate_log" domainObjectName="DataValidateLog">
<table tableName="report_file_upload" domainObjectName="ReportFileUpload">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
......
......@@ -116,11 +116,10 @@
cellTemplate: function (container, options) {
try {
$("<a href='javascript:void(0)'>上传</a>").on('click', function () {
$('#uploadBut' + options.rowIndex).click();
$('#uploadBut' + options.data.reportType).click();
}).appendTo(container);
$('<input type="file" style="display:none;" id="uploadBut' + options.rowIndex + '" />').on('change', function () {
console.log($('#uploadBut' + options.rowIndex)[0].files[0]);
uploadFile($('#uploadBut' + options.rowIndex)[0].files[0], options.data.reportType);
$('<input type="file" style="display:none;" id="uploadBut' + options.data.reportType + '" />').on('change', function () {
uploadFile($('#uploadBut' + options.data.reportType)[0].files[0], options.data.reportType);
}).appendTo(container);
} catch (e) {
$log.error(e);
......@@ -212,11 +211,10 @@
cellTemplate: function (container, options) {
try {
$("<a href='javascript:void(0)'>上传</a>").on('click', function () {
$('#uploadBut' + options.rowIndex).click();
$('#uploadBut' + options.data.reportType).click();
}).appendTo(container);
$('<input type="file" style="display:none;" id="uploadBut' + options.rowIndex + '" />').on('change', function () {
console.log($('#uploadBut' + options.rowIndex)[0].files[0]);
uploadFile($('#uploadBut' + options.rowIndex)[0].files[0], options.data.reportType);
$('<input type="file" style="display:none;" id="uploadBut' + options.data.reportType + '" />').on('change', function () {
uploadFile($('#uploadBut' + options.data.reportType)[0].files[0], options.data.reportType);
}).appendTo(container);
} catch (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