CN114565362A - Page generation method and device, electronic equipment and storage medium - Google Patents

Page generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114565362A
CN114565362A CN202210199235.2A CN202210199235A CN114565362A CN 114565362 A CN114565362 A CN 114565362A CN 202210199235 A CN202210199235 A CN 202210199235A CN 114565362 A CN114565362 A CN 114565362A
Authority
CN
China
Prior art keywords
page
node
displayed
determining
detail page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210199235.2A
Other languages
Chinese (zh)
Inventor
杨灵辉
黄钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202210199235.2A priority Critical patent/CN114565362A/en
Publication of CN114565362A publication Critical patent/CN114565362A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/20ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Epidemiology (AREA)
  • Biomedical Technology (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a page generation method and device, electronic equipment and a storage medium. The method comprises the following steps: when a data acquisition request is received, determining service attribute information in the data acquisition request; generating a target process node page based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, and determining a process step sequence; determining a detail page to be displayed corresponding to a next process step of the current process step based on the current process step and response data corresponding to the current process step; and determining a target business process page based on the target process node page and the details page to be updated. The method solves the problems of high cost, low reuse rate and poor flexibility of code development caused by hard configuration of all process steps of business processing in a code process in the prior art, reduces the development cost of a process node page, improves the accuracy of page skipping of the process steps, and achieves the effect of meeting the user application experience.

Description

Page generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to a computer processing technology, in particular to a page generation method, a page generation device, electronic equipment and a storage medium.
Background
With the development of business applications in the internet, when a user uses the business applications, the processing progress of the business process is usually displayed, so that the user can conveniently check the business processes.
At present, the setting method of the display mode generally divides the business process page corresponding to all the process nodes into two parts by using hard codes. Wherein, one part is a list for showing all process nodes on the left side of the page; the other part is generally to show some detailed information of the current flow node. The user can display the specific detailed information of the corresponding node in a linkage manner on the main screen by clicking the node which is finished in the node list.
However, in an actual business process scenario, different business processes include different process nodes, and different process nodes also include different process node states, so that a large number of process steps exist.
Disclosure of Invention
The embodiment of the invention provides a page generation method, a page generation device, electronic equipment and a storage medium, which are used for reducing the development cost of a process node page, improving the accuracy of page skipping of process steps and achieving the technical effect of meeting the user application experience.
In a first aspect, an embodiment of the present invention provides a page generation method, where the method includes:
when a data acquisition request is received, determining service attribute information in the data acquisition request;
generating a target process node page based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, and determining a process step sequence; wherein the sequence of process steps includes at least one process step;
determining a detail page to be displayed corresponding to a next process step of the current process step based on the current process step and response data corresponding to the current process step, and re-serving as the detail page to be displayed corresponding to the current process step;
and determining a target business process page based on the target process node page and the detail page to be updated.
In a second aspect, an embodiment of the present invention further provides a page generating apparatus, where the apparatus includes:
the service attribute information determining module is used for determining service attribute information in a data acquisition request when the data acquisition request is received;
a target process node page generation module, configured to generate a target process node page based on each service configuration item and a pre-configured data structure corresponding to the service attribute information, and determine a process step sequence; wherein the sequence of process steps includes at least one process step;
a to-be-displayed detail page determining module, configured to determine, based on the current flow step and the response data corresponding to the data acquisition request, a to-be-displayed detail page corresponding to a flow step next to the current flow step, and to re-serve as the to-be-displayed detail page corresponding to the current flow step;
and the target business process page determining module is used for determining a target business process page based on the target process node page and the detail page to be updated.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the page generation method according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page generating method according to any one of the embodiments of the present invention.
The technical scheme of the embodiment of the invention determines the service attribute information in the data acquisition request when the data acquisition request is received, generates the target process node page based on each service configuration item corresponding to the service attribute information and the pre-configured data structure, determines the sequence of the process steps, further determines the detail page to be displayed corresponding to the next process step of the current process step based on the current process step and the response data corresponding to the data acquisition request, and then re-acts as the detail page to be displayed corresponding to the current process step, and determines the target service process page based on the target process node page and the detail page to be updated, thereby solving the problems of high cost, low code reuse rate and poor flexibility of code development caused by hard configuration of all process steps of service processing in the code process based on a hard coding mode in the prior art, the method and the device have the advantages that when the service configuration item is obtained, the pre-configured data structure is called, the target process node page is quickly generated and used for displaying the process nodes, development cost of the process node page is greatly reduced, meanwhile, the arrangement relation among the process steps is determined based on the sequence of the process steps, when response data corresponding to the current process step is received, the next detailed page to be displayed corresponding to the next process step is quickly skipped, accuracy of page skipping of the process step is improved, and technical effects of meeting user application experience are achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart of a page generation method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a page generation method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a page generation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a page generation method provided in an embodiment of the present invention, where this embodiment is applicable to a case of process display, and the method may be executed by a page generation apparatus in an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and optionally, the method is implemented by an electronic device, and the electronic device may be a mobile terminal, a PC end, a server end, or the like. The device can be configured in a computing device, and the page generation method provided by the embodiment specifically includes the following steps:
s110, when a data acquisition request is received, determining service attribute information in the data acquisition request.
The service attribute information may include, but is not limited to, a card number identifier, a user identifier, a service identifier, and the like. For example, in a scene of an actual business process display, a corresponding process display page may be configured based on basic information of a user, business requirements, and the like, for example, a user card number ID, a user account ID, a business type, and the business type may be a physical examination reservation, a registration reservation, and the like.
In practical application, when a user triggers a certain control on a client page by using input equipment, the user considers that a data acquisition request is received, wherein the input equipment can comprise a physical keyboard, a virtual keyboard, sound acquisition equipment, handwriting equipment, a touch screen and the like; or when the uploaded task information is detected, the service end is considered to receive the data acquisition request, and at this time, the service attribute information may be queried from the data acquisition request.
It should be noted that, when a data acquisition request is received, service attribute information in the data acquisition request is determined, where the service attribute information may be information carried in the data acquisition request initiated by a client, and at this time, the data acquisition request may be processed, for example, by parsing, so as to extract the service attribute information carried in the data acquisition request.
Optionally, when receiving the data acquisition request, determining the service attribute information in the data acquisition request includes: receiving a data acquisition request generated based on user trigger operation; and analyzing the data acquisition request to obtain the service attribute information in the data acquisition request.
The triggering operation may include at least one of a click operation, a touch operation, and a slide operation.
In practical application, the interface can be used for receiving a data acquisition request generated by the user through the trigger operation of the client page, and further, the data acquisition request can be analyzed and processed, and the service attribute information carried in the data acquisition request can be found. For example, in a physical examination reservation scenario, when a user clicks a certain submission application control in a physical examination reservation page, the server side is considered to receive a data acquisition request corresponding to a page display, and at this time, the data acquisition request may be analyzed to obtain service attribute information, such as a user card number ID, a user account ID, a service identifier, carried in the request, so that a corresponding process display page is configured subsequently based on the service attribute information.
And S120, generating a target process node page based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, and determining a process step sequence.
The service configuration item may be understood as configuration information required by configuring a process page, for example, in an actual application, at least one service configuration item and corresponding configuration data may be preset based on a service requirement and a corresponding service process, for example, in a physical examination appointment service scene, an appointment process node may be used as the service configuration item, and the configuration data corresponding to the service configuration item may be pre-examination evaluation, customized physical examination, health examination report interpretation, health follow-up visit, and the like; the physical examination service time can also be used as a service configuration item, and the configuration data corresponding to the service configuration item can be start time, end time, and the like. At least one preset service configuration item can be included in the data structure. The target process node page is a page for displaying the business process steps. The sequence of process steps includes at least one process step, for example, the evaluation before inspection may be used as one process step, or the evaluation before inspection may be subdivided into a waiting state and a completion state, so as to obtain two process steps.
In this embodiment, in order to improve convenience of generating a flow page, a set of data structures for displaying the flow page may be predefined based on a service requirement, when each service configuration item corresponding to the service attribute information is acquired, the configuration data corresponding to the service configuration item may be filled into the preconfigured data structures, and a data structure including all the service configuration items and the configuration data is generated, at this time, the data structure includes all the flow nodes and data information including all node states included under the flow nodes, and then a page for displaying the service flow steps may be generated based on the information, correspondingly, a flow step sequence may also be determined based on the flow nodes and the corresponding node states, each flow step may be displayed based on the flow step sequence, and a target flow node page is obtained.
It should be noted that when the service attribute information is obtained, the service configuration items required by the process display page may be obtained through service attribute information return, for example, a plurality of process steps in the service handling process and the like, and the process steps may include node information, node state information and the like, and the node information and the node state information may be filled into a pre-configured data structure, so as to obtain a process display page corresponding to each process step, that is, a target process node page. In order to improve the reusability of codes and reduce the development of code amount, a preconfigured data structure may correspond to one process node, and correspondingly, if there are multiple process nodes, the data structure may be called multiple times, and the multiple filled data structures may be integrated into one data structure including all the process nodes, so as to obtain a target process node page.
Optionally, generating a target process node page based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, where the generating includes: determining at least one process node in each service configuration item corresponding to the service attribute information and at least one node state corresponding to each process node; for each process node, filling the current process node and each node state corresponding to the current process node into a pre-configured data structure to obtain a filled data structure; and analyzing the filled data structure to generate a target process node page.
The specific configuration data of the process node and the node state may be determined by a technician according to a working condition, and is not limited herein. For example, in the experience reservation service, the process node may include pre-examination assessment, customized physical examination, health examination, physical examination report interpretation, health follow-up, and the like. The node state of the pre-detection evaluation may include state information such as that no evaluation report is initiated, that the pre-detection evaluation has been initiated but the evaluation questionnaire is not completed, and that the evaluation questionnaire has been completed but no evaluation report is generated. The node status of the customized medical examination may include status information such as that an evaluation report is generated but a medical examination requirement is not submitted, that an evaluation questionnaire is completed but an evaluation report is not generated, and the like. The node status of the health examination may include status information such as that a customized scheme is generated but no physical examination is reserved, that a physical examination report is not generated but a physical examination is reserved, and the like. The node state of the physical examination report interpretation can include state information such as that a physical examination report is generated but an interpretation report is not generated, that a follow-up plan is generated but a follow-up task is not executed, and the like. The node state of the health follow-up visit can include state information that a follow-up visit plan is generated but a follow-up visit task is not executed, the follow-up visit task starts to be executed, and the like.
In practical application, after the service attribute information is determined, at least one corresponding service configuration item under the service attribute information may be called, and accordingly, a plurality of process nodes and at least one node state corresponding to each process node may be searched from each service configuration item. If the number of the process nodes is one, a pre-configured data structure can be called, then the process nodes and the node states under the process nodes can be filled into the data structure, the processed data structure is analyzed, and then a process node display page, namely a target process node page, can be generated based on the process nodes and the corresponding node states. If the number of the process nodes is multiple, the data structures with the number consistent with that of the process nodes can be called, then the node states of the process nodes and the nodes under the process nodes can be filled into the corresponding data structures, the filled data structures can be analyzed, then all the process nodes and all the states contained under the nodes can be filled into preset process page configuration data, and a target process node page is generated. And the user can check the progress of the business processing flow according to the target flow node page.
It should be noted that, in order to implement accurate skip of a flow step, after a service flow node and corresponding node states are determined, the flow step may be planned in detail, and accordingly, a flow step sequence may be determined based on an execution sequence of each flow node and an execution sequence of each node state under the flow node, so as to display a detailed page of the service node based on the flow step sequence.
Optionally, determining a sequence of process steps includes: obtaining at least one process step based on each process node and the corresponding node state; and arranging the flow steps to obtain a flow step sequence.
In this embodiment, each flow step in the service processing process may be determined and sequenced based on the sequence of execution of each flow node and the state of each corresponding node, so as to obtain a sequence of flow steps. For example, the corresponding step number can be integrated according to the form of flow node (type) + node state (state), and arranged from 1- > N, where N is a normal natural number. Such as: when the 1 st node is in the 1 st state (type is 1, state is 1), the corresponding process step is 1; when the type is 1 and the state is 2, the corresponding step is 2, and so on, a flow step required in common is counted to obtain a flow step sequence, so that after the current step operation is executed, the next step operation is automatically skipped, a subsequent client can conveniently determine which flow step the service is specifically executed to when the flow step is obtained, and correspondingly, a service processing detail page corresponding to the flow step can be displayed. For example, in the 2 nd state of the 5 th node, it may indicate that the follow-up task is started.
S130, determining a detail page to be displayed corresponding to the next flow step of the current flow step based on the current flow step and the response data corresponding to the current flow step, and taking the detail page to be displayed corresponding to the current flow step as a detail page to be displayed again.
The detail page to be displayed can be understood as a display detail page during the processing of the flow steps, and the user can also complete corresponding flow operations on the page.
It should be noted that, if the page flow presentation is triggered for the first time, a detail page corresponding to the first flow step (type 1, state 1) is presented, further, when feedback data after the processing of the first flow step is completed is received, the second flow step (type 1, state 2) may be found based on the flow step sequence, and the second flow step jumps to the detail page corresponding to the second flow step, and accordingly, the service processing operation may be continuously completed in the detail page subsequently.
Specifically, after the sequence of the flow steps is determined, when response data processed in the current flow step is received, a processing detail page corresponding to the next flow step in the current flow step, that is, a detail page to be displayed, may be determined, so as to implement automatic skip of the flow steps, and at this time, the detail page to be displayed may be re-used as the detail page to be displayed corresponding to the current flow step, so that when response data processed in the flow step is received again, the detail page corresponding to the next flow step in the current flow step is re-skipped.
It should be noted that, before generating the detail page to be displayed corresponding to the flow step, the page data corresponding to the flow node and the node state may be configured in advance based on the service requirement, for example, based on the evaluation node before inspection, a page a to be filled may be configured; the page B to be filled can also be configured based on the customized physical examination node, so that when the specific data information of the process node is obtained, the information can be directly filled into the corresponding page configured in advance to obtain the page to be displayed.
Optionally, determining, based on the current process step and response data corresponding to the current process step, a to-be-displayed detail page corresponding to a next process step of the current process step, and taking the to-be-displayed detail page as the to-be-displayed detail page corresponding to the current process step again includes: when response data corresponding to the current flow step is received, determining the next flow step corresponding to the current flow step; and generating a detail page to be displayed based on the process node and the node state corresponding to the next process step and preset page configuration data, and taking the detail page to be displayed as the detail page to be displayed corresponding to the current process step again.
In practical application, after the current flow step is processed, response data corresponding to the current flow step can be received, at this time, a next flow step corresponding to the current flow step can be searched in the flow step sequence, and then the next flow step (type + state) can be analyzed to obtain a corresponding flow node (type) and a node state (state), and then the flow node and the node state can be processed based on preset page configuration data to generate a detail page to be displayed; or when the flow node and the node state are analyzed, the detail page of the processing service corresponding to the node state under the flow node is directly called out in the system and is used as the detail page to be displayed and is displayed. For example, in the physical examination appointment completion step, the appointment detail information, the physical examination appointment node, the appointment completion state, and the like may be displayed in the details to be displayed page, and at this time, the details to be displayed page may be reused as the details to be displayed page corresponding to the current flow step. It should be noted that, in order to improve convenience of page generation and reduce system performance waste, a process node and a node state corresponding to a next process step may be sent to a page configuration factory class, such as a physical fragmentation factory class.
It should be further noted that, in practical applications, when a user clicks a processed flow node in a target flow node page, the flow node and corresponding processing data may be transmitted to the target flow node page, the display of an anchor point on the target flow node page is updated, and meanwhile, the physical fragmentation factor may analyze the flow node and corresponding processing data, and display a result detail page corresponding to the flow node.
It should be further noted that, when the detail page to be displayed is generated based on the process node and the node state corresponding to the next process step and the preset page configuration data, the process node and the node state may be matched with the field in the preset page configuration data, and then the specific information corresponding to the process node and the node state is inserted into the matched field position, so as to generate the detail page to be displayed corresponding to the process step.
Optionally, generating a detail page to be displayed based on the process node and the node state corresponding to the next process step and preset page configuration data, including: and filling the process nodes and the node states corresponding to the next process step into preset page configuration data, and generating a detail page to be displayed.
In practical application, in order to improve the richness of the page display of the flow step, the flow nodes and node states in the next flow step can be filled to preset positions in preset page configuration data, a detail page to be displayed corresponding to the flow step is generated and displayed, so that a user can accurately know the flow nodes and node states corresponding to the detail page to be displayed.
It should be noted that before the detail page to be displayed corresponding to the next flow step is obtained, the detail page to be displayed a corresponding to the previous flow step of the next flow step is displayed at this time, and then after the detail page to be displayed B corresponding to the next flow step is obtained, the detail page to be displayed B may be displayed.
Optionally, after determining the detail page to be displayed corresponding to the next process step of the current process step based on the current process step and the response data corresponding to the current process step, the method further includes: and replacing the displayed detail page to be displayed based on the detail page to be displayed to obtain the updated detail page to be displayed.
In practical application, after the detail page B to be displayed corresponding to the next flow step is obtained, the displayed detail page a to be displayed may be replaced based on the detail page to be displayed, and the detail page B to be displayed is displayed.
S140, determining a target business process page based on the target process node page and the to-be-updated detail page.
Specifically, the target process node page and the to-be-updated detail page may be displayed, for example, on a display screen of the client, the target process node page is displayed on the left side, and the to-be-updated detail page corresponding to the current process step is displayed on the right side. When the user clicks the process node in the target process node page, the result page corresponding to the process node is displayed in the right detail page to be updated. The target process node page and the details page to be updated may be used as the target business process page.
According to the technical scheme of the embodiment, when a data acquisition request is received, service attribute information in the data acquisition request is determined, a target process node page is generated based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, a process step sequence is determined, further, based on response data corresponding to the current process step and the data acquisition request, a detail page to be displayed corresponding to the next process step of the current process step is determined and is re-used as the detail page to be displayed corresponding to the current process step, and the target service process page is determined based on the target process node page and the detail page to be updated, so that the problems of high cost, low reuse rate and poor flexibility of developed codes due to the fact that all process steps of service processing are hard configured in a code process based on a hard coding mode in the prior art are solved, and when the service configuration items are acquired, the method comprises the steps of calling a pre-configured data structure, quickly generating a target process node page for displaying process nodes, greatly reducing the development cost of the process node page, determining the arrangement relation among the process steps based on the sequence of the process steps, quickly jumping to a to-be-displayed detail page corresponding to the next process step when response data corresponding to the current process step is received, improving the accuracy of page jumping of the process steps, and achieving the technical effect of meeting the user application experience.
Example two
As an optional embodiment of the foregoing embodiment, fig. 2 is a schematic diagram of a page generation method provided in the second embodiment of the present invention, and a specific application scenario example is given. Specifically, the following details can be referred to.
Referring to fig. 2, the server issues the agreed data structure data by using the interface, where the data structure data includes all process nodes and all node states included under the process nodes. The process nodes may include pre-examination assessment, customized physical examination, health examination, physical examination report interpretation, health follow-up, and the like. The node state of the pre-detection evaluation may include state information such as that no evaluation report is initiated, that the pre-detection evaluation has been initiated but the evaluation questionnaire is not completed, and that the evaluation questionnaire has been completed but no evaluation report is generated. The node status of the customized medical examination may include status information such as that an evaluation report is generated but a medical examination requirement is not submitted, that an evaluation questionnaire is completed but an evaluation report is not generated, and the like. The node status of the health examination may include status information such as that a customized scheme is generated but no physical examination is reserved, that a physical examination report is not generated but a physical examination is reserved, and the like. The node state of the physical examination report interpretation can include state information such as that a physical examination report is generated but an interpretation report is not generated, that a follow-up plan is generated but a follow-up task is not executed, and the like. The health follow-up visit node state can include the state information that the follow-up visit plan is generated but the follow-up visit task is not executed, the follow-up visit task is started to be executed, and the like. The client obtains all the process flow nodes by analyzing the data structure data, and all the nodes can be displayed in a target process node page (ListView). When the server side issues the process node where the current business processing operation of the user is located and the corresponding node state, the client side displays the progress of the current process step of the user, and anchors the corresponding process node in ListView. And the physical fragment factory generates a detail display page corresponding to the current flow step, namely a detail page to be updated. It should be noted that, after receiving the data structure data sent by the server, the client parses the data, displays all the process nodes in ListView, and anchors the process nodes corresponding to the current operation of the user. Meanwhile, the physical fragment factory takes the data of the data structure, analyzes the flow node (type) and the node state (state), takes the corresponding flow step (type + state), generates a detail page (ContentView) to be updated, and replaces and displays the displayed detail page to be updated. When the user clicks on the left ListView and has completed the process node, the process steps and corresponding configuration data may be transferred into the ListView, updating the display of the anchor point on the ListView. And analyzing the flow step and the corresponding data by the physical fragment factory, and displaying a result page corresponding to the flow step. After a user finishes a certain operation in the detail page to be updated, the detail page to be updated calls a next () method, the method keeps step +1 and some public data in a cache (bundle), and then calls a stepEncrese () method, and automatically jumps to the detail page to be updated corresponding to step +1 according to step.
On the basis of the above scheme, all process nodes (types) may be integrated into an array, that is, all nodes of the process, the node state (state) corresponds to different states in the process node, and descriptions of some other field information may also be set, for example, the fields may be a service flow number (bizld), a jump link (url), a state description (stateDesc), a service history log (text), a service start time (startTime), a last follow-up time (lastfluwupptime), a next follow-up time (nexfllowtime), a three-party unique id (uniqueid), and the like. The data structure data (data) of a certain process node may be in the following form:
data [ { "bizId": follow-up id ",
"lastFollowUpTime":1621328470868,
"nextFollowUpTime":1621328470868,
"startTime":1621328470868,
"state":2,
"stateDesc" -the follow-up task of the current person has started to be executed,
"type":5}]
it can be shown that the user starts to perform the follow-up task when the 5 th flow node is in the 2 nd node state.
On the basis of the scheme, the client can also integrate corresponding flow steps according to the form of flow node (type) + node state (state), and arrange from 1- > N, wherein N is a normal natural number. Such as: when the 1 st node is in the 1 st state (type is 1, state is 1), the corresponding process step is 1; when the type is 1 and the state is 2, the step is 2, and so on, a total required flow step is counted to obtain a flow step sequence, so that the user automatically jumps to the next flow step operation after the current flow step operation is executed, and the corresponding detail page to be displayed under the current flow step is displayed.
According to the technical scheme of the embodiment, when a data acquisition request is received, service attribute information in the data acquisition request is determined, a target process node page is generated based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, a process step sequence is determined, further, based on response data corresponding to the current process step and the data acquisition request, a detail page to be displayed corresponding to the next process step of the current process step is determined and is re-used as the detail page to be displayed corresponding to the current process step, and the target service process page is determined based on the target process node page and the detail page to be updated, so that the problems of high cost, low reuse rate and poor flexibility of developed codes due to the fact that all process steps of service processing are hard configured in a code process based on a hard coding mode in the prior art are solved, and when the service configuration items are acquired, the method comprises the steps of calling a pre-configured data structure, quickly generating a target process node page for displaying process nodes, greatly reducing the development cost of the process node page, determining the arrangement relation among all process steps based on a process step sequence, and quickly jumping to a to-be-displayed detail page corresponding to the next process step when response data corresponding to the current process step is received, so that the page jumping accuracy of the process steps is improved, and the technical effect of meeting the user application experience is achieved.
EXAMPLE III
Fig. 3 is a block diagram of a page generation apparatus according to a third embodiment of the present invention. The device includes: the system comprises a business attribute information determining module 310, a target process node page generating module 320, a to-be-displayed detail page determining module 330 and a target business process page determining module 340.
The service attribute information determining module 310 is configured to determine, when a data acquisition request is received, service attribute information in the data acquisition request; a target process node page generating module 320, configured to generate a target process node page based on each service configuration item and a pre-configured data structure corresponding to the service attribute information, and determine a process step sequence; wherein the sequence of process steps includes at least one process step; a to-be-displayed detail page determining module 330, configured to determine, based on the current process step and the response data corresponding to the data acquisition request, a to-be-displayed detail page corresponding to a next process step of the current process step, and to re-serve as the to-be-displayed detail page corresponding to the current process step; and a target business process page determining module 340, configured to determine a target business process page based on the target process node page and the details page to be updated.
According to the technical scheme of the embodiment, when a data acquisition request is received, service attribute information in the data acquisition request is determined, a target process node page is generated based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, a process step sequence is determined, further, based on response data corresponding to the current process step and the data acquisition request, a detail page to be displayed corresponding to the next process step of the current process step is determined and is re-used as the detail page to be displayed corresponding to the current process step, and the target service process page is determined based on the target process node page and the detail page to be updated, so that the problems of high cost, low reuse rate and poor flexibility of developed codes due to the fact that all process steps of service processing are hard configured in a code process based on a hard coding mode in the prior art are solved, and when the service configuration items are acquired, the method comprises the steps of calling a pre-configured data structure, quickly generating a target process node page for displaying process nodes, greatly reducing the development cost of the process node page, determining the arrangement relation among the process steps based on the sequence of the process steps, quickly jumping to a to-be-displayed detail page corresponding to the next process step when response data corresponding to the current process step is received, improving the accuracy of page jumping of the process steps, and achieving the technical effect of meeting the user application experience.
On the basis of the foregoing apparatus, optionally, the service attribute information determining module 310 includes a data obtaining request receiving unit and a service attribute information obtaining unit.
A data acquisition request receiving unit, configured to receive a data acquisition request generated based on a user trigger operation;
and the service attribute information acquisition unit is used for analyzing the data acquisition request to obtain the service attribute information in the data acquisition request.
On the basis of the above apparatus, optionally, the target process node page generating module 320 includes a service configuration item determining unit, a data structure obtaining unit, and a target process node page generating unit.
A service configuration item determining unit, configured to determine at least one process node in each service configuration item corresponding to the service attribute information and at least one node state corresponding to each process node;
a data structure obtaining unit, configured to, for each process node, fill a current process node and each node state corresponding to the current process node into a pre-configured data structure to obtain a filled data structure;
and the target process node page generating unit is used for analyzing each filled data structure to generate a target process node page.
On the basis of the above apparatus, optionally, the target process node page generating module 320 includes a process step acquiring unit and a process step sequence acquiring unit.
A flow step acquisition unit for acquiring at least one flow step based on each flow node and the corresponding node status;
and the flow step sequence acquisition unit is used for arranging all the flow steps to obtain a flow step sequence.
On the basis of the foregoing apparatus, optionally, the module 330 for determining a detail page to be displayed includes a next process step determining unit and a unit for updating a detail page to be displayed.
A next flow step determination unit configured to determine, when response data corresponding to a current flow step is received, a next flow step corresponding to the current flow step;
and the to-be-displayed detail page updating unit is used for generating a to-be-displayed detail page based on the process node and the node state corresponding to the next process step and preset page configuration data, and re-serving the to-be-displayed detail page as the to-be-displayed detail page corresponding to the current process step.
On the basis of the above device, optionally, the to-be-displayed detail page updating unit includes a to-be-displayed detail page generating subunit.
And the detail page to be displayed generating subunit is configured to fill the process nodes and the node states corresponding to the next process step into preset page configuration data, and generate a detail page to be displayed.
On the basis of the foregoing apparatus, optionally, the module 330 for determining a detail page to be displayed further includes a unit for replacing the detail page to be displayed.
And the to-be-displayed detail page replacing unit is used for replacing the displayed to-be-displayed detail page based on the to-be-displayed detail page to obtain the updated to-be-displayed detail page.
The page generation device provided by the embodiment of the invention can execute the page generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 60, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running programs stored in the system memory 402, for example, to implement the page generation method provided by the embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which are used for executing a page generation method when executed by a computer processor. The method comprises the following steps:
when a data acquisition request is received, determining service attribute information in the data acquisition request;
generating a target process node page based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, and determining a process step sequence; wherein the sequence of process steps includes at least one process step;
determining a detail page to be displayed corresponding to the next flow step of the current flow step based on the current flow step and response data corresponding to the current flow step, and taking the detail page to be displayed corresponding to the current flow step again;
and determining a target business process page based on the target process node page and the detail page to be updated.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A page generation method is characterized by comprising the following steps:
when a data acquisition request is received, determining service attribute information in the data acquisition request;
generating a target process node page based on each service configuration item corresponding to the service attribute information and a pre-configured data structure, and determining a process step sequence; wherein the sequence of process steps includes at least one process step;
determining a detail page to be displayed corresponding to the next flow step of the current flow step based on the current flow step and response data corresponding to the current flow step, and taking the detail page to be displayed corresponding to the current flow step again;
and determining a target business process page based on the target process node page and the detail page to be updated.
2. The method of claim 1, wherein the determining the service attribute information in the data acquisition request when the data acquisition request is received comprises:
receiving a data acquisition request generated based on user trigger operation;
and analyzing the data acquisition request to obtain the service attribute information in the data acquisition request.
3. The method of claim 1, wherein generating a target process node page based on each service configuration item corresponding to the service attribute information and a preconfigured data structure comprises:
determining at least one process node in each service configuration item corresponding to the service attribute information and at least one node state corresponding to each process node;
aiming at each process node, filling the current process node and each node state corresponding to the current process node into a pre-configured data structure to obtain a filled data structure;
and analyzing the filled data structures to generate a target process node page.
4. The method of claim 3, wherein the determining a sequence of process steps comprises:
obtaining at least one process step based on each process node and the corresponding node state;
and arranging the flow steps to obtain a flow step sequence.
5. The method according to claim 1, wherein the determining the detail page to be displayed corresponding to the next process step of the current process step based on the current process step and the response data corresponding to the current process step, and re-using the determined detail page to be displayed corresponding to the current process step comprises:
when response data corresponding to the current flow step is received, determining the next flow step corresponding to the current flow step;
and generating a detail page to be displayed based on the process node and the node state corresponding to the next process step and preset page configuration data, and taking the detail page to be displayed as the detail page to be displayed corresponding to the current process step again.
6. The method according to claim 5, wherein the generating a detail page to be displayed based on the flow node and the node state corresponding to the next flow step and preset page configuration data comprises:
and filling the flow nodes and the node states corresponding to the next flow step into preset page configuration data, and generating a detail page to be displayed.
7. The method according to claim 1, after determining the detail page to be displayed corresponding to the next process step of the current process step based on the current process step and the response data corresponding to the current process step, further comprising:
and replacing the displayed detail page to be displayed based on the detail page to be displayed to obtain the updated detail page to be displayed.
8. A page generating apparatus, comprising:
the service attribute information determining module is used for determining service attribute information in a data acquisition request when the data acquisition request is received;
a target process node page generation module, configured to generate a target process node page based on each service configuration item and a pre-configured data structure corresponding to the service attribute information, and determine a process step sequence; wherein the sequence of process steps includes at least one process step;
a to-be-displayed detail page determining module, configured to determine, based on the current flow step and the response data corresponding to the data acquisition request, a to-be-displayed detail page corresponding to a flow step next to the current flow step, and to re-serve as the to-be-displayed detail page corresponding to the current flow step;
and the target business process page determining module is used for determining a target business process page based on the target process node page and the detail page to be updated.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the page generation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a page generation method as claimed in any one of claims 1 to 7.
CN202210199235.2A 2022-03-02 2022-03-02 Page generation method and device, electronic equipment and storage medium Pending CN114565362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210199235.2A CN114565362A (en) 2022-03-02 2022-03-02 Page generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210199235.2A CN114565362A (en) 2022-03-02 2022-03-02 Page generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114565362A true CN114565362A (en) 2022-05-31

Family

ID=81716320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210199235.2A Pending CN114565362A (en) 2022-03-02 2022-03-02 Page generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114565362A (en)

Similar Documents

Publication Publication Date Title
CN110944048B (en) Service logic configuration method and device
CN110990411B (en) Data structure generation method and device, and calling method and device
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN113076104A (en) Page generation method, device, equipment and storage medium
CN111831542B (en) API application debugging method and device and storage medium
CN111917603A (en) Client test method and device, computer equipment and storage medium
CN113204345A (en) Page generation method and device, electronic equipment and storage medium
CN110825731A (en) Data storage method and device, electronic equipment and storage medium
CN112199261B (en) Application program performance analysis method and device and electronic equipment
CN114006885A (en) Data acquisition method and device based on intelligent equipment and electronic equipment
CN112799760A (en) Form rendering method and device
CN115543324B (en) Method, device, equipment and medium for generating interactive interface
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN114565362A (en) Page generation method and device, electronic equipment and storage medium
CN114928566A (en) Client function testing method and device, storage medium and electronic equipment
CN115269285A (en) Test method and device, equipment and computer readable storage medium
CN110753136B (en) Domain name resolution method, device, equipment and storage medium
CN110377401B (en) Transaction request processing method, device, server and storage medium based on IDEA
CN113724808A (en) Medical survey questionnaire generation method and device, electronic equipment and storage medium
CN110958243A (en) Network vulnerability submitting method and device, storage medium and electronic equipment
CN111767111A (en) Page data processing method and device, electronic equipment and storage medium
CN112445790B (en) Report data storage method, device, equipment and medium
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN112288452A (en) Advertisement preview method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination