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
199f75a2
Commit
199f75a2
authored
Mar 18, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
f8adb49b
5214116b
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
204 additions
and
9 deletions
+204
-9
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+35
-0
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+8
-0
PersonPostService.java
...n/java/com/yxproject/start/service/PersonPostService.java
+6
-0
PersonPostServiceImpl.java
...m/yxproject/start/service/impl/PersonPostServiceImpl.java
+13
-0
ngDialog-theme-default.css
...c/components/ngDialog/css/myth/ngDialog-theme-default.css
+1
-1
showDetail.html
src/main/resources/static/dialogs/showDetail.html
+2
-0
updateNote.html
src/main/resources/static/dialogs/updateNote.html
+25
-0
index.html
src/main/resources/static/index.html
+3
-6
service.js
src/main/resources/static/js/service.js
+25
-0
task.js
src/main/resources/static/views/task/task.js
+4
-0
uploadExcelAndSearch.html
...atic/views/uploadExcelAndSearch/uploadExcelAndSearch.html
+12
-1
uploadExcelAndSearch.js
...static/views/uploadExcelAndSearch/uploadExcelAndSearch.js
+70
-1
No files found.
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
199f75a2
...
@@ -24,8 +24,10 @@ import java.nio.charset.StandardCharsets;
...
@@ -24,8 +24,10 @@ import java.nio.charset.StandardCharsets;
import
java.text.DateFormat
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 自主选择删除个人邮寄信息
* 自主选择删除个人邮寄信息
...
@@ -51,6 +53,39 @@ public class PersonPostApi {
...
@@ -51,6 +53,39 @@ public class PersonPostApi {
return
null
;
return
null
;
}
}
/**
* 查询备注信息
* @param jsonStr
* @return
*/
@RequestMapping
(
"selectNote"
)
public
List
<
Map
<
String
,
Object
>>
selectNote
(
@RequestBody
String
jsonStr
){
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
Map
<
String
,
Object
>
resultMap
=
personPostService
.
selectNote
((
int
)(
jsonArray
.
get
(
i
)));
resultList
.
add
(
resultMap
);
}
return
resultList
;
}
/**
* 更改备注信息
* @param jsonStr
* @return
*/
@RequestMapping
(
"addNote"
)
public
boolean
addNote
(
@RequestBody
String
jsonStr
){
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
Map
<
String
,
Object
>
noteMap
=
(
Map
<
String
,
Object
>)
jsonArray
.
get
(
i
);
personPostService
.
addNote
(
noteMap
.
get
(
"id"
).
toString
(),
noteMap
.
get
(
"note"
).
toString
());
}
return
true
;
}
/**
/**
* 按条件查询个人邮寄信息
* 按条件查询个人邮寄信息
* @param jsonStr
* @param jsonStr
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
199f75a2
...
@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.*;
...
@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.*;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
...
@@ -56,6 +57,13 @@ public interface PersonPostMapper {
...
@@ -56,6 +57,13 @@ public interface PersonPostMapper {
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
long
firstIndex
,
@Param
(
"pageSize"
)
long
pageSize
,
@Param
(
"emailNo"
)
String
emailNo
,
@Param
(
"notNull"
)
int
notNull
);
public
List
<
PersonPostEntity
>
findAllPersonalData
(
@Param
(
"applicantName"
)
String
applicantName
,
@Param
(
"orderNumber"
)
String
orderNumber
,
@Param
(
"state"
)
String
state
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
,
@Param
(
"getToCounty"
)
String
getToCounty
,
@Param
(
"uploadDate"
)
String
uploadDate
,
@Param
(
"firstIndex"
)
long
firstIndex
,
@Param
(
"pageSize"
)
long
pageSize
,
@Param
(
"emailNo"
)
String
emailNo
,
@Param
(
"notNull"
)
int
notNull
);
@Select
(
"select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}"
)
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
int
id
);
@Update
(
"UPDATE PERSON_POST SET NOTE = #{note} where ID = #{id}"
)
public
boolean
addNote
(
@Param
(
"id"
)
String
id
,
@Param
(
"note"
)
String
note
);
@Select
(
"<script> "
+
@Select
(
"<script> "
+
"SELECT COUNT(*) FROM PERSON_POST \n"
+
"SELECT COUNT(*) FROM PERSON_POST \n"
+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "
+
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "
+
...
...
src/main/java/com/yxproject/start/service/PersonPostService.java
View file @
199f75a2
...
@@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @auther zhangyusheng
* @auther zhangyusheng
...
@@ -42,4 +43,9 @@ public interface PersonPostService {
...
@@ -42,4 +43,9 @@ public interface PersonPostService {
public
int
findPersonalDataCountByImportDate
(
String
importDate
);
public
int
findPersonalDataCountByImportDate
(
String
importDate
);
public
List
<
PersonPostEntity
>
downLoadReportForm
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
sqrxm
,
String
ddh
,
String
hasPrinted
,
String
gkxx
,
JSONArray
jsonArray
,
String
uploadDate
,
String
emailNo
);
public
List
<
PersonPostEntity
>
downLoadReportForm
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
sqrxm
,
String
ddh
,
String
hasPrinted
,
String
gkxx
,
JSONArray
jsonArray
,
String
uploadDate
,
String
emailNo
);
public
Map
<
String
,
Object
>
selectNote
(
@Param
(
"id"
)
int
id
);
public
boolean
addNote
(
@Param
(
"id"
)
String
id
,
@Param
(
"note"
)
String
note
);
}
}
src/main/java/com/yxproject/start/service/impl/PersonPostServiceImpl.java
View file @
199f75a2
...
@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @auther zhangyusheng
* @auther zhangyusheng
...
@@ -132,6 +133,18 @@ public class PersonPostServiceImpl implements PersonPostService {
...
@@ -132,6 +133,18 @@ public class PersonPostServiceImpl implements PersonPostService {
return
list
;
return
list
;
}
}
@Override
public
Map
<
String
,
Object
>
selectNote
(
int
id
)
{
Map
<
String
,
Object
>
resultMap
=
personPostMapper
.
selectNote
(
id
);
return
resultMap
;
}
@Override
public
boolean
addNote
(
String
id
,
String
note
)
{
personPostMapper
.
addNote
(
id
,
note
);
return
true
;
}
// /**
// /**
// * 查询个人邮寄信息
// * 查询个人邮寄信息
// * @param fileName 文件名
// * @param fileName 文件名
...
...
src/main/resources/static/components/ngDialog/css/myth/ngDialog-theme-default.css
View file @
199f75a2
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
.ngdialog.ngdialog-theme-default
{
.ngdialog.ngdialog-theme-default
{
padding-bottom
:
160px
;
padding-bottom
:
160px
;
padding-top
:
16
0px
;
padding-top
:
5
0px
;
}
}
.ngdialog.ngdialog-theme-default.ngdialog-closing
.ngdialog-content
{
.ngdialog.ngdialog-theme-default.ngdialog-closing
.ngdialog-content
{
...
...
src/main/resources/static/dialogs/showDetail.html
View file @
199f75a2
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<tr>
<tr>
<td
style=
"text-align:left;"
><strong>
内件性质:
</strong>
{{item.natureOfTheInternal}}
</td>
<td
style=
"text-align:left;"
><strong>
内件性质:
</strong>
{{item.natureOfTheInternal}}
</td>
<td
style=
"text-align:left;"
><strong>
内件信息:
</strong>
{{item.natureOfTheInformation}}
</td>
<td
style=
"text-align:left;"
><strong>
内件信息:
</strong>
{{item.natureOfTheInformation}}
</td>
<td
style=
"text-align:left;"
><strong>
备注:
</strong>
{{item.note}}
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
\ No newline at end of file
src/main/resources/static/dialogs/updateNote.html
0 → 100644
View file @
199f75a2
<div
class=
"ui-dialog-title"
>
更新备注
</div>
<div
class=
"ui-dialog-content"
>
<table
class=
"table"
style=
"border-color: black;"
>
<thead>
<tr>
<th>
上传受理号
</th>
<th>
申请人姓名
</th>
<th>
备注
</th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"item in idAndNote"
>
<td>
{{item.FIRST_WHITE}}
</td>
<td>
{{item.APPLICANT_NAME}}
</td>
<td><input
type=
"text"
ng-model=
"item.NOTE"
></td>
</tr>
</tbody>
</table>
</div>
<div
class=
"ui-dialog-confirm"
>
<button
type=
"submit"
class=
"btn btn-info"
ng-click=
"updateNoteData()"
>
更新
</button>
</div>
\ No newline at end of file
src/main/resources/static/index.html
View file @
199f75a2
...
@@ -119,6 +119,9 @@
...
@@ -119,6 +119,9 @@
<span
class=
"hidden-xs"
ng-bind=
"loginData.name"
></span>
<span
class=
"hidden-xs"
ng-bind=
"loginData.name"
></span>
</a>
</a>
</li>
</li>
<li
class=
"dropdown user user-menu"
>
<a
ng-click=
"logout()"
class=
"btn btn-flat"
style=
"background-color: #0c6ba2;border: 0"
>
退出当前用户
</a>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -140,12 +143,6 @@
...
@@ -140,12 +143,6 @@
<span
ng-bind=
"menu.name"
></span>
<span
ng-bind=
"menu.name"
></span>
</a>
</a>
</li>
</li>
<li>
<a
ng-click=
"logout()"
>
<i
class=
"glyphicon glyphicon-user"
></i>
<span>
退出当前用户
</span>
</a>
</li>
</ul>
</ul>
</section>
</section>
<!-- /.sidebar -->
<!-- /.sidebar -->
...
...
src/main/resources/static/js/service.js
View file @
199f75a2
...
@@ -883,6 +883,30 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -883,6 +883,30 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
getNoteToUpdate
:
function
(
data
,
success
)
{
var
body
=
JSON
.
stringify
(
data
);
console
.
log
(
body
)
$http
({
method
:
'POST'
,
url
:
"../personPostApi/selectNote"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
updateTheseNote
:
function
(
data
,
success
){
var
body
=
JSON
.
stringify
(
data
);
console
.
log
(
body
)
$http
({
method
:
'POST'
,
url
:
"../personPostApi/addNote"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
}
}
}
}
});
});
\ No newline at end of file
src/main/resources/static/views/task/task.js
View file @
199f75a2
...
@@ -219,6 +219,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -219,6 +219,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
cache
:
false
,
cache
:
false
,
closeByDocument
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$rootScope
.
cardsTotal
=
0
;
$scope
.
confirmGoTo
=
go
;
$scope
.
confirmGoTo
=
go
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
}]
}]
...
@@ -405,6 +406,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -405,6 +406,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
cache
:
false
,
cache
:
false
,
closeByDocument
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$rootScope
.
cardsTotal
=
0
;
$scope
.
confirmGoTo
=
go
;
$scope
.
confirmGoTo
=
go
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
}]
}]
...
@@ -587,6 +589,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -587,6 +589,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
cache
:
false
,
cache
:
false
,
closeByDocument
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$rootScope
.
cardsTotal
=
0
;
$scope
.
confirmGoTo
=
go
;
$scope
.
confirmGoTo
=
go
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
}]
}]
...
@@ -769,6 +772,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -769,6 +772,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
cache
:
false
,
cache
:
false
,
closeByDocument
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$rootScope
.
cardsTotal
=
0
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$scope
.
confirmGoTo
=
go
;
$scope
.
confirmGoTo
=
go
;
}]
}]
...
...
src/main/resources/static/views/uploadExcelAndSearch/uploadExcelAndSearch.html
View file @
199f75a2
...
@@ -72,7 +72,15 @@
...
@@ -72,7 +72,15 @@
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-remove"
></span></span>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-remove"
></span></span>
</div>
</div>
</td>
</td>
<td
colspan=
"4"
>
<td>
数据状态:
</td>
<td
style=
"text-align: left;"
>
<select
class=
"form-control select2"
id=
"notNull"
ng-model=
"isValid"
>
<option
value=
""
>
--请选择数据状态--
</option>
<option
value=
"1"
>
有效记录
</option>
<option
value=
"0"
>
无效记录
</option>
</select>
</td>
<td
colspan=
"2"
>
<div
style=
"float: left"
>
<div
style=
"float: left"
>
<button
class=
"btn btn-primary"
style=
"margin-right: 7px;"
ng-click=
"doQuery()"
>
查询
</button>
<button
class=
"btn btn-primary"
style=
"margin-right: 7px;"
ng-click=
"doQuery()"
>
查询
</button>
<button
class=
"btn btn-primary"
style=
"margin-right: 7px;"
ng-click=
"subSomething()"
>
读卡查询
</button>
<button
class=
"btn btn-primary"
style=
"margin-right: 7px;"
ng-click=
"subSomething()"
>
读卡查询
</button>
...
@@ -117,6 +125,9 @@
...
@@ -117,6 +125,9 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<div
class=
"box-footer"
ng-if=
"postData.length>0"
>
<button
class=
"pull-right btn btn-primary"
ng-click=
"addNote()"
>
添加备注
</button>
</div>
<div
style=
"padding-left: 27%;"
ng-if=
"postData.length>0"
>
<div
style=
"padding-left: 27%;"
ng-if=
"postData.length>0"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
</div>
...
...
src/main/resources/static/views/uploadExcelAndSearch/uploadExcelAndSearch.js
View file @
199f75a2
...
@@ -44,6 +44,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -44,6 +44,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
var
getCountJson
=
function
(){
var
getCountJson
=
function
(){
var
date
=
$
(
'#datepicker'
).
val
();
var
date
=
$
(
'#datepicker'
).
val
();
var
notNull
=
$
(
"#notNull"
).
val
();
var
json
=
{};
var
json
=
{};
if
(
angular
.
isDefined
(
$scope
.
applicantName
))
{
if
(
angular
.
isDefined
(
$scope
.
applicantName
))
{
json
.
applicantName
=
$scope
.
applicantName
;
json
.
applicantName
=
$scope
.
applicantName
;
...
@@ -76,6 +77,11 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -76,6 +77,11 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}
else
{
}
else
{
json
.
getToCounty
=
[];
json
.
getToCounty
=
[];
}
}
if
(
notNull
==
''
){
json
.
notNull
=
-
1
;
}
else
{
json
.
notNull
=
notNull
}
if
(
date
==
'{{choseDate}}'
){
if
(
date
==
'{{choseDate}}'
){
json
.
uploadDate
=
$scope
.
choseDate
;
json
.
uploadDate
=
$scope
.
choseDate
;
}
else
{
}
else
{
...
@@ -85,6 +91,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -85,6 +91,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}
}
var
getJson
=
function
()
{
var
getJson
=
function
()
{
var
date
=
$
(
'#datepicker'
).
val
();
var
date
=
$
(
'#datepicker'
).
val
();
var
notNull
=
$
(
"#notNull"
).
val
();
var
json
=
{};
var
json
=
{};
if
(
angular
.
isDefined
(
$scope
.
applicantName
))
{
if
(
angular
.
isDefined
(
$scope
.
applicantName
))
{
json
.
applicantName
=
$scope
.
applicantName
;
json
.
applicantName
=
$scope
.
applicantName
;
...
@@ -122,6 +129,11 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -122,6 +129,11 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}
else
{
}
else
{
json
.
uploadDate
=
$
(
"#datepicker"
).
val
();
json
.
uploadDate
=
$
(
"#datepicker"
).
val
();
}
}
if
(
notNull
==
''
){
json
.
notNull
=
-
1
;
}
else
{
json
.
notNull
=
notNull
}
if
(
$scope
.
paginationConf
.
currentPage
==
0
){
if
(
$scope
.
paginationConf
.
currentPage
==
0
){
$scope
.
paginationConf
.
currentPage
=
1
$scope
.
paginationConf
.
currentPage
=
1
}
}
...
@@ -187,14 +199,29 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -187,14 +199,29 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}
}
return
url
+
't='
+
Math
.
floor
(
Date
.
now
());
return
url
+
't='
+
Math
.
floor
(
Date
.
now
());
}
}
var
getCount
=
function
()
{
HttpService
.
getRecordsCount
(
getCountJson
(),
function
(
data
)
{
$rootScope
.
count
=
data
;
})
}
$scope
.
downloadExcel
=
function
(){
$scope
.
downloadExcel
=
function
(){
ngDialog
.
open
({
template
:
'dialogs/confirmToDownload.html'
+
urlTimeStamp
(),
width
:
800
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
getCount
()
$scope
.
confirmDownload
=
function
()
{
var
url
=
'../personPostApi/download?'
;
var
url
=
'../personPostApi/download?'
;
var
a
=
document
.
createElement
(
"a"
);
var
a
=
document
.
createElement
(
"a"
);
document
.
body
.
appendChild
(
a
);
document
.
body
.
appendChild
(
a
);
a
.
href
=
encodeURI
(
getCountAndDownloadUrl
(
url
));
a
.
href
=
encodeURI
(
getCountAndDownloadUrl
(
url
));
a
.
click
();
a
.
click
();
}
}
}]
})
}
var
postParam
=
{
var
postParam
=
{
idCard
:
''
,
idCard
:
''
,
startDate
:
''
,
startDate
:
''
,
...
@@ -271,6 +298,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -271,6 +298,7 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
cache: false,
cache: false,
controller: ['$scope', function ($scope) {
controller: ['$scope', function ($scope) {
$scope.item = itemData;
$scope.item = itemData;
console.log($scope.item)
}]
}]
});
});
}
}
...
@@ -302,5 +330,45 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
...
@@ -302,5 +330,45 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
}
}
$scope.addNote = function () {
var arr = [];
for (var i=0;i<$scope.postData.length;i++){
arr.push($scope.postData[i].id)
}
ngDialog.open({
template: 'dialogs/updateNote.html' + urlTimeStamp(),
width: 800,
cache: false,
closeByDocument: false,
controller: ['$scope', 'HttpService', 'MessageService', function ($scope, HttpService, MessageService) {
console.log(arr)
HttpService.getNoteToUpdate(arr,function(data) {
$scope.idAndNote = data;
console.log( $scope.idAndNote)
})
$scope.updateNoteData = function(){
var arr = [];
for (var i=0;i<$scope.idAndNote.length;i++){
var json={
id:$scope.idAndNote[i].ID,
note:$scope.idAndNote[i].NOTE
}
arr.push(json);
}
HttpService.updateTheseNote(arr,function(data) {
if(data){
$scope.closeThisDialog();
MessageService.showAlert("
更新成功
")
}
})
}
}]
});
}
});
});
\ No newline at end of file
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