基于lightning component的公司业务应用通用框架

 2022-04-06 08:04

论文总字数:30513字

摘 要

如今,随着互联网公司竞争的愈发激烈,客户关系成为许多公司关注的重心所在,一个高效而又成本合理的客户关系管理系统,对深入挖掘客户需求、培植营销土壤、维持稳定市场等方面有着至关重要的影响力。Salesforce作为一个云服务平台,提供完善的客户关系管理同时又具有可开发性。基于此背景,公司要求为客户关系管理系统搭建一套通用框架,此通用框架选择在Salesforce平台上使用Lightning框架进行开发。

通用框架包含处理业务逻辑模块、处理动作模块、处理路由模块和通用展示组件模块,本文将集中在业务逻辑模块中的数据请求部分,阐述模拟REST风格的请求方式的实现逻辑和资源配置,以及处理动作模块对实现应用界面组件和业务逻辑组件分离的重要支持,以及部分通用展示组件的实现。通用框架将应用中逻辑相似的功能进行提前封装,对外提供可配置的接口函数或组件,目的在于提高应用的开发速度,降低开发人员的学习成本,为了阐述使用本框架的优势,本文将通过一个已上线运行的实际应用——供应商审核系统来演示使用框架的快捷便利之处。在之后,客户关系管理系统下的所有应用开发都将建立在通用框架的基础之上,通用框架也将随着应用的开发而不断进行版本迭代和完善。

关键词:客户关系管理系统,云服务,Salesforce,Lightning框架

Abstract

Nowadays, with the increasingly fierce competition among Internet companies, customer relationship has become the focus of many companies. An efficient and cost-effective customer relationship management system has a crucial influence on digging customer demand, cultivating marketing soil, maintaining stable market and other aspects. As a cloud service platform, Salesforce provides sound customer relationship management and is also developable. Based on this background, the company required to build a common framework for CRM system, which chose to develop with Lightning framework on Salesforce platform. Generic framework includes business logic module, action module, routing module and general display component model. This article will focus on the data request portion about the implementation of simulating the REST style and configuration of resource , as well as the action module about providing support to the separation of interface components and business logic components, and implementation of some general display components . The purpose of the general framework is to improve the development speed of the application and reduce the learning cost of developers. This paper will also show supplier audit system, a practical application supported by the general framework and running on line to demonstrate the convenience of using a framework. In the future, all applications under the CRM system will be based on the general framework, which will be iterated and improved with the development of applications.

KEY WORDS: CRM system, cloud service, Salesforce, Lightning framework

缩略词表

缩略语

英文全称

中文全称

CRM

Customer Relationship Management

客户关系管理

SaaS

Software as a Service

软件即服务

PaaS

Platform as a Service

平台即服务

IaaS

Infrastructure as a Service

基础设施即服务

CRUD

Create、Read、Update、Delete

增删查改

SDK

Software Development Kit

软件开发工具包

IDE

Integrated Development Environment 

集成开发环境

API

Application Programming Interface

应用程序编程接口

OOTB

out of the box

开箱即用

REST

Representational State Transfer

表述性状态传递

URI

Uniform Resource Identifier

统一资源标识符

SOQL

Salesforce Object Query Language

Salesforce对象查询语言

DQE

Design Quality Enginee

设计质量工程师

DQM

Design Quality Manager

设计质量经理

目 录

摘 要............................................................................................................................................................................................I

Abstract.........................................................................................................................................................................................II

缩略词表.....................................................................................................................................................................................III

目 录....................................................................................................................................................................................IV

图 目 录......................................................................................................................................................................................V

表 目 录....................................................................................................................................................................................VI

第一章 绪论 1

1.1 研究背景 1

1.2 Salesforce的发展路程 2

1.3 论文研究内容及意义 3

1.4 论文组织结构 4

第二章 技术综述 5

2.1 云计算 5

2.1.1 基础设施即服务 5

2.1.2 平台即服务 5

2.1.3 软件即服务 6

2.2 Salesforce.com 6

2.3 Lightning 7

2.3.1 Lightning框架 7

2.3.2 Lightning事件驱动模型 8

2.3.3 Component介绍 9

2.3.4 Controller.js介绍 9

2.3.5 Helper.js介绍 10

2.4 本章小结 10

第三章 通用框架分析与设计 11

3.1 概述 11

3.2 通用框架 12

3.2.1 前端框架 13

3.2.2 后端框架 15

3.3 本章小节 15

第四章 通用框架的实现 16

4.1 通用框架的功能模块概述 16

4.2 处理业务逻辑模块——数据请求 17

4.2.1 REST资源配置 18

4.2.2 REST 资源的路径path 21

4.2.3 自定义method 22

4.3 处理动作模块Env_Action 24

4.3.1 处理按钮动作:Env_ButtonAction 25

4.3.2 处理初始化动作:Env_InitAction 27

4.3.3 处理代理动作:Env_DelegateAction 28

剩余内容已隐藏,请支付后下载全文,论文总字数:30513字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;