From fee7776c2cf2bd20e8570823db946cc4e5c46e60 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 01 七月 2025 10:31:15 +0800
Subject: [PATCH] add:景点管理

---
 pages/film/filmset.vue       |   12 +++++++++++-
 config/default.json5         |    2 +-
 pages/film/film-location.vue |   17 +++++++++++++++--
 3 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/config/default.json5 b/config/default.json5
index 26fb5ae..ee13057 100644
--- a/config/default.json5
+++ b/config/default.json5
@@ -6,5 +6,5 @@
   enableCache: false,
   enableTagView: true,
   baseUrl: '/',
-  platformName: '花满芫管理平台',
+  platformName: '影途管理后台',
 }
diff --git a/pages/film/film-location.vue b/pages/film/film-location.vue
index 3ef7d38..71eae99 100644
--- a/pages/film/film-location.vue
+++ b/pages/film/film-location.vue
@@ -20,7 +20,18 @@
         columns: [
           {type: 'selection'},
           {label: '拍摄地点名称', prop: 'locationName', minWidth: 120},
-          {label: '拍摄地点图片', prop: 'locationUrl', minWidth: 120},
+          // {label: '拍摄地点图片', prop: 'locationUrl', minWidth: 120},
+          {
+            label: '拍摄地点图片',
+            formatter: (row) =>
+              row.locationUrl ? (
+                <el-bus-image
+                  src={row.locationUrl}
+                  lazy={true}
+                  style="width:50px;height:50px"
+                ></el-bus-image>
+              ) : null,
+          },
           {label: '省', prop: 'province', minWidth: 120},
           {label: '市', prop: 'city', minWidth: 150},
           {label: '区', prop: 'region'},
@@ -90,7 +101,9 @@
               limitSize: 2,
               limit: 1,
               tipText: '大小不超过2M',
+              valueType: 'string',
             },
+            forceDisabled: true,
           },
           {
             label: '省:',
@@ -333,7 +346,7 @@
             atClick: async (selected) => {
               try {
                 await this.$elBusUtil.confirm(
-                  `确定要批量删除这${selected.length}个片场内容吗?`
+                  `确定要批量删除这${selected.length}个景点吗?`
                 )
                 const {code} = await this.$elBusHttp.request(
                   'flower/api/filmLocation/delete/batch',
diff --git a/pages/film/filmset.vue b/pages/film/filmset.vue
index 561cc69..ae4cf2d 100644
--- a/pages/film/filmset.vue
+++ b/pages/film/filmset.vue
@@ -370,7 +370,17 @@
         ],
         extraButtons: [
           {
-            text: (row) => (row.status === 'unpublished' ||  row.status === 'approved' ? '发布' : '下架'),
+            // text: (row) => (row.status === 'unpublished' ||  row.status === 'approved' ? '发布' : '下架'),
+            text: (row) => {
+              // 调整文本显示逻辑
+              if (row.status === 'unpublished' || row.status === 'approved') {
+                return '发布'
+              } else if (row.status === 'published') {
+                return '下架'
+              }
+              return '' // 其他状态不会显示
+            },
+            show: (row) => ['unpublished', 'approved', 'published'].includes(row.status),
             atClick: async (row) => {
               const action = row.status === 'unpublished' ||  row.status === 'approved' ? '发布' : '下架'
               try {

--
Gitblit v1.9.3