diff --git a/hx-ai-intelligent/src/App.vue b/hx-ai-intelligent/src/App.vue index 9c90247..1b31526 100644 --- a/hx-ai-intelligent/src/App.vue +++ b/hx-ai-intelligent/src/App.vue @@ -48,169 +48,24 @@ height: 100%; } } - // :deep(.ant-menu-item), - // :deep(.ant-menu-submenu-title) { - // &:not(.ant-menu-item-selected) { - // // &:not(.ant-menu-item-active) { - // .anticon { - // color: rgb(141, 150, 163); - // } - // } - // } - // :deep(.ns-content) { - // // padding-top: 80px !important; - // } - // #app { - // width: 100%; - // height: 100%; - // } - - // :deep(.ant-menu-title-content) { - // background: unset !important; - // z-index: 9 !important; - // } - // :deep(.ns-left-menu) { - // .ant-menu-item-selected { - // // color: #fff !important; - // background: @primary-color; - // border-radius: 12px; - // // height: 40px; - // // line-height: 40px; - // padding: 5px @ns-gap; - // position: relative; - // a { - // color: @white !important; - // } - // } - - // .ant-menu-item-active, - // .ant-submenu-item-active { - // // color: rgba(@primary-color, 0.1) !important; - // } - // } - - // :deep(.ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover) { - // // background: @primary-color; - // } - // // :deep(.ant-menu-inline .ant-menu-submenu-title) { - // // color: rgba(255, 255, 255, 0.9) !important; - // // } - // :deep(.ns-left-menu .ant-layout-sider-children .ant-menu-sub.ant-menu-inline) { - // // position: relative; - // // &::before { - // // display: flex; - // // width: 2px; - // // height: calc(100% - 40px); - // // position: absolute; - // // top: 20px; - // // left: 20px; - // // content: ''; - // // background-color: rgba(255, 255, 255, 0.2); - // // } - // } - - // //*************************含tab的 list列表样式 */ - // :deep(.tabListTable) { - // .ns-table-title { - // text-align: left; - // height: 46px; - // line-height: 46px; - // font-size: 18px; - // font-weight: bold; - // user-select: text; - // padding-left: 16px; - // background: #fff; - // width: calc(100% + 32px); - // margin-left: -16px; - // } - // .tabs-list { - // overflow: visible !important; - // } - // .ant-tabs-nav { - // width: calc(100% + 32px); - // margin-left: -16px !important; - // background: #fff; - // } - // .ant-tabs-nav-wrap { - // padding: 0 16px; - // } - // } - - // //*********************详情页返回修改 */ - // :deep(.nsDetailView) { - // min-height: 100%; - // height: 100%; - // .ns-detail-content { - // padding: 0px 24px; - // border-top: 16px solid #e5ebf0; - // } - // .ant-descriptions-item-label { - // color: rgba(0, 0, 0, 0.5); - // font-family: PingFang SC; - // font-size: 14px; - // } - // .ant-descriptions-item-content { - // color: rgba(0, 0, 0, 0.95); - // font-family: PingFang SC; - // font-size: 14px; - // } - // .ant-descriptions-title { - // &::after { - // content: ''; - // width: 75px; - // height: 7px; - // display: block; - // background: linear-gradient(90deg, #537fff 0%, #fff 82.67%); - // margin-left: 2px; - // margin-top: -2px; - // } - // } - - // .ant-descriptions-row > th, - // .ant-descriptions-row > td { - // padding-bottom: 8px; - // } - // .ns-page-header { - // margin-bottom: 0 !important; - // padding-top: 7px !important; - // padding-bottom: 7px !important; - // width: calc(100% + 32px); - // margin-left: -16px; - // .title { - // cursor: pointer; - // font-size: 18px !important; - // } - // } - // .ant-descriptions-header { - // margin: 16px 0 16px 0 !important; - - // .ant-descriptions-title { - // line-height: 16px; - // font-size: 16px; - // } - // } - // } - - // :deep(.ns-detail .ant-descriptions-header .descriptions-title) { - // &:after { - // content: ''; - // width: 75px; - // height: 7px; - // display: block; - // background: linear-gradient(90deg, @primary-color 0%, #fff 82.67%); - // margin-left: 2px; - // margin-top: -2px; - // } - // } - // :deep(.ant-descriptions-header .descriptions-title) { - // &:after { - // content: ''; - // width: 75px; - // height: 7px; - // display: block; - // background: linear-gradient(90deg, @primary-color 0%, #fff 82.67%); - // margin-left: 2px; - // margin-top: -2px; - // } - // } + :deep(.ant-tree-node-content-wrapper) { + overflow: hidden; + text-overflow: ellipsis; + text-wrap: nowrap; + } + :deep(.ns-table-search) { + .ns-flexv2-form { + .ns-operate { + text-align: left; + margin-left: 0; + .ant-btn { + margin: 0; + margin-right: 6px; + } + } + } + .ns-form-body { + max-width: 1000px; + } + } diff --git a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts index aaad9c2..5d666ad 100644 --- a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts +++ b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts @@ -31,4 +31,8 @@ export enum quickCalculation { creat = '/carbon-smart/api/carbon/energy/correlation/creat', update = '/carbon-smart/api/carbon/energy/correlation/update', del = '/carbon-smart/api/carbon/energy/correlation/del', +} +// 碳排管理-碳排统计接口 +export enum carbonEmission { + carbonEmissionStatistics = '/carbon-smart/api/carbon/energy/correlation/carbonEmissionStatistics', } \ No newline at end of file diff --git a/hx-ai-intelligent/src/api/monitor.ts b/hx-ai-intelligent/src/api/monitor.ts new file mode 100644 index 0000000..62f5064 --- /dev/null +++ b/hx-ai-intelligent/src/api/monitor.ts @@ -0,0 +1,13 @@ +export enum deviceMonitor { + // getTableList = '/carbon/emission/factor/queryCarbonFactorPage', + // addNewData = '/carbon/emission/factor/creatOrUpdate', + // editUser = '/carbon-smart/api/user/edit', + // frozen = '/carbon-smart/api/user/frozen', + // resetPwd = '/carbon-smart/api/user/resetPwd', + // del = '/carbon-smart/api/user/del', + // batchDel = '/carbon-smart/api/user/batchDel', + // getCarbonFactorTree = '/carbon/emission/type/getCarbonFactorTree', + // queryDeptTree = '/carbon-smart/api/user/queryDeptTree', + // queryUserPerList = '/carbon-smart/api/user/queryUserPerList', + getDeviceGraph = '/carbon-smart/api/monitor/getDeviceGraph', +} diff --git a/hx-ai-intelligent/src/router/organizationManage.ts b/hx-ai-intelligent/src/router/organizationManage.ts index e02f7c4..6b5a52e 100644 --- a/hx-ai-intelligent/src/router/organizationManage.ts +++ b/hx-ai-intelligent/src/router/organizationManage.ts @@ -31,7 +31,6 @@ const organizationManage = { { title: '重置密码', code: 'userCodeReset' }, { title: '删除', code: 'userDelete' }, ], - // backApi: [], }, }, ], @@ -50,7 +49,16 @@ const organizationManage = { meta: { title: '部门/权限', keepAlive: true, - // backApi: [], + operates: [ + { title: '新增部门', code: 'authorityDeptAdd' }, + { title: '新增子部门', code: 'authorityDeptSonAdd' }, + { title: '删除部门', code: 'authorityDeptDelete' }, + { title: '编辑部门', code: 'authorityDeptEdit' }, + { title: '新增角色', code: 'authorityRoleAdd' }, + { title: '新增子角色', code: 'authorityRoleSonAdd' }, + { title: '删除角色', code: 'authorityRoleDelete' }, + { title: '编辑角色', code: 'authorityRoleEdit' }, + ], }, }, ], diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index copy.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index copy.vue deleted file mode 100644 index c205a2d..0000000 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index copy.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - - diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue index be5bf5b..9298666 100644 --- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue +++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/carbonEmissions/index.vue @@ -1,13 +1,13 @@