From 3bccdf9c8bca4cc868d3976e247a162746716bf0 Mon Sep 17 00:00:00 2001
From: zhizhijie <zhizhijie@users.noreply.gitee.com>
Date: 星期一, 28 九月 2026 15:07:31 +0800
Subject: [PATCH] fix(货运页): 当月无规上记录不再写 0(缺数留空);回补母版《班线包车》WPS 保存丢失的 2019/2020 块 420 格,并清 2021/2022 历史 0 值 78 格
---
traffic-audit-web/src/main.js | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/traffic-audit-web/src/main.js b/traffic-audit-web/src/main.js
index 6b77a3f..7937fbf 100644
--- a/traffic-audit-web/src/main.js
+++ b/traffic-audit-web/src/main.js
@@ -3,10 +3,33 @@
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
+import dialogDrag from './directives/dialogDrag'
Vue.use(ElementUI)
+Vue.directive('dialog-drag', dialogDrag) // 璁� el-dialog 鍙嫋鍔紙Element UI 2.x 鏃� draggable 灞炴�э級
Vue.config.productionTip = false
+// 鍏ㄥ眬鐧诲嚭锛氭竻闄ょ櫥褰曟�佸苟鍥炵櫥褰曢〉锛堝悇椤甸潰渚ц竟鏍忋�岄��鍑虹櫥褰曘�嶈彍鍗曞叡鐢級
+Vue.mixin({
+ methods: {
+ // el-menu 鍚岃矾鐢卞鑸紙NavigationDuplicated锛夋椂 Element UI 浼氭妸楂樹寒鍥炴粴涓虹偣鍑诲墠鏃у�硷紱
+ // 鐐瑰嚮鍚庡欢杩熶竴涓畯浠诲姟寮哄埗绾犳锛堝畯浠诲姟鏅氫簬 push 鐨勫井浠诲姟鍥炶皟锛屼繚璇佹渶缁堥珮浜纭級銆�
+ onMenuSelect(index) {
+ setTimeout(() => {
+ const menu = this.$refs.sideMenu
+ if (menu && menu.activeIndex !== index) menu.activeIndex = index
+ }, 0)
+ },
+ logout() {
+ sessionStorage.removeItem('token')
+ sessionStorage.removeItem('username')
+ sessionStorage.removeItem('realName')
+ sessionStorage.removeItem('modules')
+ this.$router.push('/login')
+ }
+ }
+})
+
new Vue({
router,
render: h => h(App)
--
Gitblit v1.9.1