跳到内容
SCRM DOC
创建于2024-02-15更新于 2024-04-09

toc

列表页常用方法

添加页头

在顶部添加页头,用于增加一些功能跳转、说明此页面功能及注意事项。

::: code-group

<PageWrapper
  title="渠道活码"
  contentBackground
  content="渠道活码功能是提供给不同场景添加企微成员好友引流的名片活码,支持多个客服自动分流,通过自动打标签标记好友来源,实时记录每个活码添加的数据,统计分析不同渠道的推广效果,提高营销精准度,降低引流成本。"
  dense
>
  <template #extra>
    <a-button key="1" type="primary"><router-link to="/wxwork/obtain/wxworkChannelCodeGroupList">分组设置</router-link></a-button>
    <a-button key="2"><router-link to="/wxwork/obtain/wxworkChannelCodeLogList">扫码记录</router-link></a-button>
  </template>
</PageWrapper>
import { PageWrapper } from '/@/components/Page';

:::

参数说明

几个常用参数:

  • dense: 是否缩小主体区域,设置后将,取消 padding/margin
  • content: 内容一行时,用此字段,否则应放到 template 中

常用 template

::: code-group

// 主体内容 headerContent
<template #headerContent> 具体内容</template>
// 标签 tags
<template #tags>
  <a-tag color="blue">Running</a-tag>
</template>
// 按钮区域-extra
<template #extra>
  <a-button key="1" type="primary"><router-link to="/wxwork/obtain/wxworkChannelCodeGroupList">分组设置</router-link></a-button>
  <a-button key="2"><router-link to="/wxwork/obtain/wxworkChannelCodeLogList">扫码记录</router-link></a-button>
</template>

:::

搜索栏

开关的默认转换

::: tip 提示 主要是 query :::

 <j-switch placeholder="请选择是否启用" v-model:value="queryParam.status" query />

使用 data 中的搜索数据


  import { columns, searchFormSchema } from './OffiReply.data';

  <!-- tableProps中 -->
      useSearchForm: true,
      formConfig: {
        schemas: searchFormSchema,
        fieldMapToNumber: [],
        fieldMapToTime: [],
      },

禁用搜索

tableProps: {
  useSearchForm: false,
}

子表不顶格

::: tip 提示 增加样式 style="margin-left: 12px" :::

例如

<a-tabs defaultActiveKey="1" style="margin-left: 12px">

列表

不展示操作区域

tableProps: {
  ...
  showActionColumn: false,
  ...
},
页面信息›
已优化否

反向链接 · 1

本页目录