feat: 登录流程完成接口联调
parent
8018774a29
commit
bb0b06533a
@ -1,4 +1,12 @@
|
|||||||
|
###
|
||||||
|
# @Author: donghao donghao@supervision.ltd
|
||||||
|
# @Date: 2025-03-12 15:26:57
|
||||||
|
# @LastEditors: donghao donghao@supervision.ltd
|
||||||
|
# @LastEditTime: 2025-03-13 09:17:19
|
||||||
|
# @FilePath: \5G-Loading-Bay-Web\.env.development
|
||||||
|
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
###
|
||||||
# .env.development
|
# .env.development
|
||||||
NODE_ENV = development
|
NODE_ENV = development
|
||||||
VITE_APP_ENV = development
|
VITE_APP_ENV = development
|
||||||
VITE_APP_BASE_API = http://192.168.10.14:8888
|
VITE_APP_BASE_API = http://192.168.10.14:8000
|
||||||
|
@ -1 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* @Author: donghao donghao@supervision.ltd
|
||||||
|
* @Date: 2025-03-07 15:09:18
|
||||||
|
* @LastEditors: donghao donghao@supervision.ltd
|
||||||
|
* @LastEditTime: 2025-03-13 10:13:49
|
||||||
|
* @FilePath: \5G-Loading-Bay-Web\src\api\dashboard.ts
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
*/
|
||||||
// 接口层
|
// 接口层
|
||||||
|
|
||||||
|
import request from "@/utils/request/instance";
|
||||||
|
import { config } from "@/config";
|
||||||
|
|
||||||
|
//TODO 定义响应类型
|
||||||
|
|
||||||
|
|
||||||
|
export const getDeviceStatusApi = (params: any) => {
|
||||||
|
return request.get(`/api/v1/device/device/`, params);
|
||||||
|
};
|
||||||
|
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* @Author: donghao donghao@supervision.ltd
|
||||||
|
* @Date: 2024-08-14 14:42:09
|
||||||
|
* @LastEditors: donghao donghao@supervision.ltd
|
||||||
|
* @LastEditTime: 2025-03-13 10:20:54
|
||||||
|
* @FilePath: \General-AI-Platform-Web-Client\src\utils\forApi.ts
|
||||||
|
* @Description: 这是接口层和业务层的转换工具方法集
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* @判断接口数据是否成功返回
|
||||||
|
* @param result 接口返回数据
|
||||||
|
* @returns boolean
|
||||||
|
*/
|
||||||
|
export function isSuccessApi(result): boolean {
|
||||||
|
if ([200].includes(result.code)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
@ -1,93 +0,0 @@
|
|||||||
.pole-monitor-wrap {
|
|
||||||
background-image: url("@/assets/common/bg_banner_1.png");
|
|
||||||
background-size: cover;
|
|
||||||
background-position: bottom;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
height: 823px;
|
|
||||||
.search-section {
|
|
||||||
padding: 16px 0;
|
|
||||||
}
|
|
||||||
.pole-main-content {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pole-monitor-search-box {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 12px;
|
|
||||||
margin: 16px 0;
|
|
||||||
}
|
|
||||||
.right-panel {
|
|
||||||
.el-scrollbar__view {
|
|
||||||
background: transparent !important;
|
|
||||||
height: 600px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.pole-monitor-main {
|
|
||||||
.left-panel {
|
|
||||||
.main-image {
|
|
||||||
box-sizing: border-box;
|
|
||||||
min-height: 511px;
|
|
||||||
position: relative;
|
|
||||||
background-color: #090F48;
|
|
||||||
border-radius: 4px;
|
|
||||||
img {
|
|
||||||
width: 100%;
|
|
||||||
max-height: 460px;
|
|
||||||
}
|
|
||||||
.image-info{
|
|
||||||
position: absolute;
|
|
||||||
height: 52px;
|
|
||||||
line-height: 52px;
|
|
||||||
bottom: 0;
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 0 16px;
|
|
||||||
&> span {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.thumbnail-container {
|
|
||||||
width: 100%;
|
|
||||||
overflow: visible;
|
|
||||||
.swiper {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
.swiper-slide {
|
|
||||||
width: 20%;
|
|
||||||
border-radius: 4px;
|
|
||||||
img {
|
|
||||||
width: 100%;
|
|
||||||
height: 144px;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.active-slide img {
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 2px solid #2ecce0;
|
|
||||||
}
|
|
||||||
.swiper-button-prev,
|
|
||||||
.swiper-button-next {
|
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
|
||||||
color: white;
|
|
||||||
width: 32px;
|
|
||||||
height: 32px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.swiper-button-prev::after,
|
|
||||||
.swiper-button-next::after {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 修改按钮悬停样式 */
|
|
||||||
.swiper-button-prev:hover,
|
|
||||||
.swiper-button-next:hover {
|
|
||||||
background-color: rgba(0, 0, 0, 0.8);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue