CN110647352A - Data migration method, terminal and storage medium - Google Patents

Data migration method, terminal and storage medium Download PDF

Info

Publication number
CN110647352A
CN110647352A CN201910952758.8A CN201910952758A CN110647352A CN 110647352 A CN110647352 A CN 110647352A CN 201910952758 A CN201910952758 A CN 201910952758A CN 110647352 A CN110647352 A CN 110647352A
Authority
CN
China
Prior art keywords
card
page
terminal
data
data content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910952758.8A
Other languages
Chinese (zh)
Other versions
CN110647352B (en
Inventor
丁陈
蔡瑾钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201910952758.8A priority Critical patent/CN110647352B/en
Publication of CN110647352A publication Critical patent/CN110647352A/en
Application granted granted Critical
Publication of CN110647352B publication Critical patent/CN110647352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data migration method, a terminal and a storage medium, which are used in the field of software. The method comprises the following steps: the terminal receives a data transplantation request, wherein the data transplantation request comprises information of a card to be transplanted; the terminal acquires a first card according to the information of the card to be transplanted, wherein the first card comprises data content on a first page; and the terminal transplants the data content on the first page to a second page through the first card.

Description

Data migration method, terminal and storage medium
Technical Field
The embodiment of the application relates to the field of software, in particular to a data migration method, a terminal and a storage medium.
Background
When a document is developed, the business often uses related contents such as charts, various digital graphs and the like, and generally writes a transliteration script language (JS, javascript) on a development page of the business for development.
When the JS is written for development, a lot of time is often needed to familiarize with the attribute name to be modified and a lot of effort is needed to write the code, but the data content on the first page after the first page is written cannot be copied to the second page, the data content on the first page has no portability, and the data content on the first page needs to be developed again when the data content on the first page is displayed on another page.
When a user wants to show the same related content on a second page, the data content on the first page after the first page is written cannot be copied to the second page, the data content on the first page is not portable, the user needs to develop again on the second page, and the development efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data transplanting method which can improve the development efficiency.
A first aspect of an embodiment of the present application provides a method for data migration, including:
the terminal receives a data transplantation request, wherein the data transplantation request comprises information of a card to be transplanted;
the terminal acquires a first card according to the information of the card to be transplanted, wherein the first card comprises data content on a first page;
the terminal transplants the data content on the first page to a second page through the first card.
Optionally, before the terminal obtains the first card according to the information of the card to be transplanted, the terminal further includes:
the terminal acquires the data content on the first page;
the terminal generates the first card according to the data content on the first page;
the terminal stores the first card to a first card library.
Optionally, the first card includes an attribute editor, a data editor, and a dynamic display interface, where the dynamic display interface is used to display an editing effect of the card.
Optionally, the generating, by the terminal, the first card according to the data content on the first page includes:
the terminal generates an initial card according to the data content on the first page;
the terminal receives a card expansion instruction, wherein the expansion instruction is used for indicating the operation of editing, deleting or copying the initial card;
and the terminal executes corresponding operation on the initial card according to the card expansion instruction so as to generate the first card.
Optionally, the migrating, by the terminal, the data content on the first page to the second page through the first card includes:
the terminal generates a single card page;
the terminal combines the single card page with the first card to generate a combined page;
the terminal embeds the combined page into a second page.
Optionally, the combining, by the terminal, the single card page with the first card to generate a combined page includes:
the terminal acquires the front-end attribute and the background interface of the card according to the identification number (ID) of the first card;
the terminal renders the single-card page according to the front-end attribute and generates an interface template of the combined page;
the terminal modifies the single card page according to the background interface to generate interface data of the combined page;
and the terminal generates the combined page according to the interface template and the interface data.
Optionally, the migrating, by the terminal, the data content on the first page to the second page through the first card includes:
the terminal receives a control introduction instruction;
and the terminal introduces a panel control into a second page according to the control introduction instruction, wherein the panel control comprises a first card.
Optionally, after the terminal introduces the panel control into the second page according to the introduction instruction, the method further includes:
the terminal receives a card editing instruction;
the terminal edits the first card according to the card editing instruction to generate a second card;
the terminal saves the second card to a second card store.
A second aspect of the embodiments of the present application provides a terminal, including:
the receiving unit is used for receiving a data migration request, and the data migration request comprises information of a card to be migrated;
the card transplanting device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a first card according to the information of the card to be transplanted, and the first card comprises data content on a first page;
and the transplanting unit is used for transplanting the data content on the first page to a second page through the first card.
Optionally, before the obtaining unit obtains the first card according to the information of the card to be transplanted, the obtaining unit is further configured to obtain the data content on the first page;
the generating unit is used for generating the first card according to the data content on the first page;
and the storage unit is used for storing the first card to the first card library.
Optionally, the first card includes an attribute editor, a data editor, and a dynamic display interface, and the dynamic display interface is used for displaying an editing effect of the card.
Optionally, the generating unit is specifically configured to generate an initial card according to the data content on the first page;
the receiving unit is specifically used for receiving a card expansion instruction, and the expansion instruction is used for indicating the operation of editing, deleting or copying the initial card;
and the generating unit is specifically used for executing corresponding operation on the initial card according to the card expansion instruction so as to generate the first card.
Optionally, the generating unit is specifically configured to generate a single card page;
the generating unit is used for combining the single card page with the first card to generate a combined page;
and the transplanting unit is also used for embedding the combined page into a second page.
Optionally, the obtaining unit is specifically configured to obtain the front-end attribute and the background interface of the card according to the ID of the first card;
the generating unit is specifically used for rendering the single-card page according to the front-end attribute and generating an interface template of the combined page;
the generating unit is specifically used for modifying the single card page according to the background interface and generating interface data of the combined page;
and the generating unit is specifically used for generating the combined page according to the interface template and the interface data.
Optionally, the receiving unit is further configured to receive a control introduction instruction;
and the leading-in unit is used for leading the panel control into a second page according to the control leading-in instruction, and the panel control comprises a first card.
Optionally, the receiving unit is further configured to receive a card editing instruction;
the generating unit is also used for editing the first card according to the card editing instruction to generate a second card;
and the storage unit is also used for storing the second card into a second card library.
A third aspect of embodiments of the present application provides a terminal, where the terminal performs the method of the foregoing first aspect.
A fourth aspect of embodiments of the present application provides a computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the method of the first aspect.
A fifth aspect of embodiments of the present application provides a computer software product, which, when executed on a computer, causes the computer to perform the method of the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a method for mainly providing a data transplantation, and the terminal receives a data transplantation request, and the data transplantation request includes the information of waiting to transplant the card, and the terminal obtains first card according to the information of waiting to transplant the card, and first card can be transplanted between different pages, has the portability, and the terminal passes through first card will data content on the first page is transplanted the second page, and the user need not develop at the second page once more, promotes development efficiency.
Drawings
FIG. 1 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a data editor in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a dynamic presentation interface in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another data migration method in the embodiment of the present application;
FIG. 6 is a schematic structural diagram of another data migration method in the embodiment of the present application;
FIG. 7 is a schematic structural diagram of another data migration method in the embodiment of the present application;
FIG. 8 is a schematic flow chart illustrating a data migration method according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of another data migration method in the embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a data transplanting method which can improve the development efficiency.
Referring to fig. 1, an embodiment of a method for data migration in an embodiment of the present application includes:
1001. the terminal receives a data migration request.
When a user edits a webpage and needs to use data on another webpage, the webpage edited by the user is called a second page, and the webpage needing to use the data is called a first page. And the terminal to which the first page belongs sends a data migration request to the terminal to which the second page belongs, the terminal to which the first page belongs and the terminal to which the second page belongs can be the same terminal, the terminal to which the second page belongs receives the data migration request, and the data migration request comprises information of a card to be migrated.
1002. And the terminal acquires the first card according to the information of the card to be transplanted.
After the terminal receives the data migration request, the terminal can determine the cards required by the terminal to which the second page belongs according to the information of the cards to be migrated, wherein the cards, the cards to be migrated, the initial cards and the first cards are certain block-level elements with width and height.
1003. The terminal transplants the data content on the first page to a second page through the first card;
the terminal leads the first card into a second page in a certain mode, the content in the first card can be shown in the second page, the data content on the first page is included in the first card, and then the data content on the first page can be shown and shown in the second page.
In this embodiment of the present application, the terminal migrates the data content on the first page to the second page through the first card, and from the viewpoint of a migration manner, the following cases may be considered, which are described below:
firstly, the terminal transplants the data content on the first page to the second page in a page transplantation mode through the first card.
Specifically referring to fig. 2, when the terminal migrates the first card to the second page, the terminal generates a single card page, the first card is combined with the single card page to generate a combined page, and the terminal embeds the combined page into the second page, where another embodiment of the data migration method in the embodiment of the present application includes:
2001. the terminal receives a data migration request.
The terminal receives the data migration request, where the data migration request includes information of a card to be migrated, where the information of the card to be migrated may be an ID of the card, an identifier of the card, and it is understood that the information of the card to be migrated may also be other types of parameters related to the card, which is not limited herein.
2002. And the terminal acquires the data content on the first page.
The terminal obtains the data content from the configuration file of the data content on the first page, and the content in the configuration file is fixedly stored in a certain format, for example, an XML format, it is understood that the configuration file may be in another storage format such as JSON besides an extensible markup language (XML), and the specific details are not limited herein. The data content may be fixedly stored in a certain format, for example, a format of a javaScript object notation (JSON), and it is understood that the data content may be in other types of storage formats such as XML besides JSON, which is not limited herein. The hierarchy of attributes for the stored form of the configuration file is consistent with the hierarchy of attributes for the stored form of the data content.
It is understood that the data content may be a chart data content, a graphic data content, or other types of data content, and is not limited herein.
2003. The terminal generates an initial card according to the data content on the first page.
The data content on the first page is stored in a form of a character string in a certain format, such as JSON format, and may also be in other formats, which is not limited herein. The information represented by the character string includes the ID, name and attributes related to the first card, and the attributes of the initialization card can be in one-to-one correspondence, so that the developed first card can be used as a template. After the data content on the first page is acquired, all information related to the first card is extracted, and the information is combined into a character string in a fixed format, where the format may be a JSON format or other formats, and the specific details are not limited herein. This string is then persisted in the background in a key-value pair.
2004. The terminal receives a card expansion instruction.
The terminal receives a card expansion instruction, which is generated based on the user's demand and instructs to perform an operation of editing, deleting or copying the original card.
2005. And the terminal executes corresponding operation on the initial card according to the card expansion instruction so as to generate the first card.
And the terminal executes corresponding operation on the initial card according to the card expansion instruction so as to generate the first card. The extension instruction comprises an editing instruction, a deleting instruction and/or a copying instruction.
When the extension instruction is an edit instruction, the terminal performs an edit operation on the initialization card according to the edit instruction, and can edit the card by using a data editor on the card, where the data editor may be a JS editor, and the JS editor is shown in fig. 3. When editing data, JS is written at which data is edited in the JS editor shown in fig. 3 to realize writing of data on a card.
The card may also be edited by using an attribute editor on the card, where the attribute editor on the card includes attributes such as the size of characters in the card and the color of the characters, and it can be understood that the card attribute editor includes not only the above two card content parameters, but also the font style of the characters and whether to display other card content parameters such as the X axis and the Y axis, and the specific details are not limited herein.
The card editing effect can be observed according to the dynamic display interface in the card when the card is edited, the dynamic display interface in the card is as shown in fig. 4, data editing is carried out on the data editor, corresponding data changes can occur in the dynamic display interface in the card, the card is edited on the attribute editor, corresponding attribute changes can occur in the dynamic display interface in the card, a user can correspondingly modify the card according to the effect displayed by the dynamic display interface in the card after editing, and the card generated after editing is the first card.
And when the expansion instruction is a deletion instruction, the terminal executes deletion operation on the initialization card according to the deletion instruction, and the deleted initialization card can not be displayed to the user.
When the expansion instruction is a copying operation, the terminal executes the copying operation on the initialization card according to the copying instruction to generate a same card, and the same card is a first card.
2006. And the terminal stores the first card to a first card library.
The terminal stores the first card into the first card library, and it can be understood that if the card expansion instruction received by the terminal is an editing instruction, the terminal stores the first card generated after editing into the first card library. And if the card expansion instruction received by the terminal is a copying instruction, the terminal stores the same cards generated after copying into the first card library. If the card expansion instruction received by the terminal is a deletion instruction, the terminal executes deletion operation on the initialization card, and the deleted initialization card cannot be stored in the first card library.
It is understood that the above steps 2002 to 2006 may or may not be executed, and if not, other steps may also be completed, which is not described herein in detail.
2007. The terminal generates a single card page.
The single card page is an empty page made according to the webpage editor, can be a carrier of a card designed by the terminal, and is used for extracting relevant card information from a JS script before empty page rendering after an empty page is newly added, and then enabling the card information to be displayed in the page. The single card page is a FixedPage.
2008. The terminal acquires the front-end attribute and the background interface data of the card according to the ID of the first card;
the terminal obtains the configuration of the data content, as shown in fig. 5 and 6, the configuration may be in a JSON format or in other formats, and the specific configuration mode is not limited here. And acquiring the configuration of the configuration file, wherein the format of the configuration can be XML or other formats, and the specific configuration mode is not limited here. The configuration of the data content and the configuration of the configuration file are the front-end attributes of the card.
And the terminal calls a background data interface configured when the card is generated to acquire background interface data.
2009. And the terminal renders the single-card page according to the front-end attribute and generates an interface template of the combined page.
The terminal analyzes the configuration of the configuration file and the configuration of the data content in the front-end attribute, as shown in fig. 5 and 6, the terminal combines the configuration of the configuration file and the configuration of the data content in the front-end attribute to generate a template configuration attribute, wherein the template configuration attribute may be a JSON configuration attribute or other attribute configurations, and the terminal is used for generating an interface template of the combined page according to the template configuration attribute.
2010. And the terminal modifies the single-card page according to the background interface to generate interface data of the combined page.
The terminal calls a background data interface configured when the card is generated to obtain background interface data, and as shown in fig. 5 and 6, the terminal modifies the single card page according to the background interface data to generate interface data of the combined page.
2011. And the terminal generates the combined page according to the interface template and the interface data.
The terminal merges the interface template and the interface data to generate data before rendering, and renders a single-card page, as shown in fig. 5 and 6, to generate the combined page.
2012. The terminal embeds the combined page into a second page.
The combined page can be embedded in the second page in iframe mode to complete its migration function, for example, inserted in hypertext markup language (HTML) in the mode of tag of < iframe src ═ http:// www.baidu.com > </iframe >. When the terminal displays the second page including the combined page after the terminal embeds the combined page into the second page, as shown in fig. 7, the web page editor introduces the address of the rendered combined page and supports editing, copying and deleting the finished cards.
In the above embodiment, the terminal migrates the data content on the first page to the second page in a page migration manner through the first card, and in practical application, the terminal migrates the data content on the first page to the second page in a page control manner through the first card, which is described in detail below:
secondly, the terminal transplants the data content on the first page to a second page in a page control mode through the first card:
3001. the terminal receives a data migration request.
3002. The terminal acquires the data content on the first page.
3003. The terminal generates an initial card according to the data content on the first page.
3004. The terminal receives a card expansion instruction.
3005. And the terminal executes corresponding operation on the initial card according to the card expansion instruction so as to generate the first card.
3006. And the terminal stores the first card to a first card library.
Steps 3001 to 3006 in this embodiment are similar to steps 2001 to 2006 in the embodiment shown in fig. 2, and are not described herein again.
3007. And the terminal receives a control introduction instruction.
The terminal receives a control introduction instruction, the control introduction instruction includes information of a control to be introduced, the information of the control to be introduced may be an identifier of the control, the information of the control to be introduced may also be other types of parameters related to the card, and the details are not limited herein.
3008. And the terminal introduces a panel control into a second page according to the control introduction instruction, wherein the panel control comprises a first card.
When the terminal edits the second page, a plurality of controls, components and/or containers can be selected, when the panel control is selected, corresponding panel configuration is displayed, at this time, the card library is used as an attribute of the panel to be displayed in the configuration information of the panel, the card designed by the terminal can be directly selected in the card configuration of the panel, and when the webpage editor designs the webpage, the card designed by the terminal can be directly adopted, as shown in fig. 9.
3009. The terminal receives a card editing instruction.
The terminal receives a card editing instruction, which is generated based on the user's requirement, instructing to perform an editing operation on the first card, as shown in fig. 9.
3010. And the terminal edits the first card according to the card editing instruction to generate a second card.
When the terminal receives a card editing instruction, the terminal performs editing operation on the first card according to the editing instruction, the first card can be edited by using a data editor on the card, the first card can also be edited by using an attribute editor on the card, the editing effect of the first card can be observed according to a dynamic display interface in the first card when the card is edited, and the card generated after editing is a second card, as shown in fig. 9.
3011. The terminal saves the second card to a second card store.
The terminal stores the second card in a second card library, and it can be understood that the second card library may be the first card library or a card library different from the first card library.
In the embodiments shown in fig. 2 and fig. 8, the terminal migrates the data content on the first page to the second page through the first card in a page migration manner, or the terminal migrates the data content on the first page to the second page through the first card in a page control manner, it can be understood that in practical applications, the data content can also be migrated in other manners, and the specific details are not limited herein.
The above describes the data processing method in the embodiment of the present application, and the following describes the terminal in the embodiment of the present application, with reference to fig. 10, an embodiment of the terminal in the embodiment of the present application includes:
a receiving unit 4001, configured to receive a data migration request, where the data migration request includes information of a card to be migrated;
an obtaining unit 4002, configured to obtain a first card according to the information of the card to be transplanted, where the first card includes data content on a first page;
a migration unit 4003, configured to migrate the data content on the first page to a second page via the first card.
In this embodiment, operations performed by each unit in the terminal are similar to those described in the embodiment shown in fig. 1, and are not described again here.
In this embodiment, the receiving unit 4001 receives a data migration request, the data migration request includes information of a card to be migrated, the obtaining unit 4002 obtains a first card according to the information of the card to be migrated, the first card can be migrated between different pages, and the migrating unit 4003 migrates data content on the first page to a second page through the first card, so that a user does not need to develop again on the second page, and therefore development efficiency is improved.
Referring to fig. 11, a terminal in an embodiment of the present application is described below, where an embodiment of the terminal in the embodiment of the present application includes:
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal 5000 may include one or more Central Processing Units (CPUs) 5001 and a memory 5002, and the memory 5005 stores one or more applications or data.
The memory 1705 may be volatile memory or persistent memory, among others. The program stored in the memory 5005 may include one or more modules, each of which may include a series of instruction operations in the terminal. Still further, a central processor 5001 may be provided in communication with the memory 5005 for executing a series of instruction operations in the memory 5005 on the terminal 5000.
Terminal 5000 can also include one or more power supplies 5002, one or more wired or wireless network interfaces 5003, one or more input-output interfaces 5004, and/or one or more operating systems such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The central processing unit 5001 can perform the operations performed by the terminal in the embodiment shown in fig. 10, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, 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 through some interfaces, devices or units, 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 of 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 integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, 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: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other media capable of storing program codes.

Claims (10)

1. A method of data migration, comprising:
a terminal receives a data transplantation request, wherein the data transplantation request comprises information of a card to be transplanted;
the terminal acquires a first card according to the information of the card to be transplanted, wherein the first card comprises data content on a first page;
and the terminal transplants the data content on the first page to a second page through the first card.
2. The data processing method according to claim 1, wherein before the terminal acquires the first card according to the information of the card to be transplanted, the method further comprises:
the terminal acquires data content on the first page;
the terminal generates the first card according to the data content on the first page;
and the terminal stores the first card to a first card library.
3. The data processing method of claim 2, wherein the first card comprises a property editor, a data editor, and a dynamic presentation interface for presenting editing effects of the card.
4. The data processing method of claim 2, wherein the terminal generating the first card according to the data content on the first page comprises:
the terminal generates an initial card according to the data content on the first page;
the terminal receives a card expansion instruction, wherein the expansion instruction is used for indicating the operation of editing, deleting or copying the initial card;
and the terminal executes corresponding operation on the initial card according to the card expansion instruction so as to generate the first card.
5. The data processing method of any one of claims 1 to 4, wherein the terminal migrating the data content on the first page to a second page via the first card comprises:
the terminal generates a single card page;
the terminal combines the single card page with the first card to generate a combined page;
and the terminal embeds the combined page into a second page.
6. The data processing method of claim 5, wherein the terminal combining the single card page with the first card to generate a combined page comprises:
the terminal acquires the front-end attribute and the background interface of the card according to the ID of the first card;
the terminal renders the single-card page according to the front-end attribute and generates an interface template of the combined page;
the terminal modifies the single card page according to the background interface to generate interface data of the combined page;
and the terminal generates the combined page according to the interface template and the interface data.
7. The data processing method of any one of claims 1 to 4, wherein the terminal migrating the data content on the first page to a second page via the first card comprises:
the terminal receives a control introduction instruction;
and the terminal introduces a panel control into a second page according to the control introduction instruction, wherein the panel control comprises a first card.
8. The data processing method according to claim 7, wherein after the terminal introduces the panel control into the second page according to the introduction instruction, the method further comprises:
the terminal receives a card editing instruction;
the terminal edits the first card according to the card editing instruction to generate a second card;
and the terminal stores the second card into a second card library.
9. A terminal, comprising:
the receiving unit is used for receiving a data transplantation request, and the data transplantation request comprises information of a card to be transplanted;
the acquisition unit is used for acquiring a first card according to the information of the card to be transplanted, and the first card comprises data content on a first page;
and the migration unit is used for migrating the data content on the first page to a second page through the first card.
10. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 8.
CN201910952758.8A 2019-09-29 2019-09-29 Data migration method, terminal and storage medium Active CN110647352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910952758.8A CN110647352B (en) 2019-09-29 2019-09-29 Data migration method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910952758.8A CN110647352B (en) 2019-09-29 2019-09-29 Data migration method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110647352A true CN110647352A (en) 2020-01-03
CN110647352B CN110647352B (en) 2023-06-30

Family

ID=69012356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910952758.8A Active CN110647352B (en) 2019-09-29 2019-09-29 Data migration method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110647352B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138554A1 (en) * 2003-12-23 2005-06-23 Xerox Corporation Method and system for copying, moving, replacing and deleting content in group-editable electronic documents
CN101291304A (en) * 2008-06-13 2008-10-22 清华大学 Transplantable network information sharing method
CN101410812A (en) * 2006-04-25 2009-04-15 国际商业机器公司 Migrating data that is subject to access by input/output devices
CN102314432A (en) * 2010-06-30 2012-01-11 上海视加信息科技有限公司 Method for customizing website
CN107908747A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 A kind of page generation method and device
CN108089878A (en) * 2017-12-14 2018-05-29 腾讯科技(深圳)有限公司 Page info shows and generation method, apparatus and system
CN109697093A (en) * 2018-08-20 2019-04-30 深圳壹账通智能科技有限公司 Card generation method, card generating means, mobile terminal and readable storage medium storing program for executing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138554A1 (en) * 2003-12-23 2005-06-23 Xerox Corporation Method and system for copying, moving, replacing and deleting content in group-editable electronic documents
CN101410812A (en) * 2006-04-25 2009-04-15 国际商业机器公司 Migrating data that is subject to access by input/output devices
CN101291304A (en) * 2008-06-13 2008-10-22 清华大学 Transplantable network information sharing method
CN102314432A (en) * 2010-06-30 2012-01-11 上海视加信息科技有限公司 Method for customizing website
CN107908747A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 A kind of page generation method and device
CN108089878A (en) * 2017-12-14 2018-05-29 腾讯科技(深圳)有限公司 Page info shows and generation method, apparatus and system
CN109697093A (en) * 2018-08-20 2019-04-30 深圳壹账通智能科技有限公司 Card generation method, card generating means, mobile terminal and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110647352B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN110781423B (en) Webpage generation method and device and electronic equipment
CN107832108B (en) Rendering method and device of 3D canvas webpage elements and electronic equipment
US7469380B2 (en) Dynamic document and template previews
US20130061124A1 (en) Managing forms in electronic documents
KR20150079867A (en) Html5-protocol-based webpage presentation method and device
CN111259644B (en) Rich text processing method, editor, equipment and storage medium
WO2016054549A1 (en) Application prototyping tool
CN101271463A (en) Representation method and system of layout file logical structure information
CN105956133B (en) Method and device for displaying file on intelligent terminal
US10671801B2 (en) Markup code generator
US9619445B1 (en) Conversion of content to formats suitable for digital distributions thereof
US20170031889A1 (en) Creating a communication editable in a browser independent of platform and operating system
CN107092514A (en) A kind of content of pages methods of exhibiting and device
KR20200001342A (en) Web electric document editing apparatus for rendering object and operating method thereof
US10140278B2 (en) Computer-implemented methods and systems for associating files with cells of a collaborative spreadsheet
US11126410B2 (en) Method and apparatus for building pages, apparatus and non-volatile computer storage medium
CN110162301B (en) Form rendering method, form rendering device and storage medium
CN110647352B (en) Data migration method, terminal and storage medium
CN111273984A (en) Extension method of numerical control, storage medium and terminal equipment
CN114371838A (en) Method, device and equipment for rendering small program canvas and storage medium
JP5706306B2 (en) Method of rendering an electronic document with linked text boxes, computer readable storage medium and system including instructions for rendering
CN115329720A (en) Document display method, device, equipment and storage medium
CN110704105B (en) Data migration method, terminal and storage medium
KR102300444B1 (en) Document editing device to check whether the font applied to the document is a supported font and operating method thereof
CN113656041A (en) Data processing method, device, equipment and storage medium

Legal Events

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