From e890f87ea274436461aacca1391bb9717240f210 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 04 九月 2025 14:21:39 +0800
Subject: [PATCH] 商家端订单列表

---
 manager/src/views/activity/index.vue |   57 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 9 deletions(-)

diff --git a/manager/src/views/activity/index.vue b/manager/src/views/activity/index.vue
index 8a74704..fafe6a6 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) {
-
     },
 
     // 鑾峰緱鐒︾偣
@@ -1129,6 +1148,8 @@
         console.log(this.activityFrom.activityContent)
         this.Quill.setSelection(index + 1);
         this.$Message.success('涓婁紶鎴愬姛')
+      }else{
+        this.$Message.error(res.msg)
       }
     }).catch(() => {
       this.submitLoading = false
@@ -1201,6 +1222,8 @@
             this.$Message.success(res.msg);
             this.getActivityList();
             this.closeAuditModel();
+          }else{
+            this.$Message.error(res.msg)
           }
         })
       }
@@ -1262,6 +1285,8 @@
           statusLoading: false
         }))
         this.total = res.total
+      }else{
+        this.$Message.error(res.msg)
       }
     }).catch(() => {
       this.loading = false
@@ -1394,6 +1419,8 @@
             this.$Message.success(res.msg)
             this.modelClose()
             this.getActivityList()
+          }else{
+            this.$Message.error(res.msg)
           }
         }).catch(() => {
           this.submitLoading = false
@@ -1414,6 +1441,8 @@
           if (res.code === 200) {
             this.$Message.success(res.msg)
             this.getActivityList()
+          }else{
+            this.$Message.error(res.msg)
           }
         })
       }
@@ -1459,6 +1488,8 @@
       if (res.code === 200) {
         this.$Message.success(res.msg)
         row.recommend = recommend
+      }else{
+        this.$Message.error(res.msg)
       }
     }).catch(() => {
       row.recommendLoading = false
@@ -1484,6 +1515,8 @@
       if (res.code === 200) {
         this.$Message.success(res.msg)
         row.publish = publish
+      }else{
+        this.$Message.error(res.msg)
       }
     }).catch(() => {
       row.statusLoading = false
@@ -1507,6 +1540,8 @@
       if (res.code === 200) {
         this.membersList = res.data
         this.memberTotal = res.total
+      }else{
+        this.$Message.error(res.msg)
       }
     }).catch(() => {
       this.membersLoading = false
@@ -1572,6 +1607,8 @@
       if (res.code === 200) {
         this.activityFrom.cover = res.data.fileKey
         this.$Message.success('涓婁紶鎴愬姛')
+      }else{
+        this.$Message.error(res.msg)
       }
     }).catch(() => {
       this.submitLoading = false
@@ -1592,6 +1629,8 @@
       if (res.code === 200) {
         this.file = null
         this.activityFrom.cover = ''
+      }else{
+        this.$Message.error(res.msg)
       }
     })
   },

--
Gitblit v1.8.0