From 05c7478c26954ee6031f98fce6c8c9901abb98a0 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期二, 24 三月 2026 14:10:52 +0800
Subject: [PATCH] 调整

---
 src/views/dataAnalysis/components/CustTypeConfig.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/views/dataAnalysis/components/CustTypeConfig.vue b/src/views/dataAnalysis/components/CustTypeConfig.vue
index 332e2e2..3b12660 100644
--- a/src/views/dataAnalysis/components/CustTypeConfig.vue
+++ b/src/views/dataAnalysis/components/CustTypeConfig.vue
@@ -47,7 +47,7 @@
 import CustTypeModal from './CustTypeModal'
 import { JeecgListMixin } from '@tievd/cube-block/lib/mixins/JeecgListMixin'
 import { UI_CACHE_DB_DICT_DATA } from '@tievd/cube-block/lib/store/mutation-types'
-import { deleteAction } from '@tievd/cube-block/lib/api/manage'
+import { deleteAction, getAction } from '@tievd/cube-block/lib/api/manage'
 import Vue from 'vue'
 
 export default {
@@ -127,8 +127,16 @@
 
   methods: {
     modalFormOk() {
-      // 娣诲姞/缂栬緫鎴愬姛鍚庡埛鏂伴〉闈互鏇存柊瀛楀吀缂撳瓨
-      window.location.reload()
+      this.loadData()
+      this.refreshDictCache()
+    },
+    refreshDictCache() {
+      getAction('/sys/dict/queryAllDictItems').then((res) => {
+        if (res.success) {
+          Vue.ls.remove(UI_CACHE_DB_DICT_DATA)
+          Vue.ls.set(UI_CACHE_DB_DICT_DATA, res.result, 7 * 24 * 60 * 60 * 1000)
+        }
+      })
     },
     handleDelete(id) {
       // 鍒犻櫎鍓嶆竻闄ゅ墠绔瓧鍏哥紦瀛�
@@ -137,7 +145,8 @@
         .then((res) => {
           if (res.success) {
             this.$message.success(res.message)
-            window.location.reload()
+            this.loadData()
+            this.refreshDictCache()
           } else {
             this.$message.warning(res.message)
           }

--
Gitblit v1.8.0