Creating the Opportunities and Customers pages
In this section, we'll build the Opportunities and Customers pages.
The Opportunities page allows users to browse and register a new sale opportunity. A sale opportunity occurs when a customer seems interested in buying a product or service. On the Opportunities page, we track all activities performed until the opportunity is won, when the customer buys the product or service, or until the opportunity is lost, when the customer buys a competitor's product or withdraws from the purchase.
The Customers page allows users to register and search for customers' contact information.
These two pages are similar; they use the ProTable
component to list the opportunities and customers registered. Run the following commands to generate the two pages:
$ yarn umi g page /Customers/index --typescript --less $ yarn umi g page /Opportunities/index --typescript --less
Now, let's start with the Customers page. Follow...