import Vue from 'vue'
|
import App from './App.vue'
|
import router from "./router";
|
import store from './store'
|
require('@/utils/CustomUtil')
|
|
import ElementUI from "element-ui";
|
import vueEsign from 'vue-esign'
|
import "element-ui/lib/theme-chalk/index.css";
|
|
import "@/assets/theme.less";
|
import "@/assets/global.css";
|
import "@/assets/iconfont/iconfont.css"
|
|
import Ellipsis from '@/components/common/Ellipsis'
|
import flowDialog from '@/components/common/flowDialog.vue'
|
import Utils from '@/utils/utils.js'
|
|
Vue.use(ElementUI);
|
Vue.use(Ellipsis);
|
Vue.use(flowDialog);
|
|
Vue.use(vueEsign)
|
Vue.config.productionTip = false
|
Vue.prototype.$Utils = Utils
|
|
// http://dms.cloud.highdatas.com/
|
// 121.89.234.144
|
Vue.prototype.BASE_URL = 'http://' + (process.env.NODE_ENV === 'development-' ? "localhost" : "localhost");
|
|
Vue.prototype.$isNotEmpty = function(obj){
|
return (obj !== undefined && obj !== null && obj !== '' && obj !== 'null')
|
}
|
|
Vue.prototype.$getDefalut = function(obj, key, df){
|
return (obj === undefined || key === undefined || !this.$isNotEmpty(obj[key])) ? df : obj[key];
|
}
|
|
Vue.prototype.$deepCopy = function (obj){return JSON.parse(JSON.stringify(obj))}
|
|
new Vue({
|
router,
|
store,
|
render: h => h(App),
|
}).$mount('#app')
|