CN113656041A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113656041A
CN113656041A CN202110939790.XA CN202110939790A CN113656041A CN 113656041 A CN113656041 A CN 113656041A CN 202110939790 A CN202110939790 A CN 202110939790A CN 113656041 A CN113656041 A CN 113656041A
Authority
CN
China
Prior art keywords
target
source code
code file
template
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110939790.XA
Other languages
Chinese (zh)
Inventor
薛荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC 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 Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110939790.XA priority Critical patent/CN113656041A/en
Publication of CN113656041A publication Critical patent/CN113656041A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Abstract

The present disclosure provides a data processing method, which can be applied to the financial field and the computer technical field. The data processing method comprises the following steps: responding to a configuration request aiming at a target program, and displaying a template selection page, wherein the template selection page comprises at least one template identifier, and each template identifier corresponds to an initial source code file; determining a target template identifier and an initial source code file corresponding to the target template identifier from the template identifiers on the basis of the template selection page; processing the initial source code file corresponding to the target template identifier to generate a target source code file corresponding to the target template identifier; and storing the target source code file into the running data corresponding to the target program so that the target program runs based on the target source code file. The present disclosure also provides a data processing apparatus, a device, a storage medium, and a program product.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of finance and computer technology, and more particularly, to a data processing method, apparatus, device, medium, and program product.
Background
In the system development process, the situation that the existing codes are reused often occurs.
In the process of implementing the inventive concept disclosed by the present disclosure, the inventor finds that at least the following problems exist in the related art, and the related art generally adopts a copy and paste form during code multiplexing, which is time-consuming and low in development efficiency.
Disclosure of Invention
In view of the above, the present disclosure provides a data processing method, apparatus, device, medium, and program product
According to a first aspect of the present disclosure, there is provided a data processing method including:
responding to a configuration request aiming at a target program, and displaying a template selection page, wherein the template selection page comprises at least one template identifier, and each template identifier corresponds to an initial source code file;
determining a target template identification and an initial source code file corresponding to the target template identification from the template identifications on the basis of the template selection page;
processing the initial source code file corresponding to the target template identifier to generate a target source code file corresponding to the target template identifier;
and storing the target source code file into the corresponding operation data of the target program so as to facilitate the operation of the target program based on the target source code file.
According to an embodiment of the present disclosure, the data processing method further includes:
and responding to a preview request aiming at the target template identification, and generating a target template preview interface corresponding to the target template identification according to the target source code file, wherein the target template preview interface comprises a target preview component corresponding to the target template identification.
According to an embodiment of the present disclosure, the generating, in response to the preview request for the target template identifier, a target template preview interface corresponding to the target template identifier according to the target source code file includes:
generating an initial preview interface corresponding to the target template identification according to the preview request, wherein the initial preview interface corresponds to an initial preview component;
and generating the target template preview interface according to the initial preview component, the initial preview interface and the target source code file.
According to an embodiment of the present disclosure, the generating the target template preview interface according to the initial preview component, the initial preview interface and the target source code file includes:
rendering the initial preview component according to the target source code file to generate a target preview component;
and generating the target template preview interface according to the initial preview interface and the target preview component.
According to an embodiment of the present disclosure, the processing the initial source code file corresponding to the target template identifier, and generating the target source code file corresponding to the target template identifier includes:
displaying a source code editing page, wherein the source code editing page comprises the initial source code file;
and responding to an editing request aiming at the initial source code file, and generating the target source code file according to the initial source code file.
According to an embodiment of the present disclosure, the storing the target source code file into the running data corresponding to the target program includes:
acquiring a storage request aiming at the target source code file, wherein the storage request comprises storage path information and storage format information;
and responding to the storage request, and storing the target source code file according to the storage format information and the storage path information.
According to an embodiment of the present disclosure, the storing, in response to the storage request, the target source code file according to the storage format information and the storage path information includes:
generating a target storage file corresponding to the storage format information according to the target source code file;
and storing the target storage file according to the storage path information.
According to an embodiment of the present disclosure, the data processing method further includes:
acquiring configuration operation aiming at the target program, wherein the configuration operation comprises program identifier selection operation, and each program corresponds to one program identifier;
and responding to the configuration operation, and generating the configuration request according to the program identification corresponding to the target program.
A second aspect of the present disclosure provides a data processing apparatus comprising:
the system comprises a first response module, a second response module and a third response module, wherein the first response module is used for responding to a configuration request aiming at a target program and displaying a template selection page, the template selection page comprises at least one template identifier, and each template identifier corresponds to an initial source code file;
the determining module is used for determining a target template identifier and an initial source code file corresponding to the target template identifier from the template identifiers on the basis of the template selection page;
the first generation module is used for processing the initial source code file corresponding to the target template identifier and generating a target source code file corresponding to the target template identifier;
and the storage module is used for storing the target source code file into the corresponding operation data of the target program so as to facilitate the target program to operate based on the target source code file.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described data processing method.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-mentioned data processing method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described data processing method.
According to the embodiment of the disclosure, the target template identification is selected through the template selection page, the initial source code file corresponding to the target template identification is determined, the initial source code file is processed to generate the target source code file, and the target source code file is stored in the corresponding operation data of the target program, so that the target program operates based on the target source code file. The target source code file is obtained according to the initial source code file determined by the target template identifier, so that the configuration efficiency of the target source code file can be improved, and the system development speed is increased. The problems that in the related technology, the time consumption is long and the development efficiency is low due to the fact that code reuse is carried out in a copying and pasting mode are at least partially solved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically shows an application scenario of a data processing method according to an embodiment of the present disclosure.
Fig. 2 schematically shows a flow chart of a data processing method according to an embodiment of the present disclosure.
Fig. 3 schematically illustrates a schematic diagram of a source code editing page according to an embodiment of the present disclosure.
Fig. 4 schematically shows a data processing method according to another embodiment of the present disclosure.
Fig. 5 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present disclosure.
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement a data processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Applications and systems come in a variety of forms, but are typically developed at the front end using the same technology. Since the structural layout of the page and the like have many similarities, the code of the similar page is often reused during development.
In the process of implementing the inventive concept disclosed by the present disclosure, the inventor finds that at least the following problems exist in the related art, and the related art generally adopts a copy and paste form during code multiplexing, which is time-consuming and low in development efficiency.
The embodiment of the disclosure provides a data processing method and a device, wherein the data processing method comprises the following steps: responding to a configuration request aiming at a target program, and displaying a template selection page, wherein the template selection page comprises at least one template identifier, and each template identifier corresponds to an initial source code file; determining a target template identifier and an initial source code file corresponding to the target template identifier from the template identifiers on the basis of the template selection page; processing the initial source code file corresponding to the target template identifier to generate a target source code file corresponding to the target template identifier; and storing the target source code file into the running data corresponding to the target program so that the target program runs based on the target source code file.
It should be noted that the data processing method and apparatus of the present disclosure can be used in the financial field and the computer technology field, and can also be used in any field except the financial field and the computer technology field, and the application field of the data processing method and apparatus of the present disclosure is not limited.
Fig. 1 schematically shows an application scenario of a data processing method according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include a network, a terminal device, and a server. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the data processing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the data processing apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The data processing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the data processing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The data processing method of the disclosed embodiment will be described in detail below with fig. 2 to 4 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a data processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the data processing of this embodiment includes operations S201 to S204, and the transaction processing method may be performed by the terminal being a device or a server.
In operation S201, in response to a configuration request for a target program, a template selection page is presented, where the template selection page includes at least one template identifier, and each template identifier corresponds to an initial source code file.
According to an embodiment of the present disclosure, the template selection page may include, for example, a template identification selection area. The template identification may include, for example, a template name or a template identification number, etc., and may be composed of, for example, one or more of hanzi, numbers, letters, and symbols, such as: template 1, template 2, etc.
In operation S202, a target template identification and an initial source code file corresponding to the target template identification are determined from the template identifications based on the template selection page.
According to an embodiment of the present disclosure, the determination method of the target template identification may be determined by a selection operation of a user or automatically determined by a system, for example. The selection operation may comprise, for example, a click or a swipe.
In operation S203, the initial source code file corresponding to the target template identifier is processed to generate a target source code file corresponding to the target template identifier.
According to an embodiment of the present disclosure, the method for processing the initial source code file may include, for example, data editing, data format conversion, data parsing, and the like. By processing the initial source code file, the development requirements of different applications on systems can be met.
In operation S204, the target source code file is stored into the execution data corresponding to the target program so that the target program is executed based on the target source code file.
According to the embodiment of the disclosure, the target template identification is selected through the template selection page, the initial source code file corresponding to the target template identification is determined, the initial source code file is processed to generate the target source code file, and the target source code file is stored in the corresponding operation data of the target program, so that the target program operates based on the target source code file. The target source code file is obtained according to the initial source code file determined by the target template identifier, so that the configuration efficiency of the target source code file can be improved, and the system development speed is increased. The problems that in the related technology, the time consumption is long and the development efficiency is low due to the fact that code reuse is carried out in a copying and pasting mode are at least partially solved.
According to an embodiment of the present disclosure, the data processing method further includes:
and responding to a preview request aiming at the target template identification, and generating a target template preview interface corresponding to the target template identification according to the target source code file, wherein the target template preview interface comprises a target preview component corresponding to the target template identification.
According to an embodiment of the present disclosure, the preview request may be generated, for example, according to a preview operation of the user, which may include, for example, clicking or sliding. The target template preview interface may refer to, for example, an interface that includes a target preview component, and the like. The target preview component may include, for example, a component generated from rendering the target source code file, and the like.
According to the embodiment of the disclosure, in response to a preview request for a target template identifier, generating a target template preview interface corresponding to the target template identifier according to a target source code file includes:
and according to the preview request, generating an initial preview interface corresponding to the target template identification, wherein the initial preview interface corresponds to the initial preview component. And generating a target template preview interface according to the initial preview component, the initial preview interface and the target source code file.
According to an embodiment of the present disclosure, the initial preview interface may include, for example, a preview interface template or a null interface, etc. The initial preview component can include, for example, a preview component template or an empty component, etc. The initial preview component may include, for example, an Vue (progressive front end frame) component or the like.
According to the embodiment of the disclosure, generating the target template preview interface according to the initial preview component, the initial preview interface and the target source code file comprises:
and rendering the initial preview component according to the target source code file to generate a target preview component. And generating a target template preview interface according to the initial preview interface and the target preview component.
According to the embodiment of the disclosure, the rendering mode of the initial preview component according to the target source code file may include, for example, writing the target source code file into the initial preview component pointed by the initial preview interface through a writeFile function method provided by node.
According to the embodiment of the disclosure, template visualization operation can be realized through the preview request, so that developers can edit and preview in real time conveniently, and the template selection efficiency of the developers is improved, so that the use requirements of different developers are met.
According to an embodiment of the present disclosure, processing an initial source code file corresponding to a target template identifier, and generating a target source code file corresponding to the target template identifier includes:
and displaying a source code editing page, wherein the source code editing page comprises an initial source code file. And responding to an editing request aiming at the initial source code file, and generating a target source code file according to the initial source code file.
According to an embodiment of the present disclosure, the edit request may be generated, for example, according to an edit operation of a developer. Through displaying the source code editing page, developers can carry out personalized editing according to specific implementation requirements. Furthermore, template files, interface data and the like can be edited on line through the source code editing page, so that the technical effects of obtaining what is seen, editing in real time, efficiently selecting the template needed to be used and adding and deleting template codes in real time to meet business requirements are achieved.
Fig. 3 schematically illustrates a schematic diagram of a source code editing page according to an embodiment of the present disclosure.
As shown in fig. 3, the source code editing page 300 includes a template identification selection area 310, a source code editing area 320, and a toolbar area 330.
The template identifier selection area 310 may include a plurality of target identifiers, and a target template to be edited may be selected by clicking or the like. After the target template is determined, an initial source code file corresponding to the target template may be displayed in the source code editing region 320, and meanwhile, personalized editing operation may be performed on the initial source code file.
Toolbar area 330 includes save button 331, preview button 332, and store button 333. By clicking the save button 331, the edited target source file can be overwritten on the original source file. By clicking on the preview button 332, a corresponding template component can be generated from the target source code file or the initial source code file. The initial source code file or the target source code file may be stored to the corresponding directory by clicking on the store button 333.
According to the embodiment of the present disclosure, storing the target source code file into the running data corresponding to the target program includes:
and acquiring a storage request aiming at the target source code file, wherein the storage request comprises storage path information and storage format information. And responding to the storage request, and storing the target source code file according to the storage format information and the storage path information.
According to the embodiment of the disclosure, after the initial source code file is edited, only the obtained target source code file may be saved. For example, by a corresponding target template storage request, the current target source code file can be written into the target template for summarization by a writeFile function method provided by node.
According to an embodiment of the present disclosure, storing the target source code file according to the storage format information and the storage path information in response to the storage request includes:
and generating a target storage file corresponding to the storage format information according to the target source code file. And storing the target storage file according to the storage path information.
According to an embodiment of the present disclosure, the target source code file may be stored, for example, by: firstly, a target source code file in a source code editing page is obtained, then a target source code text is written into an vue component to be downloaded through a writeFile function method provided by node.
According to an embodiment of the present disclosure, the data processing method further includes:
the method comprises the steps of obtaining configuration operation aiming at a target program, wherein the configuration operation comprises program identification selection operation, and each program corresponds to one program identification. In response to the configuration operation, a configuration request is generated in accordance with a program identification corresponding to the target program.
According to an embodiment of the present disclosure, program identification may refer to identification for distinguishing different programs, for example. The program representation may be composed of, for example, one or more of hanzi, numbers, letters, and symbols.
Fig. 4 schematically shows a data processing method according to another embodiment of the present disclosure.
As shown in fig. 4, the method may be performed by, for example, a template system, and the data processing method includes operations S401 to S405.
In operation S401, an initial source code file of a target template is read by a template system.
In operation S402, the initial source code file is written into the source code editing page, and the initial source code file is personalized edited to generate a target source code file.
In operation S403, the target source code file is written to the preview component.
In operation S404, the preview component is rendered through the target source code file, and a target preview component is generated.
In operation S405, the target source code file is saved to update the source code file of the target template.
Based on the data processing method, the disclosure also provides a data processing device. The apparatus will be described in detail below with reference to fig. 5.
Fig. 5 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the data processing apparatus 500 of this embodiment includes a first response module 501, a determination module 502, a first generation module 503, and a storage module 504.
A first response module 501, configured to respond to a configuration request for a target program, and display a template selection page, where the template selection page includes at least one template identifier, and each template identifier corresponds to an initial source code file. In an embodiment, the first response module 501 may be configured to perform the operation S201 described above, which is not described herein again.
A determining module 502, configured to determine, based on the template selection page, a target template identifier and an initial source code file corresponding to the target template identifier from the template identifiers. In an embodiment, the determining module 502 may be configured to perform the operation S202 described above, which is not described herein again.
A first generating module 503, configured to process the initial source code file corresponding to the target template identifier, and generate a target source code file corresponding to the target template identifier. In an embodiment, the first generating module 503 may be configured to perform the operation S203 described above, which is not described herein again.
The storage module 504 is configured to store the target source code file into the running data corresponding to the target program, so that the target program runs based on the target source code file. In an embodiment, the storage module 504 may be configured to perform the operation S204 described above, which is not described herein again.
According to the embodiment of the disclosure, the target template identification is selected through the template selection page, the initial source code file corresponding to the target template identification is determined, the initial source code file is processed to generate the target source code file, and the target source code file is stored in the corresponding operation data of the target program, so that the target program operates based on the target source code file. The target source code file is obtained according to the initial source code file determined by the target template identifier, so that the configuration efficiency of the target source code file can be improved, and the system development speed is increased. The problems that in the related technology, the time consumption is long and the development efficiency is low due to the fact that code reuse is carried out in a copying and pasting mode are at least partially solved.
According to an embodiment of the present disclosure, the data processing apparatus 500 further includes a second response module.
And the second response module is used for responding to the preview request aiming at the target template identifier and generating a target template preview interface corresponding to the target template identifier according to the target source code file, wherein the target template preview interface comprises a target preview component corresponding to the target template identifier.
According to an embodiment of the present disclosure, the second response module includes a first generation unit and a second generation unit.
And the first generating unit is used for generating an initial preview interface corresponding to the target template identification according to the preview request, wherein the initial preview interface corresponds to the initial preview component.
And the second generation unit is used for generating a target template preview interface according to the initial preview component, the initial preview interface and the target source code file.
According to an embodiment of the present disclosure, the second generation unit includes a first generation subunit and a second generation subunit.
And the first generation subunit is used for rendering the initial preview component according to the target source code file to generate a target preview component.
And the second generation subunit is used for generating a target template preview interface according to the initial preview interface and the target preview component.
According to an embodiment of the present disclosure, the first generating module 503 includes a presentation unit and a third generating unit.
And the display unit is used for displaying the source code editing page, wherein the source code editing page comprises an initial source code file.
And the third generating unit is used for responding to the editing request aiming at the initial source code file and generating a target source code file according to the initial source code file.
According to an embodiment of the present disclosure, the storage module 504 includes an acquisition unit and a storage unit.
The device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a storage request aiming at a target source code file, and the storage request comprises storage path information and storage format information.
And the storage unit is used for responding to the storage request and storing the target source code file according to the storage format information and the storage path information.
According to an embodiment of the present disclosure, the storage unit includes a third generation subunit and a storage subunit.
And the third generation subunit is used for generating a target storage file corresponding to the storage format information according to the target source code file.
And the storage subunit is used for storing the target storage file according to the storage path information.
According to an embodiment of the present disclosure, the data processing apparatus 500 further includes an acquisition module and a fourth generation unit.
The acquisition module is used for acquiring configuration operation aiming at the target program, wherein the configuration operation comprises program identifier selection operation, and each program corresponds to one program identifier.
And a fourth generating unit configured to generate, in response to the configuration operation, a configuration request in accordance with the program identification corresponding to the target program.
According to the embodiment of the present disclosure, any plurality of the first responding module 501, the determining module 502, the first generating module 503 and the storing module 504 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first responding module 501, the determining module 502, the first generating module 503 and the storing module 504 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware and firmware, or implemented by a suitable combination of any of them. Alternatively, at least one of the first responding module 501, the determining module 502, the first generating module 503 and the storing module 504 may be at least partly implemented as a computer program module, which when executed may perform a corresponding function.
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement a data processing method according to an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the data processing method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 601. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 609, and/or installed from the removable medium 611. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A method of data processing, comprising:
responding to a configuration request aiming at a target program, and displaying a template selection page, wherein the template selection page comprises at least one template identifier, and each template identifier corresponds to an initial source code file;
determining a target template identification and an initial source code file corresponding to the target template identification from the template identifications on the basis of the template selection page;
processing the initial source code file corresponding to the target template identifier to generate a target source code file corresponding to the target template identifier;
and storing the target source code file into the corresponding operation data of the target program so as to facilitate the operation of the target program based on the target source code file.
2. The method of claim 1, further comprising:
and responding to a preview request aiming at the target template identification, and generating a target template preview interface corresponding to the target template identification according to the target source code file, wherein the target template preview interface comprises a target preview component corresponding to the target template identification.
3. The method of claim 2, wherein the generating a target template preview interface corresponding to the target template identification from the target source code file in response to the preview request for the target template identification comprises:
generating an initial preview interface corresponding to the target template identification according to the preview request, wherein the initial preview interface corresponds to an initial preview component;
and generating the target template preview interface according to the initial preview component, the initial preview interface and the target source code file.
4. The method of claim 3, wherein the generating the target template preview interface from the initial preview component, the initial preview interface, and the target source code file comprises:
rendering the initial preview component according to the target source code file to generate the target preview component;
and generating the target template preview interface according to the initial preview interface and the target preview component.
5. The method of claim 1, wherein the processing the initial source code file corresponding to the target template identifier to generate the target source code file corresponding to the target template identifier comprises:
displaying a source code editing page, wherein the source code editing page comprises the initial source code file;
and responding to an editing request aiming at the initial source code file, and generating the target source code file according to the initial source code file.
6. The method of claim 1, wherein the storing the target source code file into the operating data corresponding to the target program comprises:
acquiring a storage request aiming at the target source code file, wherein the storage request comprises storage path information and storage format information;
and responding to the storage request, and storing the target source code file according to the storage format information and the storage path information.
7. The method of claim 6, wherein the storing the target source code file according to the storage format information and the storage path information in response to the storage request comprises:
generating a target storage file corresponding to the storage format information according to the target source code file;
and storing the target storage file according to the storage path information.
8. The method of claim 1, further comprising:
acquiring configuration operation aiming at the target program, wherein the configuration operation comprises program identifier selection operation, and each program corresponds to one program identifier;
and responding to the configuration operation, and generating the configuration request according to the program identification corresponding to the target program.
9. A data processing apparatus comprising:
the system comprises a first response module, a second response module and a third response module, wherein the first response module is used for responding to a configuration request aiming at a target program and displaying a template selection page, the template selection page comprises at least one template identifier, and each template identifier corresponds to an initial source code file;
the determining module is used for determining a target template identifier and an initial source code file corresponding to the target template identifier from the template identifiers on the basis of the template selection page;
the first generation module is used for processing the initial source code file corresponding to the target template identifier and generating a target source code file corresponding to the target template identifier;
and the storage module is used for storing the target source code file into the corresponding operation data of the target program so as to facilitate the target program to operate based on the target source code file.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 8.
CN202110939790.XA 2021-08-16 2021-08-16 Data processing method, device, equipment and storage medium Pending CN113656041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110939790.XA CN113656041A (en) 2021-08-16 2021-08-16 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110939790.XA CN113656041A (en) 2021-08-16 2021-08-16 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113656041A true CN113656041A (en) 2021-11-16

