CN115904572A - Template creating method, template calling method, program product, template system and template device - Google Patents

Template creating method, template calling method, program product, template system and template device Download PDF

Info

Publication number
CN115904572A
CN115904572A CN202211317895.2A CN202211317895A CN115904572A CN 115904572 A CN115904572 A CN 115904572A CN 202211317895 A CN202211317895 A CN 202211317895A CN 115904572 A CN115904572 A CN 115904572A
Authority
CN
China
Prior art keywords
template
content
sub
target
templates
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.)
Granted
Application number
CN202211317895.2A
Other languages
Chinese (zh)
Other versions
CN115904572B (en
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.)
Beijing Likong Yuantong Technology Co ltd
Original Assignee
Beijing Likong Yuantong 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 Beijing Likong Yuantong Technology Co ltd filed Critical Beijing Likong Yuantong Technology Co ltd
Priority to CN202211317895.2A priority Critical patent/CN115904572B/en
Publication of CN115904572A publication Critical patent/CN115904572A/en
Application granted granted Critical
Publication of CN115904572B publication Critical patent/CN115904572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a template creating method, a calling method, a program product, a system and a device, wherein the template creating method comprises the steps of obtaining a reference template, wherein the reference template has initial template content; responding to a sub-template creating instruction, creating a sub-template for a reference template, and specifying template contents of the sub-template based on the template contents of the reference template, wherein different sub-templates have different template contents; and integrating the reference template and the sub-template into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template. The template calling method comprises the steps of determining a target template to be called and a target sub-template to be called in the target template based on a trigger request when the trigger request for calling the template is received; determining the template content of the target sub-template according to the template content of the reference template in the target template; and displaying the content according to the template content of the target sub-template. The storage occupancy rate is low.

Description

