| | |
| | | |
| | | // 导入全局样式表 |
| | | import './styles/global.css' |
| | | import { getGlobalColor, headerCellStyle, cellStyle } from './utils/global.js' |
| | | |
| | | Vue.prototype.$getGlobalColor = getGlobalColor().globalColor // 设置全局颜色 |
| | | Vue.prototype.$headerCellStyle = headerCellStyle() // 设置全局表头样式 |
| | | Vue.prototype.$cellStyle = cellStyle() // 设置全局表体样式 |
| | | |
| | | Vue.prototype.$chanjetBaseUrl = 'https://openapi.chanjet.com' |
| | | Vue.prototype.$AppKey = 'Umm1gS5q' |
| | | Vue.prototype.$AppSecret = 'FFAD54C4FBF9AAF1AFA33BBF3DF52752' |
| | | |
| | | // import 'lib-flexible' // 阿里可伸缩布局方案 |
| | | // import 'lib-flexible-computer' |
| | | |
| | | import '../public/static/theme/index.css' /* icofont */ |
| | | |
| | | // 打印 |
| | | // import Print from 'vue-print-nb' |
| | | import Print from './components/Print/vue-print-nb' |
| | | |
| | | Vue.use(Print) |
| | | |
| | | // 水印 |
| | | import watermark from './utils/watermark.js' |
| | | |
| | | Vue.prototype.$watermark = watermark |
| | | |
| | | import clearTabIndex from './utils/clearTabIndex.js' // 删除el-tooltip tabindex |
| | | clearTabIndex.install(Vue) |
| | | |
| | | import vGanttChart from './lib/v-gantt-chart/index' |
| | | // 引用修改过的gantt |
| | | Vue.use(vGanttChart) |
| | | |
| | | import { setCookie } from '@/utils/auth' // 引用修改过的gantt |
| | | // 判断是否走原平台过来 |
| | | if (window.location.hash.indexOf('guid') !== -1) { |
| | | setCookie('cloud', true)// 走云平台 |
| | | |
| | | const url = window.location.hash.split('?')[1] |
| | | const arr = url.split('&') |
| | | setCookie('guid', arr[0].split('=')[1]) |
| | | setCookie('userid', arr[1].split('=')[1]) |
| | | setCookie('admin', arr[2].split('=')[1]) |
| | | setCookie('navTabId', arr[2].split('=')[1]) |
| | | setCookie('username', decodeURIComponent(arr[3].split('=')[1])) |
| | | setCookie('password', arr[4].split('=')[1]) |
| | | setCookie('usertype', arr[5].split('=')[1]) |
| | | setCookie('rediskey', arr[6].split('=')[1]) |
| | | } |
| | | |
| | | new Vue({ |
| | | el: '#app', |