Merge branch 'master' of http://118.178.128.178/Fedex/imac-vue
Showing
2 changed files
with
25 additions
and
21 deletions
| ... | @@ -89,14 +89,14 @@ export const constantRoutes = [ | ... | @@ -89,14 +89,14 @@ export const constantRoutes = [ |
| 89 | { | 89 | { |
| 90 | path: '/flightAllocConfig/:handle/:id', | 90 | path: '/flightAllocConfig/:handle/:id', |
| 91 | component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve), | 91 | component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve), |
| 92 | - name: 'Info', | 92 | + name: 'flightAllocConfigInfo', |
| 93 | - meta: { title: '航班配舱', icon: 'user' } | 93 | + meta: { title: '航班配舱', icon: 'user', breadcrumb: true } |
| 94 | }, | 94 | }, |
| 95 | { | 95 | { |
| 96 | path: '/flightAllocConfig/:handle', | 96 | path: '/flightAllocConfig/:handle', |
| 97 | component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve), | 97 | component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve), |
| 98 | - name: 'Add', | 98 | + name: 'flightAllocConfigAdd', |
| 99 | - meta: { title: '添加航班配舱', icon: 'user' } | 99 | + meta: { title: '添加航班配舱', icon: 'user', breadcrumb: false } |
| 100 | } | 100 | } |
| 101 | ] | 101 | ] |
| 102 | } | 102 | } |
| ... | @@ -106,4 +106,4 @@ export default new Router({ | ... | @@ -106,4 +106,4 @@ export default new Router({ |
| 106 | mode: 'history', // 去掉url中的# | 106 | mode: 'history', // 去掉url中的# |
| 107 | scrollBehavior: () => ({ y: 0 }), | 107 | scrollBehavior: () => ({ y: 0 }), |
| 108 | routes: constantRoutes | 108 | routes: constantRoutes |
| 109 | -}) | 109 | +}) |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
| 34 | type="primary" | 34 | type="primary" |
| 35 | icon="el-icon-plus" | 35 | icon="el-icon-plus" |
| 36 | size="mini" | 36 | size="mini" |
| 37 | - @click="$router.push({ name: 'Add', params: { handle: 'add' } })" | 37 | + @click="$router.push({ name: 'flightAllocConfigAdd', params: { handle: 'add' } })" |
| 38 | >添加</el-button | 38 | >添加</el-button |
| 39 | > | 39 | > |
| 40 | <el-table :data="flyList" v-loading="loading" size="small"> | 40 | <el-table :data="flyList" v-loading="loading" size="small"> |
| ... | @@ -171,7 +171,7 @@ export default { | ... | @@ -171,7 +171,7 @@ export default { |
| 171 | //跳转到查看,修改页面 | 171 | //跳转到查看,修改页面 |
| 172 | handleClick(flightiId, handle) { | 172 | handleClick(flightiId, handle) { |
| 173 | this.$router.push({ | 173 | this.$router.push({ |
| 174 | - name: "Info", | 174 | + name: "flightAllocConfigInfo", |
| 175 | params: { handle: handle, id: flightiId }, | 175 | params: { handle: handle, id: flightiId }, |
| 176 | }); | 176 | }); |
| 177 | }, | 177 | }, |
| ... | @@ -228,20 +228,24 @@ export default { | ... | @@ -228,20 +228,24 @@ export default { |
| 228 | this.getList(); | 228 | this.getList(); |
| 229 | }, | 229 | }, |
| 230 | filters: { | 230 | filters: { |
| 231 | - formatTimer: function (value) { | 231 | + formatTimer: function (time) { |
| 232 | - let date = new Date(value); | 232 | + |
| 233 | - let y = date.getFullYear(); | 233 | + let time1 = new Date(time.replace(/-/g, '/').replace('T', ' ')).toISOString() // 转为国际标准化时间 |
| 234 | - let MM = date.getMonth() + 1; | 234 | + |
| 235 | - MM = MM < 10 ? "0" + MM : MM; | 235 | + return time1.split('T')[0] + " " + time1.split('T')[1].substring(0,8); |
| 236 | - let d = date.getDate(); | 236 | + // let date = new Date(value); |
| 237 | - d = d < 10 ? "0" + d : d; | 237 | + // let y = date.getFullYear(); |
| 238 | - let h = date.getHours(); | 238 | + // let MM = date.getMonth() + 1; |
| 239 | - h = h < 10 ? "0" + h : h; | 239 | + // MM = MM < 10 ? "0" + MM : MM; |
| 240 | - let m = date.getMinutes(); | 240 | + // let d = date.getDate(); |
| 241 | - m = m < 10 ? "0" + m : m; | 241 | + // d = d < 10 ? "0" + d : d; |
| 242 | - let s = date.getSeconds(); | 242 | + // let h = date.getHours(); |
| 243 | - s = s < 10 ? "0" + s : s; | 243 | + // h = h < 10 ? "0" + h : h; |
| 244 | - return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s; | 244 | + // let m = date.getMinutes(); |
| 245 | + // m = m < 10 ? "0" + m : m; | ||
| 246 | + // let s = date.getSeconds(); | ||
| 247 | + // s = s < 10 ? "0" + s : s; | ||
| 248 | + // return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s; | ||
| 245 | }, | 249 | }, |
| 246 | }, | 250 | }, |
| 247 | }; | 251 | }; | ... | ... |
-
Please register or login to post a comment