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
ecb8a3f7
Commit
ecb8a3f7
authored
Nov 18, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成标题
parent
578d072a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
MonthSaleProfit.cshtml
...DC.Web/Areas/Reports/Views/Finance/MonthSaleProfit.cshtml
+11
-4
No files found.
Bailun.DC.Web/Areas/Reports/Views/Finance/MonthSaleProfit.cshtml
View file @
ecb8a3f7
...
...
@@ -147,7 +147,7 @@
str_template = str_template.replace('{'+result.head[h].item1 + '_desc}', "说明:无");
}
s += '<td>' + str_template.replace('{' + result.head[h].item1 + '+}', col_2) + '<a style="color:#bbb;" onclick=\"EditDescription(\'' + result.head[h].item1 + '\',\'' + temps
+'\',\'' + result.data[i]['month']
+ '\')\">修改说明</a></td>';
s += '<td>' + str_template.replace('{' + result.head[h].item1 + '+}', col_2) + '<a style="color:#bbb;" onclick=\"EditDescription(\'' + result.head[h].item1 + '\',\'' + temps
+ '\',\'' + result.data[i]['month'] + '\',\'' + clearHtml(result.head[h].item2)
+ '\')\">修改说明</a></td>';
//合计
s += ('<td>' + result.data[i][c] + '</td>');
...
...
@@ -201,8 +201,8 @@
})
}
function EditDescription(col, val, mon) {
layer.prompt({ title: '编辑
'
, value: val }, function (text, index) {
function EditDescription(col, val, mon
, name
) {
layer.prompt({ title: '编辑
' + name
, value: val }, function (text, index) {
layer.close(index);
SaveDescription(col, text, mon);
});
...
...
@@ -227,8 +227,15 @@
})
}
function exportxls() {
function clearHtml(s) {
// 去除 富文本格式
s = s.replace(/(\n)/g, "");
s = s.replace(/(\t)/g, "");
s = s.replace(/(\r)/g, "");
s = s.replace(/<\/?[^>]*>/g, "");
s = s.replace(/\s*/g, "");
return s;
}
</script>
}
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