From a93255e0a0334b51ecbaf3d8f496ad0fae1ed747 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 07 六月 2023 10:38:00 +0800
Subject: [PATCH] 1.生产入库有源单提交测试OK

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

diff --git a/src/main.js b/src/main.js
index a19df87..0754da0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -37,6 +37,55 @@
 
 // 瀵煎叆鍏ㄥ眬鏍峰紡琛�
 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',

--
Gitblit v1.9.3