From 06c8aa18a41393b564f48b42fe49db9fa761336c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期日, 23 四月 2023 13:19:21 +0800
Subject: [PATCH] 1.MES产品对接云平台

---
 src/main.js |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/src/main.js b/src/main.js
index a19df87..e52d375 100644
--- a/src/main.js
+++ b/src/main.js
@@ -37,6 +37,51 @@
 
 // 瀵煎叆鍏ㄥ眬鏍峰紡琛�
 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() // 璁剧疆鍏ㄥ眬琛ㄤ綋鏍峰紡
+
+// 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',

--
Gitblit v1.9.3