zxl
2025-07-15 e8746fe5bb553c17e0052958d9c39a5e2bc6f6a1
manager/src/views/activity/index.vue
@@ -588,11 +588,9 @@
  activityMembersPage,
  auditActivity
} from "@/api/activity.js"
import Editor from '@/components/editor/index.vue'
import { uploadFileByLmk, delByKey } from "@/api/common.js"
import { quillEditor } from 'vue-quill-editor'
import Delta from 'quill-delta'
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
@@ -668,7 +666,7 @@
export default {
  name: "ActivityManagement",
  components: {Editor, quillEditor},
  components: { quillEditor},
  data() {
    return {
      auditForm: {
@@ -846,17 +844,39 @@
          }
        },
        {
          title: '审核',
          title: '审核状态',
          key: 'auditStatus',
          width: 100,
          align: 'center',
          render: (h, params) => {
            const status = params.row.auditStatus;
            let tagText, tagColor;
            // 根据状态设置文案和颜色
            switch (status) {
              case 0:
                tagText = '审核中';
                tagColor = 'orange';  // 橙色表示进行中
                break;
              case 1:
                tagText = '已审核';
                tagColor = 'green';   // 绿色表示通过
                break;
              case 2:
                tagText = '未通过';
                tagColor = 'red';     // 红色表示拒绝
                break;
              default:
                tagText = '未知状态';
                tagColor = 'default'; // 默认灰色
            }
            return h('Tag', {
              props: {
                color: params.row.auditStatus === 0 ? 'default' : 'green'
              }
            }, params.row.auditStatus === 0 ? '未审核' : '已审核')
          }
                color: tagColor,
              },
            }, tagText);
          },
        },
        {
          title: '状态',
@@ -1064,7 +1084,6 @@
    // 失去焦点
    onEditorBlur(editor) {
    },
    // 获得焦点