From 3e1616df0025a190014f7be08f26a90cf7311a5e Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 23 七月 2025 17:57:39 +0800
Subject: [PATCH] 规格自动生成货号
---
manager/src/views/activity/index.vue | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/manager/src/views/activity/index.vue b/manager/src/views/activity/index.vue
index 8a74704..66f8fe4 100644
--- a/manager/src/views/activity/index.vue
+++ b/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) {
-
},
// 鑾峰緱鐒︾偣
--
Gitblit v1.8.0