Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
e428a585
Commit
e428a585
authored
Dec 08, 2021
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件名称
parent
e6bda127
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
3 deletions
+75
-3
src/views/AllPersonnelBase/modules/dcfptxAj.vue
+38
-2
src/views/AllPersonnelBase/modules/dcftpx.vue
+37
-1
No files found.
src/views/AllPersonnelBase/modules/dcfptxAj.vue
View file @
e428a585
...
...
@@ -179,7 +179,7 @@ export default {
let
reqParam
=
{
barcode
:
''
,
//条码号
seqNo
:
''
,
// 指纹序号
seqNo
:
[]
,
// 指纹序号
imageType
:
''
,
// 数据类型(原图)
baseMsg
:
null
,
// 基本信息 1导出 0不导出
isFeatures
:
null
// 导出特征 1导出 0不导出
...
...
@@ -201,7 +201,8 @@ export default {
this
.
$message
.
error
(
response
.
data
.
message
);
}
else
{
var
elink
=
document
.
createElement
(
'a'
);
elink
.
download
=
"案件.zip"
;
let
wjmc
=
this
.
getFileName
();
elink
.
download
=
`
${
wjmc
}
.zip`
;
elink
.
style
.
display
=
'none'
;
var
blob
=
new
Blob
([
response
.
data
],
{
type
:
'application/vnd.ms-excel'
});
elink
.
href
=
URL
.
createObjectURL
(
blob
);
...
...
@@ -270,6 +271,41 @@ export default {
// document.body.removeChild(eleLink)
// this.dialogVisible = false;
},
getFileName
()
{
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
//年 ,从 Date 对象以四位数字返回年份
var
month
=
date
.
getMonth
()
+
1
;
//月 ,从 Date 对象返回月份 (0 ~ 11) ,date.getMonth()比实际月份少 1 个月
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var
hours
=
date
.
getHours
();
//小时 ,返回 Date 对象的小时 (0 ~ 23)
var
minutes
=
date
.
getMinutes
();
//分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var
seconds
=
date
.
getSeconds
();
//秒 ,返回 Date 对象的秒数 (0 ~ 59)
//获取当前系统时间
// var currentDate = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
// alert(currentDate);
//修改月份格式
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"0"
+
month
;
}
//修改日期格式
if
(
day
>=
0
&&
day
<=
9
)
{
day
=
"0"
+
day
;
}
//修改小时格式
if
(
hours
>=
0
&&
hours
<=
9
)
{
hours
=
"0"
+
hours
;
}
//修改分钟格式
if
(
minutes
>=
0
&&
minutes
<=
9
)
{
minutes
=
"0"
+
minutes
;
}
//修改秒格式
if
(
seconds
>=
0
&&
seconds
<=
9
)
{
seconds
=
"0"
+
seconds
;
}
//获取当前系统时间 格式(yyyy-mm-dd hh:mm:ss)
var
currentFormatDate
=
year
+
""
+
month
+
""
+
day
+
""
+
hours
+
""
+
minutes
+
""
+
seconds
;
return
currentFormatDate
;
},
// 发查询指位信息
getHpseqno
()
{
let
reqParam
=
{
...
...
src/views/AllPersonnelBase/modules/dcftpx.vue
View file @
e428a585
...
...
@@ -643,7 +643,8 @@ export default {
this
.
$message
.
error
(
response
.
data
.
message
);
}
else
{
var
elink
=
document
.
createElement
(
'a'
);
elink
.
download
=
"人员.zip"
;
let
wjmc
=
this
.
getFileName
();
elink
.
download
=
`
${
wjmc
}
.zip`
;
elink
.
style
.
display
=
'none'
;
var
blob
=
new
Blob
([
response
.
data
],
{
type
:
'application/vnd.ms-excel'
});
elink
.
href
=
URL
.
createObjectURL
(
blob
);
...
...
@@ -709,6 +710,41 @@ export default {
// document.body.removeChild(eleLink)
// this.dialogVisible = false;
},
getFileName
()
{
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
//年 ,从 Date 对象以四位数字返回年份
var
month
=
date
.
getMonth
()
+
1
;
//月 ,从 Date 对象返回月份 (0 ~ 11) ,date.getMonth()比实际月份少 1 个月
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var
hours
=
date
.
getHours
();
//小时 ,返回 Date 对象的小时 (0 ~ 23)
var
minutes
=
date
.
getMinutes
();
//分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var
seconds
=
date
.
getSeconds
();
//秒 ,返回 Date 对象的秒数 (0 ~ 59)
//获取当前系统时间
// var currentDate = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
// alert(currentDate);
//修改月份格式
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"0"
+
month
;
}
//修改日期格式
if
(
day
>=
0
&&
day
<=
9
)
{
day
=
"0"
+
day
;
}
//修改小时格式
if
(
hours
>=
0
&&
hours
<=
9
)
{
hours
=
"0"
+
hours
;
}
//修改分钟格式
if
(
minutes
>=
0
&&
minutes
<=
9
)
{
minutes
=
"0"
+
minutes
;
}
//修改秒格式
if
(
seconds
>=
0
&&
seconds
<=
9
)
{
seconds
=
"0"
+
seconds
;
}
//获取当前系统时间 格式(yyyy-mm-dd hh:mm:ss)
var
currentFormatDate
=
year
+
""
+
month
+
""
+
day
+
""
+
hours
+
""
+
minutes
+
""
+
seconds
;
return
currentFormatDate
;
},
handleClose
(
done
)
{
this
.
dialogVisible
=
false
;
},
...
...
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