Ⅰ、Frontend
- Add the dependency
@oinone/kunlun-data-designer-open-pcinpackage.jsonwith the same version as@oinone/kunlun-dependencies. - Import the dependency in
src/main.ts:
typescript
import 'reflect-metadata';
import { VueOioProvider } from '@oinone/kunlun-dependencies';
// START Import code after importing @oinone/kunlun-dependencies
import '@oinone/kunlun-data-designer-open-pc';
// END Import code before executing VueOioProvider()
VueOioProvider({
// TODO
});1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Ⅱ、Backend
(Ⅰ)Add Dependencies to Parent pom
xml
<!-- Platform Basics -->
<oinone.version>5.3.5</oinone.version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>pro.shushi</groupId>
<artifactId>oinone-bom</artifactId>
<version>${oinone.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
(Ⅱ)Add Dependencies to pom of Boot Startup Project
xml
<dependency>
<groupId>pro.shushi.pamirs.data.visualization</groupId>
<artifactId>pamirs-data-visualization-core</artifactId>
</dependency>1
2
3
4
2
3
4
(Ⅲ)Add Dependencies to application.yml Configuration
yaml
pamirs:
boot:
modules:
- datavi1
2
3
4
2
3
4
Note:
The datavi module must use consistent data sources in both business projects and the designer.