| | |
| | | assetsSubDirectory: 'static', // 编译输出的二级目录 |
| | | assetsPublicPath: '/', // 编译发布的根目录,可配置为资源服务器域名或 CDN 域名 |
| | | proxyTable: { |
| | | '/api': { |
| | | target: '', |
| | | '/': { |
| | | target: 'http://127.0.0.1:10000', |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/api': '' |
| | |
| | | }, |
| | | |
| | | // Various Dev Server settings |
| | | host: '0.0.0.0', // can be overwritten by process.env.HOST |
| | | host: 'localhost', // can be overwritten by process.env.HOST |
| | | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
| | | autoOpenBrowser: false, |
| | | errorOverlay: true, |
New file |
| | |
| | | import { getRequest, postRequest } from "../libs/axios"; |
| | | |
| | | //主机 |
| | | export const getHost = params => { |
| | | return getRequest('/getHost', params); |
| | | } |
| | | |
| | | //数通设备 |
| | | export const getSnmp = params => { |
| | | return getRequest('/getSnmp', params); |
| | | } |
| | | |
| | | //巡检任务 |
| | | export const getTask = params => { |
| | | return getRequest('/getTask', params); |
| | | } |
| | | |
| | | //巡检任务详情 |
| | | export const getTaskInfoById = params => { |
| | | return getRequest('/getTaskInfoById', params); |
| | | } |
| | | |
| | | //UPS |
| | | export const getUps = params => { |
| | | return getRequest('/getUps', params); |
| | | } |
| | | |
| | | //空调 |
| | | export const getKongtiao = params => { |
| | | return getRequest('/getKongtiao', params); |
| | | } |
| | | |
| | | //右边异常日志 |
| | | export const getWarn = params => { |
| | | return getRequest('/getWarn', params); |
| | | } |
| | | |
| | |
| | | |
| | | <script> |
| | | import {animateShanFlash} from '@/utils/animateShanFlash' |
| | | import {getHost,getSnmp,getTask,getTaskInfoById,getUps,getKongtiao} from '@/api/daping' |
| | | import countTo from "vue-count-to" |
| | | export default { |
| | | name: "IndexMoudleBlock", |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | getHost(){ |
| | | getHost().then(res =>{ |
| | | res.data; |
| | | }) |
| | | }, |
| | | start() { |
| | | this.$refs.countTo.start(); |
| | | }, |
| | |
| | | |
| | | <script> |
| | | import {animateShanFlash} from '@/utils/animateShanFlash' |
| | | import {getWarn} from '@/api/daping' |
| | | export default { |
| | | name: "TimesLogs", |
| | | data() { |
| | |
| | | this.loading() |
| | | }, |
| | | methods: { |
| | | getWarn(){ |
| | | getWarn().then(res => { |
| | | res.data; |
| | | }) |
| | | }, |
| | | loading() { |
| | | const tl = this.gsap.timeline({defaults: {duration: 0.8}}) |
| | | animateShanFlash('.zhuangshi span',{ |