peng
2026-03-24 e46f783a80c0111053b88e2814c78e1a8fc1290e
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 } from '@tievd/cube-block/lib/api/manage'
import Vue from 'vue'
export default {
  name: 'ActivityList',
@@ -123,6 +126,26 @@
  },
  methods: {
    modalFormOk() {
      // 添加/编辑成功后刷新页面以更新字典缓存
      window.location.reload()
    },
    handleDelete(id) {
      // 删除前清除前端字典缓存
      // 删除后刷新页面以更新字典缓存
      deleteAction(this.url.delete, { id: id })
        .then((res) => {
          if (res.success) {
            this.$message.success(res.message)
            window.location.reload()
          } else {
            this.$message.warning(res.message)
          }
        })
        .finally(() => {
          this.loading = false
        })
    },
    transformConfigText(obj) {
      var text = ''
      if (obj.timeStr == '1,YEARS') {