UPDATE: VERSION-20260316
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
*/
|
||||
|
||||
import { HttpRequestClient } from '@/utils/request';
|
||||
import type { PlatformWithComponentsResponse, ScenarioPageableResponse, ScenarioRequest, Scenario } from './types';
|
||||
import type { Scenario, ScenarioPageableResponse, ScenarioRequest } from './types';
|
||||
import type { PlatformWithComponentsResponse } from '../types';
|
||||
import type { BasicResponse } from '@/types';
|
||||
|
||||
const req = HttpRequestClient.create<BasicResponse>({
|
||||
|
||||
@@ -27,10 +27,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, onMounted, type PropType, ref, watch } from 'vue';
|
||||
import { defineComponent, type PropType, ref, watch } from 'vue';
|
||||
import { safePreventDefault, safeStopPropagation } from '@/utils/event';
|
||||
import {findPlatformWithComponents} from './api'
|
||||
import { type PlatformWithComponents, type Scenario } from './types';
|
||||
import { findPlatformWithComponents } from './api';
|
||||
import { type Scenario } from './types';
|
||||
import { type PlatformWithComponents } from '../types';
|
||||
|
||||
export default defineComponent({
|
||||
emits: ['drag-item-start', 'drag-item-end'],
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
import type { ApiDataResponse, NullableString, PageableResponse } from '@/types';
|
||||
import type { GraphContainer } from '../graph';
|
||||
import type { Platform, PlatformComponent } from '../types';
|
||||
|
||||
export interface PlatformRelation {
|
||||
sourceId: NullableString,
|
||||
@@ -43,27 +44,3 @@ export interface ScenarioPageableResponse extends PageableResponse<Scenario> {
|
||||
|
||||
}
|
||||
|
||||
export interface Platform {
|
||||
id: number,
|
||||
name: NullableString,
|
||||
description: NullableString,
|
||||
scenarioId: number,
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface PlatformComponent {
|
||||
id: number,
|
||||
name: NullableString,
|
||||
type: NullableString,
|
||||
description: NullableString,
|
||||
platformId: number,
|
||||
}
|
||||
|
||||
export interface PlatformWithComponents extends Platform {
|
||||
components: PlatformComponent[],
|
||||
}
|
||||
|
||||
export interface PlatformWithComponentsResponse extends ApiDataResponse<PlatformWithComponents[]> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user