Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aic_duty_strategy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
yinxiaoling
aic_duty_strategy
Commits
13c9bd20
Commit
13c9bd20
authored
May 20, 2020
by
yinxiaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板宽度注意后面的空格
parent
4b91ee4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
StrategySetController.php
app/Http/Controllers/strategy/StrategySetController.php
+1
-1
StrategyService.php
app/Service/StrategyService.php
+1
-1
No files found.
app/Http/Controllers/strategy/StrategySetController.php
View file @
13c9bd20
...
@@ -149,7 +149,7 @@ class StrategySetController extends Controller
...
@@ -149,7 +149,7 @@ class StrategySetController extends Controller
$datas
[
0
][
0
]
=
"姓名"
;
$datas
[
0
][
0
]
=
"姓名"
;
$datas
[
0
][
1
]
=
"*手机号码"
;
$datas
[
0
][
1
]
=
"*手机号码"
;
$datas
[
0
][
2
]
=
"值班日期"
;
$datas
[
0
][
2
]
=
"值班日期"
;
$StrategyService
->
storeExcelStyle
(
$excelName
,
$datas
,
''
,
''
,
1
);
$StrategyService
->
storeExcelStyle
(
$excelName
,
$datas
,
3
,
''
,
1
);
}
}
public
function
downloadFailExcel
(
Request
$request
){
public
function
downloadFailExcel
(
Request
$request
){
...
...
app/Service/StrategyService.php
View file @
13c9bd20
...
@@ -136,7 +136,7 @@ class StrategyService
...
@@ -136,7 +136,7 @@ class StrategyService
foreach
(
$arr
as
$v
){
foreach
(
$arr
as
$v
){
$col
[
$v
]
=
12
;
$col
[
$v
]
=
12
;
}
}
//
$sheet->setWidth($col);
$sheet
->
setWidth
(
$col
);
foreach
(
$arr
as
$k
=>
$v
){
foreach
(
$arr
as
$k
=>
$v
){
$objRichText
=
new
\PHPExcel_RichText
();
$objRichText
=
new
\PHPExcel_RichText
();
if
(
!
empty
(
$datas
[
0
][
$k
])){
if
(
!
empty
(
$datas
[
0
][
$k
])){
...
...
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