|
|
|
|
@ -96,8 +96,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getDynamicTableHeader, getDynamicTableList, getGlobeConfig, getDepList } from '@/api/publishApi';
|
|
|
|
|
import { getServerDateTime } from '@/api/publishApi';
|
|
|
|
|
import { getDynamicTableHeader, getDynamicTableList, getGlobeConfig, getDepList, getServerDateTime } from '@/api/publishApi';
|
|
|
|
|
import { Carousel, CarouselItem, Select, Option } from 'element-ui';
|
|
|
|
|
import { statusToTxt, textToColor } from '@/utils/common';
|
|
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
@ -319,11 +318,11 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 每秒更新一次当前时间
|
|
|
|
|
getServerDateTime().then(res => {
|
|
|
|
|
if (dayjs().utcOffset() == 480) {
|
|
|
|
|
this.serverTimeStamp = dayjs(res['Data']).valueOf()
|
|
|
|
|
} else {
|
|
|
|
|
this.serverTimeStamp = dayjs(res['Data']).valueOf() + 8 * 60 * 60 * 1000
|
|
|
|
|
}
|
|
|
|
|
// if (dayjs().utcOffset() == 480) {
|
|
|
|
|
this.serverTimeStamp = dayjs(res['Data']).valueOf()
|
|
|
|
|
// } else {
|
|
|
|
|
// this.serverTimeStamp = dayjs(res['Data']).valueOf() + 8 * 60 * 60 * 1000
|
|
|
|
|
// }
|
|
|
|
|
this.dateTimer = setInterval(() => {
|
|
|
|
|
this.currentDateTime = dayjs(this.serverTimeStamp).format(`YYYY-MM-DD HH:mm dddd`);
|
|
|
|
|
this.serverTimeStamp += 1000
|
|
|
|
|
|