Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
8c214582
Commit
8c214582
authored
Aug 17, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化每日销进比汇总页面显示
parent
62ef3cde
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
DailyPurchaseSalesCount.cshtml
...as/Reports/Views/Warehouse/DailyPurchaseSalesCount.cshtml
+15
-4
No files found.
Bailun.DC.Web/Areas/Reports/Views/Warehouse/DailyPurchaseSalesCount.cshtml
View file @
8c214582
...
@@ -46,7 +46,9 @@
...
@@ -46,7 +46,9 @@
<thead>
<thead>
<tr></tr>
<tr></tr>
</thead>
</thead>
<tbody></tbody>
<tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -94,13 +96,22 @@
...
@@ -94,13 +96,22 @@
return false;
return false;
}
}
var w = $('#roletable').parent().width()+40;
if (w < (160 * result.head.length + 40)) {
w = (160 * result.head.length + 40);
}
$('#roletable').parent().css('width', (w) + 'px');
$('#roletable').css('width', (w-40) + 'px');
$('#roletable').find('tbody').html('');
$('#roletable').find('tbody').html('');
$('#roletable').find('thead').html('');
$('#roletable').find('thead').html('');
if (result.head.length > 0) {
if (result.head.length > 0) {
var s = '<tr>';
var s = '<tr>';
for (var i = 0; i < result.head.length; i++) {
for (var i = 0; i < result.head.length; i++) {
s += ('<th>' + result.head[i] + '</th>');
s += ('<th
style="width:160px;"
>' + result.head[i] + '</th>');
}
}
s += '</tr>';
s += '</tr>';
...
@@ -111,11 +122,11 @@
...
@@ -111,11 +122,11 @@
var s = '<tr>';
var s = '<tr>';
var obj = result.data[i];
var obj = result.data[i];
s += ('<td>' + (obj.category_simple_name == '' ? '空' : obj.category_simple_name) + '</td>');
s += ('<td
style="width:160px;"
>' + (obj.category_simple_name == '' ? '空' : obj.category_simple_name) + '</td>');
if (obj.list.length > 0) {
if (obj.list.length > 0) {
for (var j = 0; j < obj.list.length; j++) {
for (var j = 0; j < obj.list.length; j++) {
s += ('<td><a onclick="showdetail(\'' + obj.category_simple_name + '\',\'' + result.head[j + 1] +'\')">' + obj.list[j] + '</a></td>')
s += ('<td
style="width:160px;"
><a onclick="showdetail(\'' + obj.category_simple_name + '\',\'' + result.head[j + 1] +'\')">' + obj.list[j] + '</a></td>')
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment