From 3e5e016eb14faa1e3542437666b9f4540cf9e36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B0=8F=E6=9E=97?= <320730042@qq.com> Date: Thu, 23 May 2024 15:28:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=8F=8A=E8=BD=AF=E4=BB=B6=E7=89=88=E6=9C=AC=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device-type/index.ts | 11 ++ src/api/tr069/types.ts | 17 ++ src/router/index.ts | 24 +++ .../tr069/components/BindingDevType.vue | 168 ++++++++++++++++++ .../components/Tr069DevTypeSoftVerList.vue | 80 +++++++++ src/views/resources/tr069/index.vue | 30 ++++ 6 files changed, 330 insertions(+) create mode 100644 src/views/resources/tr069/components/BindingDevType.vue create mode 100644 src/views/resources/tr069/components/Tr069DevTypeSoftVerList.vue diff --git a/src/api/device-type/index.ts b/src/api/device-type/index.ts index b055d2d..5b2b9c5 100644 --- a/src/api/device-type/index.ts +++ b/src/api/device-type/index.ts @@ -5,6 +5,7 @@ import { } from "@/api/device-type/types"; import request from "@/utils/request"; import { AxiosPromise } from "axios"; +import { Tr069DevTypeQuery, Tr069DevTypeVOPageResult } from "@/api/tr069/types"; export function getDeviceTypePage( data: DeviceTypeQuery @@ -72,3 +73,13 @@ export function deleteDevTypeByIds(ids: number[]) { data: ids, }); } + +export function tr069BindingDevTypePage( + data: Tr069DevTypeQuery +): AxiosPromise { + return request({ + url: "/api/dev-type/v1/tr069-binding-page", + method: "POST", + data, + }); +} diff --git a/src/api/tr069/types.ts b/src/api/tr069/types.ts index 2d8b449..bb19fe0 100644 --- a/src/api/tr069/types.ts +++ b/src/api/tr069/types.ts @@ -24,3 +24,20 @@ export interface Tr069Xml { children?: Array; } + +export interface Tr069DevTypeQuery extends PageQuery { + tr069VerId?: number; + devTypeName?: string; + devHardVer?: string; + devVendorName?: string; +} +export interface Tr069DevTypeVO { + devTypeId?: number; + + devType?: string; + + devTypeSoftVer?: string; + + devTypeVerStatus?: string; +} +export type Tr069DevTypeVOPageResult = PageResult; diff --git a/src/router/index.ts b/src/router/index.ts index 4e55b3b..b7a6e9a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -87,6 +87,30 @@ export const constantRoutes: RouteRecordRaw[] = [ import("@/views/resources/tr069/components/Tr069Tree.vue"), meta: { hidden: true, keepAlive: true, title: "TR069参数树" }, }, + { + path: "/resources/tr069-dev-type-soft-ver/:tr069VerId", + name: "Tr069DevTypeSoftVerList", + component: () => + import( + "@/views/resources/tr069/components/Tr069DevTypeSoftVerList.vue" + ), + meta: { + hidden: true, + keepAlive: true, + title: "TR-069数据模型设备类型及软件版本", + }, + }, + { + path: "/resources/tr069-binding-dev-type/:tr069VerId", + name: "BindingDevType", + component: () => + import("@/views/resources/tr069/components/BindingDevType.vue"), + meta: { + hidden: true, + keepAlive: true, + title: "绑定设备类型", + }, + }, ], }, ]; diff --git a/src/views/resources/tr069/components/BindingDevType.vue b/src/views/resources/tr069/components/BindingDevType.vue new file mode 100644 index 0000000..bec3177 --- /dev/null +++ b/src/views/resources/tr069/components/BindingDevType.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/src/views/resources/tr069/components/Tr069DevTypeSoftVerList.vue b/src/views/resources/tr069/components/Tr069DevTypeSoftVerList.vue new file mode 100644 index 0000000..f1ac611 --- /dev/null +++ b/src/views/resources/tr069/components/Tr069DevTypeSoftVerList.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/src/views/resources/tr069/index.vue b/src/views/resources/tr069/index.vue index d827154..f1e40db 100644 --- a/src/views/resources/tr069/index.vue +++ b/src/views/resources/tr069/index.vue @@ -50,6 +50,30 @@ align="center" prop="tr069VerDesc" /> + + + { addTr069FileRef.value.open("3", "新增TR-069数据模型文件"); }; +const skipDevTypeSoftVerList = (tr069VerId?: number) => { + router.push({ + path: `/resources/tr069-dev-type-soft-ver/${tr069VerId}`, + }); +}; onMounted(() => { loadTr069Page(); });