Giter VIP home page Giter VIP logo

ioftv-screen's Introduction

1、项目描述

根据奔跑吧面条的**vue-big-screen**开源框架基础上进行修改。

  • 项目需要全屏展示(按 F11)。

  • 项目部分区域使用了全局注册方式,增加了打包体积,在实际运用中请使用 按需引入

  • 项目环境:Vue-cli、DataV、Echarts、Webpack、Npm、Node,axios,mock。

  • 请拉取 master 分支的代码,其余分支是开发分支。

  • 在项目public目录下存放地图数据合集,根据地市编存放。

友情链接:

  1. Vue 官方文档
  2. DataV 官方文档
  3. echarts 实例echarts API 文档
  4. mock.js官网
  5. axios官网

项目展示

项目展示

1.1项目预览地址

https://www.daidaibg.com/bigscreen

1.2项目仓库地址

github地址

https://github.com/daidaibg/IofTV-Screen

Gitee地址

https://gitee.com/daidaibg/IofTV-Screen

1.3滚动设置,自适应设置

项目中可以进行滚动配置,内容是否滚动

点击右上角设置按钮 设置

可以进行以下配置,可以自行代码中进行修改或增加配置

在这里插入图片描述

2、主要文件介绍

文件 作用/功能
main.js 主目录文件,引入 Echart/DataV 等文件
utils 工具函数与 mixins 函数等
views/ home.vue 项目主结构
views/其余文件 界面各个区域组件(按照位置来命名)
assets 静态资源目录,放置 logo 与背景图片
assets / css/ 通用 CSS 文件,全局项目快捷样式调节
components/echart 所有 echart 图表(按照位置来命名)
common/... 全局封装的 ECharts 和 flexible 插件代码(适配屏幕尺寸,可定制化修改)
api/api.js 接口封装文件
mock 模拟数据接口地址

3、使用介绍

安装

npm install   

node-sass 安装慢或失败问题

移除node-sass 更换成sass 兼容node版本性高。 请拉取主分支最新版本。

启动

npm start 

接下来跟面条的差不多还是看面条的文档吧

https://gitee.com/MTrun/big-screen-vue-datav/tree/master#%E4%B8%89%E4%BD%BF%E7%94%A8%E4%BB%8B%E7%BB%8D

4、公用组件

封装了除面条外个别用到的组件

4.1 message消息提示

因为刚开始没想着用第三方提示库,自己简单封装了一个。

注:组件内部目前只有warning,类型,如果需要其他类型自己组件内添加。

因在main.js注册全局可以直接使用,不需要引入

  this.$Message({
      text: res.msg,
      type: 'warning'
  })
//也可以这样
this.$Message.warning(res.msg)
参数 描述 默认值 类型 可选值
text 提示文字 - string -
type 弹窗类型 warning string warning

4.2 外边框

因为我的项目外边框几乎一样,还有title,所以封装了此组件。

根据自己需求更改,更换外边框(src\components\item-wrap\item-wrap.vue)下更换。

<ItemWrap
    title="我是title"
    >
       <div>我是谁?</div>
</ItemWrap>
参数 描述 默认值 类型 可选值
title 标头 - string -

5、全局参数

5.1filter

监测数据项统一过滤,保留两位小数。

{{10.23123|montionFilter }}

6、大屏交流反馈(面条的群)

大屏QQ群

QQ群号:713105837

大屏二维码

QQ群二维码:

输入图片说明

7、个人开源博客(有需求可以关注)

7.1、预览地址

搞bug

https://www.gaobug.com

7.2 仓库地址

gitee

https://gitee.com/daidaibg/blog-cloud

github

https://github.com/daidaibg/gaobug

博客交流群

搞bug 反馈交流群

464449906

ioftv-screen's People

Contributors

daidaibg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.