Template creating method, template calling method, program product, template creating system and template creating device
Technical Field
The invention relates to the field of equipment monitoring, in particular to a template creating method, a template calling method, a program product, a template system and a template device.
Background
With the development of science and technology, the equipment in the industrial process can be monitored or controlled and managed through some monitoring software, and the intelligent management level of the industrial process is greatly improved. The monitoring software can acquire the operation data of the equipment and display the operation data of the equipment through a graphical interface so as to facilitate monitoring personnel to monitor the equipment. The graphical interface may include one or more components, among other things. The components may be rectangles, text, pictures, buttons, etc. The components can be associated with monitoring items of the equipment and show data of the associated monitoring items, so that operation data of the equipment can be shown through the graphical interface.
The components included in different graphical interfaces, the position relationship among the components, the monitoring items associated with the components, and the like may not be completely the same. The interface template can be an abstract expression of the graphical interface and is used for representing the components included in the graphical interface, the position relation among the components, the monitoring items related to the components and the like. Based on the interface template, a corresponding graphical interface may be created. At present, each graphical interface has a corresponding interface template, so that the number of interface templates is large, and the occupied storage is large.
Disclosure of Invention
In view of this, embodiments of the present invention provide a template creating method, a template calling method, a template creating system, a template calling system, a computer program product, an electronic device, and a computer-readable storage medium, which can reduce storage occupancy.
One aspect of the present invention provides a template creating method, including:
acquiring a reference template, wherein the reference template has initial template content;
responding to a sub-template creating instruction, creating a sub-template for the reference template, and appointing the template content of the sub-template based on the template content of the reference template, wherein different sub-templates have different template contents; and
and integrating the reference template and the sub-templates into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template.
The invention also provides a template calling method, which comprises the following steps:
when a trigger request for template calling is received, determining a target template to be called and a target sub-template to be called in the target template based on the trigger request;
determining the template content of the target sub-template according to the template content of the reference template in the target template; and
and displaying the content according to the template content of the target sub-template.
In another aspect, the present invention further provides a template creating system, including:
the template acquisition module is used for acquiring a reference template, and the reference template has initial template content;
the template creating module is used for responding to a sub-template creating instruction, creating a sub-template for the reference template and appointing the template content of the sub-template based on the template content of the reference template, wherein different sub-templates have different template contents; and
and the template integration module is used for integrating the reference template and the sub-templates into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template.
In another aspect, the present invention further provides a template calling system, including:
the template calling method comprises the steps that a request receiving module is used for determining a target template to be called and a target sub-template to be called in the target template based on a trigger request when the trigger request for calling the template is received;
the template content creating module is used for determining the template content of the target sub-template according to the template content of the reference template in the target template; and
and the content display module is used for displaying the content according to the template content of the target sub-template.
In another aspect, the present invention also provides a computer-readable storage medium for storing a computer program, which when executed by a processor implements the method as described above.
In another aspect, the present invention also provides an electronic device, which includes a processor and a memory, where the memory is used to store a computer program, and the computer program implements the method as described above when executed by the processor.
In another aspect, the present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the method as described above.
In the technical solutions of some embodiments of the present application, a target template is composed of a reference template and a plurality of sub-templates, and the template content of the sub-templates is specified based on the template content of the reference template, so that different modifications can be made on the basis of the reference template to obtain a plurality of different sub-templates. That is, one target template may include a plurality of sub-templates with different template contents. When the template is called, the target template to be called and the target sub-template in the target template can be simultaneously appointed, and then the template calling can be realized. Because the target template can comprise a plurality of sub-templates with different template contents, a plurality of different graphical interfaces can share the same target template without one graphical interface corresponding to one template, the number of interface templates is reduced, and the storage occupancy rate of the interface templates is further reduced.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
FIG. 1 is a schematic view of a monitoring flow of monitoring software;
FIG. 2 illustrates a schematic view of a monitoring window provided by an embodiment of the present application;
FIG. 3 illustrates a schematic view of a monitoring window provided by another embodiment of the present application;
FIG. 4 is a flow chart illustrating a template creation method provided by an embodiment of the present application;
FIG. 5 is a diagram illustrating the difference between the contents of two sub-templates and a reference template provided by an embodiment of the present application;
FIG. 6 illustrates a schematic structural diagram of a target template provided by an embodiment of the present application;
FIG. 7 is a flowchart illustrating a template invocation method provided by an embodiment of the present application;
FIG. 8 is a diagram illustrating a reference template import interface in the monitoring software according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a content variance assignment interface in monitoring software provided by an embodiment of the application;
FIG. 10 illustrates a schematic diagram of an association interface in monitoring software provided by an embodiment of the present application;
FIG. 11 illustrates a block diagram of a template creation system provided by an embodiment of the present application;
FIG. 12 is a block diagram illustrating a template invocation system provided by an embodiment of the present application;
fig. 13 shows a schematic diagram of an electronic device provided by an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The monitoring software in the application can monitor and control the equipment in the industrial process. Before explaining the scheme of the application, the related principle of the monitoring software is explained.
Please refer to fig. 1, which is a schematic view of a monitoring process of monitoring software. In fig. 1, the monitoring software may be communicatively connected to the devices in the industrial process for collecting operational data of the devices and recording the collected operational data in a database. The operation data refers to data of each monitoring item of the equipment in the operation process of the equipment. Such as the current level, voltage level, switch closure status, and whether the device is in use.
Based on the collected operation data, the monitoring software can display the operation data of the equipment by operating one or more monitoring windows, so that monitoring personnel can conveniently monitor the equipment. Meanwhile, monitoring personnel can also issue a control instruction to the equipment through the monitoring software so as to control the equipment. In particular, one or more components may be included in the monitoring window. These components may be associated with monitoring items of the device, present data for the associated monitoring items, or receive control instructions for the device.
For ease of understanding, reference is made to FIG. 2 in conjunction with a schematic illustration of a monitoring window provided in accordance with an embodiment of the present application. The illustration in fig. 2 includes 4 components. Wherein, different components can be used to associate different monitoring items of the device and display data of different monitoring items of the device, such as component 1 can be used to display voltage magnitude of the device, component 2 can be used to display current magnitude of the device, component 3 can display power magnitude of the device, and component 4 can display temperature magnitude of the device. The presentation of data by these components may vary. For example, for the component 1, the height of the black rectangular area in the component 1 may vary with the voltage variation of the corresponding device. In this way, by looking at the height of the black rectangular area in the assembly 1, the voltage variation of the device can be seen. For the assembly 2, the color of the inner circle in the assembly 2 may change when the current magnitude of the device exceeds the upper limit value or falls below the lower limit value. Therefore, the range of the current of the equipment can be checked by checking the color of the inner circle. For the component 3, the white area of the component 3 may be used as a display area. In the presentation area, the power level of the device can be directly presented. For the component 4, the component 4 can show the temperature trend of the device in a curve manner.
It can be understood that, in the monitoring software, the data of the same monitoring item can also be presented in different data presentation forms through different components. For example, both the above-described module 1 and module 2 can be used to display the voltage level of the device. Of course, the data of different monitoring items can also be respectively shown through different components with the same data showing form. Such as voltage level, current level, power level, and temperature level of the device, can be displayed using the component 3.
Referring to fig. 3 in combination, a schematic view of a monitoring window is provided according to another embodiment of the present application. In fig. 3, after the devices 1, 2, 3 there are corresponding start and stop buttons, respectively. The monitoring personnel can control the starting or stopping of the corresponding equipment by clicking the starting or stopping button. In this way, the device can be controlled by monitoring software.
It should be noted that fig. 2 and 3 are only schematic diagrams of two monitoring windows for easy understanding, and the actual monitoring window may be different from the monitoring windows shown in fig. 2 and 3.
In addition, in the monitoring software, when the monitoring window is not running, the components in the monitoring window may not display the associated monitoring item data and receive the control instruction, and the developer may adjust the components included in the monitoring window, the monitoring items associated with the components, the position relationship between the components, and the like. When the monitoring window runs, the components in the monitoring window can display the data of the related monitoring items or receive control instructions for the equipment, so that monitoring personnel can monitor or control the equipment conveniently. The components included in each monitoring window, the monitoring items associated with the components, the position relationship among the components and the like can be abstracted into a template.
Based on the above description, please refer to fig. 4, which is a flowchart illustrating a template creating method according to an embodiment of the present application. The template creating method can be applied to monitoring software or electronic equipment running the monitoring software. Electronic devices include, but are not limited to, desktop computers, notebook computers, tablet computers, and the like. In fig. 4, the template creating method may include the following steps:
step S41, a reference template is obtained, and the reference template has initial template content.
Where the reference template is an existing template that has already been created. In the reference template, there may be one or more components, and there may be a set positional relationship between the components, and the components may have a bound monitoring item, etc., i.e., the reference template may have initial template content. The reference template may serve as a base template for the template to be created. The template to be created may be modified on the basis of the reference template. Therefore, an existing template having a small content difference from the template to be created can be selected as the reference template according to the required template to be created.
In this embodiment, the template to be created may have the same components as the reference template, and the positional relationship between the components is the same. The difference between the template to be created and the reference template can be embodied in different text contents of the components or different monitoring items associated with the components. In short, the required template to be created can be obtained by modifying the component text in the reference template, the monitoring items associated with the components, and the like.
In other embodiments, the difference between the template to be created and the reference template may also be represented by the difference between the components included in the template or the difference in the positional relationship between the components. For example, the template to be created has fewer partial components than the reference template, or the positional relationship between the partial components is different. For another example, the template to be created includes different partial components relative to the reference template.
And S42, responding to a sub-template creating instruction, creating a sub-template for the reference template, and specifying the template content of the sub-template based on the template content of the reference template, wherein different sub-templates have different template contents.
Specifically, the sub-template creating instruction may be generated by an action trigger of a developer creating the sub-template in the monitoring software. For example, when the monitoring person clicks a button of "create sub-template", the developer may trigger generation of a template creation instruction.
The created sub-template may be a template whose contents are empty. I.e., the sub-template initially created, may have no components. The template content of the sub-template may be specified based on the template content of the reference template.
In some embodiments, specifying template content for the sub-template based on template content for the reference template may include:
and taking the template content of the reference template as a reference, and specifying the content difference between the sub-template and the reference template so as to obtain the template content of the sub-template according to the template content of the reference template and the content difference between the sub-template and the reference template.
Wherein the content differences between the sub-template and the reference template may be recorded by a difference file. In short, it is the created sub-template, which may have no template content. The template content of the sub-template can be embodied by the template content of the reference template and the difference file. When the sub-template is called, the content difference between the sub-template and the reference template recorded in the difference file can be read firstly, and then the template content of the sub-template is determined by combining the template content of the reference template.
It will be appreciated that different sub-templates may be obtained with different modifications to the reference template. Each sub-template may correspond to a difference file. Each difference file is used to record the content difference between the corresponding sub-template and the reference template. Therefore, the reference template is modified by combining different difference files, and the sub-templates with different characteristics can be obtained.
It should be noted that, when the reference template is modified simultaneously with different difference files, version conflict of the reference template may be caused, for example, when the reference template is modified with the difference file a, the number 3 in the reference template needs to be modified to 2, but when the reference template is modified with the difference file B, the number 3 in the reference template needs to be modified to 1. Therefore, the copying operation can be performed on the reference templates, so that each difference file corresponds to one reference template respectively, and the reference templates corresponding to each difference file are different. Therefore, the difference files can be combined, and the reference template corresponding to each difference file is modified respectively to obtain different sub-templates.
In some embodiments, specifying the content difference between the reference template and the sub-template using the template content of the reference template as a reference may include:
extracting first content allowed to be replaced in the reference template;
and responding to a content association instruction, associating second content for at least part of the first content, wherein the first content and the second content are contents with difference between the reference template and the sub-template, and replacing the associated first content with the second content in the reference template to obtain the sub-template.
Specifically, the content association instruction may be generated by an action trigger of a developer performing content association in the monitoring software. For example, when a developer inputs second content associated with first content in the monitoring software, the developer triggers generation of a content association instruction to associate the first content with the second content; or after the developer inputs second content associated with the first content in the monitoring software, a button representing the association can be clicked to trigger generation of a content association instruction so as to associate the first content with the second content.
The association relationship of the first content and the second content may be recorded in a difference file of the sub template and the reference template. The first content can be text content in the reference template, monitoring items associated with the components, specific components, position relations among the components and the like. The second content is content for replacing the first content. There may be one association list of the first content and the second content, respectively, for each sub-template, and the association lists of the first content and the second content may not be identical for different sub-templates. That is, the second content used to replace the first content may not be identical for different sub-templates.
For ease of understanding, reference is made to fig. 5, which is a schematic diagram illustrating the difference between the contents of two sub-templates and a reference template provided in an embodiment of the present application. In fig. 5, the first contents allowed to be replaced in the reference template include textA, textB, textC, textD, textE, the second contents of the first sub-template include textA1, textC1, textD1, and the second contents of the second sub-template include textB2, textC2, textD2.
For the first sub-template, textA1 is associated with textA, textC1 is associated with textC, and textD1 is associated with textD. textA1 is used to replace textA in the reference template, textC1 is used to replace textC in the reference template, and textD1 is used to replace textD in the reference template. It is not necessary to replace textB and textE in the reference template.
For the second sub-template, textB2 is associated with textB, textC2 is associated with textC, and textD2 is associated with textD. textB2 is used to replace textB in the reference template, textC2 is used to replace textC in the reference template, and textD2 is used to replace textD in the reference template. textA and textE in the reference template need not be replaced.
Although only one reference template is shown in fig. 5, the reference template should be copied to obtain at least two identical reference templates. And in one reference template, performing content replacement based on the second content of the first sub-template to obtain the template content of the first sub-template. And in the other reference template, performing content replacement based on the second content of the second sub-template to obtain the template content of the second sub-template. Therefore, version conflict caused when the second contents of the plurality of sub-templates replace the first contents in the same reference template can be avoided.
And S43, integrating the reference template and the sub-templates into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template.
The target template is obtained by integrating the reference template and the sub-templates, which may be obtained by integrating the difference files among the reference template, the reference template and each sub-template.
Referring to fig. 6, a schematic diagram of a target template according to an embodiment of the present application is provided. In fig. 6, the target template includes a reference template and N difference files (i.e., N sub-templates), and the template content of one sub-template can be determined based on the template content of any one of the difference files and the reference template. Each sub-template may be invoked individually to determine a graphical interface. I.e. one target template, allows for the existence of multiple templates (i.e. sub-templates) that can be called individually.
Correspondingly, when the template is created, a corresponding difference file can be generated under the reference template according to the content difference between the template to be created and the reference template. Several different templates to be created can be created in the same target template based on the same reference template.
The application provides a template calling method corresponding to the template creating method. The template calling method can be applied to monitoring software or electronic equipment running the monitoring software. Electronic devices include, but are not limited to, desktop computers, notebook computers, tablet computers, and the like. Please refer to fig. 7, which is a flowchart illustrating a template calling method according to an embodiment of the present application. In fig. 7, the template calling method includes the following steps:
step S71, when a trigger request of template calling is received, a target template to be called and a target sub-template to be called in the target template are determined based on the trigger request.
Specifically, the trigger request may be generated by a user performing a trigger action in an interface of the monitoring software when a graphical interface needs to be generated. Different trigger actions may trigger generation of different types of trigger requests. And the monitoring software can determine a target template to be called and a target sub-template to be called in the target template according to the request type of the trigger request.
In this embodiment, a plurality of buttons may be displayed in the interface of the monitoring software, and each button may be associated with one of the sub-templates in one of the target templates. When a button is triggered, a trigger request corresponding to the button is generated. The monitoring software determines the type of the triggering request by judging the triggered button, and further determines a target template to be called and a target sub-template to be called in the target template.
It is to be understood that the different types of trigger requests may also be generated based on other manners, which are not limited in this application. For example, after a user manually inputs a target template to be called and a target sub-template to be called in the target template in an interface of the monitoring software, a determination button in the interface is clicked to trigger generation of a trigger request corresponding to the input target template and target sub-template.
And step S72, determining the template content of the target sub-template according to the template content of the reference template in the target template.
Corresponding to the template creating method in fig. 4, the monitoring software may obtain the content difference between the reference template and the target sub-template, and then modify the template content of the reference template according to the content difference between the reference template and the target sub-template to obtain the template content of the target sub-template. The principle of this process can be referred to the description related to fig. 4, and is not described herein.
And S73, displaying the content according to the template content of the target sub-template. Namely, the graphical interface corresponding to the target sub-template is displayed according to the template content of the target sub-template.
In summary, in the technical solutions of some embodiments of the present application, one target template is composed of one reference template and a plurality of sub-templates, and the template content of the sub-template is specified based on the template content of the reference template, so that different modifications can be made on the basis of the reference template to obtain a plurality of different sub-templates. That is, one target template may include a plurality of sub-templates with different template contents. When the template is called, the target template to be called and the target sub-template in the target template can be simultaneously appointed, and then the template calling can be realized. Because the target template can comprise a plurality of sub-templates with different template contents, a plurality of different graphical interfaces can share the same target template without one graphical interface corresponding to one template, the number of interface templates is reduced, and the storage occupancy rate of the interface templates is further reduced. Meanwhile, the number of the interface templates is reduced, so that the efficiency of interface template management is improved.
The solution of the present application is explained below by means of a specific example.
See fig. 8-10 in combination. Fig. 8 is a schematic diagram of a reference template importing interface in monitoring software according to an embodiment of the present application. Fig. 9 is a schematic diagram of a content difference specification interface in monitoring software according to an embodiment of the present application. Fig. 10 is a schematic view of an associated interface in monitoring software according to an embodiment of the present application.
The interface shown in fig. 8 includes a button for importing the reference template, and by clicking the button, the reference template Draw may be imported in the monitoring software. After the reference template Draw is imported, the monitoring software may jump to the interface shown in FIG. 9. In the interface shown in fig. 9, two sub templates, draw01 and Draw02, are created for the reference template Draw, and the content differences of the sub templates Draw01 and Draw02 and the reference template Draw are specified. The reference template and the sub-template in fig. 9 may be integrated and saved as the target template.
Based on the target template saved in fig. 9, two buttons, a left button association sub-template Draw01 and a right button association sub-template Draw02, may be displayed in a monitoring window (shown in fig. 10) of the monitoring software. When the monitoring window runs, the left button is clicked, and the monitoring software displays a graphical interface corresponding to the sub-template Draw 01. And clicking a right button, and displaying a graphical interface corresponding to the sub-template Draw02 by the monitoring software.
Referring to fig. 11, a module diagram of a template creation system according to an embodiment of the present application is provided. The template creation system includes:
the template acquisition module is used for acquiring a reference template, and the reference template has initial template content;
the template creating module is used for responding to a sub-template creating instruction, creating a sub-template for the reference template, and appointing the template content of the sub-template based on the template content of the reference template, wherein different sub-templates have different template contents; and
and the template integration module is used for integrating the reference template and the sub-templates into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template.
Please refer to fig. 12, which is a block diagram illustrating a template calling system according to an embodiment of the present application. The template calling system comprises:
the template calling system comprises a request receiving module, a template calling module and a template calling module, wherein the request receiving module is used for determining a target template to be called and a target sub-template to be called in the target template based on a trigger request when the trigger request for calling the template is received;
the template content creating module is used for determining the template content of the target sub-template according to the template content of the reference template in the target template; and
and the content display module is used for displaying the content according to the template content of the target sub-template.
Fig. 13 is a schematic view of an electronic device according to an embodiment of the present application. The electronic device comprises a processor and a memory for storing a computer program which, when executed by the processor, carries out the above-mentioned method.
The processor may be a Central Processing Unit (CPU). The Processor may also be other general purpose Processor, digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the embodiments of the present invention. The processor executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
An embodiment of the present application further provides a computer-readable storage medium for storing a computer program, which when executed by a processor, implements the above-mentioned method.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the method as described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A template creation method, the method comprising:
acquiring a reference template, wherein the reference template has initial template content;
responding to a sub-template creating instruction, creating a sub-template for the reference template, and specifying template contents of the sub-template based on the template contents of the reference template, wherein different sub-templates have different template contents; and
and integrating the reference template and the sub-templates into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template.
2. The method of claim 1, wherein the specifying template content for the sub-template based on the template content for the reference template comprises:
and taking the template content of the reference template as a reference, and specifying the content difference between the sub-template and the reference template so as to obtain the template content of the sub-template according to the template content of the reference template and the content difference between the sub-template and the reference template.
3. The method of claim 2, wherein said referencing template content of the reference template to specify content differences between the reference template and the sub-template comprises:
extracting first content allowed to be replaced in the reference template;
and responding to a content association instruction, associating second content with at least part of the first content, wherein the first content and the second content are contents with difference between the reference template and the sub-template, and obtaining the sub-template after replacing the associated first content with the second content in the reference template.
4. A template calling method, the method comprising:
when a trigger request for template calling is received, determining a target template to be called and a target sub-template to be called in the target template based on the trigger request;
determining the template content of the target sub-template according to the template content of the reference template in the target template; and
and displaying the content according to the template content of the target sub-template.
5. The method of claim 4, wherein determining the template content of the target sub-template from the template content of the reference template comprises:
acquiring content difference between the reference template and the target sub-template;
and modifying the template content of the reference template according to the content difference between the reference template and the target sub-template to obtain the template content of the target sub-template.
6. The method of claim 4, wherein the determining a target template to be invoked and a target sub-template to be invoked in the target template comprises:
and determining a target template to be called and a target sub-template to be called in the target template according to the request type of the trigger request.
7. A template creation system, the system comprising:
the template acquisition module is used for acquiring a reference template, and the reference template has initial template content;
the template creating module is used for responding to a sub-template creating instruction, creating a sub-template for the reference template and appointing the template content of the sub-template based on the template content of the reference template, wherein different sub-templates have different template contents; and
and the template integration module is used for integrating the reference template and the sub-templates into a target template so as to obtain templates with different template contents by calling different sub-templates in the target template.
8. A template invocation system, characterized in that said system comprises:
the template calling method comprises the steps that a request receiving module is used for determining a target template to be called and a target sub-template to be called in the target template based on a trigger request when the trigger request for calling the template is received;
the template content creating module is used for determining the template content of the target sub-template according to the template content of the reference template in the target template; and
and the content display module is used for displaying the content according to the template content of the target sub-template.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program which, when executed by a processor, implements the method of any one of claims 1 to 3, or implements the method of any one of claims 4 to 6.
10. An electronic device, characterized in that the electronic device comprises a processor and a memory for storing a computer program which, when executed by the processor, implements the method of any of claims 1 to 3, or implements the method of any of claims 4 to 6.
CN202211317895.2A 2022-10-26 2022-10-26 Template creation method, calling method, program product, system and device Active CN115904572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211317895.2A CN115904572B (en) 2022-10-26 2022-10-26 Template creation method, calling method, program product, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211317895.2A CN115904572B (en) 2022-10-26 2022-10-26 Template creation method, calling method, program product, system and device

