diff --git a/src/api/device/index.ts b/src/api/device/index.ts index 27feca4..c82a8a2 100644 --- a/src/api/device/index.ts +++ b/src/api/device/index.ts @@ -62,9 +62,9 @@ export function editConfig(data: any) { /** * 获取图表详情设备筛选项 */ -export function getDevices(): AxiosPromise<[]> { +export function getDevices(params: number): AxiosPromise<[]> { return request({ - url: '/dc/dcDeviceEcharts/getDevices', + url: '/dc/dcDeviceEcharts/getDevices/' + params, method: 'get' }); } diff --git a/src/api/device/types.ts b/src/api/device/types.ts index 27f432e..cf441b3 100644 --- a/src/api/device/types.ts +++ b/src/api/device/types.ts @@ -37,8 +37,9 @@ export interface headerVo { label: string; value: string; type: string; - ctrlFlag: string; + ctrlFlag: number; paramUnit: string; + ctrlpro: any; } export interface deetsVo { centerDeviceCode: string; diff --git a/src/api/waring/index.ts b/src/api/waring/index.ts index b6b0ca2..f5a99d2 100644 --- a/src/api/waring/index.ts +++ b/src/api/waring/index.ts @@ -7,10 +7,22 @@ import { waringVo } from './types'; * * @param params status状态 */ -export function getWarList(params: number): AxiosPromise { +// export function getWarList(params: number): AxiosPromise { +// return request({ +// url: '/dc/dcBusiAlertJob/list/'+params, +// method: 'get' +// }); +// } +/** + * 获取报警列表 + * + * @param data + */ +export function getWarList(data: any) { return request({ - url: '/dc/dcBusiAlertJob/list/'+params, - method: 'get' + url: '/dc/dcBusiAlertJob/list/vo', + method: 'post', + data: data }); } @@ -22,6 +34,6 @@ export function getWarList(params: number): AxiosPromise { export function process(id: string) { return request({ url: '/dc/dcBusiAlertJob/process/' + id, - method: 'post', + method: 'post' }); } diff --git a/src/assets/images/device/liangfaliangqu.gif b/src/assets/images/device/liangfaliangqu.gif new file mode 100644 index 0000000..82f7746 Binary files /dev/null and b/src/assets/images/device/liangfaliangqu.gif differ diff --git a/src/assets/images/device/liangfaliangquyibeng.gif b/src/assets/images/device/liangfaliangquyibeng.gif new file mode 100644 index 0000000..664ffbf Binary files /dev/null and b/src/assets/images/device/liangfaliangquyibeng.gif differ diff --git a/src/assets/images/device/sanfasanqu.gif b/src/assets/images/device/sanfasanqu.gif new file mode 100644 index 0000000..73d4586 Binary files /dev/null and b/src/assets/images/device/sanfasanqu.gif differ diff --git a/src/assets/images/device/sanfasanquyibeng.gif b/src/assets/images/device/sanfasanquyibeng.gif new file mode 100644 index 0000000..46b18e4 Binary files /dev/null and b/src/assets/images/device/sanfasanquyibeng.gif differ diff --git a/src/assets/images/device/yifaliangqu.gif b/src/assets/images/device/yifaliangqu.gif new file mode 100644 index 0000000..328519b Binary files /dev/null and b/src/assets/images/device/yifaliangqu.gif differ diff --git a/src/assets/images/device/yifaliangquyibeng.gif b/src/assets/images/device/yifaliangquyibeng.gif new file mode 100644 index 0000000..89c263a Binary files /dev/null and b/src/assets/images/device/yifaliangquyibeng.gif differ diff --git a/src/assets/images/device/yifasanqu.gif b/src/assets/images/device/yifasanqu.gif new file mode 100644 index 0000000..1fb9251 Binary files /dev/null and b/src/assets/images/device/yifasanqu.gif differ diff --git a/src/assets/images/device/yifayiqu.gif b/src/assets/images/device/yifayiqu.gif new file mode 100644 index 0000000..9745ad2 Binary files /dev/null and b/src/assets/images/device/yifayiqu.gif differ diff --git a/src/assets/images/device/yifayiquyibeng.gif b/src/assets/images/device/yifayiquyibeng.gif new file mode 100644 index 0000000..22c1d9f Binary files /dev/null and b/src/assets/images/device/yifayiquyibeng.gif differ diff --git a/src/assets/images/device/yifaysanquyibeng.gif b/src/assets/images/device/yifaysanquyibeng.gif new file mode 100644 index 0000000..f2b8b71 Binary files /dev/null and b/src/assets/images/device/yifaysanquyibeng.gif differ diff --git a/src/main.ts b/src/main.ts index e6f2d51..69e09d7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,7 +12,7 @@ import '@/permission'; import i18n from '@/lang/index'; //本地模拟数据 -import '@/mock/mockServer' +import '@/mock/mockServer'; // 本地SVG图标 import 'virtual:svg-icons-register'; @@ -20,7 +20,7 @@ import 'virtual:svg-icons-register'; // 样式 import '@/styles/index.scss'; import 'element-plus/theme-chalk/dark/css-vars.css'; -import '@/assets/iconfont/iconfont.css' +import '@/assets/iconfont/iconfont.css'; import 'vxe-table/lib/style.css'; import 'animate.css/animate.min.css'; diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 67e581d..5742656 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -2,6 +2,7 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] + 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'] @@ -272,6 +273,7 @@ import { UnwrapRef } from 'vue' declare module 'vue' { interface ComponentCustomProperties { readonly EffectScope: UnwrapRef + readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef readonly ElNotification: UnwrapRef diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 83ac5bd..d39bf46 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -25,6 +25,7 @@ declare module '@vue/runtime-core' { 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'] ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] @@ -45,10 +46,13 @@ declare module '@vue/runtime-core' { NDrawer: typeof import('naive-ui')['NDrawer'] NDrawerContent: typeof import('naive-ui')['NDrawerContent'] NIcon: typeof import('naive-ui')['NIcon'] + NInput: typeof import('naive-ui')['NInput'] + NInputNumber: typeof import('naive-ui')['NInputNumber'] NMenu: typeof import('naive-ui')['NMenu'] NModal: typeof import('naive-ui')['NModal'] NScrollbar: typeof import('naive-ui')['NScrollbar'] NSpin: typeof import('naive-ui')['NSpin'] + NSwitch: typeof import('naive-ui')['NSwitch'] NTooltip: typeof import('naive-ui')['NTooltip'] Pagination: typeof import('./../components/Pagination/index.vue')['default'] RightPanel: typeof import('./../components/RightPanel/index.vue')['default'] diff --git a/src/views/details/index.scss b/src/views/details/index.scss index f86e1ef..ffdea77 100644 --- a/src/views/details/index.scss +++ b/src/views/details/index.scss @@ -1,10 +1,27 @@ .details { padding: 1.5rem; + .header { + margin-bottom: 1.5rem; + } .search { margin-bottom: 1.5rem; + :deep(.el-card__body) { + padding: 20px 20px 0 20px; + } + .cardHeader { + display: flex; + justify-content: space-between; + align-items: center; + .tooltips { + width: 36px; + height: 36px; + border-radius: 0px 0px 0px 0px; + opacity: 1; + } + } .searchForm { .item { - margin-bottom: 0; + margin-bottom: 20px; } } } diff --git a/src/views/details/index.vue b/src/views/details/index.vue index eb73d74..9e8a01a 100644 --- a/src/views/details/index.vue +++ b/src/views/details/index.vue @@ -1,6 +1,23 @@