ai-coding
2026-06-17 f8c420c6487695cd6057dcb3506599cb9e0c4b8c
Revert "Merge origin/feat/260617-zxwang into feat/deploy-2.0"

This reverts commit a3516d63dd9637818319bfbc1439c7421dc8399d, reversing
changes made to c56d69f9018684d805181ff4cb3b26e43a2e03e8.
4个文件已修改
67 ■■■■■ 已修改文件
.env.production 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service.config.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/service/api/operations.ts 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/businessOperations/geofenceManagement/index.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production
@@ -5,7 +5,7 @@
VITE_COMPRESS_TYPE=gzip
# SSO退出登录
VITE_SSO_HOST=xpsso.xiaopeng.com
VITE_SSO_APP_ID=RoboTaxi-admin
VITE_SSO_REDIRECT_URL=https://rt-admin.xiaopeng.com/dashboard
VITE_SSO_HOST=sso-xt.deploy-test.xiaopeng.com
VITE_SSO_APP_ID=RoboTaxi-admin-predeploy
VITE_SSO_REDIRECT_URL=https://rt-admin.deploy-test.xiaopeng.com/dashboard
service.config.ts
@@ -7,6 +7,6 @@
    // url: 'http://rt-api.deploy-test.xiaopeng.com',
  },
  production: {
    url: 'https://rt-admin.xiaopeng.com',
    url: 'https://rt-admin.deploy-test.xiaopeng.com',
  },
}
src/service/api/operations.ts
@@ -184,13 +184,6 @@
  return request.Post<Service.ResponseResult<any>>(`/map/api/v1/electronicFence/copy?id=${id}`)
}
// 导出围栏列表
export function exportFenceExcel(data: { electronicIds: (number | string)[] }) {
  const method = request.Post<Blob>('/map/api/v1/electronicFence/exportExcel', data, { responseType: 'blob' })
  method.meta = { ...method.meta, isBlob: true }
  return method
}
// 编辑围栏
export function editFence(params: any) {
  return request.Post<Service.ResponseResult<any>>('/map/api/v1/electronicFence/edit', params)
src/views/businessOperations/geofenceManagement/index.vue
@@ -1,11 +1,10 @@
<script setup lang="tsx">
import type { DataTableColumns } from 'naive-ui'
import { useBoolean } from '@/hooks'
import { copyFence, exportFenceExcel, getFenceList } from '@/service/api/operations'
import { copyFence, getFenceList } from '@/service/api/operations'
import { NButton, NSpace, NTag, NTooltip } from 'naive-ui'
import SearchPanel from '@/components/custom/SearchPanel.vue'
import OperationLogModal from '@/components/custom/OperationLogModal.vue'
import { downloadFile } from '@/utils/common'
import { useRouter } from 'vue-router'
import sortDefault from '@/assets/geofence/sort1.png'
import sortAsc from '@/assets/geofence/sort2.png'
@@ -48,12 +47,6 @@
}
const columns = computed<DataTableColumns<any>>(() => [
  {
    type: 'selection',
    width: 48,
    align: 'center',
    fixed: 'left',
  },
  {
    title: '围栏ID',
    key: 'electronicNumber',
@@ -247,31 +240,6 @@
const highlightedRowId = ref<string | null>(null)
const showOperationLogModal = ref(false)
const checkedRowKeys = ref<Array<string | number>>([])
function handleCheck(rowKeys: Array<string | number>) {
  checkedRowKeys.value = rowKeys
}
async function handleBatchExport() {
  if (checkedRowKeys.value.length === 0) {
    message.warning('请先选择记录')
    return
  }
  try {
    const res = await exportFenceExcel({ electronicIds: checkedRowKeys.value })
    if (res instanceof Blob) {
      downloadFile(res, `RT运营管理系统-{围栏列表}_${dayjs().format('YYYY-MM-DD')}.xls`)
      message.success('导出成功')
    }
    else {
      message.error('导出失败')
    }
  }
  catch {
    message.error('导出失败')
  }
}
// 高亮指定行
function highlightRow(id: string) {
@@ -532,16 +500,10 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between" align="center">
          <n-flex align="center">
            <NButton v-permission="4021" @click="handleOpenOperationLog">
              操作日志
            </NButton>
            <span v-if="checkedRowKeys.length > 0" style="color: rgba(23, 31, 38, 0.6);font-weight: 400;">已选择{{ checkedRowKeys.length }}条记录</span>
            <NButton :disabled="checkedRowKeys.length === 0" @click="handleBatchExport">
              批量导出
            </NButton>
          </n-flex>
        <n-flex justify="space-between">
          <NButton v-permission="4021" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <n-flex v-permission="404" justify="flex-end">
            <NButton type="primary" secondary @click="handleToDetail({}, 'add')">
              新建围栏
@@ -552,10 +514,8 @@
      <div class="flex-1 flex flex-col h-full">
        <n-data-table
          class="flex-1" :columns="columns" :data="listData" :row-class-name="getRowClass"
          :loading="loading" flex-height :scroll-x="1278" :bordered="false" :header-height="18" :row-height="18"
          :row-key="(row) => row.id"
          :loading="loading" flex-height :scroll-x="1230" :bordered="false" :header-height="18" :row-height="18"
          @update:sorter="handleSorterChange"
          @update:checked-row-keys="handleCheck"
        >
          <template #empty>
            <div class="flex-center">