feat: 新增订单管理页操作日志弹窗、修复组件路由并添加安全员页面权限控制
- 为订单管理页面引入OperationLogModal组件
- 修复OperationLogModal内的两处路由路径配置
- 为安全员页面的所有操作按钮添加v-permission权限校验指令
| | |
| | | { path: '/operations/attendance/address', type: 34 }, |
| | | { path: '/operations/cruiseCheckInManagement/cruiseCheckIn', type: 34 }, |
| | | { path: '/operations/attendance/shift', type: 35 }, |
| | | { path: '/operations/taskOrder/taskOrderCenter', type: 37 }, |
| | | { path: '/operations/taskOrderCenter', type: 37 }, |
| | | { path: '/operations/cruiseCheckInManagement/cruiseCheckInRule', type: 38 }, |
| | | { path: '/service/review/personnel', type: 39 }, |
| | | { path: '/service/review/policyApplication', type: 40 }, |
| | |
| | | { path: '/transaction/order/orderManagement', type: 43 }, |
| | | { path: '/testDemo/testPointManagement/list', type: 44 }, |
| | | { path: '/businessOperations/pointManagement', type: 45 }, |
| | | { path: '/userContent/whitelistManagement/invitationCode', type: 46 }, |
| | | { path: '/userContent/whitelist-management/invitation-code', type: 46 }, |
| | | ] |
| | | |
| | | const resolvedBusinessType = computed<number | undefined>(() => { |
| | |
| | | placeholder="请选择" |
| | | clearable |
| | | multiple |
| | | max-tag-count="responsive" |
| | | max-tag-count="responsive" |
| | | onUpdate:show={(val: boolean) => isStationPointNumOpen.value = val} |
| | | > |
| | | {{ |
| | |
| | | placeholder="请选择" |
| | | clearable |
| | | multiple |
| | | max-tag-count="responsive" |
| | | max-tag-count="responsive" |
| | | onUpdate:show={(val: boolean) => isStationStatusOpen.value = val} |
| | | > |
| | | {{ |
| | |
| | | if (activeTab.value === 'fence') |
| | | return 22 |
| | | if (activeTab.value === 'station') |
| | | return 57 |
| | | return 58 |
| | | return 45 |
| | | }) |
| | | |
| | |
| | | align: 'left', |
| | | render: row => ( |
| | | <n-space size={12}> |
| | | <NButton text type="primary" onClick={() => handleEdit(row)}> |
| | | <NButton text v-permission="70122" type="primary" onClick={() => handleEdit(row)}> |
| | | 编辑 |
| | | </NButton> |
| | | <NButton text type="primary" onClick={() => handleToggleStatus(row)}> |
| | | <NButton text v-permission="70123" type="primary" onClick={() => handleToggleStatus(row)}> |
| | | {row.deleted ? '启用' : '停用'} |
| | | </NButton> |
| | | </n-space> |
| | |
| | | <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 v-permission="70125" :disabled="checkedRowKeys.length === 0" @click="handleBatchExport"> |
| | | 批量导出 |
| | | </NButton> |
| | | <NButton @click="handleBatchImport"> |
| | | <NButton v-permission="70124" @click="handleBatchImport"> |
| | | 批量导入 |
| | | </NButton> |
| | | <NButton @click="handleDownloadTemplate"> |
| | | <NButton v-permission="70124" @click="handleDownloadTemplate"> |
| | | 下载导入模板 |
| | | </NButton> |
| | | <NButton @click="handleOpenOperationLog"> |
| | | <NButton v-permission="70126" @click="handleOpenOperationLog"> |
| | | 操作日志 |
| | | </NButton> |
| | | </n-flex> |
| | | |
| | | <NButton type="primary" secondary @click="handleAdd"> |
| | | <NButton v-permission="70121" type="primary" secondary @click="handleAdd"> |
| | | 新增 |
| | | </NButton> |
| | | </n-flex> |
| | |
| | | <TableModal ref="modalRef" modal-name="订单改派" @refresh="handleSearch" /> |
| | | <CloseOrderModal ref="closeOrderModalRef" modal-name="关闭订单" @refresh="handleSearch" /> |
| | | <Modal ref="modalRef1" modal-name="改价" @refresh="handleSearch" /> |
| | | <OperationLogModal v-model:show="showOperationLogModal" /> |
| | | </div> |
| | | </template> |