Unlock instant, AI-driven research and patent intelligence for your innovation.

View layer code generation method and device, electronic equipment and storage medium

A code generation and view layer technology, applied in the computer field, can solve the problem of high development cost and achieve the effect of reducing development cost

Pending Publication Date: 2021-01-05
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In related technologies, when developing the model layer and the view layer, codes need to be written separately, resulting in high development costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • View layer code generation method and device, electronic equipment and storage medium
  • View layer code generation method and device, electronic equipment and storage medium
  • View layer code generation method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0046] The front-end business development of middle and back-end applications such as management systems generally includes two parts: model layer development and view layer development.

[0047] Among them, the process of model layer development is roughly as follows: use Redux, Mobx, Vuex and other state management tools to organize data into models that meet business needs; and provide specific methods for external calls to change data, such as changing data according to user operations, Get data, etc. through the interface.

[0048] The specific process of view layer development can be: use front-end frameworks such as React and Vue and component libraries such as AntD and Element to develop the view...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a view layer code generation method and device, electronic equipment and a storage medium, and the method comprises the steps of obtaining a model layer code of a model layer and a configuration file of the model layer, and storing a view template and a functional block of a view layer corresponding to the model layer in the configuration file; analyzing the model layer codeto obtain model data included in the model layer code, and analyzing the configuration file to obtain a view template and a functional block of a view layer corresponding to the model layer; determining a functional component corresponding to the data type of the model data according to a preset mapping relationship between the data type and the functional component; and generating a view layer code according to the view template and the functional block stored in the configuration file and the functional component. Visibly, through the technical scheme provided by the embodiment of the invention, the view layer code can be automatically generated, that is, the view layer code can be automatically generated directly through the model layer code, so that the development cost of the view layer is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a view layer code generation method, device, electronic equipment and storage medium. Background technique [0002] Middle and back-end applications such as management system front-end business development generally include model layer development and view layer development. Among them, the process of model layer development is: use state management tools to organize data into models that meet business needs; and provide specific methods for external calls to change data. The process of view layer development is: use the front-end framework and component library to develop the view layer. It mainly includes two types of tasks: writing the user interaction interface of the application and writing the user interaction logic of the application. [0003] In related technologies, when developing the model layer and the view layer, codes need to be written separately, res...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F8/35
CPCG06F8/38G06F8/35
Inventor 张影然
Owner BEIJING SANKUAI ONLINE TECH CO LTD