董国庆
2026-06-19 c2d315db811fae2aa61c0cc8cc995c8a4cab32ce
Merge branch 'deploy-2.0' into feat/deploy-2.0
5个文件已修改
139 ■■■■■ 已修改文件
src/service/api/operations.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/service/api/point.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/service/api/testOperationWorkbench.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/businessOperations/operationWorkbench/list.vue 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/testDemo/operationWorkbench/list.vue 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/service/api/operations.ts
@@ -185,7 +185,7 @@
}
// 导出围栏列表
export function exportFenceExcel(data: { electronicIds: (number | string)[] }) {
export function exportFenceExcel(data: any) {
  const method = request.Post<Blob>('/map/api/v1/electronicFence/exportExcel', data, { responseType: 'blob' })
  method.meta = { ...method.meta, isBlob: true }
  return method
src/service/api/point.ts
@@ -50,7 +50,7 @@
  }>>>('/map/api/v1/electronicFence/findListFenceAndStation', { params })
}
export function exportPointExcel(data: { pointIds: (number | string)[] }) {
export function exportPointExcel(data: any) {
  const method = request.Post<Blob>('/map/api/v1/point/exportExcel', data, { responseType: 'blob' })
  method.meta = { ...method.meta, isBlob: true }
  return method
src/service/api/testOperationWorkbench.ts
@@ -87,7 +87,7 @@
  }>>>('/map/api/v1/electronicFence/findListFenceAndStationDemo', { params })
}
export function exportPointExcel(data: { pointIds: (number | string)[] }) {
export function exportPointExcel(data: any) {
  const method = request.Post<Blob>('/map/api/v1/point/exportExcel', data, { responseType: 'blob' })
  method.meta = { ...method.meta, isBlob: true }
  return method
src/views/businessOperations/operationWorkbench/list.vue
@@ -1335,12 +1335,29 @@
}
async function handlePointBatchExport() {
  if (checkedRowKeys.value.length === 0) {
    message.warning('请先选择记录')
    return
  let params: Record<string, any> = {}
  if (checkedRowKeys.value.length > 0) {
    params = { pointIds: checkedRowKeys.value }
  } else {
    params = {
      ...pointModel.value,
      cityCode: buildQueryCityCode(pointModel.value.cityCode),
      fenceAndStationList: getSelectedPointAreaList(),
      pointLonAndLat: normalizePointLonAndLatInput(pointModel.value.pointLonAndLat),
      startTime: pointModel.value.createTime ? dayjs(pointModel.value.createTime[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
      endTime: pointModel.value.createTime ? dayjs(pointModel.value.createTime[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
      updateStartTime: pointModel.value.updateTime ? dayjs(pointModel.value.updateTime[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
      updateEndTime: pointModel.value.updateTime ? dayjs(pointModel.value.updateTime[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
    }
    delete params.createTime
    delete params.updateTime
    delete params.operationStatus
    delete params.fenceAndStationList
    params.fenceAndStationList = getSelectedPointAreaList()
  }
  try {
    const res = await exportPointExcel({ pointIds: checkedRowKeys.value })
    const res = await exportPointExcel(params)
    if (res instanceof Blob) {
      downloadFile(res, `RT运营管理系统-{点位列表}_${dayjs().format('YYYY-MM-DD')}.xls`)
      message.success('导出成功')
@@ -1359,12 +1376,30 @@
}
async function handleStationBatchExport() {
  if (checkedRowKeys.value.length === 0) {
    message.warning('请先选择需要导出的场站')
    return
  let params: Record<string, any> = {}
  if (checkedRowKeys.value.length > 0) {
    params = { ids: checkedRowKeys.value }
  } else {
    params = {
      cityCode: buildQueryCityCode(stationModel.value.cityCode),
      stationNameOrNumber: stationModel.value.stationNameOrNumber || undefined,
      stationPointNum: buildStationPointNumParam(stationModel.value.stationPointNum),
      statusList: stationModel.value.statusList ?? undefined,
      parkingTimeLimitMax: stationModel.value.parkingTimeLimit || undefined,
      parkingTimeLimitMin: stationModel.value.parkingTimeLimit || undefined,
      updateBy: String(stationModel.value.updateBy || '').trim() || undefined,
      updateStartTime: getDateRangeStart(stationModel.value.updateTime),
      updateEndTime: getDateRangeEnd(stationModel.value.updateTime),
      createBy: stationModel.value.createBy || undefined,
      createStartTime: getDateRangeStart(stationModel.value.createTime),
      createEndTime: getDateRangeEnd(stationModel.value.createTime),
      createSort: stationModel.value.createSort || undefined,
      updateSort: stationModel.value.updateSort || undefined,
    }
  }
  try {
    const res = await exportStationExcel({ ids: checkedRowKeys.value })
    const res = await exportStationExcel(params)
    if (res instanceof Blob) {
      downloadFile(res, `RT运营管理系统-{场站列表}_${dayjs().format('YYYY-MM-DD')}.xls`)
      message.success('导出成功')
@@ -1379,12 +1414,34 @@
}
async function handleFenceBatchExport() {
  if (checkedRowKeys.value.length === 0) {
    message.warning('请先选择记录')
    return
  let params: Record<string, any> = {}
  if (checkedRowKeys.value.length > 0) {
    params = { electronicIds: checkedRowKeys.value }
  } else {
    params = {
      electronicNumberOrName: fenceModel.value.electronicNumberOrName,
      statusList: fenceModel.value.statusList,
      type: fenceModel.value.type,
      typeStr: fenceModel.value.type === 3 ? fenceModel.value.typeStr : null,
      effectTime: fenceModel.value.lifecycleRange ? dayjs(fenceModel.value.lifecycleRange[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : null,
      failureTime: fenceModel.value.lifecycleRange ? dayjs(fenceModel.value.lifecycleRange[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : null,
      startTime: fenceModel.value.startTime || null,
      endTime: fenceModel.value.endTime || null,
      createBy: fenceModel.value.createBy,
      updateBy: fenceModel.value.updateBy,
      updateStartTime: fenceModel.value.updateTime ? dayjs(fenceModel.value.updateTime[0]).format('YYYY-MM-DD HH:mm:ss') : null,
      updateEndTime: fenceModel.value.updateTime ? `${dayjs(fenceModel.value.updateTime[1]).format('YYYY-MM-DD')} 23:59:59` : null,
      createStartTime: fenceModel.value.createTime ? dayjs(fenceModel.value.createTime[0]).format('YYYY-MM-DD HH:mm:ss') : null,
      createEndTime: fenceModel.value.createTime ? `${dayjs(fenceModel.value.createTime[1]).format('YYYY-MM-DD')} 23:59:59` : null,
      cityCode: buildQueryCityCode(fenceModel.value.cityCode),
      createSort: fenceModel.value.createSort,
      updateSort: fenceModel.value.updateSort,
      electronicAreaId: fenceModel.value.electronicAreaId,
    }
  }
  try {
    const res = await exportFenceExcel({ electronicIds: checkedRowKeys.value })
    const res = await exportFenceExcel(params)
    if (res instanceof Blob) {
      downloadFile(res, `RT运营管理系统-{围栏列表}_${dayjs().format('YYYY-MM-DD')}.xls`)
      message.success('导出成功')
@@ -2689,7 +2746,6 @@
                :id="batchExportButtonId"
                :key="batchExportButtonKey"
                v-permission="batchExportPermissionCode"
                :disabled="checkedRowKeys.length === 0"
                @click="handleBatchExport"
              >
                {{ batchExportButtonText }}
src/views/testDemo/operationWorkbench/list.vue
@@ -1274,12 +1274,29 @@
}
async function handlePointBatchExport() {
  if (checkedRowKeys.value.length === 0) {
    message.warning('请先选择记录')
    return
  let params: Record<string, any> = {}
  if (checkedRowKeys.value.length > 0) {
    params = { pointIds: checkedRowKeys.value }
  } else {
    params = {
      ...pointModel.value,
      cityCode: buildQueryCityCode(pointModel.value.cityCode),
      fenceAndStationList: getSelectedPointAreaList(),
      pointLonAndLat: normalizePointLonAndLatInput(pointModel.value.pointLonAndLat),
      startTime: pointModel.value.createTime ? dayjs(pointModel.value.createTime[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
      endTime: pointModel.value.createTime ? dayjs(pointModel.value.createTime[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
      updateStartTime: pointModel.value.updateTime ? dayjs(pointModel.value.updateTime[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
      updateEndTime: pointModel.value.updateTime ? dayjs(pointModel.value.updateTime[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss') : undefined,
    }
    delete params.createTime
    delete params.updateTime
    delete params.operationStatus
    delete params.fenceAndStationList
    params.fenceAndStationList = getSelectedPointAreaList()
  }
  try {
    const res = await exportPointExcel({ pointIds: checkedRowKeys.value })
    const res = await exportPointExcel(params)
    if (res instanceof Blob) {
      downloadFile(res, '点位列表.xlsx')
      message.success('导出成功')
@@ -1298,12 +1315,28 @@
}
async function handleStationBatchExport() {
  if (checkedRowKeys.value.length === 0) {
    message.warning('请先选择需要导出的场站')
    return
  let params: Record<string, any> = {}
  if (checkedRowKeys.value.length > 0) {
    params = { ids: checkedRowKeys.value }
  } else {
    params = {
      cityCode: buildQueryCityCode(stationModel.value.cityCode),
      stationNameOrNumber: stationModel.value.stationNameOrNumber || undefined,
      stationPointNum: buildStationPointNumParam(stationModel.value.stationPointNum),
      statusList: stationModel.value.statusList ?? undefined,
      updateBy: String(stationModel.value.updateBy || '').trim() || undefined,
      updateStartTime: getDateRangeStart(stationModel.value.updateTime),
      updateEndTime: getDateRangeEnd(stationModel.value.updateTime),
      createBy: stationModel.value.createBy || undefined,
      createStartTime: getDateRangeStart(stationModel.value.createTime),
      createEndTime: getDateRangeEnd(stationModel.value.createTime),
      createSort: stationModel.value.createSort || undefined,
      updateSort: stationModel.value.updateSort || undefined,
    }
  }
  try {
    const res = await exportStationExcel({ ids: checkedRowKeys.value })
    const res = await exportStationExcel(params)
    if (res instanceof Blob) {
      downloadFile(res, '场站列表.xlsx')
      message.success('导出成功')
@@ -2473,7 +2506,6 @@
              </span>
              <NButton
                v-permission="2026061512"
                :disabled="checkedRowKeys.length === 0"
                @click="handleBatchExport"
              >
                批量导出
@@ -2485,7 +2517,6 @@
              </span>
              <NButton
                v-permission="2026061518"
                :disabled="checkedRowKeys.length === 0"
                @click="handleBatchExport"
              >
                批量导出