Disclosure of Invention
In view of this, the present invention provides a list construction method and device based on an industrial application platform, so as to improve data processing efficiency of a list constructed based on the industrial application platform.
In a first aspect, an embodiment of the present invention provides a list construction method based on an industrial application platform, including:
setting an industrial application name of a list to be created in an industrial application platform;
configuring header data of a list to be created according to the industrial application name of the list to be created;
and adding list data corresponding to the header data according to the configured header data to obtain a list.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where configuring header data of the to-be-created list according to an industrial application name of the to-be-created list includes:
receiving information of clicking the industrial application name of the list to be created, and jumping to an editing page of the list to be created;
and receiving information of clicking a control button for creating the header, displaying a header creation page, and selecting a header creation mode to create header data in the displayed header creation page.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the header creation manner is uploading Excel data, and the header creation manner is selected to create header data, and the method includes:
receiving information of clicking an upload Excel data control button, and skipping to a preset server to download a header data template;
and editing the downloaded header data template, and uploading the edited header data template to a header creation page to obtain the created header data.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the header creation manner is to create header data of a single list, and the selecting the header creation manner to create the header data includes:
receiving information of a button for clicking a header data control for creating a single list, and jumping to a header data editing page;
and editing the header data in the header data editing page.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where an editing manner of the header data includes: an input box, a text box, a switch option, a drop-down radio box, a drop-down multiple box, a non-drop-down radio box, a non-drop-down multiple box, and a cascade selection box.
With reference to the first aspect and any one possible implementation manner of the first to third possible implementation manners of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the method further includes:
receiving a list access request of a user;
and displaying a list corresponding to the access authority according to the access authority of the user.
With reference to the first aspect and any one possible implementation manner of the first to third possible implementation manners of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes:
and recording the operation records of the user on the displayed list, acquiring abnormal operation records in the operation records, and sending the abnormal operation records to the back end.
In a second aspect, an embodiment of the present invention further provides a list building apparatus based on an industrial application platform, including:
the name setting module is used for setting the industrial application name of the list to be created in the industrial application platform;
the list head data configuration module is used for configuring the list head data of the list to be created according to the industrial application name of the list to be created;
and the list generation module is used for adding the list data corresponding to the header data according to the configured header data to obtain a list.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the method described above.
According to the list construction method and device based on the industrial application platform, provided by the embodiment of the invention, the industrial application name of the list to be created is set in the industrial application platform; configuring header data of a list to be created according to the industrial application name of the list to be created; and adding list data corresponding to the header data according to the configured header data to obtain a list. Therefore, lists which can be respectively applied to multiple industrial applications are built, the built lists support header data and list data of different data types, corresponding lists can be obtained according to the industrial applications and the data types of the sorting processing, the data processing efficiency of the lists built on the basis of the industrial application platform is effectively improved, and the sorting processing requirements of the multiple industrial applications and the multiple types of data are met.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
At present, a fixed format list constructed based on an industrial application platform supports only character strings in data types, data are input into the fixed format list in a character string mode through an input box, diversified data type requirements cannot be met, a large amount of data cannot be effectively integrated, and the data processing efficiency of the fixed format list constructed based on the industrial application platform is low. In the embodiment of the invention, lists which can be respectively applied to various industrial applications are constructed based on an industrial application platform, and header data supporting different data types, different data types and corresponding different data input formats are set in the lists, so that when data consolidation processing of the industrial applications is carried out, the corresponding lists can be obtained according to the industrial applications and the data types of the consolidation processing, and the consolidation processing requirements of the multi-industrial applications and the multi-type data are met.
The embodiment of the invention provides a list construction method and device based on an industrial application platform, which are described by the embodiment below.
Fig. 1 shows a flow diagram of a list construction method based on an industrial application platform according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, setting an industrial application name of a list to be created in an industrial application platform;
in the embodiment of the invention, as an optional embodiment, in an industrial application platform, a list creation control button of an interface is clicked, a list (industrial application list) creation frame is popped up, an industrial application name corresponding to a list to be created is input in the list creation frame, and then the list is clicked and determined, so that a list is created, wherein the list is a list for industrial applications, and each industrial application corresponds to one list.
In the embodiment of the invention, for the situation that the list is created through the third-party data source, the third-party data source is selected in the list creation frame, and the complete address of the third-party data source is filled in to create the list.
In the embodiment of the invention, as an optional embodiment, the list is created by using React and Ant Design.
102, configuring header data of a list to be created according to an industrial application name of the list to be created;
in the embodiment of the present invention, as an optional embodiment, configuring header data of a list to be created according to an industrial application name of the list to be created includes:
a11, receiving the information of the industrial application name clicked on the list to be created, and jumping to the editing page of the list to be created;
in the embodiment of the invention, the industrial application name of the list to be created is clicked, the process of creating the list is triggered, and the detailed editing page of the list to be created is skipped.
A12, receiving information of clicking a header creation control button, displaying a header creation page, and selecting a header creation mode to create header data in the displayed header creation page.
In the embodiment of the invention, a user clicks a header creation control button to trigger and display a header creation page, and a header creation mode can be selected in the header creation page. As an alternative embodiment, the header creation mode includes but is not limited to: uploading Excel data, creating header data of a single list, and creating header data of a list with a main substructure.
In the embodiment of the present invention, as an optional embodiment, the creating method of the header is uploading Excel data, and the selecting the creating method of the header to create the header data includes:
receiving information of clicking an upload Excel data control button, and skipping to a preset server to download a header data template;
and editing the downloaded header data template, and uploading the edited header data template to a header creation page to obtain the created header data.
In the embodiment of the invention, if a user selects to upload Excel data to create header data, the user clicks an upload Excel data control button to enter an upload interface (a preset interface of a server) to download a header data template, edits data in the header data template to generate a file, selects the edited file, and clicks to upload, so that the created header data is obtained.
In the embodiment of the invention, after the header data is successfully uploaded, the preview page can be entered for previewing by triggering the preview control button, and the header data required to be displayed in the list can be selected in the preview page. As an alternative embodiment, the number of columns corresponding to the displayed header data is at most 6 columns for the convenience of browsing and editing by the user.
In the embodiment of the invention, as another optional embodiment, list data can be created while header data is created by uploading Excel data.
In this embodiment, as another optional embodiment, the creating of the header is to create header data of a single list, and the selecting of the creating of the header to create the header data includes:
receiving information of a button for clicking a header data control for creating a single list, and jumping to a header data editing page;
and editing the header data in the header data editing page.
In the embodiment of the invention, for the header data for creating the single list, the header data to be created is edited by clicking the header data control button for creating the single list to enter the header data editing page. As an alternative embodiment, the header data includes a header name (i.e. a name shown in the list), a header name identifier (i.e. a unique identifier of the header name, such as id), whether the selected header data is shown in the list (because the list has a limited width, 6 columns are shown at most), whether the header data is a mandatory item, a data entry mode, a selection mode, a date, and the like. The data entry mode includes but is not limited to: input box entry and text box entry, and the selection mode includes but is not limited to: the method comprises the steps of selecting options by a switch, selecting a pull-down radio box, selecting a pull-down multiple box, selecting a non-pull-down radio box, selecting a non-pull-down multiple box and selecting a cascade box, wherein each item in the header data can correspond to a control, and the header data is edited in a control mode. For the mode of creating the list through the third-party data source, the third-party data cannot be newly added with data, so that the data entry mode is not included.
In the embodiment of the invention, the input box and the text box both support the creation of data in an input mode. The date comprises a date type and a date range type, and the date can be selected by popping up a date interface through the date type, and the date range can also be selected by popping up a date interface through the date range type. Drop-down radio boxes and drop-down multi-boxes support the selection of a single item or multiple items in the form of drop-down boxes. The cascading selection box may support presenting and selecting selections of options in a hierarchical manner. In the embodiment of the present invention, as an optional embodiment, for specific contents included in the pull-down multi-box and the cascade selection box, a clustering algorithm may be used to perform clustering processing on the collected sample data of the target industrial application to obtain cluster groups included in the sample data, where each cluster group corresponds to a header data of the target industrial application.
In the embodiment of the invention, the input box type and the text box type support data creation in an input mode, the date type and the date range type can select a date or a date range, the single selection type and the pull-down multi-selection box support single or multi-item data selection in a pull-down box mode, the single selection or multi-selection of the data is supported by the single selection type and the multi-option type, and the cascade box type can support option display in a hierarchical mode.
In the embodiment of the present invention, for specific content included in the drop-down multi-selection box, for example, the drop-down multi-selection box for family medical history is taken as an example, and includes: heart disease, hypertension, diabetes, psychosis, for routine examination drop-down multiple boxes, including: blood convention, urine convention, liver function, kidney function, platelets, blood pressure, and the like.
In this embodiment of the present invention, as an optional embodiment, the placeholder character attribute displayed by default in the input box may be modified, the placeholder character attribute displayed by default in the text box and the number of lines displayed (at least 2 lines, at most 10 lines) may be modified, and the default placeholder character attribute for the date, for example, the default placeholder character attribute for the beginning and ending of the date in the date range, may be modified. Options can be added and modified for the drop-down radio box and the drop-down multi-box, while options can be added and modified for the radio box and the multi-box, and options in the tree structure corresponding to the cascade selection box can be created, added and modified for the cascade selection box.
In the embodiment of the invention, for the header data of the list with the main sub-list structure, the editing page is clicked to enter, the main list identification is set for the main list, and the header data of the main list is created. The method for creating the header data of the main list is consistent with the method for creating the header data of the single list, after the header data of the main list is created and stored, the next step is clicked to create the header data of the sub-list, wherein the header data of the sub-list can be the same as or different from the header data of the main list. The method for creating the header data of the sub-list is consistent with the method for creating the header data of the single list, and the creation of the header data of the list with the main sub-structure is completed after the header data are stored.
And 103, adding list data corresponding to the header data according to the configured header data to obtain a list.
In the embodiment of the invention, list data of the list is added, namely, after the header data is created, the list of the configuration header data is displayed on a detailed editing page of the list to be created, and the list data corresponding to the header data is added. For example, the list data is added according to the data entry mode required by the header data. In the embodiment of the invention, as for the mode of creating the list by the third-party data source, the list data is received and displayed by the third-party data source address.
In this embodiment of the present invention, as an optional embodiment, the data structure of the list data may be a data structure having a hierarchical relationship. As an alternative embodiment, the data structure of the hierarchical relationship is a tree structure, and when adding the list data, the child data belonging to the list data of the upper level can be determined by selecting the list data of the upper level. As another alternative, the data structure of the list data may be a data structure having no hierarchical relationship, and thus, when adding the list data, it is not necessary to select the attributed list data.
In the embodiment of the present invention, for the main sub-table structure, when creating data of the sub-list, data belonging to the main list needs to be selected.
In this embodiment of the present invention, as an optional embodiment, the method further includes:
and showing the data in the created list.
In the embodiment of the present invention, the data in the list may be header data or list data, in the data displayed in the list, multiple options are separated by a pause number or a pause number, a date is displayed in a year, month and day, that is, in a format of XXXX/XX, a date range is displayed in a format of XXXX/XX-XXXX/XX, and cascade frame levels are separated by a slash "/".
In the embodiment of the invention, for the list of the main sub-list structure, the display page is divided into a left display part and a right display part, the left display part displays the main list data, the right display part displays the sub-list data, and the currently displayed data is refreshed according to the selected data by selecting the main list data and the sub-list data.
In the embodiment of the present invention, as another optional embodiment, a list page may be generated by clicking a button for generating a list page control, and a user accesses the list page by logging in, where the list page has functions of adding data, modifying data, entering a detail page, and the like.
In the embodiment of the invention, as a further optional embodiment, a new page can be generated by clicking a button of a control of the new page, and the new page can be edited without logging in. In this way, it can be used for multi-person editing and does not require the filling out of account personnel.
In this embodiment of the present invention, as an optional embodiment, the method further includes:
receiving a list access request of a user;
and displaying a list corresponding to the access authority according to the access authority of the user.
In the embodiment of the invention, a user can only access a list in a permission range, a user with a high-level access permission can set the access permission of a user with a low-level access permission, and the user can add and set corresponding data in the displayed list, for example, header data corresponding to the industrial application data is determined according to the obtained industrial application data, for example, by extracting fields in the data, header data corresponding to the data is determined according to the extracted fields, the industrial application data is converted according to a format corresponding to the determined header data, and the converted industrial application data is written into the list data corresponding to the header data.
In this embodiment, as another optional embodiment, the method further includes:
and recording the operation record of the user on the displayed list, and sending the operation record to the back end for storage so that the back end analyzes the operation record.
In the embodiment of the invention, the operation records of the list by the user on the industrial application platform are transmitted to the back end for storage, and as an optional embodiment, the user with high-level access authority can check the operation records of the user with low-level access authority.
In this embodiment of the present invention, as an optional embodiment, after recording the operation record of the user on the displayed list, and before sending the operation record to the back end for storage, the method further includes:
and acquiring abnormal operation records in the operation records, and sending the abnormal operation records to the back end.
In the embodiment of the invention, the industrial application platform sends the errors, alarms and exceptions generated in the operation record of the user to the back end, and a manager at the back end can check and process the errors, alarms and exceptions. Of course, the industrial application platform may also send all the operation records to the back end, and the back end sends the errors, alarms, and exceptions generated in the operation records of the user to the administrator for viewing, so that the administrator performs corresponding processing.
In the embodiment of the invention, different types of industrial application lists (lists) are constructed to be suitable for different data types and different industrial applications, so that the data types are standardized, data errors caused by input can be avoided, a user can more conveniently, accurately and effectively create data, the requirements of multi-industrial application and multi-type data normalization processing are met, and the data processing efficiency is effectively improved.
Fig. 2 shows a schematic structural diagram of a list building device based on an industrial application platform according to an embodiment of the present invention. As shown in fig. 2, the list building means includes:
a name setting module 201, configured to set an industrial application name of the list to be created in the industrial application platform;
in the embodiment of the invention, in the industrial application platform, a list creation box is popped up by clicking a list creation control button of an interface, and the industrial application name corresponding to the list to be created is input in the list creation box.
A header data configuration module 202, configured to configure header data of the list to be created according to the industrial application name of the list to be created;
in this embodiment of the present invention, as an optional embodiment, the header data configuration module 202 includes:
an information receiving unit (not shown in the figure), configured to receive information of the industrial application name clicked on the list to be created, and jump to an editing page of the list to be created;
and the header data configuration unit is used for receiving information of clicking the header creation control button, displaying the header creation page, and selecting a header creation mode to create header data in the displayed header creation page.
In the embodiment of the present invention, as an optional embodiment, the header creation manner includes, but is not limited to: uploading Excel data, creating header data of a single list, and creating header data of a list with a main substructure.
In the embodiment of the present invention, as an optional embodiment, the header creation mode is to upload Excel data, and the header data configuration unit is specifically configured to:
receiving information of clicking an upload Excel data control button, and skipping to a preset server to download a header data template;
and editing the downloaded header data template, and uploading the edited header data template to a header creation page to obtain the created header data.
In the embodiment of the invention, as an optional embodiment, list data can be created while header data is created by uploading Excel data.
In this embodiment of the present invention, as another optional embodiment, the header creation mode is to create header data of a single list, and the header data configuration unit is specifically configured to:
receiving information of a button for clicking a header data control for creating a single list, and jumping to a header data editing page;
and editing the header data in the header data editing page.
In the embodiment of the present invention, the editing mode of the header data includes: an input box, a text box, a switch option, a drop-down radio box, a drop-down multiple box, a non-drop-down radio box, a non-drop-down multiple box, and a cascade selection box.
The list generating module 203 is configured to add list data corresponding to the header data according to the configured header data to obtain a list.
In this embodiment of the present invention, as an optional embodiment, the list constructing apparatus further includes:
a request processing module (not shown in the figure) for receiving a list access request of a user;
and displaying a list corresponding to the access authority according to the access authority of the user.
In this embodiment, as another optional embodiment, the list constructing apparatus further includes:
and the operation recording module is used for recording the operation records of the user on the displayed list, acquiring the abnormal operation records in the operation records and sending the abnormal operation records to the back end.
As shown in fig. 3, an embodiment of the present application provides a computer device 300, configured to execute the list construction method based on the industrial application platform in fig. 1, where the device includes a memory 301, a processor 302, and a computer program stored in the memory 301 and executable on the processor 302, where the processor 302 implements the steps of the list construction method based on the industrial application platform when executing the computer program.
Specifically, the memory 301 and the processor 302 can be general-purpose memory and processor, and are not limited to specific examples, and when the processor 302 runs the computer program stored in the memory 301, the list building method based on the industrial application platform can be performed.
Corresponding to the list construction method based on the industrial application platform in fig. 1, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the list construction method based on the industrial application platform.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the above list construction method based on the industrial application platform can be executed.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.