Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
zhangdishen
xichonght
Commits
a0e3cd42
Commit
a0e3cd42
authored
Aug 01, 2019
by
qddidi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8-1
parent
7be473fe
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
373 additions
and
5 deletions
+373
-5
getlist.js
xichongSys/src/http/moudules/getlist.js
+9
-0
index.js
xichongSys/src/router/index.js
+6
-0
datetime.js
xichongSys/src/utils/datetime.js
+16
-5
allbaseInfo.vue
xichongSys/src/views/Myvue/allbaseInfo.vue
+342
-0
No files found.
xichongSys/src/http/moudules/getlist.js
View file @
a0e3cd42
...
...
@@ -123,3 +123,12 @@ export const seledysqdc = (data) => {
data
})
}
//覆盖人员查询
export
const
listAllBaseInfo
=
(
data
)
=>
{
return
axios
({
url
:
'/baseInfo/getAllBaseInfo'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
xichongSys/src/router/index.js
View file @
a0e3cd42
...
...
@@ -22,6 +22,7 @@ import drdysq from "@/views/Myvue/drdysq";
import
dryhkbg
from
"@/views/Myvue/dryhkbg"
;
import
drdcbg
from
"@/views/Myvue/drdcbg"
;
import
receivePersonnel
from
"@/views/Myvue/receivePersonnel"
;
import
AllbaseInfo
from
"@/views/Myvue/allbaseInfo"
Vue
.
use
(
Router
)
...
...
@@ -105,6 +106,11 @@ const router = new Router({
path
:
"/newsupdata"
,
name
:
"新闻发布"
,
component
:
Newsupdata
},
{
path
:
"/AllbaseInfo"
,
name
:
"覆盖人员"
,
component
:
AllbaseInfo
}
]
},
...
...
xichongSys/src/utils/datetime.js
View file @
a0e3cd42
...
...
@@ -11,8 +11,12 @@
export
function
format
(
datetime
)
{
return
formatWithSeperator
(
datetime
,
"-"
,
":"
);
}
export
function
formatDate
(
datetime
)
{
return
formatWithSeperator
(
datetime
,
"-"
);
}
/**
*
* 时间格式化
* 将 2018-09-23T11:54:16.000+0000 格式化成类似 2018/09/23 11:54:16
* 可以指定日期和时间分隔符
...
...
@@ -22,12 +26,19 @@ export function formatWithSeperator (datetime, dateSeprator, timeSeprator) {
if
(
datetime
!=
null
)
{
const
dateMat
=
new
Date
(
datetime
);
const
year
=
dateMat
.
getFullYear
();
const
month
=
dateMat
.
getMonth
()
+
1
;
const
day
=
dateMat
.
getDate
();
const
hh
=
dateMat
.
getHours
();
const
mm
=
dateMat
.
getMinutes
();
const
ss
=
dateMat
.
getSeconds
();
const
month
=
addZoo
(
dateMat
.
getMonth
()
+
1
);
const
day
=
addZoo
(
dateMat
.
getDate
());
const
hh
=
addZoo
(
dateMat
.
getHours
());
const
mm
=
addZoo
(
dateMat
.
getMinutes
());
const
ss
=
addZoo
(
dateMat
.
getSeconds
());
if
(
!
timeSeprator
){
return
year
+
dateSeprator
+
month
+
dateSeprator
+
day
;
}
const
timeFormat
=
year
+
dateSeprator
+
month
+
dateSeprator
+
day
+
" "
+
hh
+
timeSeprator
+
mm
+
timeSeprator
+
ss
;
return
timeFormat
;
}
}
function
addZoo
(
val
)
{
return
val
<
9
?
0
+
""
+
val
:
val
;
}
xichongSys/src/views/Myvue/allbaseInfo.vue
0 → 100644
View file @
a0e3cd42
This diff is collapsed.
Click to expand it.
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