CN119576167A - Protocol text management method, device, storage medium and computer equipment - Google Patents
Protocol text management method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN119576167A CN119576167A CN202411812024.7A CN202411812024A CN119576167A CN 119576167 A CN119576167 A CN 119576167A CN 202411812024 A CN202411812024 A CN 202411812024A CN 119576167 A CN119576167 A CN 119576167A
- Authority
- CN
- China
- Prior art keywords
- protocol
- text
- response
- management
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/34—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Communication Control (AREA)
Abstract
The application provides a protocol text management method, a device, a storage medium and computer equipment, wherein the method comprises the steps of responding to the triggering operation of a new protocol control or a modified protocol control displayed in a protocol text management interface, displaying a protocol editing interface corresponding to a preset rich text editor, responding to the editing completion operation triggered in the rich text editor, obtaining a target protocol text corresponding to a current protocol version based on protocol information edited in the protocol editing interface and an edited protocol format, transmitting the target protocol text to a protocol database, and returning the target protocol text to a user side in response to a protocol content request of the user side, wherein the user side is used for displaying the target protocol text in the edited protocol format in response to the triggering operation of the protocol text to be browsed.
Description
Technical Field
The present application relates to the field of protocol management technologies, and in particular, to a method and apparatus for managing protocol text, a storage medium, and a computer device.
Background
With the increase of applications, many applications need to inform users to read corresponding privacy agreements, legal regulations related agreements, etc. In the modern management background, management of text contents such as laws and regulations and user protocols is an indispensable function. With the increasing complexity of user privacy policies and platform terms, platforms need a flexible way to update and manage these agreements to ensure that the document content presented at the time of user access always meets the latest legal and business requirements.
In the related art, protocol contents are manually input and updated through a background management end, and the front end acquires and displays the protocol through an interface.
However, in the implementation process, the related art has at least a problem of high cost of protocol text management.
Disclosure of Invention
Accordingly, the present application is directed to at least one of the above technical drawbacks, and particularly to a method, apparatus, storage medium and computer device for managing protocol text in the prior art.
In a first aspect, the present application provides a method for managing protocol text, the method comprising:
Responding to the triggering operation of a newly added protocol control or a modified protocol control displayed in a protocol text management interface, and displaying a protocol editing interface corresponding to a preset rich text editor;
Responding to the editing completion operation triggered in the rich text editor, and obtaining a target protocol text corresponding to the current protocol version based on the protocol information edited in the protocol editing interface and the edited protocol format;
the protocol database is used for responding to the protocol content request of the user side and returning the target protocol text to the user side;
the user side is used for responding to the triggering operation of the protocol text to be browsed and displaying the target protocol text in the edited protocol format.
In one embodiment, responding to the editing completion operation triggered in the rich text editor, obtaining the target protocol text corresponding to the current protocol version based on the protocol information edited in the protocol editing interface and the edited protocol format, including:
responding to the triggering operation of the displayed protocol saving control in the rich text editor, and displaying a selection window of the protocol saving type;
and storing the target protocol text in the target storage type in response to a selection operation of the target storage type in the selection window, wherein the target storage type is used for indicating whether the user is reminded that the protocol version is updated.
In one embodiment, the method further comprises:
responding to the triggering operation of a protocol type window in a protocol editing interface, and displaying a protocol type list;
determining a protocol type of the current editing protocol in response to a selection operation of the protocol type in the protocol type list;
Responding to the text input operation of the protocol content in the protocol editing interface, and acquiring the protocol text content;
based on the protocol type and the protocol text content, the protocol information edited in the protocol editing interface is obtained.
In one embodiment, the method further comprises:
Responding to the operation of opening the protocol text management interface, and displaying the history protocol texts corresponding to each history protocol version in the protocol text management interface;
in response to a nullification selection operation on the history protocol text, nullifying the selected history protocol text.
In one embodiment, in response to an operation of opening the protocol text management interface, a history protocol text corresponding to each history protocol version is displayed in the protocol text management interface, and the method further includes:
And responding to the operation of opening the protocol text management interface, and displaying the historical protocol version identifiers, the protocol types and the protocol modification time which are respectively corresponding to the historical protocol versions in the protocol text management interface.
In one embodiment, the method further comprises:
responding to the installation operation of the rich text editor, and acquiring the rich text editor;
In response to a selection operation of the rich text editor, the rich text editor is used as a rich text editor preset for protocol text management.
In a second aspect, the present application provides a protocol text management system, the system comprising:
The background management end is used for realizing the protocol text management method;
the database is used for storing the protocol text transmitted by the background management end;
The user end is used for responding to the triggering operation of the protocol text to be browsed, sending a protocol content request to the database, acquiring the target protocol text returned by the database, and displaying the target protocol text in the edited protocol format determined by the background management end during editing.
In a third aspect, the present application provides a protocol text management apparatus, comprising:
The editing response module is used for responding to the triggering operation of the newly added protocol control or the modified protocol control displayed in the protocol text management interface and displaying the protocol editing interface corresponding to the preset rich text editor;
The protocol determining module is used for responding to the editing completion operation triggered in the rich text editor and obtaining a target protocol text corresponding to the current protocol version based on the protocol information edited in the protocol editing interface and the edited protocol format;
the protocol database is used for responding to the protocol content request of the user side and returning the target protocol text to the user side;
the user side is used for responding to the triggering operation of the protocol text to be browsed and displaying the target protocol text in the edited protocol format.
In a fourth aspect, the application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the computer program is executed by the processor.
In a fifth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
From the above technical solutions, the embodiment of the present application has the following advantages:
According to the protocol text management method, the device, the storage medium and the computer equipment, the protocol text management interface is displayed at the back-end management end, and the newly-added protocol control or the modified protocol control can be displayed at the protocol text management interface, so that the user can modify or newly-added protocol texts at the back-end management end, and the management or the tracing of historical versions of the protocol texts can be facilitated for a plurality of protocol texts. And the editing of the protocol content is completed through the rich text editor, so that the front end is facilitated to acquire the rich text content and directly display the protocol text in the edited protocol format, and the displayed protocol text format is ensured to be consistent with the format of the background management end, so that the cost of protocol text management can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the application, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic flow chart of a protocol text management method according to an embodiment of the present application;
FIG. 2 is a schematic diagram I of a protocol editing interface according to an embodiment of the present application;
fig. 3 is a second flow chart of a protocol text management method according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of a protocol editing interface according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for managing protocol text according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a protocol text management interface according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a protocol text management system according to an embodiment of the present application;
fig. 8 is a flow chart diagram of a protocol text management method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a protocol text management apparatus according to an embodiment of the present application;
Fig. 10 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
With the increase of applications, many applications need to inform users to read corresponding privacy agreements, legal regulations related agreements, etc. In the modern management background, management of text contents such as laws and regulations and user protocols is an indispensable function. With the increasing complexity of user privacy policies and platform terms, platforms need a flexible way to update and manage these agreements to ensure that the document content presented at the time of user access always meets the latest legal and business requirements.
In the related art, protocol contents are manually input and updated through a background management end, and the front end acquires and displays the protocol through an interface. However, many systems lack version management mechanisms on the updating of protocol content, it is difficult to inform a user that the protocol has been updated, or it is not convenient to configure different versions of protocol content. In addition, when content is displayed, the front-end component needs to do a lot of format processing work, so that the background configuration content is inconsistent with the front-end display content.
Meanwhile, many software systems lack protocol version management, and it is difficult to trace back historical versions or remind users of updated conditions of protocols. When the rich text content configured in the background is displayed at the front end, the rich text content cannot be completely restored due to differences of equipment, a browser and the like, so that user experience is affected. The front-end team needs to customize corresponding pages or components according to the display requirements of different protocols, and the maintenance cost is high. When laws and regulations or activity rules are adjusted, development or modification is needed depending on technicians, response is not flexible enough, and frequent business requirements are difficult to meet.
That is, in the implementation process, the related art at least has the problem of high cost of protocol text management.
Based on the above, the application provides a protocol text management method, a device, a storage medium and computer equipment. The protocol text management interface is displayed at the back-end management end, and the newly added protocol control or the modified protocol control can be displayed at the protocol text management interface, so that the user can modify or newly add the protocol text at the back-end management end, and the history version of the protocol text can be managed or traced back to a plurality of protocol texts. And the editing of the protocol content is completed through the rich text editor, so that the front end is facilitated to acquire the rich text content and directly display the protocol text in the edited protocol format, and the displayed protocol text format is ensured to be consistent with the format of the background management end, so that the cost of protocol text management can be reduced.
In an exemplary embodiment, fig. 1 is a schematic flow diagram of a protocol text management method according to an embodiment of the present application, as shown in fig. 1, where the method is applied to a terminal for illustration, it is to be understood that the method may also be applied to a server, and may also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes S101 to S103. Wherein:
S101, responding to the triggering operation of the newly added protocol control or the modified protocol control displayed in the protocol text management interface, and displaying a protocol editing interface corresponding to a preset rich text editor.
The protocol text management interface may be an interface in a protocol management system. The new protocol control may be a control for the new protocol. The modify protocol control may be a control for modifying a history protocol. The rich text editor may be a tool for rich text editing, for example, the rich text editor may be TinyMCE editor, tinyMCE is an HTML editor that complies with the LGPL licensing protocol, guided by the web page interface. As one example, the application mainly takes TinyMCE editor as rich text editor, and realizes the editing of protocol text by the application. The protocol editing interface may be an interface provided by a rich text editor, and may be used to implement editing of rich text. For example, fig. 2 is a schematic diagram of a protocol editing interface provided in an embodiment of the present application, and as shown in fig. 2, the protocol editing interface may include a protocol header area, a protocol type area, and a protocol content area.
The background management end may respond to an operation of opening the protocol text management interface by a user, and display a protocol text management interface, and may display a new protocol control and a modification protocol control on the protocol text management interface, where each history protocol text may correspond to a modification protocol control, and triggering a modification protocol corresponding to the history protocol text modifies the history protocol text.
The back-end management end can respond to the triggering operation of the newly-added protocol control, trigger the instruction of the newly-added protocol text, display a protocol editing interface corresponding to a TinyMCE editor for the newly-added protocol text, enable a user to realize the operation of the newly-added protocol content through the protocol editing interface, and generate a new version of protocol text based on the newly-added protocol content.
The back-end management end can also respond to the triggering operation of a protocol control for modifying a certain historical protocol text, display the protocol content of the historical protocol text in a protocol editing interface corresponding to a display TinyMCE editor, and the user can modify the protocol content and can generate a new version of protocol text after modifying the protocol content.
Therefore, the application not only has the function of adding the protocol text, but also can realize the management of the history protocol text, thereby being beneficial to improving the efficiency of protocol text management.
As an example, a TinyMCE rich text editor may be integrated at the background management end, allowing operators to configure protocol content, whether legal or activity rules specifications, etc., according to requirements. The rich text editor supports inserting text, pictures, tables, links, etc. content and can be customized using CSS styles.
S102, responding to the editing completion operation triggered in the rich text editor, and obtaining a target protocol text corresponding to the current protocol version based on the protocol information edited in the protocol editing interface and the edited protocol format.
The editing completion operation may be an operation that is actively triggered by the user to complete editing, for example, when the user triggers a save operation, the editing completion may be considered. Protocol information may refer to protocol content that is entered or modified by a user. The protocol format may refer to a format or form of the protocol content in a rich text editor, e.g., paragraph, picture position, etc. The current protocol version may be a newly generated protocol version, and may be a new protocol version obtained after the current editing is completed.
Illustratively, the background manager may obtain the entered or edited protocol information content in response to an editing operation in the rich text editor, and determine a protocol format for the protocol text. The background management end can respond to the operation of saving the protocol triggered in the rich text editor, save the protocol text content in the protocol format based on the protocol information content and the determined protocol format to obtain the target protocol text, and can generate a new version identifier for the target protocol text, namely the version identifier corresponding to the target protocol text.
Therefore, the target protocol text of the new version identification can be generated through the determined protocol information and protocol format, so that the management of the protocol text of each version can be facilitated, the front end can directly display the protocol text according to the protocol format, the protocol content of the background configuration is ensured to be highly consistent with the display effect of the front end, and the development workload and the maintenance cost can be reduced.
And S103, transmitting the target protocol text to a protocol database, wherein the protocol database is used for responding to the protocol content request of the user terminal and returning the target protocol text to the user terminal.
The user side is used for responding to the triggering operation of the protocol text to be browsed and displaying the target protocol text in the edited protocol format.
The protocol database may be a storage system integrated on the server. The client may refer to a front end, and before browsing some web pages or applications, the client needs to know the protocols related to the web pages or applications, for example, privacy protocols, legal regulations, etc.
For example, the background manager may transmit the newly generated target protocol text to a protocol database, through which the protocol text is managed.
The user terminal can respond to the triggering operation of browsing the protocol text and send a protocol content request to the protocol database, and the protocol database can respond to the protocol content request and send a target protocol text to the user terminal. The target protocol text is the latest version of the protocol text. After the user side obtains the target protocol text from the protocol database, the target protocol text can be directly displayed in a format of the protocol edited in the rich text editor, so that the user can know the related protocol content. Therefore, the method is beneficial to ensuring that the protocol content of the background configuration is highly consistent with the front-end display effect, reducing the development workload and the maintenance cost, and effectively realizing the display of the target protocol text.
Optionally, the user side may trigger an instruction to browse the protocol text when entering the associated website or application program, that is, when the user needs to browse some website or application program, the user needs to browse the related protocol text such as privacy protocol or legal rules in advance, so as to ensure privacy security or legitimacy.
Or the user side can be provided with a related control for viewing the protocol text, and the user side can respond to the triggering operation of the control for viewing the protocol text to present the target protocol text
As an example, the application configures legal regulations and protocol documents through TinyMCE editor, creates, modifies and manages version of the documents in background, and the front end can display the rich text content returned by the H5 component or the page direct reading interface. The scheme provides a flexible protocol version updating mechanism while keeping the content highly consistent.
In this embodiment, a protocol text management interface is displayed at the back-end management end, and a new protocol control or a new protocol control is displayed at the protocol text management interface, so that a user can modify or add a protocol text at the back-end management end, and can manage or trace back historical versions of the protocol text for a plurality of protocol texts. And the editing of the protocol content is completed through the rich text editor, so that the front end is facilitated to acquire the rich text content and directly display the protocol text in the edited protocol format, and the displayed protocol text format is ensured to be consistent with the format of the background management end, so that the cost of protocol text management can be reduced.
In an exemplary embodiment, fig. 3 is a second flowchart of a protocol text management method according to the embodiment of the present application, as shown in fig. 3, on the basis of fig. 1, the steps in the protocol text management method are described in detail, in the step S102, in response to the editing completion operation triggered in the rich text editor, a target protocol text corresponding to the current protocol version is obtained based on the protocol information edited in the protocol editing interface and the edited protocol format, including S301 to S302, where:
S301, responding to the triggering operation of the displayed protocol saving control in the rich text editor, and displaying a selection window of the protocol saving type;
S302, responding to the selection operation of the target save type in the selection window, and saving the target protocol text in the target save type, wherein the target save type is used for indicating whether the user is reminded that the protocol version is updated.
The protocol saving control may be a control for saving the edited protocol content after the editing of the protocol content is completed. The protocol storage type can be a storage mode of a protocol, for example, the protocol can be directly stored or stored with conditions, and the protocol can be stored with conditions for updating a protocol version and reminding a user of confirming updated protocol content. The selection window may refer to a window for selecting a protocol save type.
Illustratively, the background manager may trigger an instruction to save protocol text and present a selection window of a protocol save type that may be selected in response to a trigger operation of the protocol save control in the TinyMCE editor. The user may select the type that wants to save, for example, the user may select to save only the protocol text, or select to save the protocol and update the version, and when selecting to save the protocol and update the version, the user side needs to agree to the updated target protocol text again.
The background management end can respond to the selection operation of the user on the storage type in the selection window, take the selected storage type as a target selection type and store target protocol text according to the target storage type.
Optionally, fig. 4 is a schematic diagram of a second protocol editing interface provided by the embodiment of the present application, as shown in fig. 4, after the "confirm save" control is triggered, the background management end may display a save-only protocol and a save-type control that saves the protocol and updates a version.
The administrator can choose whether to force the reminder for the user to update the protocol, and if the reminder is selected to be enabled, the user will see the update prompt when logging in next time and be required to read the new protocol content.
In the embodiment, the selection window of the protocol preservation type is displayed by responding to the triggering operation of the protocol preservation control which can be displayed in the rich text editor, so that the selection of the preservation type can be provided, and the user side can be reminded of the protocol text which needs to be confirmed after updating by forcing at the background management side, thereby being beneficial to realizing supporting version control and updating reminding, helping the platform to operate in compliance and guaranteeing the user's right.
In an exemplary embodiment, fig. 5 is a schematic flow chart III of a protocol text management method according to an embodiment of the present application, as shown in fig. 5, on the basis of fig. 1, other steps in the protocol text management method are described in detail, where the method further includes S501 to S504, where:
s501, responding to the triggering operation of a protocol type window in a protocol editing interface, and displaying a protocol type list.
S502, determining the protocol type of the current editing protocol in response to the selection operation of the protocol type in the protocol type list.
S503, responding to the text input operation of the protocol content in the protocol editing interface, and acquiring the protocol text content.
S504, based on the protocol type and the protocol text content, obtaining the protocol information edited in the protocol editing interface.
Illustratively, as shown in fig. 2, the user may click on a protocol type area in the protocol editing interface, and the background management end may respond to a departure operation of a protocol type window of the protocol type area in the protocol editing interface, and display a protocol type list, where a plurality of protocol types may be displayed, for example, may include a service protocol, a privacy protocol, a logout protocol, and so on. The background management end can respond to the selection operation of a user for the protocol type in the protocol type list, determine the protocol type to which the currently edited protocol text belongs, and can store the protocol type in the selected protocol type.
The background management end can also respond to text input or editing operation aiming at the protocol content in a protocol content area contained in the protocol editing interface, and determine the input or edited protocol text content. The background management end can generate updated protocol text according to the determined protocol type and the protocol text content. The background management end can display the protocol type and the creation time of the newly generated protocol text in the protocol text management interface.
In this embodiment, through the steps from S501 to S504, the protocol information edited by the user can be effectively determined, so that the protocol text can be effectively managed, and the purpose of reducing the management protocol text can be achieved through the present application.
In an exemplary embodiment, the method further comprises:
Responding to the operation of opening the protocol text management interface, and displaying the history protocol texts corresponding to each history protocol version in the protocol text management interface;
in response to a nullification selection operation on the history protocol text, nullifying the selected history protocol text.
Where historical protocol text refers to protocol text that may be created historically. The historical protocol version may refer to a version corresponding to the protocol text created by the history. The revocation selection operation refers to an operation corresponding to a revocation function, and the background management end may be provided with a revocation function for the historical protocol texts, for example, for each historical version of the protocol text, a revocation function may be correspondingly provided, so that each historical protocol text can be effectively revoked.
The background management end can respond to the operation of opening the protocol text management by a user to display a protocol text management interface, for example, the background management end can respond to the click operation of the protocol text management software system by the user to display the protocol text management interface. And the historical protocol text corresponding to each historical protocol version can be displayed in the protocol text management interface, for example, the historical protocol text corresponding to a plurality of historical protocol versions can be displayed in a list form, and the historical protocol text can be displayed in a manner of creating a reverse time sequence.
The background management end can display the voiding function of each history protocol text in the protocol text management interface, and can respond to the selection operation of the voiding control corresponding to the history protocol text to voide the selected voided history protocol text. Therefore, the method can cancel the history protocol text which is not needed any more, and therefore the validity of the history protocol text can be guaranteed.
Alternatively, the background manager may save a historical version of each protocol, and the administrator may trace back the historical version content, or invalidate the protocol that has not been applicable.
In this embodiment, by responding to the operation of opening the protocol text management interface, the history protocol text corresponding to each history protocol version can be displayed in the protocol text management interface, which is beneficial to the management of the history protocol text by the user, and by responding to the operation of selecting the history protocol text to be voided, the selected history protocol text can be voided, thereby ensuring the timely voiding of the history protocol text, and being beneficial to the reduction of the cost of protocol text management.
Optionally, in response to an operation of opening the protocol text management interface, displaying, in the protocol text management interface, a history protocol text corresponding to each history protocol version, and further including:
And responding to the operation of opening the protocol text management interface, and displaying the historical protocol version identifiers, the protocol types and the protocol modification time which are respectively corresponding to the historical protocol versions in the protocol text management interface.
The historical protocol version identifier may be information with identifier such as version number, version title, etc. of the protocol. The protocol modification time may include a protocol creation time, a time when the protocol was last modified, and the like.
Fig. 6 is a schematic diagram of a protocol text management interface according to an embodiment of the present application. The background management end may respond to the operation of the user to open the protocol text management, display the protocol text management interface, and may display the information such as the history protocol version identifier, the protocol type, and the protocol modification time corresponding to each history protocol version in the protocol text management interface, for example, each history protocol text is displayed in a list form, and then the information such as the version identifier, the protocol type, and the protocol modification time of one history protocol text may be displayed in the same row, as shown in fig. 6.
Optionally, each time the administrator saves and modifies the protocol content, the background management end may automatically generate a new protocol version number and record the update time.
In this embodiment, by responding to the operation of opening the protocol text management interface, the history protocol version identifier, the protocol type and the protocol modification time corresponding to each history protocol version can be displayed in the protocol text management interface, so that the user can better understand the relevant information of the history version protocol, and can manage the history protocol text, and the management cost of the protocol text can be reduced.
In an exemplary embodiment, the method further comprises:
responding to the installation operation of the rich text editor, and acquiring the rich text editor;
In response to a selection operation of the rich text editor, the rich text editor is used as a rich text editor preset for protocol text management.
Wherein the rich text editor may be TinyMCE editor.
Illustratively, the background manager may install the rich text editor in response to an install operation for the rich text editor. For example, the TinyMCE editor may be installed using npm or yarn package management tools. The terminal may refer to the rich text editor as an editor of the protocol text in response to a selection operation of the rich text editor. For example, in a page or component requiring the use of a rich text editor, editing and saving of rich text content can be conveniently accomplished using TinyMCE editors in combination with APIs provided by them.
Optionally, the background manager may also be responsive to setting parameters of the editor's appearance, functionality, and language using TinyMCE's configuration items.
In an exemplary embodiment, fig. 7 is a schematic structural diagram of a protocol text management system according to an embodiment of the present application, where, as shown in fig. 7, the protocol text management system includes:
a background management end 710, configured to implement a protocol text management method as described above;
A database 720, configured to store the protocol text transmitted by the background management end;
The user end 730 is configured to send a protocol content request to the database in response to a triggering operation of the protocol text to be browsed, obtain the target protocol text returned by the database, and display the target protocol text in the edited protocol format determined by the background management end during editing.
An exemplary embodiment of the present application provides a method for managing protocol text, as shown in fig. 8, where the method is applied to a protocol text management system, and includes:
S801, configuring the rich text protocol file, wherein the background management end can realize the configuration of the protocol content through a TinyMCE rich text editor.
S802, saving the protocol file, updating the protocol version number, and saving the protocol file by a background management end through a back end API interface.
And S803, after updating the protocol text, the background management end can update the version protocol number at the same time.
S804, determining whether the protocol of the user is updated, and determining whether the protocol of the user is updated when the user is saved, namely determining the selected protocol saving type, by the background management end.
S805, storing the protocol text into a database, and storing the protocol text into the database by a background management end through a back end API interface.
S806, requesting protocol content, wherein the user can request protocol text through an H5 page.
S807, returning the rich text content of the protocol, and the back end API interface can return the protocol text to the user end.
S808, displaying the protocol text, wherein the user side can display the protocol text through the front-end rich text display component.
Optionally, the specific limitation of the protocol text management method executed by the protocol text management system provided by the embodiment of the present application may refer to the limitation of the protocol text management method in the foregoing, which is not repeated herein.
Optionally, the system and the method provided by the embodiment of the application have rich text editing and displaying consistency, ensure that the content of the file configured in the background is highly consistent with the display effect of the front end through a TinyMCE rich text editor, reduce development workload and maintenance cost, have protocol version management and reminding functions, support version control and updating reminding by the system, help platform compliance operation, ensure user awareness, realize componentization design, realize protocol display of the front end in a componentization mode, be suitable for various business scenes, do not need front-end team to manually configure display logic, and have cross-platform compatibility, namely the component can be compatible and displayed on a mobile end (H5) and a desktop end browser, and ensure consistency of file formats.
In the embodiment, the system has efficient version management, has version control and update prompt functions, and ensures compliance and user notification after protocol update. The text file display method has the advantages that the rich text content configured in the background can be directly used at the front end, additional format processing is not needed, and the consistency of the display on different terminals and browsers is ensured. Compared with the scheme requiring manual configuration, the modularized design of the invention improves the reusability, so that the protocol display function can be seamlessly applied to a plurality of business scenes. The method has the advantages that operators can directly configure and update protocol contents through the background, so that the working efficiency is greatly improved, and the operators do not need to rely on technical developers.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The protocol text management apparatus according to the embodiments of the present application has the same inventive concept as the protocol text management method described above, and the implementation schemes for solving the problems provided by the apparatus are similar to those described in the method described above, so specific limitations in one or more embodiments of the protocol text management apparatus provided below may be referred to the limitations of the protocol text management method described above, and the protocol text management apparatus described below and the protocol text management method described above may be referred to each other correspondingly, which are not repeated herein.
In an exemplary embodiment, fig. 9 is a schematic structural diagram of a protocol text management apparatus according to an embodiment of the present application, and as shown in fig. 9, a protocol text management apparatus 90 includes an edit response module 910, a protocol determination module 920, and a protocol transmission module 930, where:
The editing response module 910 is configured to respond to a trigger operation of the displayed new protocol control or the modification protocol control in the protocol text management interface, and display a protocol editing interface corresponding to the preset rich text editor.
The protocol determining module 920 is configured to, in response to the editing completion operation triggered in the rich text editor, obtain a target protocol text corresponding to the current protocol version based on the protocol information edited in the protocol editing interface and the edited protocol format.
The protocol transmission module 930 is configured to transmit the target protocol text to the protocol database, and the protocol database is configured to return the target protocol text to the user terminal in response to the request for the protocol content of the user terminal.
The user side is used for responding to the triggering operation of the protocol text to be browsed and displaying the target protocol text in the edited protocol format.
In one exemplary embodiment, the protocol determination module is configured to respond to a triggering operation of a protocol save control in the rich text editor, to present a selection window of a protocol save type, and to respond to a selection operation of a target save type in the selection window, to save target protocol text in the target save type, wherein the target save type is used to indicate whether to remind a user that a protocol version has been updated.
In an exemplary embodiment, the apparatus further includes a type window module, a type determination module, a text content module, a protocol information module.
The type window module is used for responding to the triggering operation of the protocol type window in the protocol editing interface and displaying a protocol type list. The type determining module is used for determining the protocol type of the current editing protocol in response to the selection operation of the protocol type in the protocol type list. The text content module is used for responding to the text input operation of the protocol content in the protocol editing interface and acquiring the protocol text content. The text content module is used for obtaining the protocol information edited in the protocol editing interface based on the protocol type and the protocol text content.
In an exemplary embodiment, the apparatus further comprises a history protocol module and a revocation handling module.
The history protocol module is used for responding to the operation of opening the protocol text management interface, and displaying the history protocol texts corresponding to each history protocol version in the protocol text management interface. And the revocation processing module is used for performing revocation processing on the selected historical protocol text in response to revocation selection operation on the historical protocol text.
In an exemplary embodiment, the history protocol module is configured to respond to an operation of opening the protocol text management interface, and display, in the protocol text management interface, a history protocol version identifier, a protocol type, and a protocol modification time corresponding to each history protocol version.
In an exemplary embodiment, the apparatus further comprises an editor installation module and an editor selection module.
The editor installation module is used for responding to the installation operation of the rich text editor and obtaining the rich text editor. The editor selection module is used for responding to the selection operation of the rich text editor, and the rich text editor is used as a rich text editor preset for protocol text management.
In an exemplary embodiment, the application also provides a computer-readable storage medium, in which a computer program is stored, which, when executed by one or more processors, causes the one or more processors to perform the steps of the protocol text management method as in any of the above embodiments.
In an exemplary embodiment, the application also provides a computer device, in which a computer program is stored, which computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of the protocol text management method according to any of the above embodiments.
In an exemplary embodiment, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the protocol text management method according to any of the above embodiments.
Schematically, as shown in fig. 10, fig. 10 is a schematic diagram illustrating an internal structure of a computer device according to an embodiment of the present application, and the computer device 1000 may be provided as a server. Referring to fig. 10, a computer device 1000 includes a processing component 1002 that further includes one or more processors, and memory resources represented by memory 1001, for storing instructions, such as application programs, executable by the processing component 1002. The application program stored in the memory 1001 may include one or more modules each corresponding to a set of instructions. Further, the processing component 1002 is configured to execute instructions to perform the text recognition method of any of the embodiments described above.
The computer device 1000 may also include a power supply assembly 1003 configured to perform power management of the computer device 1000, a wired or wireless network interface 1004 configured to connect the computer device 1000 to a network, and an input output (I/O) interface 1005. The computer device 1000 may operate based on an operating system stored in memory 1001, such as Windows Server TM, mac OS XTM, unix, linux, free BSDTM, or the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 10 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and may be combined according to needs, and the same similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411812024.7A CN119576167A (en) | 2024-12-10 | 2024-12-10 | Protocol text management method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411812024.7A CN119576167A (en) | 2024-12-10 | 2024-12-10 | Protocol text management method, device, storage medium and computer equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN119576167A true CN119576167A (en) | 2025-03-07 |
Family
ID=94801699
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411812024.7A Pending CN119576167A (en) | 2024-12-10 | 2024-12-10 | Protocol text management method, device, storage medium and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119576167A (en) |
-
2024
- 2024-12-10 CN CN202411812024.7A patent/CN119576167A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10318620B2 (en) | General purpose annotation service for portal-based applications | |
| US9467503B2 (en) | Techniques to automatically syndicate content over a network | |
| US8533238B2 (en) | Sharing information about a document across a private computer network | |
| US9092758B2 (en) | Service providing apparatus, information processing system and methods | |
| US7933871B2 (en) | Discovering and updating templates | |
| EP2731070A1 (en) | Methods and systems for open source integration | |
| US10303445B2 (en) | Network service providing method and network service station using same | |
| US8683029B2 (en) | Web service system, schedule execution apparatus and control method thereof | |
| JP2009181329A (en) | Application development support device and program | |
| US12021805B2 (en) | Collaboration software development kit | |
| US20200311191A1 (en) | Electronic document review comment aggregation system, non-transitory computer readable medium thereof, electronic document review comment aggregation and input apparatus, and non-transitory computer readable medium thereof | |
| CN111177613A (en) | Page processing method, device, equipment and storage medium | |
| WO2021093672A1 (en) | Method for embedding external system, workflow system, device and computer readable storage medium | |
| US20050024355A1 (en) | Selecting items displayed on respective areas on a screen | |
| JP2025510078A (en) | Document block sharing method, system, storage medium, and program | |
| JP2006024059A (en) | Computer program for managing document, and device and method for managing document | |
| US20120150942A1 (en) | In browser real time collaboration lists and forms | |
| US20150012819A1 (en) | Template-driven decoration engine | |
| CN107430609A (en) | For the generation of the new Shipping Options Page of browser of corporate environment | |
| JP6925590B1 (en) | Servers that generate integrated usage log data and how they operate | |
| JP2009294851A (en) | Web page editing server, web page editing system, and web page editing method | |
| CN119576167A (en) | Protocol text management method, device, storage medium and computer equipment | |
| JP2014002619A (en) | Information processing device, and control method and program thereof | |
| JP2006313484A (en) | Document management system, document management method, information processing apparatus, program, and storage medium | |
| US8291311B2 (en) | Web display program conversion system, web display program conversion method and program for converting web display program |
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 |