Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
Project
Project
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
zhangyusheng
YX_IDENT_REFACTORING
Commits
c3c2e315
Commit
c3c2e315
authored
Dec 19, 2018
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7c72efd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
cycleSheet.html
...in/resources/static/tpl/layout/cycleSheet/cycleSheet.html
+1
-1
yieldReport.js
...in/resources/static/tpl/layout/yieldReport/yieldReport.js
+7
-10
No files found.
src/main/resources/static/tpl/layout/cycleSheet/cycleSheet.html
View file @
c3c2e315
...
...
@@ -34,7 +34,7 @@
</span>
</div>
</span>
<span
class=
"col-lg-1"
style=
"margin-left:
1
em"
>
<span
class=
"col-lg-1"
style=
"margin-left:
6
em"
>
<button
type=
"button"
class=
"btn btn-primary"
ng-click=
"task_click()"
>
查询
</button>
</span>
</div>
...
...
src/main/resources/static/tpl/layout/yieldReport/yieldReport.js
View file @
c3c2e315
app
.
controller
(
'
cycleShee
tCtrl'
,
[
'$scope'
,
'$rootScope'
,
'$http'
,
'$state'
,
'$filter'
,
'$localStorage'
,
'HttpService'
,
'ngDialog'
,
function
(
$scope
,
$rootScope
,
$http
,
$state
,
$filter
,
$localStorage
,
HttpService
,
ngDialog
)
{
app
.
controller
(
'
yieldRepor
tCtrl'
,
[
'$scope'
,
'$rootScope'
,
'$http'
,
'$state'
,
'$filter'
,
'$localStorage'
,
'HttpService'
,
'ngDialog'
,
function
(
$scope
,
$rootScope
,
$http
,
$state
,
$filter
,
$localStorage
,
HttpService
,
ngDialog
)
{
if
(
$rootScope
.
loginData
.
login
===
false
)
{
$state
.
go
(
"signin"
)
}
else
{
$state
.
go
(
"layout.
quality
Report"
)
$state
.
go
(
"layout.
yield
Report"
)
}
$scope
.
userState
=
$rootScope
.
loginData
.
state
;
// $scope.userState=5;
if
(
$rootScope
.
loginData
.
login
==
false
)
{
$location
.
path
(
"/login"
);
}
$scope
.
date
=
"date"
;
...
...
@@ -30,13 +27,13 @@ app.controller('cycleSheetCtrl', ['$scope', '$rootScope', '$http', '$state', '$f
return
currentdate
;
}
$scope
.
currentDetailDate
=
getNowFormatDetailDate
();
$scope
.
nowDate
=
new
Date
(
).
format
(
"yyyyMMdd"
);
$scope
.
nowMonth
=
new
Date
(
).
format
(
"yyyyMM"
);
$scope
.
nowDate
=
new
Date
(
"yyyyMMdd"
);
$scope
.
nowMonth
=
new
Date
(
"yyyyMM"
);
var
getMonthFirstDay
=
function
()
{
var
month_first
=
new
Date
();
var
month_first
=
new
Date
(
"yyyyMMdd"
);
month_first
.
setDate
(
1
);
return
month_first
.
format
(
"yyyyMMdd"
)
;
return
month_first
;
}
var
getMonthLastDay
=
function
()
{
var
date
=
new
Date
();
...
...
@@ -45,7 +42,7 @@ app.controller('cycleSheetCtrl', ['$scope', '$rootScope', '$http', '$state', '$f
var
nextMonthFirstDay
=
new
Date
(
date
.
getFullYear
(),
nextMonth
,
1
);
var
oneDay
=
1000
*
60
*
60
*
24
;
var
month_last
=
new
Date
(
nextMonthFirstDay
-
oneDay
);
return
month_last
.
format
(
"yyyyMMdd"
);
return
$filter
(
'date'
)(
month_last
,
'yyyyMMdd'
);
}
$scope
.
month_first
=
getMonthFirstDay
();
$scope
.
month_last
=
getMonthLastDay
();
...
...
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