/*
|
* @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");
|