Skip to content

协议渠道

基础信息

说明
菜单路径/operationsManagement/contentManagement/protocolManagement/protocolChannel
路由名称protocolChannel
页面组件src/views/operationsManagement/contentManagement/protocolManagement/protocolChannel/index.vue
接口模块组件内 this.$api.post(...) / this.$api.get(...) 直接调用
Store
页面定位维护「门店协议」所引用的协议渠道字典(名称/描述),为门店协议提供渠道选项

页面功能

页面为「列表 + 新增/编辑弹窗」结构,无搜索条件。查询固定带 type: '2'(2 渠道协议;1 服务项目)。

1. 列表

展示序号、协议渠道(name)、渠道描述(describe),操作列仅「修改」(编辑回显)。

2. 新增/编辑弹窗

字段与规则:

  • 协议渠道name):必填,特殊字符校验(elementFromVerify.specialCharactersValid);编辑时不可改(:disabled="!!form.id")。
  • 渠道描述describe):多行文本,最大 80 字(show-word-limit)。

新增/编辑保存按有无 idinsert / update,编辑回显走 queryInfo

注:本页为门店协议的渠道字典维护,渠道名称一旦创建不可修改。

使用组件

组件路径用途
Container@/components/container页面容器
SearchContainer@/components/SearchTableContainer顶部操作区(新增按钮)
TableContainer@/components/SearchTableContainer表格+分页容器

使用 Store

无。

调用接口

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

接口 URL方法用途
network-basics-set/pageListPOST分页查询协议渠道(type=2
network-basics-set/insertPOST新增协议渠道
network-basics-set/updatePOST编辑协议渠道
network-basics-set/queryInfoGET协议渠道回显(id 参数)

修改记录

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