From 5b41c8896ef7850be2672e45b69bb58e149729ec Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 01 十二月 2026 09:03:48 +0800
Subject: [PATCH] feat(货运统计): 完善台账核查与轨迹里程管理功能

---
 traffic-audit-web/src/views/RuleManage.vue |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/traffic-audit-web/src/views/RuleManage.vue b/traffic-audit-web/src/views/RuleManage.vue
index 260f61c..a1b108c 100644
--- a/traffic-audit-web/src/views/RuleManage.vue
+++ b/traffic-audit-web/src/views/RuleManage.vue
@@ -10,8 +10,14 @@
           <el-menu-item index="/explain">浼佷笟瑙i噴</el-menu-item>
           <el-menu-item index="/audit">瀹℃牳缁撴灉</el-menu-item>
           <el-menu-item index="/report">鎶ヨ〃鐢熸垚</el-menu-item>
+          <el-menu-item index="/ledger-audit">浜嬪悗鏍告煡</el-menu-item>
+          <el-submenu index="/special-stats">
+            <template slot="title">涓撻」缁熻</template>
+            <el-menu-item index="/holiday-stat">鑺傚亣鏃�</el-menu-item>
+          </el-submenu>
           <el-menu-item index="/rules">瑙勫垯绠$悊</el-menu-item>
           <el-menu-item index="/users">鐢ㄦ埛绠$悊</el-menu-item>
+          <el-menu-item v-if="operatorIsAdmin" index="/system-config">绯荤粺閰嶇疆</el-menu-item>
         </el-menu>
       </el-aside>
       <el-main>
@@ -78,7 +84,8 @@
   TREND_CONSISTENCY: '瓒嬪娍涓�鑷�', RATIO_CHANGE: '鍗犳瘮鍙樺寲', AVG_DIST_CHANGE: '骞冲潎杩愯窛鍙樺寲',
   PAX_PER_TRIP_CHANGE: '鍗曡溅娆¤浇瀹汉鏁板彉鍖�', LOADED_RATIO_DIFF: '杞借揣閲岀▼鍗犳瘮瀵规瘮',
   FUEL_RANGE: '鍗曡�楄秴鑼冨洿', FUEL_MOM: '鍗曡�楃幆姣�', FREIGHT_VS_H2032: '涓庤揣杩愭湀鎶ュ姣�',
-  AVG_DIST_VS_H2032: '骞冲潎杩愯窛瀵规瘮', LOADED_TON_RATIO: '杞借揣鍚ㄤ綅姣斿��'
+  AVG_DIST_VS_H2032: '骞冲潎杩愯窛瀵规瘮', LOADED_TON_RATIO: '杞借揣鍚ㄤ綅姣斿��',
+  EFFICIENCY_RATIO: '杩愯緭鏁堢巼姣斿��', VEHICLE_VS_ENT_AVG: '鍗曡溅涓庢湀鎶ユ瘡涓昏溅瀵规瘮', MILEAGE_VS_TRACK: '鍗曡溅琛岀▼涓庤建杩瑰姣�'
 }
 export default {
   components: { AppHeader },
@@ -103,7 +110,16 @@
     saveThreshold(row) {
       api.post('/rules/update', {
         id: row.id, threshold: row.threshold, alertLevel: row.alertLevel
-      }).then(() => { this.$message.success('宸蹭繚瀛橈細' + row.ruleCode) })
+      }).then(res => {
+        // 鍚庣浼氭寜鏂伴槇鍊煎悓姝ユ敼鍐欍�岃鍒欏悕绉�/璇存槑銆嶏紝鎶婃渶鏂板�煎洖濉埌褰撳墠琛岋紝鍚﹀垯鍒楄〃杩樻樉绀烘棫鏂囨
+        const r = res && res.data
+        if (r) {
+          row.ruleName = r.ruleName
+          row.description = r.description
+          row.threshold = r.threshold
+        }
+        this.$message.success('宸蹭繚瀛橈細' + row.ruleCode)
+      })
         .catch(e => { if (e && e._toast) return; this.$message.error('淇濆瓨澶辫触') })
     }
   },

--
Gitblit v1.9.1