|
|
|
|
@ -97,6 +97,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getDynamicTableHeader, getDynamicTableList, getGlobeConfig, getDepList } from '@/api/publishApi';
|
|
|
|
|
import { getServerDateTime } from '@/api/publishApi';
|
|
|
|
|
import { Carousel, CarouselItem, Select, Option } from 'element-ui';
|
|
|
|
|
import { statusToTxt, textToColor } from '@/utils/common';
|
|
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
@ -127,6 +128,7 @@ export default {
|
|
|
|
|
stayTime: 30,
|
|
|
|
|
depList: [],
|
|
|
|
|
selectDepList: [],
|
|
|
|
|
serverTimeStamp: '',
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
@ -306,9 +308,13 @@ export default {
|
|
|
|
|
this.onGetDepList()
|
|
|
|
|
|
|
|
|
|
// 每秒更新一次当前时间
|
|
|
|
|
this.dateTimer = setInterval(() => {
|
|
|
|
|
this.currentDateTime = dayjs().format('YYYY-MM-DD HH:mm dddd');
|
|
|
|
|
}, 10000);
|
|
|
|
|
getServerDateTime().then(res => {
|
|
|
|
|
this.serverTimeStamp = dayjs(res['Data']).valueOf()
|
|
|
|
|
this.dateTimer = setInterval(() => {
|
|
|
|
|
this.currentDateTime = dayjs(this.serverTimeStamp).format(`YYYY-MM-DD HH:mm dddd`);
|
|
|
|
|
this.serverTimeStamp += 1000
|
|
|
|
|
}, 1000);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
getDynamicTableHeader({
|
|
|
|
|
query: 'SSPCDP',
|
|
|
|
|
|