Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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_beijing_auxiliary_YD
Commits
0e133045
Commit
0e133045
authored
Mar 06, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
473d9a87
e15f264a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
22 deletions
+51
-22
app.js
src/main/resources/static/js/app.js
+23
-1
excelAndSearch.html
...resources/static/views/excelAndSearch/excelAndSearch.html
+14
-14
excelAndSearch.js
...n/resources/static/views/excelAndSearch/excelAndSearch.js
+7
-0
xmlAndSearch.html
...ain/resources/static/views/xmlAndSearch/xmlAndSearch.html
+5
-5
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+2
-2
No files found.
src/main/resources/static/js/app.js
View file @
0e133045
...
...
@@ -195,5 +195,27 @@ angular.module('AvatarCheck', [
$location
.
path
(
"/createTaskList"
);
}
});
}).
filter
(
'myDateFilter'
,
function
()
{
//可以注入依赖
return
function
(
permanentPositionDate
)
{
if
(
permanentPositionDate
!=
null
){
var
yyyy
=
permanentPositionDate
.
substring
(
0
,
4
);
var
MM
=
permanentPositionDate
.
substring
(
4
,
6
);
var
dd
=
permanentPositionDate
.
substring
(
6
,
8
);
var
hh
=
permanentPositionDate
.
substring
(
8
,
10
);
var
mm
=
permanentPositionDate
.
substring
(
10
,
12
);
var
ss
=
permanentPositionDate
.
substring
(
12
,
14
)
var
yyyyMMddhhmmss
=
yyyy
+
"-"
+
MM
+
"-"
+
dd
+
" "
+
hh
+
":"
+
mm
+
":"
+
ss
;
var
yyyyMMdd
=
yyyy
+
"-"
+
MM
+
"-"
+
dd
;
if
(
permanentPositionDate
.
length
==
8
){
return
yyyyMMdd
;
}
else
{
return
yyyyMMddhhmmss
;
}
}
else
{
return
permanentPositionDate
;
}
}
})
;
src/main/resources/static/views/excelAndSearch/excelAndSearch.html
View file @
0e133045
...
...
@@ -113,7 +113,7 @@
</td>
</tr>
</table>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"postPackageData"
>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"postPackageData
.length>0
"
>
<thead>
<tr>
<th>
NO.
</th>
...
...
@@ -128,28 +128,28 @@
<tbody>
<tr
ng-repeat=
"item in postPackageData"
>
<td>
{{$index+1}}
</td>
<td>
{{item.formStartTime}}
</td>
<td>
{{item.formDeadline}}
</td>
<td>
{{item.formStartTime
| myDateFilter
}}
</td>
<td>
{{item.formDeadline
| myDateFilter
}}
</td>
<td>
{{item.fileName}}
</td>
<td>
{{item.uploadDate}}
</td>
<td>
{{item.uploadDate
| myDateFilter
}}
</td>
<td
ng-if=
"item.state==0"
>
未解析
</td>
<td
ng-if=
"item.state==1"
>
已解析
</td>
<td>
<button
class=
"btn btn-danger"
>
删除
</button>
<button
class=
"btn btn-danger"
ng-click=
"deletePostData(item.fileId)"
>
删除
</button>
</td>
</tr>
</tbody>
</table>
<div
style=
"padding-left: 27%;"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<h3
ng-if=
"postMsgDetail.length==0"
>
暂无记录。
</h3>
<div
class=
"row"
style=
"padding:0 25px;"
ng-if=
"postMsgDetail.length>0"
>
<div
class=
"col-md-11"
></div>
<div
class=
"col-md-1"
style=
"text-align: right;"
>
<button
id=
"rev-btn"
class=
"btn btn-primary"
data-loading-text=
"Loading..."
ng-click=
"PreviewMytableRotate()"
type=
"button"
>
打印
</button>
</div>
<div
style=
"padding-left: 27%;"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<h3
ng-if=
"postPackageData.length==0"
>
暂无记录。
</h3>
<div
class=
"row"
style=
"padding:0 25px;"
ng-if=
"postMsgDetail.length>0"
>
<div
class=
"col-md-11"
></div>
<div
class=
"col-md-1"
style=
"text-align: right;"
>
<button
id=
"rev-btn"
class=
"btn btn-primary"
data-loading-text=
"Loading..."
ng-click=
"PreviewMytableRotate()"
type=
"button"
>
打印
</button>
</div>
</div>
</div>
</div>
</div>
...
...
src/main/resources/static/views/excelAndSearch/excelAndSearch.js
View file @
0e133045
...
...
@@ -81,5 +81,11 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getPostPackage
);
$scope
.
deletePostData
=
function
(
fileid
){
}
});
\ No newline at end of file
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.html
View file @
0e133045
...
...
@@ -67,7 +67,7 @@
</td>
</tr>
</table>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"xmlPackageData"
>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"xmlPackageData
.length>0
"
>
<thead>
<tr>
<th>
NO.
</th>
...
...
@@ -81,8 +81,8 @@
</thead>
<tbody>
<tr
ng-repeat=
"item in xmlPackageData"
>
<td>
{{$index}}
</td>
<td>
{{item.uploadDate}}
</td>
<td>
{{$index
+1
}}
</td>
<td>
{{item.uploadDate
| date:'yyyy-MM-dd HH:mm:ss'
}}
</td>
<td>
{{item.packageCount}}
</td>
<td>
{{item.cardCount}}
</td>
<td>
{{item.commonCardCount}}
</td>
...
...
@@ -94,10 +94,10 @@
</tr>
</tbody>
</table>
<div
style=
"padding-left: 27%;"
ng-if=
"xmlPackageData"
>
<div
style=
"padding-left: 27%;"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<h3
ng-if=
"
postMsgDetail
.length==0"
>
暂无记录。
</h3>
<h3
ng-if=
"
xmlPackageData
.length==0"
>
暂无记录。
</h3>
<div
class=
"row"
style=
"padding:0 25px;"
ng-if=
"postMsgDetail.length>0"
>
<div
class=
"col-md-11"
></div>
<div
class=
"col-md-1"
style=
"text-align: right;"
>
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
0e133045
...
...
@@ -70,10 +70,10 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
getXmlPackage
=
function
(){
console
.
log
(
$
(
"#datepicker"
).
val
())
HttpService
.
selectXmlPackageCount
(
$
(
"#datepicker"
).
val
(),
function
(
data
){
$scope
.
paginationConf
.
totalItems
=
50
;
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
string
;
})
HttpService
.
selectXmlPackage
(
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
xmlPackageData
=
data
;
$scope
.
xmlPackageData
=
data
.
respData
;
console
.
log
(
"$scope.xmlPackageData:"
,
$scope
.
xmlPackageData
)
})
}
...
...
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