diff --git a/src/api/ipv6Config/index.ts b/src/api/ipv6Config/index.ts new file mode 100644 index 0000000..9a1dd2e --- /dev/null +++ b/src/api/ipv6Config/index.ts @@ -0,0 +1,21 @@ +import request from "@/utils/request"; +import { AxiosPromise } from "axios"; + +export function updateIpv6Config(param1: string, param2: string) { + return request({ + url: `/api/ipv6-collection-config/v1/${param1}/${param2}`, + method: "PUT", + }); +} +export function uploadDevSnoApi(file: any): AxiosPromise { + const formData = new FormData(); + formData.append("file", file); + return request({ + url: `/api/ipv6-collection-config/v1/upload`, + method: "POST", + data: formData, + headers: { + "Content-Type": "multipart/form-data", + }, + }); +} diff --git a/src/api/operate-task2/index.ts b/src/api/operate-task2/index.ts index b551a8a..a6179b4 100644 --- a/src/api/operate-task2/index.ts +++ b/src/api/operate-task2/index.ts @@ -1,8 +1,8 @@ import request from "@/utils/request"; import { AxiosPromise } from "axios"; import { - OperateTask2PageResult, - OperateTask2TableVO, + OperateTask2PageResult, OperateTask2ResultVO, + OperateTask2TableVO } from "@/api/operate-task2/types"; export function operateTask2Page( @@ -24,3 +24,11 @@ export function taskTablePage( data, }); } +export function taskResult( + taskId?: number +): AxiosPromise { + return request({ + url: `/api/operate-task2/v1/task-result/${taskId}`, + method: "GET", + }); +} diff --git a/src/api/operate-task2/types.ts b/src/api/operate-task2/types.ts index 0ec9516..4d1199e 100644 --- a/src/api/operate-task2/types.ts +++ b/src/api/operate-task2/types.ts @@ -14,3 +14,18 @@ export interface OperateTask2TableVO { resultState?: string; } export type OperateTask2PageResult = PageResult; +export interface OperateTask2ResultVO { + operTaskId?: number; + + userName?: number; + + errorDesc?: string; + + operTaskCreateTime?: string; + + operStartTime?: string; + + operEndTime?: string; + + resultState?: string; +} diff --git a/src/api/user/index.ts b/src/api/user/index.ts index 3c7087a..38f3b8e 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -1,6 +1,6 @@ import request from "@/utils/request"; import { AxiosPromise } from "axios"; -import { UserForm, UserInfo, UserPageVO, UserQuery } from "./types"; +import { PasswordForm, UserForm, UserInfo, UserPageVO, UserQuery } from "./types"; /** * 登录成功后获取用户信息(昵称、头像、权限集合和角色集合) @@ -138,3 +138,10 @@ export function importUser(deptId: number, file: File) { }, }); } +export function updateUserPwd(data: PasswordForm) { + return request({ + url: "/api/v1/users/update-user-pwd", + method: "POST", + data, + }); +} diff --git a/src/api/user/types.ts b/src/api/user/types.ts index bd6335c..e5c6017 100644 --- a/src/api/user/types.ts +++ b/src/api/user/types.ts @@ -122,3 +122,8 @@ export interface UserForm { */ domainGroupId?: number; } +export interface PasswordForm { + oldPwd?: string; + newPwd?: string; + lastPwd?: string; +} diff --git a/src/assets/images/avatar.png b/src/assets/images/avatar.png new file mode 100644 index 0000000..a619982 Binary files /dev/null and b/src/assets/images/avatar.png differ diff --git a/src/assets/images/person_bg.jpg b/src/assets/images/person_bg.jpg new file mode 100644 index 0000000..b02ebde Binary files /dev/null and b/src/assets/images/person_bg.jpg differ diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index 363f20f..6c54fee 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -28,7 +28,7 @@ + @@ -105,6 +113,7 @@ import { getTr069XmlTree, } from "@/api/tr069"; import { FormInstance, FormRules } from "element-plus"; +import AddTr069File from "@/views/resources/tr069/components/AddTr069File.vue"; const route = useRoute(); let tr069VerId: number = parseInt(route.params?.tr069VerId); @@ -168,6 +177,10 @@ const handleAdd = () => { loadingForm.value = false; }); }; +const addTr069FileRef = ref(); +const openTr069FileForm = () => { + addTr069FileRef.value.open("3", "新增TR-069数据模型文件"); +}; const submitForm = async (formEl: FormInstance | undefined) => { if (!formEl) return; await formEl.validate((valid, fields) => { diff --git a/src/views/resources/tr069/index.vue b/src/views/resources/tr069/index.vue index 7f8f8a9..9c77e85 100644 --- a/src/views/resources/tr069/index.vue +++ b/src/views/resources/tr069/index.vue @@ -11,13 +11,7 @@ @click="goto(-999, -999)" >新增 - 导入TR069文件 + 刷新 @@ -106,7 +100,6 @@ @pagination="loadTr069Page" /> - @@ -150,10 +143,6 @@ const goto = (tr069VerId?: number, fileId?: number) => { path: `/resources/tr069-tree/${tr069VerId}/${fileId}`, }); }; -const addTr069FileRef = ref(); -const openTr069FileForm = () => { - addTr069FileRef.value.open("3", "新增TR-069数据模型文件"); -}; const skipDevTypeSoftVerList = (tr069VerId?: number) => { router.push({ path: `/resources/tr069-dev-type-soft-ver/${tr069VerId}`, diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index fe913b7..5dbbfbd 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -27,7 +27,7 @@ const total = ref(0); const queryParams = reactive({ pageNum: 1, - pageSize: 5, + pageSize: 10, }); const roleList = ref();