diff --git a/src/api/table/list.ts b/src/api/table/list.ts index 5c82801..1286f5f 100644 --- a/src/api/table/list.ts +++ b/src/api/table/list.ts @@ -39,7 +39,7 @@ export function getTableHeader(): AxiosPromise<[]> { */ export function getTableData(params: number): AxiosPromise { return request({ - url: '/bi/opt/getTableData/'+params, + url: '/bi/opt/getTableData/' + params, method: 'get' }); } @@ -60,9 +60,9 @@ export function editConfig(data: any) { /** * 获取底部面板信息 */ -export function getTableFooter(): AxiosPromise<[]> { +export function getTableFooter(params: number): AxiosPromise<[]> { return request({ - url: '/bi/opt/getTableFooter', + url: '/bi/opt/getTableFooter/' + params, method: 'get' }); } diff --git a/src/api/table/types.ts b/src/api/table/types.ts index 970502d..026900b 100644 --- a/src/api/table/types.ts +++ b/src/api/table/types.ts @@ -62,7 +62,7 @@ export interface TableVo { */ export interface PanelVo { backImg: string; - ext: string; + ext: any; id: number; title: string; type: string; diff --git a/src/router/index.ts b/src/router/index.ts index cbd85e5..45e7760 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -39,6 +39,11 @@ export const constantRoutes: RouteRecordRaw[] = [ component: () => import('@/views/monitoring/devicemanage/index.vue'), meta: { hidden: true } }, + { + path: '/details', + component: () => import('@/views/details/index.vue'), + meta: { hidden: true } + }, { path: '/', diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index e5c7bdb..fa36cff 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -5,6 +5,9 @@ declare global { const ElForm: typeof import('element-plus/es')['ElForm'] const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] + const ElNotification: typeof import('element-plus/es')['ElNotification'] + const ElTree: typeof import('element-plus/es')['ElTree'] + const NEllipsis: typeof import('naive-ui')['NEllipsis'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] const computed: typeof import('vue')['computed'] @@ -274,6 +277,9 @@ declare module 'vue' { readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef + readonly ElNotification: UnwrapRef + readonly ElTree: UnwrapRef + readonly NEllipsis: UnwrapRef readonly asyncComputed: UnwrapRef readonly autoResetRef: UnwrapRef readonly computed: UnwrapRef diff --git a/src/types/components.d.ts b/src/types/components.d.ts index f1ac281..6343560 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -21,17 +21,30 @@ declare module '@vue/runtime-core' { ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] 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'] + ElRadio: typeof import('element-plus/es')['ElRadio'] + 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'] 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'] + ElTag: typeof import('element-plus/es')['ElTag'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] Hamburger: typeof import('./../components/Hamburger/index.vue')['default'] + IEpDelete: typeof import('~icons/ep/delete')['default'] + IEpEdit: typeof import('~icons/ep/edit')['default'] + IEpPlus: typeof import('~icons/ep/plus')['default'] + IEpPosition: typeof import('~icons/ep/position')['default'] + IEpRefresh: typeof import('~icons/ep/refresh')['default'] + IEpSearch: typeof import('~icons/ep/search')['default'] LangSelect: typeof import('./../components/LangSelect/index.vue')['default'] MultiUpload: typeof import('./../components/Upload/MultiUpload.vue')['default'] NBadge: typeof import('naive-ui')['NBadge'] @@ -60,4 +73,7 @@ declare module '@vue/runtime-core' { Video: typeof import('./../components/Video/index.vue')['default'] WangEditor: typeof import('./../components/WangEditor/index.vue')['default'] } + export interface ComponentCustomProperties { + vLoading: typeof import('element-plus/es')['ElLoadingDirective'] + } } diff --git a/src/views/details/index.scss b/src/views/details/index.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/views/details/index.vue b/src/views/details/index.vue new file mode 100644 index 0000000..5fb4542 --- /dev/null +++ b/src/views/details/index.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/views/monitoring/screen/components/infoPanel.vue b/src/views/monitoring/screen/components/infoPanel.vue index 1e37c58..ff639a3 100644 --- a/src/views/monitoring/screen/components/infoPanel.vue +++ b/src/views/monitoring/screen/components/infoPanel.vue @@ -1,20 +1,34 @@