| | |
| | | </a> |
| | | </div> --> |
| | | </div> |
| | | <!-- <el-button @click="end">1231321</el-button> --> |
| | | <div class="header-info"> |
| | | <div class="h-link"> |
| | | <a href="javascript:void(0)" @click="to(item)" v-for="(item, index) in links.filter((c) => { |
| | |
| | | import { useRouter, useRoute } from "vue-router"; |
| | | import store from "../store/index"; |
| | | import http from "@/../src/api/http.js"; |
| | | import { ElNotification } from 'element-plus' |
| | | export default defineComponent({ |
| | | components: { |
| | | VolMenu, |
| | |
| | | setup(props, context) { |
| | | // è·åå
¨å±å±æ§åæ¹æ³ |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const MsgAction=()=>{ |
| | | ElNotification({ |
| | | title: ' æ 人å车å¼å¸¸', |
| | | message: closeNotice, |
| | | position: 'bottom-right', |
| | | type:'error', |
| | | duration: 0 |
| | | }) |
| | | }; |
| | | const closeNotice =true; |
| | | // èå导èªé»è®¤å®½åº¦ |
| | | const menuWidth = ref(200); |
| | | const contextMenuVisible = ref(false); |
| | |
| | | } |
| | | } |
| | | ); |
| | | |
| | | // const end=()=>{ |
| | | // MsgAction(); |
| | | // } |
| | | /** |
| | | * ç³»ç»å建å¼å§ |
| | | */ |
| | |
| | | closeTabsMenu, |
| | | closeTabs, |
| | | currentMenuId, |
| | | MsgAction, |
| | | // end |
| | | }; |
| | | }, |
| | | /** |
| | |
| | | $interval = setInterval(function () { |
| | | $indexDate.innerText = showTime(); |
| | | }, 1000); |
| | | |
| | | // this.$nextTick(x=>{ |
| | | // this.getConfigList(); |
| | | // }); |
| | | // setInterval(() => { |
| | | this.getConfigList(); |
| | | // }, 5000); |
| | | this.bindRightClickMenu(true); |
| | | }, |
| | | |
| | | methods: { |
| | | getConfigList(){ |
| | | http.post("/api/Task/GetConfig").then(x=>{ |
| | | console.log(x.status); |
| | | if(x.status==true){ |
| | | // this.MsgAction(); |
| | | const message = x.data; // å设æ¥å£è¿åçæ°æ®æ¯ä½ éè¦çéç¥æ¶æ¯ |
| | | ElNotification({ |
| | | title: ' æ 人å车å¼å¸¸', |
| | | message: message, |
| | | // position: 'bottom-right', |
| | | type:'error', |
| | | duration: 0 |
| | | }); |
| | | } |
| | | |
| | | // if(x.status){ |
| | | |
| | | // this.configs=[]; |
| | | // x.data.forEach(item => { |
| | | // for (let index = 0; index < item.layout.length; index++) { |
| | | // item.layout[index].status=JSON.parse(item.layout[index].status); |
| | | // } |
| | | // this.configs.push(item); |
| | | // }); |
| | | // } |
| | | // if(this.isGetConfig){ |
| | | // this.isGetConfig=false; |
| | | // this.timer=setInterval(()=>{ |
| | | // this.$nextTick(x=>{ |
| | | // this.getConfigList(); |
| | | // }); |
| | | // },3000) |
| | | // } |
| | | }).catch(error=>{ |
| | | console.log("åºé"+error); |
| | | }); |
| | | }, |
| | | /** |
| | | * ç»å®å³é®äºä»¶ |
| | | * @param {*} enable æ¯å¦å¯ç¨å³é®äºä»¶[true:å¯ç¨;false:ç¦ç¨;] |