需要 -crm -nano (英语)
这个 neeto-crm-nano 促进NeetoCRM与neto产品相融合. 它输出 @bigbinary/neeto-crm-frontend 国家防范机制一揽子计划 neeto-crm-engine 铁路发展引擎.
目录
用主机应用程序开发
发动机
该引擎用于管理所有neto产品的CRM功能.
安装
-
创建一个
config/neeto_crm_engine.yml并添加所需的输入字段。 此文件被初始化器加载以配置 CRM 格式 。 您可以根据要求编辑字段.示例
input_fields: - value: "email" required: true allowed_kinds: ["email", "additional_guests"] - value: "phone_number" required: false allowed_kinds: ["phone"] - value: "company_name" required: false allowed_kinds: ["name", "text"] -
将此行添加到您的应用程序
Gemfile数字 :source "NEETO_GEM_SERVER_URL" do # ..existing gems gem 'neeto-crm-engine' # Use this for live development: # gem 'neeto-crm-engine', path: "../neeto-crm-nano" end -
然后执行:
bundle install -
将此行添加到您的应用程序
config/routes.rb文件 :mount NeetoCrmEngine::Engine, at: "/neeto_crm" -
运行以下命令将引擎的迁移复制到主机应用程序:
bundle exec rails neeto_crm_engine:install:migrations -
添加迁移到数据库 :
bundle exec rails db:migrate -
运行初始化生成器创建初始化文件 :
bundle exec rails g neeto_crm_engine:initializer -
在生成中
config/initializers/neeto_crm_engine.rb文件,请指定owner_class财务报告和审定财务报表owner_foreign_keyneeto客户关系管理整合应附在其上.NeetoCrmEngine.owner_class = "User" # Replace with your owner class NeetoCrmEngine.owner_foreign_key = "user_id" # Replace with your foreign key
前端软件包
安装
-
安装最新的
neeto-crm-frontend使用下列命令的软件包:yarn add @bigbinary/neeto-crm-frontend
发展指示
检查 前端软件包开发指南 用于开发前端软件包的分步指令.
构成部分
一体化
这个组件是客户关系管理系统UI的主要切入点. 它处理内部的路由,并根据所提供的配置提出适当的观点.
道具
integrationConfig(对象):组件的配置对象,结构如下: 1resource(对象):包含与客户关系管理所附资源相关的数据.id(字符串):资源标识.data(阵列):指资源的数据.processedData(阵列): 这是指应当被映射到客户关系管理领域的记录/问题.invalidateResource(函数):用于调试或使资源数据失效的函数.
navigation(对象):包含导航元素的配置.breadcrumbs(阵列):面包屑物体阵列({ text: string; path?: string; }) (中文(简体) ).basePath(字符串):CRM路线的基础路径(如,"/crm") (中文(简体) ).
help(对象):包含帮助文档的URL.docUrl(字符串):文档页面的URL.walkthroughVideoUrl(字符串):用于行走视频的URL.
使用量
import React from "react";
import { Integrations } from "@bigbinary/neeto-crm-frontend";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import { ToastContainer } from "react-toastify";
const Main = () => {
const integrationConfig = {
resource: {
id: "123",
data: [],
processedData: [],
invalidateResource: () => console.log("Invalidating resource..."),
},
navigation: {
breadcrumbs: [
{ text: "Settings", path: "/settings" },
{ text: "CRM" },
],
basePath: "/crm",
},
help: {
docUrl: "https://help.example.com/crm",
walkthroughVideoUrl: "https://videos.example.com/crm-walkthrough",
},
};
return (
<BrowserRouter>
<Switch>
<Route
path="/crm"
render={() => <Integrations integrationConfig={integrationConfig} />}
/>
</Switch>
<ToastContainer />
</BrowserRouter>
);
};
export default Main;
出版指令
咨询 构建和释放软件包 关于如何出版的详细指南.