2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
63
64
65
66
67
68
69
70
71
72
73
/*
 * @Description:
 * @Author: 王旭
 * @Date: 2022-03-01 15:33:01
 * @LastEditTime: 2023-07-17 15:01:05
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from 'axios'
//base css样式
import "./assets/css/global.css";
import "./assets/css/common.scss"
//elementui引入全局注册
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css"; import "ol/ol.css";
import * as echarts from 'echarts';
import { download } from '@/utils/request'
import dataV from '@jiaminghi/data-view'
import '@/components/commonComUse'
// 分页组件
import Pagination from "@/components/Pagination";
// 自定义表格工具组件
import RightToolbar from "@/components/RightToolbar"
// 字典标签组件
import DictTag from '@/components/DictTag'
 
//集成ry框架 START
import directive from './directive' // directive
import "./utils/directives";
import { getDicts } from "@/api/system/dict/data";
import plugins from './plugins' // plugins
import { getConfigKey } from "@/api/system/config";
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/cimformat";
import DictData from '@/components/DictData'
import '@/assets/css/font.css'
//集成ry框架 END
 
// 字典数据组件
 
//require('./mock');//使用mock会对cesium有致命影响
// 全局方法挂载
Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
 
// 全局组件挂载
Vue.component('DictTag', DictTag)
Vue.component('Pagination', Pagination)
Vue.component('RightToolbar', RightToolbar)
 
DictData.install()
Vue.use(plugins)
Vue.use(directive)
Vue.use(ElementUI);
Vue.use(dataV)
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$echarts = echarts;
Vue.prototype.$bus = new Vue()
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");