Family

ID=78479335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110939790.XA Pending CN113656041A (en) 2021-08-16 2021-08-16 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113656041A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048480A (en) * 2023-04-04 2023-05-02 青岛普瑞盛医药科技有限公司 Method and device for automatically generating chart based on code tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048480A (en) * 2023-04-04 2023-05-02 青岛普瑞盛医药科技有限公司 Method and device for automatically generating chart based on code tool

Similar Documents

Publication Publication Date Title
CN110020329B (en) Method, device and system for generating webpage
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN112395027B (en) Widget interface generation method and device, storage medium and electronic equipment
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN112486482A (en) Page display method and device
CN113220381A (en) Click data display method and device
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
CN113986258A (en) Service publishing method, device, equipment and storage medium
CN110888583B (en) Page display method, system and device and electronic equipment
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN113553123B (en) Data processing method, device, electronic equipment and storage medium
CN111767498A (en) Method and device for realizing file information sharing
CN112965699B (en) Front-end page generation method, device, computer system and readable storage medium
CN114510309B (en) Animation effect setting method, device, equipment and medium
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN113535153A (en) Method, device, equipment and medium for encoding custom label
CN114035792A (en) Page generation method and device, electronic equipment and storage medium
CN115098391A (en) Page detection method, device, equipment and medium

Legal Events

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