|
@@ -2,7 +2,8 @@
|
|
|
<div>
|
|
|
<table v-show="false">
|
|
|
<tr>
|
|
|
- <td colspan="22">达州钢铁每日船舶动态明细表</td>
|
|
|
+ <td colspan="18">达州钢铁每日船舶动态明细表</td>
|
|
|
+ <td colspan="4">{{deadline}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
@@ -331,7 +332,8 @@ export default {
|
|
|
runStockStringArr: [],
|
|
|
spanArr: [],
|
|
|
loadTable: [],
|
|
|
- controlLinesTable: []
|
|
|
+ controlLinesTable: [],
|
|
|
+ deadline:null
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -340,8 +342,19 @@ export default {
|
|
|
this.getRunStockList()
|
|
|
this.searchLoadData()
|
|
|
this.getControlLines()
|
|
|
+ this.initialDate()
|
|
|
},
|
|
|
methods: {
|
|
|
+ initialDate(){
|
|
|
+ let now=new Date();
|
|
|
+ this.deadline=now.getFullYear()+'年'+(now.getMonth()+1)+'月'+now.getDate()+'日';
|
|
|
+ if(now.getHours()>=8&&now.getHours()<18){
|
|
|
+ this.deadline+='(数据截止于8:00)';
|
|
|
+ }else{
|
|
|
+ this.deadline+='(数据截止于18:00)';
|
|
|
+ }
|
|
|
+ console.log("deadline:",this.deadline);
|
|
|
+ },
|
|
|
getStockString() {
|
|
|
let that = this
|
|
|
this.axios
|