| | |
| | | import { getToken } from "@/utils/auth"; |
| | | import Element from 'element-ui' |
| | | import './assets/styles/element-variables.scss' |
| | | |
| | | import * as echarts from 'echarts' |
| | | import 'echarts-gl' |
| | | import '@/assets/styles/index.scss' // global css |
| | | import '@/assets/styles/ruoyi.scss' // ruoyi css |
| | | import App from './App' |
| | |
| | | import VueMeta from 'vue-meta' |
| | | // 字典数据组件 |
| | | import DictData from '@/components/DictData' |
| | | |
| | | import VueAnimateNumber from 'vue-animate-number' |
| | | // 大屏 |
| | | import VScaleScreen from 'v-scale-screen' |
| | | import dataV from '@jiaminghi/data-view' |
| | |
| | | Vue.prototype.download = download |
| | | Vue.prototype.handleTree = handleTree |
| | | Vue.prototype.getToken = getToken |
| | | Vue.prototype.$uploadUrl = process.env.VUE_APP_BASE_API + "/common/upload" |
| | | Vue.prototype.$img = process.env.VUE_APP_BASE_API |
| | | Vue.prototype.$echarts = echarts |
| | | |
| | | // 全局组件挂载 |
| | | Vue.component('DictTag', DictTag) |
| | |
| | | Vue.use(VueMeta) |
| | | Vue.use(VScaleScreen) |
| | | Vue.use(dataV) |
| | | Vue.use(VueAnimateNumber) |
| | | DictData.install() |
| | | |
| | | // websocket |
| | | Vue.prototype.$websocket = null; |
| | | |
| | | /** |
| | | * If you don't want to use mock-server |
| | |
| | | duration: 1, |
| | | ease: "power2.out", |
| | | onUpdate: () => { |
| | | el.innerText = formatNumber(target.count.toFixed(0)); |
| | | // el.innerText = formatNumber(target.count.toFixed(0)); |
| | | } |
| | | }) |
| | | |
| | |
| | | duration: 1, |
| | | ease: "power2.out", |
| | | onUpdate: () => { |
| | | el.innerText = formatNumber(target.count.toFixed(0)); |
| | | // el.innerText = formatNumber(target.count.toFixed(0)); |
| | | } |
| | | }) |
| | | } |