Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1730532197@qq.com
2021-12-07 17:49:11 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
f8246f65ae9d8d2d41a9e0ce7e5593dfc856d459
f8246f65
2 parents
c14b33db
ccda7d08
Merge branch 'master' of
http://118.178.128.178/Fedex/imac-vue
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
src/router/index.js
src/views/allocationConfig/flightAllocConfig/index.vue
src/router/index.js
View file @
f8246f6
...
...
@@ -89,14 +89,14 @@ export const constantRoutes = [
{
path
:
'/flightAllocConfig/:handle/:id'
,
component
:
(
resolve
)
=>
require
([
'@/views/allocationConfig/flightAllocConfig/info'
],
resolve
),
name
:
'Info'
,
meta
:
{
title
:
'航班配舱'
,
icon
:
'user'
}
name
:
'
flightAllocConfig
Info'
,
meta
:
{
title
:
'航班配舱'
,
icon
:
'user'
,
breadcrumb
:
true
}
},
{
path
:
'/flightAllocConfig/:handle'
,
component
:
(
resolve
)
=>
require
([
'@/views/allocationConfig/flightAllocConfig/info'
],
resolve
),
name
:
'Add'
,
meta
:
{
title
:
'添加航班配舱'
,
icon
:
'user'
}
name
:
'
flightAllocConfig
Add'
,
meta
:
{
title
:
'添加航班配舱'
,
icon
:
'user'
,
breadcrumb
:
false
}
}
]
}
...
...
@@ -106,4 +106,4 @@ export default new Router({
mode
:
'history'
,
// 去掉url中的#
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRoutes
})
})
\ No newline at end of file
...
...
src/views/allocationConfig/flightAllocConfig/index.vue
View file @
f8246f6
...
...
@@ -34,7 +34,7 @@
type="primary"
icon="el-icon-plus"
size="mini"
@click="$router.push({ name: 'Add', params: { handle: 'add' } })"
@click="$router.push({ name: '
flightAllocConfig
Add', params: { handle: 'add' } })"
>添加</el-button
>
<el-table :data="flyList" v-loading="loading" size="small">
...
...
@@ -171,7 +171,7 @@ export default {
//跳转到查看,修改页面
handleClick(flightiId, handle) {
this.$router.push({
name: "Info",
name: "
flightAllocConfig
Info",
params: { handle: handle, id: flightiId },
});
},
...
...
@@ -228,20 +228,24 @@ export default {
this.getList();
},
filters: {
formatTimer: function (value) {
let date = new Date(value);
let y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? "0" + MM : MM;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
let h = date.getHours();
h = h < 10 ? "0" + h : h;
let m = date.getMinutes();
m = m < 10 ? "0" + m : m;
let s = date.getSeconds();
s = s < 10 ? "0" + s : s;
return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s;
formatTimer: function (time) {
let time1 = new Date(time.replace(/-/g, '/').replace('T', ' ')).toISOString() // 转为国际标准化时间
return time1.split('T')[0] + " " + time1.split('T')[1].substring(0,8);
// let date = new Date(value);
// let y = date.getFullYear();
// let MM = date.getMonth() + 1;
// MM = MM < 10 ? "0" + MM : MM;
// let d = date.getDate();
// d = d < 10 ? "0" + d : d;
// let h = date.getHours();
// h = h < 10 ? "0" + h : h;
// let m = date.getMinutes();
// m = m < 10 ? "0" + m : m;
// let s = date.getSeconds();
// s = s < 10 ? "0" + s : s;
// return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s;
},
},
};
...
...
Please
register
or
login
to post a comment