董国庆
2026-05-19 52e4067ff7c464d2c4dfc7ad7397c11de073e3be
feat: 添加多页面操作按钮权限控制并优化测试点位管理页面代码

为多个页面的操作日志、导出按钮添加权限控制指令,同时优化测试点位管理页面的代码格式与布局,统一字符串引号与样式写法。
11个文件已修改
107 ■■■■■ 已修改文件
src/views/assetManagement/vehicleModel/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/businessOperations/operationWorkbench/list.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/businessOperations/siteInfo/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operations/cruiseCheckIn/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operations/cruiseCheckInRule/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/operationLog/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/testDemo/geofenceManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/testDemo/testPointManagement/list.vue 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/transaction/directServiceManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/transaction/passwordFreeStrategy/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userContent/active/activityManagement/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/assetManagement/vehicleModel/index.vue
@@ -213,7 +213,7 @@
      <n-card class="flex-1 robotaxi-table-card">
        <template #header>
          <n-flex justify="space-between">
            <NButton @click="handleOpenOperationLog">
            <NButton v-permission="2026051807" @click="handleOpenOperationLog">
              操作日志
            </NButton>
            <NButton
src/views/businessOperations/operationWorkbench/list.vue
@@ -2407,7 +2407,7 @@
      <template #header>
        <n-flex justify="space-between" align="center">
          <n-flex align="center">
            <NButton @click="handleOpenOperationLog">
            <NButton v-permission="2026051805" @click="handleOpenOperationLog">
              操作日志
            </NButton>
            <template v-if="activeTab === 'point'">
src/views/businessOperations/siteInfo/index.vue
@@ -436,7 +436,7 @@
      <template #header>
        <n-flex justify="space-between" align="center">
          <n-flex align="center">
            <NButton @click="handleOpenOperationLog">
            <NButton v-permission="2026051806" @click="handleOpenOperationLog">
              操作日志
            </NButton>
            <span v-if="checkedRowKeys.length > 0" style="color: rgba(23, 31, 38, 0.6);font-weight: 400;">已选择{{ checkedRowKeys.length }}条记录</span>
src/views/operations/cruiseCheckIn/index.vue
@@ -139,7 +139,7 @@
            删除
          </span>
          <NSwitch
            v-permission="2026429691"
            v-permission="2026051811"
            value={row.status}
            checked-value={1}
            unchecked-value={0}
@@ -273,7 +273,7 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between">
          <NButton @click="handleOpenOperationLog">
          <NButton v-permission="2026051812" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <NButton v-permission="202642967" type="primary" secondary @click="handleAdd">
src/views/operations/cruiseCheckInRule/index.vue
@@ -231,7 +231,7 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between">
          <NButton @click="handleOpenOperationLog">
          <NButton v-permission="2026051810" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <NButton v-permission="202642961" type="primary" secondary @click="handleAdd">
src/views/system/operationLog/index.vue
@@ -327,7 +327,7 @@
    <NCard class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="flex-end" align="center">
          <NButton @click="handleExport">
          <NButton v-permission="2026051801" @click="handleExport">
            导出
          </NButton>
        </n-flex>
src/views/testDemo/geofenceManagement/index.vue
@@ -504,7 +504,7 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between">
          <NButton @click="handleOpenOperationLog">
          <NButton v-permission="2026051802" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <div v-permission="202642975">
src/views/testDemo/testPointManagement/list.vue
@@ -528,7 +528,13 @@
<template>
  <div class="roboTaxi w-full h-full px-[12px] py-[12px]">
    <div class="roboTaxi-form-card mb-12px">
      <n-form ref="formRef" :model="model" label-placement="left" inline :show-feedback="false">
      <n-form
        ref="formRef"
        :model="model"
        label-placement="left"
        inline
        :show-feedback="false"
      >
        <SearchPanel>
          <n-gi v-for="item in filterItems" :key="item.path">
            <n-form-item :label="item.label" :path="item.path">
@@ -537,10 +543,10 @@
          </n-gi>
          <template #action>
            <NButton @click="handleResetSearch">
              {{ t('common.reset') }}
              {{ t("common.reset") }}
            </NButton>
            <NButton type="primary" @click="handleSearch">
              {{ t('common.search') }}
              {{ t("common.search") }}
            </NButton>
          </template>
        </SearchPanel>
@@ -554,25 +560,39 @@
      <template #header>
        <n-flex justify="space-between" align="center">
          <n-flex align="center">
            <NButton @click="handleOpenOperationLog">
              操作日志
            </NButton>
            <n-flex v-permission="921" align="center">
              <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>
            <NButton v-permission="2026051803" @click="handleOpenOperationLog"> 操作日志 </NButton>
          </n-flex>
          <n-flex v-permission="921" align="center">
            <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>
            <NButton v-permission="922" type="primary" secondary @click="handleMapMode">
            <NButton
              v-permission="922"
              type="primary"
              secondary
              @click="handleMapMode"
            >
              点位地图
            </NButton>
          </n-flex>
        </n-flex>
      </template>
      <div class="flex-1 flex flex-col h-full" style="min-width: 0; overflow: hidden;">
      <div
        class="flex-1 flex flex-col h-full"
        style="min-width: 0; overflow: hidden"
      >
        <n-data-table
          class="flex-1"
          :columns="columns"
@@ -595,7 +615,10 @@
        />
      </div>
    </n-card>
    <OperationLogModal v-model:show="showOperationLogModal" :business-type="44" />
    <OperationLogModal
      v-model:show="showOperationLogModal"
      :business-type="44"
    />
  </div>
</template>
@@ -618,43 +641,43 @@
    margin: 0 4px;
    &.wait-test {
      background: #FFF6EA;
      color: #FFAA2A;
      background: #fff6ea;
      color: #ffaa2a;
    }
    &.testing {
      background: #E6F4FF;
      color: #0068FF;
      background: #e6f4ff;
      color: #0068ff;
    }
    &.test-fail {
      background: #FFF3F1;
      color: #E02716;
      background: #fff3f1;
      color: #e02716;
    }
    &.test-pass {
      color: #0068FF;
      background: #E6F4FF;
      color: #0068ff;
      background: #e6f4ff;
    }
    &.test-take-effect {
      background: #FFF6EA;
      color: #FFAA2A;
      background: #fff6ea;
      color: #ffaa2a;
    }
    &.test-starting {
      background: #E9F9ED;
      color: #19B144;
      background: #e9f9ed;
      color: #19b144;
    }
    &.test-stop {
      background: #E8E9E9;
      color: #171F26;
      background: #e8e9e9;
      color: #171f26;
    }
    &.test-invalid {
      background: #E8E9E9;
      color: #171F26;
      background: #e8e9e9;
      color: #171f26;
    }
  }
}
src/views/transaction/directServiceManagement/index.vue
@@ -350,7 +350,7 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between">
          <NButton @click="handleOpenOperationLog">
          <NButton v-permission="2026051808" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <NButton
src/views/transaction/passwordFreeStrategy/index.vue
@@ -275,7 +275,7 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between">
          <NButton @click="handleOpenOperationLog">
          <NButton v-permission="2026051809" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <NButton
src/views/userContent/active/activityManagement/index.vue
@@ -357,7 +357,7 @@
    <n-card class="flex-1 robotaxi-table-card">
      <template #header>
        <n-flex justify="space-between">
          <NButton @click="handleOpenOperationLog">
          <NButton v-permission="2026051804" @click="handleOpenOperationLog">
            操作日志
          </NButton>
          <NButton v-permission="202642910" type="primary" secondary @click="handleAdd">