kongdeqiang
2023-07-02 51c5992bdb5f7b8e988787fed7a883a18f71433e
第一次提交
3个文件已修改
1个文件已添加
55 ■■■■■ 已修改文件
config/index.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/daping.js 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/showIndex/IndexMoudleBlock.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/showIndex/TimesLogs.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/index.js
@@ -11,8 +11,8 @@
        assetsSubDirectory: 'static', // 编译输出的二级目录
        assetsPublicPath: '/', // 编译发布的根目录,可配置为资源服务器域名或 CDN 域名
        proxyTable: {
            '/api': {
                target: '',
            '/': {
                target: 'http://127.0.0.1:10000',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
@@ -21,7 +21,7 @@
        },
        // 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,
src/api/daping.js
New file
@@ -0,0 +1,37 @@
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);
}
src/pages/show/showIndex/IndexMoudleBlock.vue
@@ -550,6 +550,7 @@
<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",
@@ -571,6 +572,11 @@
        },
        methods: {
          getHost(){
            getHost().then(res =>{
              res.data;
            })
          },
            start() {
                this.$refs.countTo.start();
            },
src/pages/show/showIndex/TimesLogs.vue
@@ -113,6 +113,7 @@
<script>
    import {animateShanFlash} from '@/utils/animateShanFlash'
    import {getWarn} from '@/api/daping'
    export default {
        name: "TimesLogs",
        data() {
@@ -152,6 +153,11 @@
            this.loading()
        },
        methods: {
          getWarn(){
            getWarn().then(res => {
              res.data;
            })
          },
            loading() {
                const tl = this.gsap.timeline({defaults: {duration: 0.8}})
                animateShanFlash('.zhuangshi span',{