Skip to content

任务模板配置

基础信息

说明
菜单路径/operationsManagement/taskManagement/configurationCenter/taskTemplateConfig
路由名称taskTemplateConfig
页面组件src/views/operationsManagement/taskManagement/configurationCenter/taskTemplateConfig/index.vue
接口模块组件内 api.post(...) 直接调用(Vue3 setup)
Store
页面定位四业务线任务模板的增删改查、排序、启停

页面功能

页面使用 Container + el-tabs(border-card)+ TableContainer 布局,Vue3 <script setup> 实现。

1. 业务线 Tab

通过字典 wb_type 动态生成:

Tabkey说明
手机任务模板配置1手机维修任务模板
宠物增服模板配置2宠物增服任务模板
宠物理赔模板配置3宠物理赔任务模板
宠物商务模版配置4宠物商务任务模板

2. 筛选区

  • 模板状态(启用/禁用)、模板名称、任务级别(wb_job_level)、任务类型(按业务线切换字典:wb_job_phone_type / wb_job_order_type / wb_job_claim_type / wb_job_business_type)。
  • 查询、重置、新增任务模板配置按钮。

3. 模板列表

说明
模板IDid
模板排序templateSort
模板名称templateName
模板状态statusValue,启用绿/禁用红
任务主题taskTopic
任务级别levelName
任务类型typeName
关联任务数taskCount

4. 行操作

  • 启用/禁用:弹窗确认。启用时需填写「模板排序」(不能重复),禁用时清空排序。调用 wbJob/template/edit
  • 编辑:打开 TaskTemplateConfigDialog(type: edit)。
  • 查看:打开 TaskTemplateConfigDialog(type: view)。
  • 删除:仅关联任务数 <= 0 且禁用状态可删,调用 wbJob/template/edit(status: 0)。

5. 模板配置弹窗(TaskTemplateConfigDialog)

  • 配置模板基本信息、任务属性(TaskAttribute)、分配规则(DistributionRule)、推送消息关联(PushMsgAssociation)、任务时效模板关联(TmepConfigInfo)。
  • 保存调用 wbJob/template/save

6. 分页与切换

  • Pagination 分页。切换业务线 Tab 时重置筛选条件并重新查询,按需加载任务类型字典。

使用组件

组件路径用途
Container@/components/container页面容器
TableContainer@/components/SearchTableContainer表格容器
Pagination@/components/pagination分页
TaskTemplateConfigDialog./components/TaskTemplateConfigDialog.vue模板新增/编辑/查看弹窗
TaskAttribute./components/TaskAttribute.vue任务属性配置
DistributionRule./components/DistributionRule.vue分配规则配置
PushMsgAssociation./components/PushMsgAssociation.vue推送消息关联
TmepConfigInfo./components/TmepConfigInfo.vue时效模板关联
TaskTemplateConfigDialog./components/TaskTemplateConfigDialog.vue模板配置弹窗

使用 Store

无。

调用接口

所有接口实际请求统一带 /api 前缀(下表 URL 为业务路径简写)。

接口 URL用途
wbJob/template/pageList模板分页查询(按 wbType)
wbJob/template/edit模板启停/删除/排序
wbJob/template/save新增/编辑模板保存(弹窗内)
wbJob/template/queryInfo模板详情(弹窗内)
wbJob/template/getList模板列表校验(弹窗内)
wbJob/template/queryBusinessInfo承保公司信息(弹窗内)
ddic/getList字典(业务类型 wb_type、任务级别 wb_job_level、各业务线任务类型、任务属性 wb_job_property

修改记录

修改人修改时间修改内容
zhouw2026-07-03初始化页面
zhouw2026-07-09编写页面内容