CN111124482B - Configuration method and device for document information - Google Patents

Configuration method and device for document information Download PDF

Info

Publication number
CN111124482B
CN111124482B CN201911358874.3A CN201911358874A CN111124482B CN 111124482 B CN111124482 B CN 111124482B CN 201911358874 A CN201911358874 A CN 201911358874A CN 111124482 B CN111124482 B CN 111124482B
Authority
CN
China
Prior art keywords
file
page
document
document information
configuration item
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.)
Active
Application number
CN201911358874.3A
Other languages
Chinese (zh)
Other versions
CN111124482A (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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201911358874.3A priority Critical patent/CN111124482B/en
Publication of CN111124482A publication Critical patent/CN111124482A/en
Application granted granted Critical
Publication of CN111124482B publication Critical patent/CN111124482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a method and a device for configuring document information, relates to the technical field of networks, and is used for solving the technical problem that a configuration scheme of the document information in the related art is not beneficial to subsequent modification of the document information. The method comprises the following steps: the method comprises the steps that a terminal obtains a first document template, wherein the first document template comprises a first configuration item and a second configuration item, the first configuration item is used for determining the position of document information in a page, and the second configuration item is used for configuring the document information; and finally, the terminal exports the document template into a first file, and the terminal stores the first file in a server. In this way, the client may download the first file from the server. Therefore, the client reads the first file when reading the front end code of the page, so that the client can display the document information in the page when displaying the page. The method and the device are applied to the configuration process of the document information.

Description

Configuration method and device for document information
Technical Field
The disclosure relates to the field of network technologies, and in particular, to a method and a device for configuring document information.
Background
Currently, in order to provide corresponding information for users, web pages or pages of application programs each display corresponding text information. For example, the text information may be advertisement words, propaganda words, or the like displayed in a text form.
In the related art, a worker writes document information into a front-end code. Thus, when the document information needs to be modified, the staff needs to rewrite the front-end code, which results in a large workload caused by the modification of the document information. Therefore, how to configure the document information to reduce the workload caused by modifying the document information later is a technical problem to be solved currently.
Disclosure of Invention
The disclosure provides a method and a device for configuring document information, which are used for solving the problem that the configuration scheme of the document information in the related technology is unfavorable for subsequent modification of the document information. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a method for configuring document information, the method including: the method comprises the steps that a terminal obtains a first document template, wherein the first document template comprises a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining the position of document information in a page, and the second configuration item in the first document template is used for configuring the document information; then, the terminal exports the first document template into a first file, wherein the first file can be read when the client reads the front end code of the page; the front end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the document information when the page is displayed; and finally, the terminal stores the first file in a server, wherein the server is used for providing the first file for the client.
In one possible implementation, the first configuration item includes: page routing address, page module name, and document predefined fields; or the first configuration item includes: an application program interface (application programming interface, API) address of the server, an object returned by the server, and a status code.
In one possible embodiment, the method further comprises: and the terminal carries out hash operation on the first file and generates a hash value of the first file. Then, the terminal sets the hash value of the first file as the name of the first file.
In one possible implementation, the first file is written in machine language.
In one possible embodiment, the method further comprises: under the condition that the document information needs to be modified, the terminal acquires a second document template, wherein the second document template comprises a first configuration item and a second configuration item, the first configuration item in the second document template is used for determining the position of the modified document information in the page, and the second configuration item in the second document template is used for configuring the modified document information; then, the terminal exports the second document template into a second file, wherein the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified document information when the page is displayed; and finally, the terminal replaces the first file stored in the server with the second file, wherein the server is used for providing the second file for the client.
In one possible embodiment, the method further comprises: the terminal carries out hash operation on the second file to generate a hash value of the second file; the terminal sets the hash value of the second file as the name of the second file.
In one possible implementation, the second file is written in machine language.
According to a second aspect of the embodiments of the present disclosure, there is provided a configuration apparatus of document information, including: the device comprises a setting module, a setting module and a display module, wherein the setting module is configured to execute setting to acquire a first document template, the first document template comprises a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining the position of document information in a page, and the second configuration item in the first document template is used for configuring the document information; a generation module configured to perform exporting the first document template into a first file that can be read when the client reads a front end code of the page; the front end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the document information when the page is displayed; and a storage module configured to perform storing the first file in a server for providing the first file to the client.
In one possible implementation, the first configuration item includes: page routing address, page module name, and document predefined fields; or the first configuration item includes: the application program interface address of the server, the object returned by the server, and the status code.
In a possible implementation manner, the generating module is further configured to perform a hash operation on the first file to generate a hash value of the first file; the hash value of the first file is set as the name of the first file.
In one possible implementation, the first file is written in machine language.
In a possible implementation manner, the setting module is further configured to obtain a second document template when the document information needs to be modified, where the second document template includes a first configuration item and a second configuration item, the first configuration item in the second document template is used for determining a position of the modified document information in the page, and the second configuration item in the second document template is used for configuring the modified document information. The generating module is further configured to perform exporting the second document template into a second file, wherein the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified document information when the page is displayed. The storage module is further configured to perform replacement of the first file stored in the server with the second file, the server being for providing the second file to the client.
In a possible implementation manner, the generating module is further configured to perform a hash operation on the second file to generate a hash value of the second file; the hash value of the second file is set to the name of the second file.
In one possible implementation, the second file is written in machine language.
According to a third aspect of embodiments of the present disclosure, there is provided a terminal comprising: and a processor, memory for storing processor-executable instructions. Wherein the processor is configured to execute instructions to implement the method of configuring document information of any one of the above first aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having stored therein instructions that, when executed on a terminal, cause the terminal to perform the method of configuring document information of any one of the above-described first aspects.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which when run on a computer, causes the computer to perform the method of configuring document information of any one of the above-mentioned first aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
The technical scheme provided by the embodiment at least brings the following beneficial effects: the terminal acquires a first document template; then, the terminal exports the first document template into a first file written in machine language; finally, the terminal stores the first file in the server so that the client can load the first file from the server. Since the first document template includes a first configuration item for determining a position of the document information in the page and a second configuration item for configuring the document information, the first document derived from the first document template can also be used for determining the document information and the position of the document information in the page. In this way, the client side can read the first file together when reading the front end code of the page, so the client side can determine the document information and the position of the document information in the page according to the first file, and the client side can display the document information when displaying the page. Therefore, the technical scheme of the disclosure can enable the client to correctly display the text information in the page. In addition, on the premise that the client side can correctly display the document information in the page, in the technical scheme of the disclosure, the first file is different from the front end code of the page, and the front end codes of the first file and the page are two different files, namely the document information is not written in the front end code, so that even if a worker needs to modify the document information, the worker does not need to rewrite the front end code. In this way, the technical scheme of the present disclosure can realize flexible configuration of the document information, promote configuration efficiency of the document information, and simplify subsequent operations of modifying the document information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an implementation environment, shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of configuring document information according to one example embodiment;
FIG. 3 is a flow diagram illustrating yet another method of configuring document information according to one example embodiment;
FIG. 4 is a block diagram of a configuration device of document information shown according to an example embodiment;
Fig. 5 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The following provides a brief description of an implementation environment (implementation architecture) to which the present disclosure relates. As shown in fig. 1, which is a schematic diagram illustrating one implementation environment to which the present disclosure is applicable. The implementation environment may include a terminal and a server, and the terminal may establish a connection with the server through a network (a wired network or a wireless network). Further, a client may be included in the implementation environment.
The terminal is equipment used by staff, and the staff can be front-end engineers, product managers, clerks and the like. The staff can use the terminal to perform configuration work of the document template, export the document template into a document (namely a first document or a second document in the following) carrying the document information, and store the document containing the document information in the server. The terminal may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a portable computer, etc., which is not limited in this disclosure.
The server can receive a file carrying the document information sent by the terminal. The server may then store the file carrying the document information. When a user uses a client to browse a webpage or uses an application program, the client can load a file carrying file information from a server; and then, the client side can display the corresponding text information when displaying the page by reading the file carrying the text information.
In some embodiments, the server may be a server built with front-end engineering; or the server may be a content delivery network (content delivery network, CDN) server.
In some embodiments, the server may be one server, or may be a server cluster composed of multiple servers, which is not limited in this disclosure.
The client, or user end, refers to a program corresponding to the server for providing services to the user. A user may browse a web page (or application interface) through a client. The client may be installed in a mobile phone, a tablet computer, a notebook computer, a desktop computer, a portable computer, etc., which is not limited in this disclosure.
For easy understanding, the following describes the configuration method of the text information provided in the present disclosure with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a method of configuring document information according to an exemplary embodiment, the method of configuring document information including the steps of:
S101, the terminal acquires a first document template.
The first document template comprises a first configuration item and a second configuration item. The first configuration item of the first document template is used to determine a location of the document information in the page. The second configuration item of the first document template is used for configuring document information.
Alternatively, the first configuration item may take any one of two designs:
Design 1, the first configuration item may include: page routing address, page module name, and document predefined fields.
The page route address is used for locating a page for displaying the text information. It will be appreciated that each page has its own unique page routing address. The client may access the page through the page routing address.
The page module name is used for determining a page module used for displaying the text information in the page. It will be appreciated that there may be one or more page modules in a page, and thus it is necessary to configure the page module name in the document module to determine the page module for presenting the document information.
The document predefined field is used to determine a field in the page module for showing the document information. It will be appreciated that there may be one or more fields in a page template, and thus it is necessary to configure the document predetermined fields in the document template to determine the fields for presenting the document information.
For example, based on design 1, when the document template is presented in the form of a form, the document template may be as shown in table 1. The specific document value in table 1 is the second configuration item of the document template.
TABLE 1
Page routing address
Page module name
Predetermined field of document
Specific document value
It should be noted that, for a static page, the document template should employ the first configuration item based on design 1.
Design 2, the first configuration item may include: the API address of the server, the object returned by the server, and the status code.
Wherein the API address of the server is the destination address of the request sent by the client.
The object returned by the server is the object returned to the client after the server receives the request sent by the client.
The status code is a digital code for describing the status of the response returned to the client by the server after receiving the request sent by the client. For example, the status code is "200" indicating that the client's request has been successful. The status code is "404" indicating that the client's request has failed. For a specific description of the status code, reference is made to the prior art, and will not be repeated here.
For example, based on design 2, when the document template is presented in the form of a form, the document template may be as shown in table 2.
TABLE 2
API address of server
Objects returned by server
State code
Specific document value
It should be noted that, for the page returned by the server according to the request information of the client, the document template should use the first configuration item based on design 2.
As one possible implementation, the terminal obtains the first document template in response to an input operation by the worker. In this case, the specific content of each configuration item in the first document template is determined according to the input operation of the worker.
Optionally, in the process that the staff fills in the configuration item in the first document template, in order to avoid the unexpected situation to cause the loss of the content in the first document template, the terminal may periodically save the document template. Therefore, even if an unexpected situation occurs, the terminal stores the document template of the previous period, so that a worker does not need to refill the configuration item in the first document template, and the use experience of the worker is improved.
Optionally, after the staff completes setting the configuration items in the first document template, responding to a saving operation of the staff, and saving the first document template in a local database by the terminal; or the terminal uploads the first document template to the cloud.
As another possible implementation manner, the terminal runs a configuration script of the document information to obtain the first document template. In this case, the specific content of each configuration item in the first document template is configured by the configuration script.
It is understood that the configuration script of the document information may be implemented according to the prior art, which is not described herein.
S102, the terminal exports the first document template into a first file.
As an alternative implementation, the terminal exports the first document template as the first file in response to an export operation of the staff member. Or after the staff or the configuration script finishes setting all the configuration items in the first document template, the terminal automatically exports the first document template into a first file.
Wherein the first file is written in machine language. Illustratively, the machine language may be JavaScript object notation (JavaScript Object Notation, json). Note that Json is a lightweight data exchange format. The file has the advantages of easy writing and reading, easy machine generation and analysis, high data transmission efficiency and the like.
It can be appreciated that, for the specific implementation of the first document template being derived as the first document, reference may be made to the related art, and details are not repeated herein.
In the disclosed embodiment, the first file is different from the front end code of the page. Alternatively, the first file is not in the front end code of the page. In this way, since the first file and the front end code are two different files, that is, the front end code is not written with the document information, the staff member can only modify the first file without modifying the front end code in the case that the document information needs to be modified.
In the embodiment of the disclosure, the first file can be read when the client reads the front end code of the page. The front end code of the page is used to cause the client to display the page. The first file is used for enabling the client to display the text information when the page is displayed.
Optionally, in the process that the terminal exports the first document template as the first file, the terminal may perform hash operation on the first file to generate a hash value corresponding to the first file. The terminal then sets the hash value of the first file as the name of the first file.
Note that, files with different contents correspond to different hash values. Therefore, when the name of a file is changed, the file is updated by using the hash value as the name of the file.
S103, the terminal stores the first file in the server.
As an alternative implementation, in response to a storage operation of the staff member, the terminal transmits the first file to the server, so that the server stores the first file.
In this way, since the server stores the first file, the client can download the first file from the server, and the client can display the document information when displaying the page by reading the first file.
If the server is a server with a front-end project built, the first file may be used as a dependency of the front-end project. It should be noted that the front-end engineering includes the front-end code of the page.
In the related art, the dependency term is defined as: if one program needs to rely on other programs to work, the other programs may be referred to as dependencies.
In the case where the first file is a dependency of the front-end project, the front-end project may parse the first file into an object to facilitate use of the front-end project.
For example, the object from which the first file was parsed may be marked as variable o. Assuming that url is used to represent a page routing address (or an API address of a server), res is used to represent a page module name (or an object returned by the server), result is a predetermined field of a document, and document logic shown in the front end is o [ url ] [ res ] [ result ].
Taking an e-commerce order as an example, different text contents can be displayed in different states of the order. With url as the page routing address, model as the page module name, orderstatus as the order status (i.e. corresponding to the predetermined field of the document above), the document logic shown at the front end is o [ url ] [ model ] [ orderstatus ].
The technical scheme provided by the embodiment at least brings the following beneficial effects: the terminal acquires a first document template; then, the terminal exports the first document template into a first file written in machine language; finally, the terminal stores the first file in the server so that the client can load the first file from the server. Since the first document template includes a first configuration item for determining a position of the document information in the page and a second configuration item for configuring the document information, the first document derived from the first document template can also be used for determining the document information and the position of the document information in the page. In this way, the client side can read the first file together when reading the front end code of the page, so the client side can determine the document information and the position of the document information in the page according to the first file, and the client side can display the document information when displaying the page. Therefore, the technical scheme of the disclosure can enable the client to correctly display the text information in the page. In addition, on the premise that the client side can correctly display the document information in the page, in the technical scheme of the disclosure, the first file is different from the front end code of the page, and the front end codes of the first file and the page are two different files, namely the document information is not written in the front end code, so that even if a worker needs to modify the document information, the worker does not need to rewrite the front end code. In this way, the technical scheme of the present disclosure can realize flexible configuration of the document information, promote configuration efficiency of the document information, and simplify subsequent operations of modifying the document information.
Based on the embodiment shown in fig. 2, how the staff member modifies the document information will be described below in connection with the embodiment shown in fig. 3.
Fig. 3 is a flowchart illustrating a method of configuring document information according to an exemplary embodiment. The configuration method of the document information comprises the following steps:
s201, under the condition that the terminal needs to modify the document information, acquiring a second document template.
The second document template comprises a first configuration item and a second configuration item. The first configuration item in the second document template is used to determine the location of the modified document information in the page. The second configuration item in the second document template is used for configuring the modified document information.
It should be noted that, the main difference between the second document template and the first document template is: the document information included in the second configuration item of the first document template is different from the document information included in the second configuration item of the second document template.
It can be understood that the implementation manner of the terminal for obtaining the second document template is similar to the implementation manner of the terminal for obtaining the first document template, and therefore, the implementation manner of the terminal for obtaining the second document template may refer to the description of the related content above, and will not be repeated herein.
S202, the terminal exports the second document template into a second file.
As an alternative implementation, the terminal exports the second document template as the second file in response to an export operation of the staff member.
Wherein the second file is written in machine language. The machine language may be Json, for example.
In the disclosed embodiment, the second file is different from the front end code of the page.
It will be appreciated that the second file can be read when the client reads the front end code of the page. The second file is used for enabling the client to display the modified document information when the page is displayed.
Optionally, in the process that the terminal exports the second document template as the second file, the terminal may perform hash operation on the second file to generate a hash value corresponding to the second file. The terminal sets the hash value of the second file as the name of the second file.
It will be appreciated that the second file is different from the first file in that the first document template and the second document template are different, and that the hash value of the second file is different from the hash value of the first file. Thus, the name of the second file is different from the name of the first file on the basis of the hash value as the name of the file. Thus, if the first file stored in the server is replaced by the second file, the client can quickly confirm that the file stored in the server has changed according to the change in the name of the file.
S203, the terminal replaces the first file stored in the server with the second file.
As an alternative implementation manner, in response to a replacement operation of a user, the terminal sends the second file to the server, so that the server deletes the first file and stores the second file, thereby achieving the purpose of replacing the first file stored by the server with the second file.
In this way, the client may download the second file from the server instead of the first file. Therefore, the client can display the modified document information when displaying the page by reading the second file.
The technical scheme provided by the embodiment at least brings the following beneficial effects: when the staff needs to modify the document information, the staff only needs to modify the document information configured by the second configuration item in the document template, and does not need to modify the front-end code, so that the workload brought by modifying the document information is reduced, and the staff can flexibly modify the document information.
It will be appreciated that the above method may be implemented by a document information configuration device. The configuration device of the document information comprises corresponding hardware structures and/or software modules for executing the functions in order to realize the functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present disclosure.
The embodiment of the disclosure may divide the functional modules of the configuration device of the above information according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present disclosure, the division of the modules is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 4 is a schematic structural diagram of a configuration device for document information, which is provided in an embodiment of the present disclosure and is applied to a terminal. The configuration device of the document information includes a setting module 101, a generating module 102, and a storage module 103.
The setting module 101 is configured to perform obtaining a first document template, where the first document template includes a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining a position of document information in a page, and the second configuration item in the first document template is used for configuring the document information.
A generation module 102 configured to perform exporting the first document template into a first file, the first file being readable when the client reads the front end code of the page; the front end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the text information when the page is displayed.
The storage module 103 is configured to perform storing the first file in a server, the server being configured to provide the first file to the client.
In one possible implementation, the first configuration item includes: page routing address, page module name, and document predefined fields; or the first configuration item includes: the application program interface address of the server, the object returned by the server, and the status code.
In a possible implementation manner, the generating module 102 is further configured to perform a hash operation on the first file to generate a hash value of the first file; the hash value of the first file is set as the name of the first file.
In one possible implementation, the first file is written in machine language.
In a possible implementation manner, the setting module 101 is further configured to obtain a second document template when the document information needs to be modified, where the second document template includes a first configuration item and a second configuration item, the first configuration item of the second document template is used for determining a position of the modified document information in the page, and the second configuration item in the second document template is used for configuring the modified document information. The generating module 102 is further configured to perform exporting the second document template into a second file, where the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified document information when the page is displayed. The storage module 103 is further configured to perform replacement of the first file stored in the server with the second file, the server being used for providing the second file to the client.
In a possible implementation manner, the generating module 102 is further configured to perform a hash operation on the second file to generate a hash value of the second file; the hash value of the second file is set to the name of the second file.
In one possible implementation, the second file is written in machine language.
Alternatively, the terminal may be the apparatus 200 shown in fig. 5. The apparatus 200 may be: smart phones, tablet computers, notebook computers or desktop computers. The apparatus 200 may also be referred to by other names as a staff device, portable terminal, laptop terminal, desktop terminal, etc.
The apparatus 200 may include at least one processor 201, a communication bus 202, a memory 203, and at least one communication interface 204.
The processor 201 may be a processor (central processing units, CPU), a microprocessor unit, an ASIC, or one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present disclosure.
Communication bus 202 may include a path to transfer information between the above components.
The communication interface 204 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
The memory 203 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-only memory, EEPROM), a compact disc read-only memory (compact disc read-only memory) or other optical disc storage, a compact disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be stand alone and be connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
Wherein the memory 203 is used for storing application program codes for executing the disclosed scheme and is controlled to be executed by the processor 201. The processor 201 is operative to execute application code stored in the memory 203 to thereby implement the functions in the methods of the present disclosure.
In a particular implementation, as one embodiment, processor 201 may include one or more CPUs, such as CPU0 and CPU1 of FIG. 5.
In a particular implementation, the apparatus 200 may include multiple processors, such as the processor 201 and the processor 207 in fig. 5, as one embodiment. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the apparatus 200 may further comprise an output device 205 and an input device 206, as an embodiment. The output device 205 communicates with the processor 201 and may display information in a variety of ways. For example, the output device 205 may be a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, or a projector (projector), or the like. The input device 206 is in communication with the processor 201 and may accept input from a worker in a variety of ways. For example, the input device 206 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
Those skilled in the art will appreciate that the structure shown in fig. 5 is not limiting of the apparatus 200 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The present disclosure also provides a storage medium including instructions stored thereon, which when executed by a processor of a computer device, enable the computer to perform the method of configuring document information provided by the above-described illustrated embodiments. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
The present disclosure also provides a computer program product containing instructions which, when run on a computer, cause the computer device to perform the method of configuring document information provided by the embodiments described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method for configuring document information, which is applied to a terminal, the method comprising:
Acquiring a first document template, wherein the first document template comprises a first configuration item and a second configuration item, the first configuration item of the first document template is used for determining the position of document information in a page, and the second configuration item of the first document template is used for configuring the document information; wherein the first configuration item includes: page routing address, page module name, and document predefined fields; or the first configuration item includes: an application program interface address of the server, an object returned by the server and a status code;
Exporting the first document template into a first file, wherein the first file can be read when a client reads a front end code of the page; the front end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the document information when the page is displayed;
Performing hash operation on the first file to generate a hash value of the first file;
Setting the hash value of the first file as the name of the first file;
storing the first file in a server, wherein the server is used for providing the first file to the client;
when the document information needs to be modified, a second document template is obtained, wherein the second document template comprises a first configuration item and a second configuration item, the first configuration item in the second document template is used for determining the position of the modified document information in the page, and the second configuration item in the second document template is used for configuring the modified document information;
Exporting the second document template into a second file, wherein the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified document information when the page is displayed;
And replacing the first file stored in the server with the second file, wherein the server is used for providing the second file to the client.
2. The method for configuring document information according to claim 1, wherein the first file is written in a machine language.
3. The method for configuring document information according to claim 1 or 2, characterized in that the method further comprises:
Performing hash operation on the second file to generate a hash value of the second file;
And setting the hash value of the second file as the name of the second file.
4. A document information configuration apparatus, the apparatus comprising:
The device comprises a setting module, a setting module and a display module, wherein the setting module is configured to execute the acquisition of a first document template, the first document template comprises a first configuration item and a second configuration item, the first configuration item in the first document template is used for determining the position of document information in a page, and the second configuration item in the first document template is used for configuring the document information; wherein the first configuration item includes: page routing address, page module name, and document predefined fields; or the first configuration item includes: an application program interface address of the server, an object returned by the server and a status code;
A generation module configured to perform exporting the first document template into a first file, the first file being readable when a client reads a front end code of the page; the front end code of the page is used for enabling the client to display the page; the first file is used for enabling the client to display the document information when the page is displayed;
The generating module is further configured to perform hash operation on the first file to generate a hash value of the first file; setting the hash value of the first file as the name of the first file;
a storage module configured to perform storing the first file in a server for providing the first file to the client;
The setting module is further configured to obtain a second document template when the document information needs to be modified, wherein the second document template comprises a first configuration item and a second configuration item, the first configuration item in the second document template is used for determining the position of the modified document information in the page, and the second configuration item in the second document template is used for configuring the modified document information;
The generating module is further configured to perform exporting the second document template into a second file, wherein the second file can be read when the client reads the front end code of the page; the second file is used for enabling the client to display the modified document information when the page is displayed;
The storage module is further configured to perform replacement of the first file stored in the server with the second file, the server being for providing the second file to the client.
5. The document information configuration device according to claim 4, wherein the first file is written in a machine language.
6. The document information configuring apparatus according to claim 4 or 5, wherein,
The generating module is further configured to perform hash operation on the second file to generate a hash value of the second file; and setting the hash value of the second file as the name of the second file.
7. The document information configuration device according to claim 4 or 5, wherein the second file is written in a machine language.
8. A terminal, the terminal comprising:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of configuring document information as claimed in any one of claims 1-3.
9. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of the terminal, cause the terminal to perform the method of configuring document information according to any one of claims 1-3.
CN201911358874.3A 2019-12-25 2019-12-25 Configuration method and device for document information Active CN111124482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911358874.3A CN111124482B (en) 2019-12-25 2019-12-25 Configuration method and device for document information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911358874.3A CN111124482B (en) 2019-12-25 2019-12-25 Configuration method and device for document information

