1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- 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 './assets/icons';
- import './permission';
- import { getDicts } from "@/api/system/dict/data";
- import { getConfigKey } from "@/api/system/config";
- import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi";
- 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.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)
- });
|