lijinlong
许宏杰 2 years ago
parent f2b6622e33
commit a3b83c4330

@ -1,5 +1,5 @@
<template> <template>
<div class="pc"> <!-- <div class="pc"> -->
<div class="container"> <div class="container">
<div class="main-container"> <div class="main-container">
@ -52,7 +52,8 @@
z-index: 9999; z-index: 9999;
" "
@click="dialogDetails = !dialogDetails" @click="dialogDetails = !dialogDetails"
>切换</el-button> >切换</el-button
>
</div> </div>
<el-dialog <el-dialog
v-if="dialogDetails" v-if="dialogDetails"
@ -70,14 +71,14 @@
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</div> <!-- </div> -->
</template> </template>
<script> <script>
import commandControl from '@/views/privateOrder/sentiment/components/commandControl/index.vue' import commandControl from "@/views/privateOrder/sentiment/components/commandControl/index.vue";
export default { export default {
components: { components: {
commandControl commandControl,
}, },
data() { data() {
return { return {
@ -88,50 +89,50 @@ export default {
menus: [], menus: [],
// //
now: { now: {
date: '', date: "",
hour: '', hour: "",
minute: '', minute: "",
second: '' second: "",
}, },
// //
yearChange: [ yearChange: [
{ label: '近1月', rightLine: true }, { label: "近1月", rightLine: true },
{ label: '近3月', rightLine: true }, { label: "近3月", rightLine: true },
{ label: '近1年', rightLine: false } { label: "近1年", rightLine: false },
], ],
isActive: 0 isActive: 0,
} };
}, },
watch: {}, watch: {},
created() { created() {
this.menus = [ this.menus = [
{ id: 1, name: '网络安全', path: '/screen/security' }, { id: 1, name: "网络安全", path: "/screen/security" },
{ id: 2, name: '网络舆情', path: '/screen/sentiment' }, { id: 2, name: "网络舆情", path: "/screen/sentiment" },
{ id: 3, name: '网络管理', path: '/screen/ecosphere' }, { id: 3, name: "网络管理", path: "/screen/ecosphere" },
{ id: 4, name: '网络生态', path: '/screen/positiveEnergy' } { id: 4, name: "网络生态", path: "/screen/positiveEnergy" },
] ];
setInterval(() => { setInterval(() => {
this.now.date = this.$moment().format('YYYY-MM-DD') this.now.date = this.$moment().format("YYYY-MM-DD");
this.now.hour = this.$moment().format('HH') this.now.hour = this.$moment().format("HH");
this.now.minute = this.$moment().format('mm') this.now.minute = this.$moment().format("mm");
this.now.second = this.$moment().format('ss') this.now.second = this.$moment().format("ss");
}, 1000) }, 1000);
setInterval(() => { setInterval(() => {
this.getHoursWeather() this.getHoursWeather();
}, 1000 * 60 * 10) }, 1000 * 60 * 10);
}, },
methods: { methods: {
changeTime(val, index) { changeTime(val, index) {
this.isActive = index this.isActive = index;
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.pc{ .pc {
width: 100%; width: 100%;
height: $ScreenHeight; height: $ScreenHeight;
overflow: scroll; overflow: scroll;

Loading…
Cancel
Save