You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.3 KiB
69 lines
2.3 KiB
4 years ago
|
import Vue from 'vue';
|
||
|
import App from './App.vue';
|
||
|
import router from './router';
|
||
|
import ElementUI from 'element-ui';
|
||
|
import VueI18n from 'vue-i18n';
|
||
|
import { messages } from './components/common/i18n';
|
||
|
// import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
|
||
|
import './assets/css/theme-green/index.css'; // 浅绿色主题
|
||
|
import './assets/css/icon.css';
|
||
|
import './assets/icon/iconfont.css';
|
||
|
import './components/common/directives';
|
||
|
import 'babel-polyfill';
|
||
|
import './util/rem';
|
||
|
import {post,get,del,put,getToken} from './utils/http';
|
||
|
import api from './utils/api';
|
||
|
import store from './store'
|
||
|
import config from '@/config'
|
||
|
import permission from '@/router/permission';
|
||
|
import { systemStatus, systemTypeStatus, systemAttributionStatus, courseTypeStatus,
|
||
|
hoursStatus, roleStatus, orderTypeFn, orderStatusFn, orderNatureFn, Percentage, removeByValue, formatDate, formateTime, orderRoleType, orderRoleAttribute, setCookie, encodeString,logout } from './utils/core';
|
||
|
import preventReClick from './store/preventReClick' //防多次点击,重复提交
|
||
|
|
||
|
// 插件
|
||
|
import plugins from '@/libs';
|
||
|
|
||
|
Vue.use(plugins);
|
||
|
|
||
|
Vue.prototype.api = api;
|
||
|
Vue.prototype.$get = get;
|
||
|
Vue.prototype.$post = post;
|
||
|
Vue.prototype.$del = del;
|
||
|
Vue.prototype.$put = put;
|
||
|
Vue.prototype.getToken = getToken;
|
||
|
Vue.prototype.$config = config
|
||
|
|
||
|
Vue.prototype.systemStatus = systemStatus;
|
||
|
Vue.prototype.systemTypeStatus = systemTypeStatus;
|
||
|
Vue.prototype.systemAttributionStatus = systemAttributionStatus;
|
||
|
Vue.prototype.courseTypeStatus = courseTypeStatus;
|
||
|
Vue.prototype.hoursStatus = hoursStatus;
|
||
|
Vue.prototype.roleStatus = roleStatus;
|
||
|
Vue.prototype.orderTypeFn = orderTypeFn;
|
||
|
Vue.prototype.orderStatusFn = orderStatusFn;
|
||
|
Vue.prototype.orderNatureFn = orderNatureFn;
|
||
|
Vue.prototype.Percentage = Percentage;
|
||
|
Vue.prototype.removeByValue = removeByValue;
|
||
|
Vue.prototype.formatDate = formatDate;
|
||
|
Vue.prototype.orderRoleType = orderRoleType;
|
||
|
Vue.prototype.orderRoleAttribute = orderRoleAttribute;
|
||
|
Vue.prototype.formateTime = formateTime;
|
||
|
Vue.prototype.setCookie = setCookie;
|
||
|
Vue.prototype.encodeString = encodeString;
|
||
|
Vue.prototype.logout = logout;
|
||
|
|
||
|
Vue.config.productionTip = false;
|
||
|
Vue.use(VueI18n);
|
||
|
Vue.use(ElementUI);
|
||
|
const i18n = new VueI18n({
|
||
|
locale: 'zh',
|
||
|
messages
|
||
|
});
|
||
|
|
||
|
new Vue({
|
||
|
router,
|
||
|
store,
|
||
|
i18n,
|
||
|
render: h => h(App)
|
||
|
}).$mount('#app');
|