From 3a9c0a33f8358cd81542994701436fbc99def3da Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 06 六月 2023 19:02:54 +0800
Subject: [PATCH] 1.生产入库调用畅捷通接口入库
---
src/main.js | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/main.js b/src/main.js
index 1ff9ba2..0754da0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -43,6 +43,10 @@
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'
@@ -51,12 +55,38 @@
// 鎵撳嵃
// 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',
router,
--
Gitblit v1.9.3