hejianhao
2026-01-16 6a788cb2152becf6fdff8c693e2d9add5c5899fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import Vue from 'vue'
import App from './App.vue'
 
import './assets/common.less'
import './assets/tailwind.css'
import dataV from '@jiaminghi/data-view'
import router from './router'
import store from './store'
import moment from 'moment'
import animated from 'animate.css'
import 'vue2-animate/dist/vue2-animate.min.css';
import axios from './utils/request';
import 'echarts-gl';
import * as echarts from 'echarts';
import TitleBox from './components/titleBox.vue'
import CustomTable from './components/customTable.vue'
import CustomPagination from './components/customPagination.vue'
import CustomDialog from './components/customDialog.vue'
import CustomPreview from './components/customPreview.vue'
 
 
 
Vue.component('TitleBox', TitleBox)
Vue.component('CustomTable', CustomTable)
Vue.component('CustomPagination', CustomPagination)
Vue.component('CustomDialog', CustomDialog)
Vue.component('CustomPreview', CustomPreview)
 
Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts
Vue.prototype.$store = store
 
 
Vue.filter('formatNumber', (num) => {
  if (num && num >= 1000) {
    return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  } else {
    return num || 0
  }
})
 
// 这是年月日时分秒的格式 dateTime这个是自己定义的
Vue.filter('dateTime', function (dataStr, pattern = 'YYYY.MM.DD HH:mm:ss') {
  return moment(dataStr).format(pattern)
})
 
import ElementUI from 'element-ui';
 
Vue.use(ElementUI)
Vue.use(animated)
 
Vue.config.productionTip = false
 
Vue.use(dataV)
 
 
import './assets/font/font.css'
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')