Publications (2)

Publication Number Publication Date
CN111124482A CN111124482A (en) 2020-05-08
CN111124482B true CN111124482B (en) 2024-05-07

Family

ID=70502363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911358874.3A Active CN111124482B (en) 2019-12-25 2019-12-25 Configuration method and device for document information

Country Status (1)

Country Link
CN (1) CN111124482B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486264B (en) * 2021-06-18 2024-05-10 上海众言网络科技有限公司 Method and device for putting questionnaires

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123631A (en) * 2011-11-21 2013-05-29 阿里巴巴集团控股有限公司 Generation of copywriting, displaying method of webpage copywriting, device and website server
CN104750670A (en) * 2013-12-31 2015-07-01 阿里巴巴集团控股有限公司 Page document processing method and device
CN105897824A (en) * 2015-11-17 2016-08-24 乐视网信息技术(北京)股份有限公司 Hint copywriting sharing and configuration method and device and sharing system
WO2017124952A1 (en) * 2016-01-21 2017-07-27 阿里巴巴集团控股有限公司 Webpage script loading method and device
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN109194714A (en) * 2018-08-02 2019-01-11 深圳鼎盛电脑科技有限公司 A kind of official documents and correspondence method for pushing, device, terminal device and storage medium
CN109685473A (en) * 2018-12-26 2019-04-26 无线生活(北京)信息技术有限公司 Official documents and correspondence amending method and device
CN109901859A (en) * 2019-01-21 2019-06-18 平安科技(深圳)有限公司 Dynamic configuration official documents and correspondence method, electronic device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123631A (en) * 2011-11-21 2013-05-29 阿里巴巴集团控股有限公司 Generation of copywriting, displaying method of webpage copywriting, device and website server
CN104750670A (en) * 2013-12-31 2015-07-01 阿里巴巴集团控股有限公司 Page document processing method and device
CN105897824A (en) * 2015-11-17 2016-08-24 乐视网信息技术(北京)股份有限公司 Hint copywriting sharing and configuration method and device and sharing system
WO2017124952A1 (en) * 2016-01-21 2017-07-27 阿里巴巴集团控股有限公司 Webpage script loading method and device
WO2018086463A1 (en) * 2016-11-09 2018-05-17 阿里巴巴集团控股有限公司 User information obtaining system, method and device
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN109194714A (en) * 2018-08-02 2019-01-11 深圳鼎盛电脑科技有限公司 A kind of official documents and correspondence method for pushing, device, terminal device and storage medium
CN109685473A (en) * 2018-12-26 2019-04-26 无线生活(北京)信息技术有限公司 Official documents and correspondence amending method and device
CN109901859A (en) * 2019-01-21 2019-06-18 平安科技(深圳)有限公司 Dynamic configuration official documents and correspondence method, electronic device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于B/S的文档生成的设计与开发;宋胜攀;;电脑编程技巧与维护;20091018(第20期);全文 *
基于响应式信息管理导入导出模板设计的探讨;黄惠康;;电脑知识与技术;20170305(第07期);全文 *

Also Published As

Publication number Publication date
CN111124482A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN110019350B (en) Data query method and device based on configuration information
CN109976667B (en) Mirror image management method, device and system
WO2016026384A1 (en) Client page display method, device and system
US20100306738A1 (en) Templating system and method for updating content in real time
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
US20200125336A1 (en) System and method for enhancing component based development models with auto-wiring
CN107943465B (en) Method and device for generating HTML (Hypertext markup language) form
US11640441B2 (en) Page displaying method and device, computer-readable storage medium and electronic device
US10725799B2 (en) Big data pipeline management within spreadsheet applications
CN110941614A (en) Form generation method and device, electronic equipment and computer readable storage medium
US11151314B2 (en) Extensible grid layout
CN110874251A (en) Method and device for realizing picture wooden barrel layout
CN111125064A (en) Method and device for generating database mode definition statement
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN111124482B (en) Configuration method and device for document information
CN110807535A (en) Construction method and construction device of unified reservation platform and unified reservation platform system
CN112486482A (en) Page display method and device
CN111753226A (en) Page loading method and device
CN113656041A (en) Data processing method, device, equipment and storage medium
CN115455097A (en) Wind control data processing method, system, computer equipment and storage medium
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN112559914A (en) Index data display method and device

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