| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import Vue from 'vue';
- import App from './App.vue';
- import store from './store';
- import router from './router';
- import permission from './permission';
- import '@/assets/styles/index.css';
- import {
- parseTime,
- selectDictLabelu,
- selectDictLabel,
- selectDictLabels,
- CJ02BD,
- twoPointSum,
- parseTimeParagraph,
- Micrometer,
- weeklyTimeDivision,
- gcj02BD,
- verifyStoreType,
- } from '@/utils/index';
- import { toastLoading } from '@/utils/commonVant';
- import '@vant/touch-emulator';
- Vue.config.productionTip = false;
- import Vant from 'vant';
- import { Toast, Notify } from 'vant';
- import 'vant/lib/index.css';
- import ClipboardJS from 'clipboard';
- Vue.use(Vant);
- import ElTable from 'element-ui/lib/table';
- import 'element-ui/lib/theme-chalk/table.css';
- import 'element-ui/lib/theme-chalk/icon.css';
- import ElTableColumn from 'element-ui/lib/table-column';
- import ElPopover from 'element-ui/lib/popover';
- import 'element-ui/lib/theme-chalk/table-column.css';
- import 'element-ui/lib/theme-chalk/popover.css';
- import Vconsole from 'vconsole';
- // import wx from 'weixin-js-sdk';
- Vue.use(ElTable);
- Vue.use(ElTableColumn);
- Vue.use(ElPopover);
- Vue.config.productionTip = false;
- Vue.prototype.parseTime = parseTime;
- Vue.prototype.selectDictLabel = selectDictLabel;
- Vue.prototype.selectDictLabels = selectDictLabels;
- Vue.prototype.selectDictLabelu = selectDictLabelu;
- Vue.prototype.weeklyTimeDivision = weeklyTimeDivision;
- Vue.prototype.toastLoading = toastLoading;
- Vue.prototype.CJ02BD = CJ02BD;
- Vue.prototype.gcj02BD = gcj02BD;
- Vue.prototype.twoPointSum = twoPointSum;
- Vue.prototype.wx = wx;
- Vue.prototype.parseTimeParagraph = parseTimeParagraph;
- Vue.prototype.Micrometer = Micrometer;
- Vue.prototype.verifyStoreType = verifyStoreType;
- Vue.prototype.Toast = Toast;
- Vue.prototype.notify = Notify;
- var clipboard = new ClipboardJS('.btn');
- clipboard.on('success', function (e) {
- Toast('编码复制成功!');
- });
- clipboard.on('error', function (e) {
- Toast('编码复制失败!');
- });
- const isProd = process.env.NODE_ENV !== 'production';
- if (isProd) {
- const vConsole = new Vconsole();
- Vue.use(vConsole);
- }
- new Vue({
- router,
- store,
- render: (h) => h(App),
- }).$mount('#app');
|