components.html
20.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>业务组件 | 买买买文档平台</title>
<meta name="description" content="买买买文档平台">
<meta name="generator" content="VuePress 1.3.0">
<link rel="preload" href="/assets/css/0.styles.c1b2a71c.css" as="style"><link rel="preload" href="/assets/js/app.75260303.js" as="script"><link rel="preload" href="/assets/js/2.d106f811.js" as="script"><link rel="preload" href="/assets/js/14.e7ac0b94.js" as="script"><link rel="prefetch" href="/assets/js/10.49603ca8.js"><link rel="prefetch" href="/assets/js/11.973f8ef4.js"><link rel="prefetch" href="/assets/js/12.76360d2e.js"><link rel="prefetch" href="/assets/js/13.a4f2bd9c.js"><link rel="prefetch" href="/assets/js/15.6effadcc.js"><link rel="prefetch" href="/assets/js/16.25486ada.js"><link rel="prefetch" href="/assets/js/17.501747e9.js"><link rel="prefetch" href="/assets/js/18.4e8bf841.js"><link rel="prefetch" href="/assets/js/19.d818c655.js"><link rel="prefetch" href="/assets/js/20.7e351963.js"><link rel="prefetch" href="/assets/js/21.63585e89.js"><link rel="prefetch" href="/assets/js/22.52457d59.js"><link rel="prefetch" href="/assets/js/23.4c5fe2cc.js"><link rel="prefetch" href="/assets/js/24.549dd690.js"><link rel="prefetch" href="/assets/js/25.f337c759.js"><link rel="prefetch" href="/assets/js/26.b0c9d0d2.js"><link rel="prefetch" href="/assets/js/3.5823559d.js"><link rel="prefetch" href="/assets/js/4.0442bfb1.js"><link rel="prefetch" href="/assets/js/5.5690c9b5.js"><link rel="prefetch" href="/assets/js/6.da5cbe6d.js"><link rel="prefetch" href="/assets/js/7.f9fd827d.js"><link rel="prefetch" href="/assets/js/8.bcd25b86.js"><link rel="prefetch" href="/assets/js/9.2d40e7da.js">
<link rel="stylesheet" href="/assets/css/0.styles.c1b2a71c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/logo.png" alt="买买买文档平台" class="logo"> <span class="site-name can-hide">买买买文档平台</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
查询导览
</a></div><div class="nav-item"><a href="/product/" class="nav-link">
项目清单
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="团队文档" class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/team/frontend/" class="nav-link router-link-active">
前端
</a></li><li class="dropdown-item"><!----> <a href="/team/ios/" class="nav-link">
IOS端
</a></li><li class="dropdown-item"><!----> <a href="/team/android/" class="nav-link">
安卓端
</a></li><li class="dropdown-item"><!----> <a href="/team/backend/" class="nav-link">
服务端
</a></li><li class="dropdown-item"><!----> <a href="/team/quality/" class="nav-link">
测试端
</a></li><li class="dropdown-item"><!----> <a href="/team/design/" class="nav-link">
产品设计
</a></li></ul></div></div><div class="nav-item"><a href="/project/" class="nav-link">
项目管控
</a></div><div class="nav-item"><a href="/adm/" class="nav-link">
行政管理
</a></div><div class="nav-item"><a href="/util/" class="nav-link">
协作工具
</a></div><div class="nav-item"><a href="/guide/" class="nav-link">
文档写作平台入门介绍
</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
查询导览
</a></div><div class="nav-item"><a href="/product/" class="nav-link">
项目清单
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="团队文档" class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/team/frontend/" class="nav-link router-link-active">
前端
</a></li><li class="dropdown-item"><!----> <a href="/team/ios/" class="nav-link">
IOS端
</a></li><li class="dropdown-item"><!----> <a href="/team/android/" class="nav-link">
安卓端
</a></li><li class="dropdown-item"><!----> <a href="/team/backend/" class="nav-link">
服务端
</a></li><li class="dropdown-item"><!----> <a href="/team/quality/" class="nav-link">
测试端
</a></li><li class="dropdown-item"><!----> <a href="/team/design/" class="nav-link">
产品设计
</a></li></ul></div></div><div class="nav-item"><a href="/project/" class="nav-link">
项目管控
</a></div><div class="nav-item"><a href="/adm/" class="nav-link">
行政管理
</a></div><div class="nav-item"><a href="/util/" class="nav-link">
协作工具
</a></div><div class="nav-item"><a href="/guide/" class="nav-link">
文档写作平台入门介绍
</a></div> <!----></nav> <ul class="sidebar-links"><li><a href="/team/frontend/" class="sidebar-link">前端 Frontend</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/#能力输出" class="sidebar-link">能力输出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目构建说明" class="sidebar-link">项目构建说明</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目环境要求" class="sidebar-link">项目环境要求</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目技术组成" class="sidebar-link">项目技术组成</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#代码版本控制位置" class="sidebar-link">代码版本控制位置</a></li></ul></li><li><a href="/team/frontend/showcase.html" class="sidebar-link">陈列柜</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#网站" class="sidebar-link">网站</a></li><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#微信小程序" class="sidebar-link">微信小程序</a></li><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#桌面客户端" class="sidebar-link">桌面客户端</a></li></ul></li><li><a href="/team/frontend/standard.html" class="sidebar-link">开发规范</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#vscode-插件" class="sidebar-link">VSCode 插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#文件与目录命名规范" class="sidebar-link">文件与目录命名规范</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#css-样式预处理" class="sidebar-link">CSS 样式预处理</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#路由命名规则" class="sidebar-link">路由命名规则</a></li></ul></li><li><a href="/team/frontend/http.html" class="sidebar-link">数据交互格式标准</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/http.html#数据格式样例" class="sidebar-link">数据格式样例</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#api-交互规则" class="sidebar-link">API 交互规则</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#跨域与重复请求" class="sidebar-link">跨域与重复请求</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#登录授权" class="sidebar-link">登录授权</a></li></ul></li><li><a href="/team/frontend/system-model.html" class="sidebar-link">系统交互模型</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#基础原则" class="sidebar-link">基础原则</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#流程示意" class="sidebar-link">流程示意</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#数据模型" class="sidebar-link">数据模型</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#api-接口" class="sidebar-link">API 接口</a></li></ul></li><li><a href="/team/frontend/plugins.html" class="sidebar-link">功能插件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#拼图验证码插件" class="sidebar-link">拼图验证码插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#短信验证" class="sidebar-link">短信验证</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#侧边栏抽屉" class="sidebar-link">侧边栏抽屉</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#数据下载-导出" class="sidebar-link">数据下载/导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/components.html" class="active sidebar-link">业务组件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/components.html#数据导入导出" class="sidebar-link">数据导入导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/components.html#操作权限应用" class="sidebar-link">操作权限应用</a></li><li class="sidebar-sub-header"><a href="/team/frontend/components.html#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/framework.html" class="sidebar-link">系统框架</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#目录结构描述" class="sidebar-link">目录结构描述</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#api" class="sidebar-link">API</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#自定义指令集-directive" class="sidebar-link">自定义指令集 directive</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#表单校验规则" class="sidebar-link">表单校验规则</a></li></ul></li><li><a href="/team/frontend/web-open-platform.html" class="sidebar-link">网页能力开放平台</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/web-open-platform.html#平台介绍及使用规范" class="sidebar-link">平台介绍及使用规范</a></li><li class="sidebar-sub-header"><a href="/team/frontend/web-open-platform.html#现有项目-模块" class="sidebar-link">现有项目/模块</a></li></ul></li><li><a href="/team/frontend/quality.html" class="sidebar-link">质量保证体系</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#团队应用现状" class="sidebar-link">团队应用现状</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#语法检查" class="sidebar-link">语法检查</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#单元测试" class="sidebar-link">单元测试</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#端对端测试(end-to-end)" class="sidebar-link">端对端测试(End-to-end)</a></li></ul></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="业务组件"><a href="#业务组件" aria-hidden="true" class="header-anchor">#</a> 业务组件</h1> <p>整合了部分业务功能或特殊定制化需求的组件</p> <h2 id="数据导入导出"><a href="#数据导入导出" aria-hidden="true" class="header-anchor">#</a> 数据导入导出</h2> <p>公用数据导入导出组件,功能包含有数据介质模板下载(空或部分业务数据)、数据介质模板导出以及数据介质文件导入(上传)</p> <img src="/frontend/plugins/import-and-export.png" class="border-shadow"> <p>使用流程</p> <ol><li>手机短信验证身份</li> <li>下载、导出数据介质模板文件(非必须)</li> <li>选择并上传已填写/修改的数据介质文件</li> <li>预览文件内容</li> <li>执行数据介质文件上传</li> <li>上传成功/失败详细报告</li></ol> <p>目前已配置并使用在素+管理平台的以下业务场景中</p> <ul><li>通讯录 <code>导入</code> <code>导出</code></li> <li>客户档案 <code>导入</code> <code>导出</code></li> <li>组织部门 <code>导入</code></li> <li>常购产品 <code>导入</code> <code>导出</code></li> <li>存货档案 <code>导入</code> <code>导出</code></li> <li>期初数据 <code>导入</code></li></ul> <h2 id="操作权限应用"><a href="#操作权限应用" aria-hidden="true" class="header-anchor">#</a> 操作权限应用</h2> <p>适配根据对用户或角色指定的权限设置(例:增加、删除、导出等),对界面元素的权限控制应用(例:按钮、链接等),自动根据配置内容决定该元素是否出现于当前界面</p> <blockquote><p>如果用户角色为主管理员,则所有功能始终可用,不受该操作权限控制</p></blockquote> <p>完整权限字段如下:</p> <div class="language-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
add<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
delete<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
addCustom<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
export<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
import<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
addGroup<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
deleteGroup<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
editGroup<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
column<span class="token operator">:</span> <span class="token punctuation">{</span>
addCustom<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
basic<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
others<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
picture<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
price<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
contactWay<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
credit<span class="token operator">:</span> <span class="token punctuation">{</span>
check<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
edit<span class="token operator">:</span> <span class="token number">1</span>
<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br></div></div><h2 id="选择器"><a href="#选择器" aria-hidden="true" class="header-anchor">#</a> 选择器</h2> <p>用于挑选数据的选择器</p> <h3 id="存货选择器"><a href="#存货选择器" aria-hidden="true" class="header-anchor">#</a> 存货选择器</h3> <img src="/frontend/plugins/product.png" class="border-shadow"></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
←
<a href="/team/frontend/plugins.html" class="prev">
功能插件
</a></span> <span class="next"><a href="/team/frontend/framework.html">
系统框架
</a>
→
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
<script src="/assets/js/app.75260303.js" defer></script><script src="/assets/js/2.d106f811.js" defer></script><script src="/assets/js/14.e7ac0b94.js" defer></script>
</body>
</html>