cloudroam
2025-07-01 fee7776c2cf2bd20e8570823db946cc4e5c46e60
add:景点管理
已修改3个文件
31 ■■■■ 文件已修改
config/default.json5 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/film/film-location.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/film/filmset.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/default.json5
@@ -6,5 +6,5 @@
  enableCache: false,
  enableTagView: true,
  baseUrl: '/',
  platformName: '花满芫管理平台',
  platformName: '影途管理后台',
}
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',
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 {