1 Star 0 Fork 360

野风 / U_REPORT

forked from report / ReportPlus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
howcode 提交于 2021-03-08 09:56 . 初始化数据报表小程序
import Vue from 'vue'
import App from './App'
import store from './store'
import Common from './static/js/common.js'
import Config from './static/js/config.js'
Vue.prototype.$Common = Common
Vue.prototype.$Config = Config
Vue.prototype.$store = store
/*格式化颜色*/
Vue.filter('formatColor', (time, data, type) => {
if (type == "时间进度" || type == "系数进度") {
return Config.COLOR[3];
} else {
if (Number(data) >= 100) {
return Config.COLOR[2];
} else if (Number(data) <= Number(time)) {
return Config.COLOR[0];
} else {
return Config.COLOR[1];
}
}
})
const app = new Vue({
...App, store
})
app.$mount()
JavaScript
1
https://gitee.com/wild-wind/u_report.git
git@gitee.com:wild-wind/u_report.git
wild-wind
u_report
U_REPORT
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891