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
// @ts-nocheck
import Vue from 'vue'
import App from './App.vue'
import router, { changeProjType } from './router'
import store from './store'
// import 'ant-design-vue/dist/antd.less'
import '../static/css/antd.css'
import '../static/antd/variable.less'
import '../static/css/common.less'
import './register'
import api from './api'
import { ToDoExcel } from "./views/utils/common";
import Moment from 'moment';
import './views/utils/directives/debounce'
import './views/utils/directives/throttle'
import './views/utils/directives/int'
import { message, modal } from 'ant-design-vue'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
const { confirm } = modal
Vue.prototype.$api = api
Vue.prototype.$message = message
Vue.prototype.$confirm = confirm
Vue.prototype.$defaultPageSize = 10
Vue.prototype.$defaultPageSizeOptions = ["10", "20", "50", "100"]
//导出Excel
Vue.prototype.$ToDoExcel = ToDoExcel;
// 系统配置
// 云南省卫生健康科技项目管理系统
Vue.prototype.$defaultLength = 5
Vue.prototype.$changeProjType = changeProjType
// 定义全局时间戳过滤器
Vue.filter('formatDate', function (value) {
return Moment(value).format('YYYY-MM-DD')
})
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')