Publications (2)

Publication Number Publication Date
CN115904572A true CN115904572A (en) 2023-04-04
CN115904572B CN115904572B (en) 2023-07-28

Family

ID=86486324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211317895.2A Active CN115904572B (en) 2022-10-26 2022-10-26 Template creation method, calling method, program product, system and device

Country Status (1)

Country Link
CN (1) CN115904572B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003150584A (en) * 2001-11-16 2003-05-23 Nec Corp Multi-multi-template management system and method therefor and multi-multi-template management program
US20130326496A1 (en) * 2012-05-29 2013-12-05 International Business Machines Corporation Generating Super Templates to Obtain User-Requested Templates
CN106325973A (en) * 2015-06-29 2017-01-11 龙芯中科技术有限公司 Interpretive execution method and device for virtual machine instruction
CN107247587A (en) * 2017-05-26 2017-10-13 上海斐讯数据通信技术有限公司 A kind of web page template generation method and device
CN108170656A (en) * 2017-12-28 2018-06-15 阿里巴巴集团控股有限公司 Template establishment method, document creating method, rendering intent and device
CN109447406A (en) * 2018-09-20 2019-03-08 武汉达梦数据库有限公司 A kind of method of visioning procedure and the device of visioning procedure
CN111275788A (en) * 2019-12-16 2020-06-12 积成电子股份有限公司 Graph synthesis method based on common template graph and differential topological graph
CN111881385A (en) * 2020-07-21 2020-11-03 百度在线网络技术(北京)有限公司 Push content generation method, device, equipment and readable storage medium
CN112242909A (en) * 2019-07-16 2021-01-19 深信服科技股份有限公司 Management template generation method and device, electronic equipment and storage medium
CN112257006A (en) * 2020-11-11 2021-01-22 汉海信息技术(上海)有限公司 Page information configuration method, device, equipment and computer readable storage medium
CN112528619A (en) * 2020-12-23 2021-03-19 微医云(杭州)控股有限公司 Page template file generation method and device, electronic equipment and storage medium
CN113033171A (en) * 2019-12-09 2021-06-25 阿里巴巴集团控股有限公司 Template creating method, file generating method, device and computer equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003150584A (en) * 2001-11-16 2003-05-23 Nec Corp Multi-multi-template management system and method therefor and multi-multi-template management program
US20130326496A1 (en) * 2012-05-29 2013-12-05 International Business Machines Corporation Generating Super Templates to Obtain User-Requested Templates
CN106325973A (en) * 2015-06-29 2017-01-11 龙芯中科技术有限公司 Interpretive execution method and device for virtual machine instruction
CN107247587A (en) * 2017-05-26 2017-10-13 上海斐讯数据通信技术有限公司 A kind of web page template generation method and device
CN108170656A (en) * 2017-12-28 2018-06-15 阿里巴巴集团控股有限公司 Template establishment method, document creating method, rendering intent and device
CN109447406A (en) * 2018-09-20 2019-03-08 武汉达梦数据库有限公司 A kind of method of visioning procedure and the device of visioning procedure
CN112242909A (en) * 2019-07-16 2021-01-19 深信服科技股份有限公司 Management template generation method and device, electronic equipment and storage medium
CN113033171A (en) * 2019-12-09 2021-06-25 阿里巴巴集团控股有限公司 Template creating method, file generating method, device and computer equipment
CN111275788A (en) * 2019-12-16 2020-06-12 积成电子股份有限公司 Graph synthesis method based on common template graph and differential topological graph
CN111881385A (en) * 2020-07-21 2020-11-03 百度在线网络技术(北京)有限公司 Push content generation method, device, equipment and readable storage medium
CN112257006A (en) * 2020-11-11 2021-01-22 汉海信息技术(上海)有限公司 Page information configuration method, device, equipment and computer readable storage medium
CN112528619A (en) * 2020-12-23 2021-03-19 微医云(杭州)控股有限公司 Page template file generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115904572B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN108924029B (en) Method and device for sending customer service data
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
EP3472766A1 (en) Workflow visualization platform
CN109739855B (en) Method and system for realizing data sheet splicing and automatically training machine learning model
CN110955428A (en) Page display method and device, electronic equipment and medium
US10175954B2 (en) Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information
CN108830383B (en) Method and system for displaying machine learning modeling process
JP2017524169A (en) Method and apparatus for recommending solutions based on user actions
CN112148700A (en) Log data processing method and device, computer equipment and storage medium
CN107632751B (en) Information display method and device
CN106991036B (en) Prompting method and system for information input abnormity
CN113051493A (en) Application program display method and device, storage medium and terminal
CN112989151B (en) Data blood relationship display method and device, electronic equipment and storage medium
CN112817817B (en) Buried point information query method, buried point information query device, computer equipment and storage medium
CN113485909B (en) Test method, test device, computing equipment and medium
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN109358919B (en) Dynamic configuration method and device for universal page, computer equipment and storage medium
CN115904572B (en) Template creation method, calling method, program product, system and device
WO2023273621A1 (en) Script generation method and apparatus, device and medium
CN115237425A (en) Code viewing method and device, computer equipment and storage medium
CN108960433B (en) Method and system for running machine learning modeling process
CN111124393A (en) Editing method and platform of algorithm logic, electronic equipment and storage medium
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN112988291B (en) Page event management method and device, computer readable medium and electronic equipment
CN112417259A (en) Media resource processing method, device, 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
GR01 Patent grant
GR01 Patent grant