From 73e0b3791990bd60c06c2c0388aae9f9faf538a6 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 25 三月 2026 09:16:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/show-demo' into show_demo
---
src/views/dataAnalysis/components/CustTypeConfig.vue | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/src/views/dataAnalysis/components/CustTypeConfig.vue b/src/views/dataAnalysis/components/CustTypeConfig.vue
index ddca895..3b12660 100644
--- a/src/views/dataAnalysis/components/CustTypeConfig.vue
+++ b/src/views/dataAnalysis/components/CustTypeConfig.vue
@@ -46,6 +46,9 @@
<script>
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, getAction } from '@tievd/cube-block/lib/api/manage'
+import Vue from 'vue'
export default {
name: 'ActivityList',
@@ -123,6 +126,35 @@
},
methods: {
+ modalFormOk() {
+ 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) {
+ // 鍒犻櫎鍓嶆竻闄ゅ墠绔瓧鍏哥紦瀛�
+ // 鍒犻櫎鍚庡埛鏂伴〉闈互鏇存柊瀛楀吀缂撳瓨
+ deleteAction(this.url.delete, { id: id })
+ .then((res) => {
+ if (res.success) {
+ this.$message.success(res.message)
+ this.loadData()
+ this.refreshDictCache()
+ } else {
+ this.$message.warning(res.message)
+ }
+ })
+ .finally(() => {
+ this.loading = false
+ })
+ },
transformConfigText(obj) {
var text = ''
if (obj.timeStr == '1,YEARS') {
--
Gitblit v1.8.0