diff --git a/.env.development b/.env.development index 76f6148..e8eb91d 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ VITE_BASE_URL = 'http://192.168.1.3:48080' -VITE_SOCKET_SERVER = 'http://192.168.1.3:7080' +VITE_SOCKET_SERVER = 'http://192.168.1.3:48080' diff --git a/components.d.ts b/components.d.ts index c150e25..47eb26d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -21,10 +21,20 @@ declare module 'vue' { EdfsTable: typeof import('./src/components/dashboard/Edfs-table/index.vue')['default'] EdfsWrap: typeof import('./src/components/dashboard/Edfs-wrap.vue')['default'] Editor: typeof import('./src/components/dashboard/Editor/src/Editor.vue')['default'] + ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup'] + ElCard: typeof import('element-plus/es')['ElCard'] + ElCascader: typeof import('element-plus/es')['ElCascader'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCol: typeof import('element-plus/es')['ElCol'] + ElCollapse: typeof import('element-plus/es')['ElCollapse'] + ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] + ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] + ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] + ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] @@ -32,20 +42,40 @@ declare module 'vue' { ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElHeader: typeof import('element-plus/es')['ElHeader'] ElIcon: typeof import('element-plus/es')['ElIcon'] + ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] + ElLink: typeof import('element-plus/es')['ElLink'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElPopover: typeof import('element-plus/es')['ElPopover'] + ElProgress: typeof import('element-plus/es')['ElProgress'] + ElRadio: typeof import('element-plus/es')['ElRadio'] + ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] + ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] + ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSpace: typeof import('element-plus/es')['ElSpace'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] + ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] + ElTag: typeof import('element-plus/es')['ElTag'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] + ElTree: typeof import('element-plus/es')['ElTree'] + ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] + ElUpload: typeof import('element-plus/es')['ElUpload'] Form: typeof import('./src/components/dashboard/Form/src/Form.vue')['default'] FormItemInput: typeof import('./src/components/dashboard/FormItemInput.vue')['default'] FormItemSelect: typeof import('./src/components/dashboard/FormItemSelect.vue')['default'] Icon: typeof import('./src/components/dashboard/Icon/src/Icon.vue')['default'] IconSelect: typeof import('./src/components/dashboard/Icon/src/IconSelect.vue')['default'] + IEpUploadFilled: typeof import('~icons/ep/upload-filled')['default'] ImageViewer: typeof import('./src/components/dashboard/ImageViewer/src/ImageViewer.vue')['default'] InputPassword: typeof import('./src/components/dashboard/InputPassword/src/InputPassword.vue')['default'] LegendItem: typeof import('./src/components/map_tool/legend/LegendItem.vue')['default'] @@ -63,4 +93,7 @@ declare module 'vue' { XButton: typeof import('./src/components/dashboard/XButton/src/XButton.vue')['default'] XTextButton: typeof import('./src/components/dashboard/XButton/src/XTextButton.vue')['default'] } + export interface ComponentCustomProperties { + vLoading: typeof import('element-plus/es')['ElLoadingDirective'] + } } diff --git a/src/api/module/eam/device/firmware.ts b/src/api/module/eam/device/firmware.ts index 5501bf7..3e65ae4 100644 --- a/src/api/module/eam/device/firmware.ts +++ b/src/api/module/eam/device/firmware.ts @@ -26,10 +26,10 @@ export function createFirmware(data: any) { }) } -export function getSimpleFirmwareList(params: { type: number }) { +export function getSimpleFirmwareList(params: { type: string }) { return eamServer({ url: '/firmware/simple-list', method: 'get', params, }) -} +} \ No newline at end of file diff --git a/src/api/module/eam/device/index.ts b/src/api/module/eam/device/index.ts index 786b751..e673f92 100644 --- a/src/api/module/eam/device/index.ts +++ b/src/api/module/eam/device/index.ts @@ -16,17 +16,21 @@ export interface IDevice { testSheetId: number testSheetStatus: string testSheetDetail: string + currentFirmwareId: string + targetFirmwareId: string } export interface IDeviceOV { id?: number - name: string + name?: string categoryId: string templateId: string serialNo?: string sn: string description: string cost: string + currentFirmwareId: string + targetFirmwareId: string } export const operantDevice = (type: OperantAction, data: IDeviceOV) => { @@ -82,6 +86,13 @@ export const getDeviceSummaryByStatus = () => { }) } +export const getSimpleDeviceList = (params: { categoryId: string }) => + eamServer({ + url: `/device/simple-list`, + method: 'get', + params, + }) + // ============== 测试工单相关 ============== export const operantDeviceTestSheet = (type: OperantAction, params: any) => { diff --git a/src/api/module/eam/device/task.ts b/src/api/module/eam/device/task.ts index 6776487..bccbc40 100644 --- a/src/api/module/eam/device/task.ts +++ b/src/api/module/eam/device/task.ts @@ -2,7 +2,7 @@ import { eamServer } from '../../index' export function getTaskList(params: PageParam) { return eamServer({ - url: '/device/task/page', + url: '/task/page', method: 'get', params, }) @@ -10,7 +10,7 @@ export function getTaskList(params: PageParam) { export function getTaskDetails(id: string) { return eamServer({ - url: '/device/task/details', + url: '/task/details', method: 'get', params: { id }, }) @@ -18,7 +18,7 @@ export function getTaskDetails(id: string) { export function createTask(data: any) { return eamServer({ - url: '/device/firmware/remote-update', + url: '/firmware/remote-update', method: 'post', data, }) diff --git a/src/pages/deviceInfo/components/BasicInfo.vue b/src/pages/deviceInfo/components/BasicInfo.vue index 73b6ed6..26f3abb 100644 --- a/src/pages/deviceInfo/components/BasicInfo.vue +++ b/src/pages/deviceInfo/components/BasicInfo.vue @@ -13,16 +13,6 @@ > -