Vue based drag and drop data report designer

Vue based drag and drop data report designer

2022-10-10 0 2,231
Resource Number 44933 Last Updated 2025-02-24
¥ 0HKD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue recommends a drag and drop data big screen designer based on VUE – Cola Redese

Vue based drag and drop data report designer插图

Cola Designer is a VUE based tool that generates large data screens through drag and drop and configuration, designed to simplify development and improve efficiency

Functional Features

  • Code: Implement fully drag and drop+configuration based generation of large screens, design as production. (Dynamic data requires API interface provided by the backend)
  • Rapid development& Deployment: The project adopts the popular industry architecture SpringBoot+Vue, which is convenient for development and deployment
  • Component rich: Built in excellent open-source report commonly used components such as element, dataV, echarts, etc., to meet basic design requirements
  • Customization: The designer supports custom components

Quick Start

Development Environment

Development version Recommended version

mysql

8.0

5.7 +

jdk

11

1.8 +

node

16.13.1

12 +

npm

8.2.0

6 +

vue-cli

4.5.15

2 +

Project Structure

Technologies used: SpringBoot+SpringSecurity+MySQL+MyBatis Plus+Redis+Vue+ElementUI

Front end directory:

Vue based drag and drop data report designer插图1

Backend directory:

Vue based drag and drop data report designer插图2

Run frontend

1. Pull project

2. Switch to the frontend project directory and execute: yarn install

3. After installation is complete, execute: yarn run dev

Precautions

  • Before running the backend project, you need to create your own database and run the database script, while modifying the relevant configurations of applicationy.yml
  • Default port for backend project: 6882
  • For detailed front-end configuration, please refer to vue.config.js

Project Address

https://github.com/colaiven/cola-designer

How to use

Login

Username: admin
Password: 0000

Vue based drag and drop data report designer插图3

Large screen management

Click the login button to enter the large screen list (as shown in the figure below). The large screen list displays all the large screens created by the current user. Placing the mouse on the large screen will bring up an operation bar, which includes: design, access, share, and delete. Click the button to continue the corresponding operation

Vue based drag and drop data report designer插图4

Design

Click the design button on the large screen list page to jump to the design interface of the clicked large screen, as shown in the following figure

Vue based drag and drop data report designer插图5

In the design interface, the left column is the component column. To use it, select the component you want to use, long press the left mouse button and drag it to the dark design area in the middle. After dropping the component, a configurable item form for this component will pop up in the lower right corner, such as font color, size, etc. Modifying the configuration item design area will cause corresponding changes to the component. Some components that are not deeply listening can be synchronized using the refresh button in the data column

Place the mouse over the component in the design interface, and two buttons will appear in the upper right corner of the component, which are copy and delete. Click the button to perform the corresponding operation

Configuration Bar

The configuration bar displays the configurable item form of the currently selected component. In the lower right corner of the design interface, after dragging and dropping the component, it will automatically pop up. You can click the “X” button in the upper right corner of the configuration bar to hide it, and then display the configuration button that needs to be clicked in the lower right corner again

Vue based drag and drop data report designer插图6

Dynamic Data

After dragging and dropping the

component, it defaults to displaying static data, which can be modified in the data column of the configuration bar in the bottom right corner. It temporarily provides static data, API interface, and SQL for data rendering. When using the API interface, the prefix of the proxy in vue.config.js needs to be added, as shown in the following figure

Vue based drag and drop data report designer插图7

vue.config.js:

module.exports = {
publicPath: './'</ span>,
outputDir: "docs",
devServer: {
disableHostCheck: true,
port: 8009,
open: true,
overlay: {
warnings: false,
errors: true
},
proxy: {
'/design': {
target: ' http://127.0.0.1:6882 ',
ws: false,
changeOrigin: true,
pathRewrite: {
'/design': ''
}
},
'/fileUrl': {
target: ' http://127.0.0.1:6882 ',
ws: false,
changeOrigin: true,
pathRewrite: {
'/fileUrl': ''
}
},
}
},
}

You can see that the/sign proxy has reached the localhost: 6882 address, and you can configure the proxy yourself to access the interfaces of other backend projects
When using SQL for rendering, you need to enter the corresponding SQL in the text box. Clicking the refresh button will initiate an API request to the backend, with the interface address of/sql/secureSelect, corresponding to the API in the SQL ExecuteController of the backend project. You can change the data source in this interface by yourself

  • Note: The data format returned by API interfaces and SQL must be consistent with the format of static data text, otherwise rendering cannot be successful
  • Extract fileURL for the convenience of separating resource servers. If there is no separation requirement, it can be consistent with the large screen proxy

Settings

The basic information settings for the large screen can be found in the design button located in the upper right corner of the interface. Users can set the name, background image, access code, and other information for the large screen. Clicking the save button will synchronize it to the database

Vue based drag and drop data report designer插图8

Import& Export

The import and export function is located in the corresponding button in the upper right operation bar of the design interface, which can be exported as images and design files. The exported design file has a. cd suffix, which is actually a JSON file containing basic information of the large screen, position coordinates of components on the large screen, and configurable data. The import currently only supports importing. cd files, and importing with inconsistent versions will not be successfu

Selected List

To view all the components added to the current large screen, click the list button in the upper right corner. Clicking on a single item component will highlight it, and you can perform copy and delete operations on the component

Vue based drag and drop data report designer插图9

Preview& Save

Clicking the preview button in the upper right corner will save the current design to the browser’s local storge, and the preview page will render the data from the local storge. Clicking the save button in the upper right corner will save the current design to the database

Resource Library Management

The resource library management manages the image resources that the designer may use. Corresponding to the image component selection function of the designer, designers can upload the cut image of the design to the resource library at once, and can directly select it when using it to avoid duplicate image uploads. When uploading resources, it is necessary to select the corresponding group. Currently, the system defaults to three groups: background library, image library, and material library, which correspond to the data in the database design_img_group table. Users can add or delete them themselves

Vue based drag and drop data report designer插图10

Vue based drag and drop data report designer插图11

—END—

Open source protocol: GPL-2.0

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free Source Code Vue based drag and drop data report designer https://ictcoder.com/vue-based-drag-and-drop-data-report-designer/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services