You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.1 KiB

2 years ago
<template>
<div class="container">
<h1 class="title">苏州河道处调度指令看板</h1>
<div class="bottom">
<div>{{ $moment(time).format('YYYY-MM-DD HH:mm:ss') }}</div>
<div>
<div v-if="tomorrows && tomorrows.length > 0" style="cursor:pointer;" @click="$refs['tomorrow'].show()">明日调令 <i class="el-icon-d-arrow-right"></i></div>
<div style="cursor:pointer;" @click="$emit('show-done')"> <i class="el-icon-d-arrow-right"></i></div>
</div>
2 years ago
</div>
<tomorrow ref="tomorrow" :tomorrows="tomorrows" @step-click="e => $emit('step-click', e)"></tomorrow>
2 years ago
</div>
</template>
<script>
import tomorrow from "./tomorrow.vue";
import { index } from "@/api/system/baseForm";
2 years ago
export default {
components: {
tomorrow
},
2 years ago
inject: ['nowTime'],
data() {
return {
tomorrows: []
2 years ago
}
},
methods: {
async getTomorrow () {
this.tomorrows = (
await index({
table_name: "transfers",
page: 1,
page_size: 9999,
sort_name: "start_time",
sort_type: "asc",
filter: [
{
key: 'start_time',
op: 'range',
value: `${this.$moment().add(1,'day').startOf('days').format('YYYY-MM-DD HH:mm:ss')},${this.$moment().add(1,'days').endOf('days').format('YYYY-MM-DD HH:mm:ss')}`
},
{
key: "status",
op: "eq",
value: 2
}
]
},false)
).data;
}
2 years ago
},
computed: {
time () {
return this.nowTime()
}
},
mounted() {
},
created() {
this.getTomorrow()
2 years ago
},
destroyed() {
}
}
</script>
<style scoped lang="scss">
.container {
position: relative;
.title {
font-size: 2.8rem;
line-height: 2.67rem;
text-align: center;
font-weight: 400;
color: #FFFFFF;
2 years ago
padding: 2.87rem 0 0 0;
2 years ago
}
.bottom {
display: flex;
align-items: center;
2 years ago
justify-content: space-between;
font-weight: 400;
color: #FBFBFF;
height: 2.92rem;
2 years ago
font-size: 1.2rem;
padding: 0 5.73rem;
}
}
2 years ago
$title-height: 8.46rem;
2 years ago
</style>