控制中心加入670的操作。

This commit is contained in:
liub
2025-09-18 11:22:11 +08:00
parent a407fb7f7a
commit 34c828bef3
4 changed files with 1108 additions and 4 deletions

View File

@ -5,11 +5,11 @@ VITE_APP_TITLE = 云平台管理系统
VITE_APP_ENV = 'development'
# 开发环境
VITE_APP_BASE_API = 'http://47.120.79.150/backend'
#VITE_APP_BASE_API = 'http://192.168.2.23:8000'
# VITE_APP_BASE_API = 'http://47.120.79.150/backend'
VITE_APP_BASE_API = 'http://192.168.110.56:8000'
#代永飞接口
#VITE_APP_BASE_API = 'http://457102h2d6.qicp.vip:24689'
# VITE_APP_BASE_API = 'http://457102h2d6.qicp.vip:24689'
# 应用访问路径 例如使用前缀 /admin/

View File

@ -0,0 +1,66 @@
import request from '@/utils/request';
// 人员信息发送
function SendUser (data: any) {
return request({
url: `/api/xinghan/device/registerPersonInfo`,
method: 'post',
data: data
});
};
// 灯光模式
function lightModeSettings (data: any) {
return request({
url: `/api/xinghan/device/LightGradeSettings`,
method: 'post',
data: data
});
};
// 强制报警
function SosSetting (data: any) {
return request({
url: `/api/xinghan/device/SOSGradeSettings`,
method: 'post',
data: data
});
};
//静电探测档位控制
function staticPowerSetting (data: any) {
return request({
url: `/api/xinghan/device/DetectGradeSettings`,
method: 'post',
data: data
});
};
// 获取设备实时状态
function deviceRealTimeStatus (id: any) {
return request({
url: `/api/xinghan/device/`+id,
method: 'get'
});
};
// 发送信息
function SendMessage (data: any) {
return request({
url: `/api/xinghan/device/sendAlarmMessage`,
method: 'post',
data: data
});
};
export default {
SendUser:SendUser,
lightModeSettings:lightModeSettings,
SosSetting:SosSetting,
staticPowerSetting:staticPowerSetting,
deviceRealTimeStatus:deviceRealTimeStatus,
SendMessage:SendMessage
};

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@
<el-collapse-item name="1">
<el-form ref="queryFormRef" :model="queryParams" :inline="true" class="queryFormRef">
<el-form-item label="设备类型" prop="deviceType">
<el-select v-model="queryParams.deviceType" placeholder="设备类型">
<el-select v-model="queryParams.deviceType" placeholder="设备类型" clearable>
<el-option v-for="item in deviceTypeOptions" :key="item.value" :label="item.typeName"
:value="item.deviceTypeId" />
</el-select>
@ -306,6 +306,7 @@ const handleControl = (row: any) => {
const detailPageUrl = row.detailPageUrl;
const basePath = detailPageUrl.replace(/\/index$/, '');
const dynamicPath = `/${basePath}/${deviceId}`;
debugger;
router.push(dynamicPath); // 跳转路由
};
@ -336,6 +337,7 @@ onMounted(() => {
const getList = async () => {
loading.value = false;
const res = await api.deviceControlCenterList(queryParams.value);
loading.value = false;
deviceList.value = res.rows;
total.value = res.total;