123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- import Vue from 'vue';
- import Cookies from 'js-cookie';
- import Element from 'element-ui';
- import './assets/styles/element-variables.scss';
- import '@/assets/styles/index.scss';
- import '@/assets/styles/ruoyi.scss';
- import '@/assets/styles/cust-global.scss';
- import App from './App';
- import store from './store';
- import router from './router';
- import permission from './directive/permission';
- import { download } from '@/utils/request';
- import './assets/icons';
- import './permission';
- import { getDicts } from "@/api/system/dict/data";
- import { getConfigKey } from "@/api/system/config";
- import { getToken } from "@/utils/auth";
- import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
- import { handleOpenLoading, handleCloseLoading, imgViewerOnerror } from "@/utils/rockeryutil";
- import Pagination from "@/components/Pagination";
- import RightToolbar from "@/components/RightToolbar";
- 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.prototype.getToken = getToken;
- Vue.prototype.baseApiUrl = process.env.VUE_APP_BASE_API;
- Vue.prototype.handleOpenLoading = handleOpenLoading;
- Vue.prototype.handleCloseLoading = handleCloseLoading;
- Vue.prototype.imgViewerOnerror = imgViewerOnerror;
- Vue.prototype.msgSuccess = function (msg) {
- this.$message({ showClose: true, message: msg, type: "success" });
- };
- Vue.prototype.msgWarning = function (msg) {
- this.$message({ showClose: true, message: msg, type: "warning" });
- };
- Vue.prototype.msgError = function (msg) {
- this.$message({ showClose: true, message: msg, type: "error" });
- };
- Vue.prototype.msgInfo = function (msg) {
- this.$message.info(msg);
- };
- Vue.component('Pagination', Pagination);
- Vue.component('RightToolbar', RightToolbar);
- Vue.use(permission);
- Vue.use(Element, {
- size: Cookies.get(process.env.VUE_APP_PROJECT_KEY + '-size') || 'medium'
- });
- Vue.config.productionTip = false;
- new Vue({
- el: '#app',
- router,
- store,
- render: h => h(App)
- });
|