components.html 17.3 KB
<!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="买买买文档平台">
    
    
    <link rel="preload" href="/assets/css/0.styles.ec3b592e.css" as="style"><link rel="preload" href="/assets/js/app.00fda5b7.js" as="script"><link rel="preload" href="/assets/js/2.673282d9.js" as="script"><link rel="preload" href="/assets/js/12.8efe29d0.js" as="script"><link rel="prefetch" href="/assets/js/10.b12b4402.js"><link rel="prefetch" href="/assets/js/11.f51cde21.js"><link rel="prefetch" href="/assets/js/13.c6dcf5b4.js"><link rel="prefetch" href="/assets/js/14.a53b7430.js"><link rel="prefetch" href="/assets/js/15.ba3bb577.js"><link rel="prefetch" href="/assets/js/16.bf66f01a.js"><link rel="prefetch" href="/assets/js/17.dfb1bd34.js"><link rel="prefetch" href="/assets/js/18.e0d02757.js"><link rel="prefetch" href="/assets/js/19.a5f9b345.js"><link rel="prefetch" href="/assets/js/20.6379c462.js"><link rel="prefetch" href="/assets/js/21.8b1776f4.js"><link rel="prefetch" href="/assets/js/3.7d476fe4.js"><link rel="prefetch" href="/assets/js/4.68306dfc.js"><link rel="prefetch" href="/assets/js/5.a2888059.js"><link rel="prefetch" href="/assets/js/6.519e82b9.js"><link rel="prefetch" href="/assets/js/7.58b772d7.js"><link rel="prefetch" href="/assets/js/8.4c0298a0.js"><link rel="prefetch" href="/assets/js/9.624382f8.js">
    <link rel="stylesheet" href="/assets/css/0.styles.ec3b592e.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"><a class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></a> <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></ul></div></div><div class="nav-item"><a href="/" class="nav-link">项目管控</a></div><div class="nav-item"><a href="/" 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"><a class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></a> <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></ul></div></div><div class="nav-item"><a href="/" class="nav-link">项目管控</a></div><div class="nav-item"><a href="/" 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/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/http.html" class="sidebar-link">数据交互格式标准</a></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#app-内嵌网页" class="sidebar-link">App 内嵌网页</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/http.html">
          数据交互格式标准
        </a>

      </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.00fda5b7.js" defer></script><script src="/assets/js/2.673282d9.js" defer></script><script src="/assets/js/12.8efe29d0.js" defer></script>
  </body>
</html>