diff --git a/src/api/device-type/index.ts b/src/api/device-type/index.ts index 5b2b9c5..19f241c 100644 --- a/src/api/device-type/index.ts +++ b/src/api/device-type/index.ts @@ -83,3 +83,13 @@ export function tr069BindingDevTypePage( data, }); } +export function serviceBindingDevTypePage( + data: PageQuery, + servId: number +): AxiosPromise { + return request({ + url: `/api/dev-type/v1/service-binding-dev-type-page/${servId}`, + method: "POST", + data, + }); +} diff --git a/src/api/service/index.ts b/src/api/service/index.ts index 3378172..c3a7ed6 100644 --- a/src/api/service/index.ts +++ b/src/api/service/index.ts @@ -1,6 +1,12 @@ import { AxiosPromise } from "axios"; -import { ServicePageResult } from "@/api/service/types"; +import { + BusinessFile, + BusinessForm, + BusinessPageResult, + ServicePageResult, +} from "@/api/service/types"; import request from "@/utils/request"; +import { Tr069DevTypeQuery, Tr069DevTypeVOPageResult } from "@/api/tr069/types"; export function tr069ServiceList( data: PageQuery, @@ -42,3 +48,70 @@ export function removeBindingTr069Service( method: "DELETE", }); } + +export function businessPage( + data: PageQuery +): AxiosPromise { + return request({ + url: `/api/service/v1/business-page`, + method: "POST", + data, + }); +} +export function addBusiness(data: BusinessForm): AxiosPromise { + return request({ + url: `/api/service/v1/add`, + method: "POST", + data, + }); +} +export function addBusinessFile(data: BusinessFile): AxiosPromise { + return request({ + url: `/api/service/v1/add_business_file`, + method: "POST", + data, + }); +} +export function bindingTr069Option(servId?: number): AxiosPromise { + return request({ + url: `/api/service/v1/binding-option/${servId}`, + method: "GET", + }); +} + +export function bindingTr069(ids: number[], servId?: number) { + return request({ + url: `/api/service/v1/binding/${servId}`, + method: "POST", + data: ids, + }); +} +export function getBusinessFormById( + servId?: number +): AxiosPromise { + return request({ + url: `/api/service/v1/form/${servId}`, + method: "GET", + }); +} +export function editBusiness(data: BusinessForm): AxiosPromise { + return request({ + url: `/api/service/v1/edit`, + method: "POST", + data, + }); +} + +export function deleteBusiness(ids: number[]) { + return request({ + url: "/api/service/v1/delete", + method: "POST", + data: ids, + }); +} +export function deleteFileAPI(fileId?: number, servId?: number) { + return request({ + url: `/api/service/v1/delete-file/${fileId}/${servId}`, + method: "DELETE", + }); +} diff --git a/src/api/service/types.ts b/src/api/service/types.ts index 118db22..de16bbe 100644 --- a/src/api/service/types.ts +++ b/src/api/service/types.ts @@ -6,3 +6,39 @@ export interface ServiceVO { servDesc?: string; } export type ServicePageResult = PageResult; + +export interface BusinessVO { + servId?: number; + servName?: string; + servVerName?: string; + servDisplayName?: string; + servDesc?: string; + fileId?: number; + fileName?: string; + fileCreateTime?: string; +} +export type BusinessPageResult = PageResult; + +export interface BusinessForm { + servId?: number; + servName?: string; + servVerName?: string; + servDisplayName?: string; + servDesc?: string; + pluginFileId?: number; +} +export interface BusinessFile { + fileId?: number; + + fileName?: string; + + fileDesc?: string; + + fileType?: string; + + fileUrl?: string; +} +export interface Tr069Option { + key?: number; + label?: string; +} diff --git a/src/api/tr069/index.ts b/src/api/tr069/index.ts index 9016a29..36d62a4 100644 --- a/src/api/tr069/index.ts +++ b/src/api/tr069/index.ts @@ -1,6 +1,7 @@ import request from "@/utils/request"; import { AxiosPromise } from "axios"; import { Tr069VerForm, Tr069VerPageResult, Tr069Xml } from "@/api/tr069/types"; +import { Tr069Option } from "@/api/service/types"; export function getTr069Page( data: PageQuery @@ -43,3 +44,10 @@ export function addTr069(data: Tr069VerForm){ data, }); } + +export function getTr069Option(): AxiosPromise { + return request({ + url: `/api/tr069/v1/transfer-option`, + method: "GET", + }); +} diff --git a/src/router/index.ts b/src/router/index.ts index 6a631f2..e73fae9 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -127,6 +127,17 @@ export const constantRoutes: RouteRecordRaw[] = [ title: "绑定业务版本", }, }, + { + path: "/resources/service-form/:servId", + name: "BusinessForm", + component: () => + import("@/views/resources/service/components/BusinessForm.vue"), + meta: { + hidden: true, + keepAlive: true, + title: "业务信息", + }, + }, ], }, ]; diff --git a/src/views/resources/device-type/components/AddDomianTree.vue b/src/views/resources/device-type/components/AddDomianTree.vue index bd6565b..ef7d394 100644 --- a/src/views/resources/device-type/components/AddDomianTree.vue +++ b/src/views/resources/device-type/components/AddDomianTree.vue @@ -3,6 +3,7 @@ class="com-dialog" v-model="openDomainTreeFlag" title="新增设备类型软件版本系统管理域" + width="1000" >
+ + + + + + + + + + + + + + + + +
拖拽上传 或 点击上传
+
+
+ +
+ + + + + diff --git a/src/views/resources/service/components/BusinessForm.vue b/src/views/resources/service/components/BusinessForm.vue new file mode 100644 index 0000000..5089c75 --- /dev/null +++ b/src/views/resources/service/components/BusinessForm.vue @@ -0,0 +1,394 @@ + + + + + + + diff --git a/src/views/resources/service/index.vue b/src/views/resources/service/index.vue new file mode 100644 index 0000000..9a211fb --- /dev/null +++ b/src/views/resources/service/index.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/views/resources/tr069/index.vue b/src/views/resources/tr069/index.vue index 95cb9c8..6fd0924 100644 --- a/src/views/resources/tr069/index.vue +++ b/src/views/resources/tr069/index.vue @@ -1,9 +1,9 @@