55 Commits

Author SHA1 Message Date
caozehui
5caffc9cc9 微调 2026-07-02 18:36:26 +08:00
caozehui
15bef7b17f 微调 2026-07-02 15:33:16 +08:00
caozehui
4ac32753f1 微调 2026-07-02 15:21:31 +08:00
caozehui
131adc81a7 三项不平衡补充序分量 2026-07-02 15:00:19 +08:00
caozehui
3135f76a2f 归档 2026-07-01 16:12:33 +08:00
caozehui
08d81f724f 微调 2026-07-01 13:59:28 +08:00
caozehui
29ef22c9b7 闪变调整 2026-06-26 13:57:17 +08:00
caozehui
7738d7d153 源控程序优化 2026-06-26 10:31:52 +08:00
caozehui
20bc6e3ab5 正式检测-过载测试显示结果 2026-06-26 08:46:23 +08:00
caozehui
2ea0557f4e 程控源调整 2026-06-25 10:52:19 +08:00
caozehui
1a35510801 修改配置文件 2026-06-23 11:42:45 +08:00
caozehui
5ad3029e0b pqdif 2026-06-23 10:21:56 +08:00
caozehui
cd51cfb052 程控源调整 2026-06-18 10:01:39 +08:00
caozehui
4415eb30b2 微调 2026-06-17 15:51:02 +08:00
caozehui
78d094e4a2 icd导入按钮及权限控制 2026-06-17 13:20:36 +08:00
caozehui
8f5642d0b5 icd调整 2026-06-16 19:26:47 +08:00
caozehui
6c191aa96f 多影响量 2026-06-16 13:24:21 +08:00
caozehui
f2d7156b4f 移除文件 2026-06-15 10:11:51 +08:00
caozehui
d44c79f7b8 报告模版新增pattern字段 2026-06-12 13:30:07 +08:00
caozehui
964ba77f8a Revert "docs: add report template pattern design"
This reverts commit 7c1f135e99.
2026-06-12 09:50:21 +08:00
caozehui
7c1f135e99 docs: add report template pattern design 2026-06-12 09:49:30 +08:00
caozehui
1982ccd7ff 闪变支持配置Pst 2026-06-12 09:22:50 +08:00
caozehui
5abaa743c0 修改常量 2026-06-11 10:35:11 +08:00
caozehui
52a8095334 移除文件 2026-06-11 09:57:01 +08:00
caozehui
654c997607 移除文件 2026-06-11 09:43:59 +08:00
caozehui
b31efb9ede 闪变编辑框微调 2026-06-11 09:28:26 +08:00
caozehui
195b58d798 比对检测计划默认值 2026-06-09 19:22:54 +08:00
caozehui
0423de2683 新增小工具页面、SNTP对时功能集成到小工具页面 2026-06-08 08:46:29 +08:00
caozehui
27b593ba01 微调 2026-06-02 11:21:55 +08:00
caozehui
8c7b164166 微调 2026-06-02 09:25:17 +08:00
caozehui
bdc45b8890 微调 2026-06-01 18:37:31 +08:00
caozehui
2705bedc71 微调 2026-06-01 14:12:47 +08:00
caozehui
ae970d048c 微调 2026-06-01 11:34:39 +08:00
caozehui
29f57c80ef 数据库调整 2026-06-01 11:25:37 +08:00
caozehui
80072bf7e0 资源管理前后端 2026-06-01 11:20:11 +08:00
caozehui
8d377dfed7 微调 2026-06-01 11:09:32 +08:00
caozehui
633b6ffd29 自动播放视频 2026-06-01 11:07:47 +08:00
caozehui
cf3141198b 微调 2026-06-01 09:26:01 +08:00
caozehui
c05d329614 补充观看教学视频路由跳转功能,检测页面微调 2026-05-29 10:39:12 +08:00
caozehui
ee08263e4a 检测计划统计弹窗下拉框内容调整 2026-05-29 09:58:24 +08:00
19ea08d5e0 feat(detection): 添加检测锁机制防止多用户同时操作
- 新增 detectionLock store 管理检测锁状态
- 实现检测锁相关的弹窗提示功能
- 添加 DETECTION_BUSY 错误码处理多人竞争逻辑
- 在 websocket 中集成检测锁超时处理
- 修改程序源控制接口以同步锁状态
- 更新项目标题和图标配置
- 添加 docs 目录到忽略列表
2026-05-28 20:44:53 +08:00
caozehui
f9809197e8 微调 2026-05-28 16:33:07 +08:00
caozehui
0090a922c6 资源管理页面微调 2026-05-28 14:37:40 +08:00
caozehui
0b26de20b9 资源管理 2026-05-28 13:26:35 +08:00
caozehui
1202f64bfc 检测计划统计功能 2026-05-28 08:44:15 +08:00
caozehui
ce1738daf0 微调 2026-05-27 11:20:12 +08:00
caozehui
a41d824ca3 归档 2026-05-26 15:45:08 +08:00
caozehui
ac5a8450e8 微调 2026-05-26 14:23:59 +08:00
caozehui
01e817a5d6 微调 2026-05-26 13:45:23 +08:00
caozehui
01bf07fc42 检测计划统计功能 2026-05-26 09:22:38 +08:00
caozehui
633e914c9a Revert "下拉多选报告模版"
This reverts commit 37e69e7bda.
2026-05-25 18:38:46 +08:00
caozehui
37e69e7bda 下拉多选报告模版 2026-05-25 14:25:57 +08:00
caozehui
19fb90432a 归档 2026-05-25 09:51:42 +08:00
caozehui
4a3c81a792 归档 2026-05-25 09:50:16 +08:00
caozehui
12d3073241 统一sourceId 2026-05-13 09:47:10 +08:00
173 changed files with 4897 additions and 3611 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ public/electron/
pnpm-lock.yaml pnpm-lock.yaml
CLAUDE.md CLAUDE.md
/public/dist/ /public/dist/
/docs/

View File

@@ -33,9 +33,9 @@ mybatis-plus:
#驼峰命名 #驼峰命名
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
#配置sql日志输出 #配置sql日志输出
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#关闭日志输出 #关闭日志输出
# log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
global-config: global-config:
db-config: db-config:
#指定主键生成策略 #指定主键生成策略
@@ -55,30 +55,32 @@ webSocket:
#源参数下发,暂态数据默认值 #源参数下发,暂态数据默认值
Dip: Dip:
#暂态前时间s # 暂态前时间s
fPreTime: 2f # fPreTime: 2f
#写入时间s #写入时间s
fRampIn: 0.001f fRampIn: 0.001f
#写出时间s #写出时间s
fRampOut: 0.001f fRampOut: 0.001f
#暂态后时间s # 暂态后时间s
fAfterTime: 3f # fAfterTime: 3f
Flicker: #Flicker:
waveFluType: CPM # waveFluType: CPM
waveType: SQU # waveType: SQU
fDutyCycle: 50f # fDutyCycle: 50f
log: #log:
homeDir: {{APP_DATA_PATH}}\logs # homeDir: D:\logs
commonLevel: info # commonLevel: info
report: report:
template: {{APP_DATA_PATH}}\template # template: D:\template
reportDir: {{APP_DATA_PATH}}\report # reportDir: D:\report
dateFormat: yyyy年MM月dd日 dateFormat: yyyy年MM月dd日
data: #data:
homeDir: {{APP_DATA_PATH}}\data # homeDir: D:\data
#resource:
# videoDir: ${data.homeDir}\resources\videos
qr: qr:
cloud: http://pqmcc.com:18082/api/file cloud: http://pqmcc.com:18082/api/file
dev: dev:
@@ -95,6 +97,8 @@ qr:
db: db:
type: mysql type: mysql
icd:
txt-dir: ..\..\..\9100\DeviceControl\Config
# 比对录波需要的配置,晚点再做优化 # 比对录波需要的配置,晚点再做优化
# 系统配置 # 系统配置
@@ -116,3 +120,5 @@ activate:
public-key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnFMmIVanMxsW5S/qP8Wcxf/J3/i4631BP3UtWkRzO7jAw9HIAgK4Y7X53hXj6zMbfme1vMjQc0mq7m/KrH4WlTYpFexLO6Gnk8oH40F04tp+ABZIq93zNOydPEaVoZeTPH/LlkwrrxVGAMNNIKuebcqapp25JiWtlSFMv4kH/nDAj+2m8+P4zYVM1Ed6gO01eKDEYE3SBA1Ket2BfHTgviR/F8WKwlXh11enywsJnrHTM5dJQdlUxCjHy214TpheYOz/cv9elQnDfFAbmZW8mH5/hgMSTkm3h4uR7ITin6Erg+yc/t1kGaTWrzloyBRMSiFN/Pwr5yQjj+1wQqqUkwIDAQAB" public-key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnFMmIVanMxsW5S/qP8Wcxf/J3/i4631BP3UtWkRzO7jAw9HIAgK4Y7X53hXj6zMbfme1vMjQc0mq7m/KrH4WlTYpFexLO6Gnk8oH40F04tp+ABZIq93zNOydPEaVoZeTPH/LlkwrrxVGAMNNIKuebcqapp25JiWtlSFMv4kH/nDAj+2m8+P4zYVM1Ed6gO01eKDEYE3SBA1Ket2BfHTgviR/F8WKwlXh11enywsJnrHTM5dJQdlUxCjHy214TpheYOz/cv9elQnDfFAbmZW8mH5/hgMSTkm3h4uR7ITin6Erg+yc/t1kGaTWrzloyBRMSiFN/Pwr5yQjj+1wQqqUkwIDAQAB"
dataCheck:
enable: false

View File

@@ -1 +1 @@
53820 55936

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -12,3 +12,8 @@
.\binlog.000034 .\binlog.000034
.\binlog.000035 .\binlog.000035
.\binlog.000036 .\binlog.000036
.\binlog.000037
.\binlog.000038
.\binlog.000039
.\binlog.000040
.\binlog.000041

View File

@@ -12,3 +12,10 @@ VITE_REPORT=false
# 浏览器是否显示vue的告警信息 # 浏览器是否显示vue的告警信息
VUE_APP_SILENCE_WARNINGS=true VUE_APP_SILENCE_WARNINGS=true
VITE_COMPANY_WEBSITE=http://www.shining-electric.com/
VITE_COMPANY_NAME=南京灿能电力自动化股份有限公司
VITE_IS_SHOW_RAW_DATA=true
# 开启激活验证
VITE_ACTIVATE_OPEN=true

View File

@@ -19,9 +19,6 @@ VITE_API_URL=/api
# 开发环境跨域代理,支持配置多个 # 开发环境跨域代理,支持配置多个
VITE_PROXY=[["/api","http://127.0.0.1:18093/"]] VITE_PROXY=[["/api","http://127.0.0.1:18092/"]]
#VITE_PROXY=[["/api","http://192.168.1.124:18092/"]] #VITE_PROXY=[["/api","http://192.168.1.124:18092/"]]
#VITE_PROXY=[["/api","http://192.168.2.125:18092/"]] #VITE_PROXY=[["/api","http://192.168.2.125:18092/"]]
# VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文
# 开启激活验证
VITE_ACTIVATE_OPEN=true

View File

@@ -23,6 +23,5 @@ VITE_PWA=true
# 线上环境接口地址 # 线上环境接口地址
#VITE_API_URL="/api" # 打包时用 #VITE_API_URL="/api" # 打包时用
VITE_API_URL="http://127.0.0.1:18093/" VITE_API_URL="http://127.0.0.1:18092/"
# 开启激活验证
VITE_ACTIVATE_OPEN=true

View File

@@ -4,7 +4,8 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" />
<title></title> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>NPQS-9100</title>
<!-- 优化vue渲染未完成之前先加一个css动画 --> <!-- 优化vue渲染未完成之前先加一个css动画 -->
<style> <style>
#loadingPage { #loadingPage {

BIN
frontend/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,15 @@
import http from '@/api'
import type { DetectionLockHolder } from '@/stores/modules/detectionLock'
/**
* 查询当前检测锁持有状态
* - data 为 null → 锁空闲
* - data 非 null → 锁被某账号持有
*
* 本接口只读,不抢锁、不会返回 DETECTION_BUSY
*/
export const getCurrentLock = () => {
return http.get<DetectionLockHolder | null>('/detection/lock/current', undefined, {
loading: false
})
}

View File

@@ -1,6 +1,7 @@
import type { controlSource } from '@/api/device/interface/controlSource' import type { controlSource } from '@/api/device/interface/controlSource'
import http from '@/api' import http from '@/api'
import { useDetectionLockStore } from '@/stores/modules/detectionLock'
/** /**
* @name 程控源管理模块 * @name 程控源管理模块
@@ -17,8 +18,11 @@ export const startSimulateTest = (params: controlSource.ResControl) => {
} }
//停止 //停止
export const closeSimulateTest = (params: controlSource.ResControl) => { export const closeSimulateTest = async (params: controlSource.ResControl) => {
return http.post(`/prepare/closeSimulateTest`,params,{loading:false}) const result = await http.post(`/prepare/closeSimulateTest`,params,{loading:false})
// 主动终止 → 释放本地持锁标记
useDetectionLockStore().clearHolder()
return result
} }

View File

@@ -1,269 +0,0 @@
const data = [
{
id: 'device1',
deviceName:"模拟装置1",
deviceType:"PQS882B4电能质量监测装置",
deviceChannels:"4",
planName: "沧州220kV留古等4座变电站电能质量检测",
deviceUn: "57.74",
deviceIn: "5",
deviceCompany: "南京灿能电力自动化股份有限公司",
deviceModel: "模拟式",
},
{
id: 'device2',
deviceName:"模拟装置2",
deviceType:"PQS882A电能质量监测装置",
deviceChannels:"1",
planName: "邯郸220kV团城站等4座站电能质量检测",
deviceUn: "57.74",
deviceIn: "5",
deviceCompany: "南京灿能电力自动化股份有限公司",
deviceModel: "模拟式",
},
{
id: 'device3',
deviceName:"模拟装置3",
deviceType:"PQS882A电能质量监测装置",
deviceChannels:"1",
planName: "衡水冀州光伏电站配套出口工程",
deviceUn: "57.74",
deviceIn: "1",
deviceCompany: "南京灿能电力自动化股份有限公司",
deviceModel: "模拟式",
},
{
id: 'device4',
deviceName:"模拟装置4",
deviceType:"PMC-680M-22-22-00-115ANBC电能质量监测装置",
deviceChannels:"4",
planName: "深圳市中电软件有限公司委托送检",
deviceUn: "57.74",
deviceIn: "5",
deviceCompany: "深圳中电电力技术股份有限公司",
deviceModel: "模拟式",
},
]
const plan_devicedata = [
{
id: '1', //装置序号ID
name: '240001', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '2', //装置序号ID
name: '240002', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '3', //装置序号ID
name: '240003', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '4', //装置序号ID
name: '240004', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '5', //装置序号ID
name: '240005', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '不符合', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '6', //装置序号ID
name: '240006', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '不符合', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '7', //装置序号ID
name: '240007', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '符合', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '8', //装置序号ID
name: '240008', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '符合', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '9', //装置序号ID
name: '240009', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '不符合', //检测结果
report_State: '已生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '10', //装置序号ID
name: '240010', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '符合', //检测结果
report_State: '已生成', //报告状态
document_State: '未归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 2, //复检次数
},
{
id: '11', //装置序号ID
name: '240011', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '符合', //检测结果
report_State: '已生成', //报告状态
document_State: '已归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 1, //复检次数
},
{
id: '12', //装置序号ID
name: '240012', //设备名称
dev_Type: 'PQS-882B4',//设备类型
dev_Chns: 4, //设备通道数
check_Result: '符合', //检测结果
report_State: '已生成', //报告状态
document_State: '已归档', //归档状态
check_State:'检测完成',//检测状态
reCheck_Num: 2, //复检次数
},
{
id: '13', //装置序号ID
name: '240013', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '14', //装置序号ID
name: '240014', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '15', //装置序号ID
name: '240015', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '16', //装置序号ID
name: '240016', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '17', //装置序号ID
name: '240017', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '18', //装置序号ID
name: '240018', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '19', //装置序号ID
name: '240019', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
{
id: '20', //装置序号ID
name: '240020', //设备名称
dev_Type: 'PQS-882A',//设备类型
dev_Chns: 1, //设备通道数
check_Result: '未检', //检测结果
report_State: '未生成', //报告状态
document_State: '未归档', //归档状态
check_State:'未检',//检测状态
reCheck_Num: 0, //复检次数
},
]
export default {data,plan_devicedata}

View File

@@ -4,34 +4,38 @@ import http from '@/api'
/** /**
* @name ICD管理模块 * @name ICD管理模块
*/ */
//获取ICD分页
export const getICDList = (params: ICD.ReqICDParams) => { export const getICDList = (params: ICD.ReqICDParams) => {
return http.post(`/icd/list`,params) return http.post<ICD.ResICDPage>(`/icd/list`, params)
} }
export const getICDAllList = () => {
//获取ICD return http.get<ICD.ResICD[]>(`/icd/listAll`)
export const getICDAllList = (params: ICD.ResICD) => {
return http.get(`/icd/listAll`,params)
} }
//添加ICD export const getStandardICDList = () => {
export const addICD = (params: ICD.ResICD) => { return http.get<ICD.StandardOption[]>(`/icd/standard-list`)
}
export const getICDById = (id: string) => {
return http.get<ICD.ResICD>(`/icd/getById`, { id })
}
export const addICD = (params: FormData) => {
return http.upload(`/icd/add`, params) return http.upload(`/icd/add`, params)
} }
//编辑ICD export const updateICD = (params: FormData) => {
export const updateICD = (params: ICD.ResICD) => {
return http.upload(`/icd/update`, params) return http.upload(`/icd/update`, params)
} }
//删除ICD export const importICDJson = (params: FormData) => {
export const deleteICD = (params: string[]) => { return http.upload(`/icd/import/json`, params, { loading: false })
}
export const deleteICD = (params: string[]) => {
return http.post(`/icd/delete`, params) return http.post(`/icd/delete`, params)
} }
export const exportICD = (id: string) => {
return http.downloadGetWithHeaders(`/icd/export/${id}`)
}

View File

@@ -19,6 +19,7 @@ export namespace DevType {
id: string; //设备类型ID id: string; //设备类型ID
name: string;//设备类型名称 name: string;//设备类型名称
icd: string| null;//设备关联的ICD icd: string| null;//设备关联的ICD
pqdif: string| null;//设备关联的PQDIF
power: string| null;//工作电源 power: string| null;//工作电源
devVolt: number; //额定电压V devVolt: number; //额定电压V
devCurr: number; //额定电流A devCurr: number; //额定电流A

View File

@@ -1,38 +1,36 @@
import type { ReqPage, ResPage } from '@/api/interface' import type { ReqPage, ResPage } from '@/api/interface'
// ICD模块
export namespace ICD { export namespace ICD {
export interface ReqICDParams extends ReqPage {
name?: string
type?: number
}
/** export interface StandardOption {
* ICD表格分页查询参数 id: string
*/ name: string
export interface ReqICDParams extends ReqPage { type?: number
id: string; // 装置序号id 必填 }
devType?: string; // 设备名称
createTime?: string; //创建时间
}
/** export interface ResICD {
* ICD新增、修改、根据id查询返回的对象 id: string
*/ name: string
export interface ResICD { state: number
id: string; //icdID createBy?: string | null
name: string;//icd名称 createTime?: string | null
path: string;//icd存储地址 updateBy?: string | null
state: number; updateTime?: string | null
createBy?: string| null; //创建用户 angle: number
createTime?: string| null; //创建时间 usePhaseIndex: number
updateBy?: string| null; //更新用户 jsonStr: string
updateTime?: string| null; //更新时间 xmlStr: string
angle: number; // 是否支持电压相角、电流相角指标 result: number
usePhaseIndex: number; // 角型接线时是否使用相别的指标来进行检测 msg: string | null
mappingFile: string | null;//映射文件 type: number
} referenceIcdId: string | null
referenceIcdName?: string | null
hasIcdFile?: boolean | null
}
/** export interface ResICDPage extends ResPage<ResICD> {}
* ICD表格查询分页返回的对象
*/
export interface ResICDPage extends ResPage<ResICD> {
}
} }

View File

@@ -0,0 +1,26 @@
import type { ReqPage, ResPage } from '@/api/interface'
export namespace PQDIF {
export interface ReqPQDIFParams extends ReqPage {
name?: string
result?: number
}
export interface ResPQDIF {
id: string
name: string
filePath?: string | null
recordCount?: number | null
observationCount?: number | null
sampleValueCount?: number | null
result?: number | null
msg?: string | null
state: number
createBy?: string | null
createTime?: string | null
updateBy?: string | null
updateTime?: string | null
}
export interface ResPQDIFPage extends ResPage<ResPQDIF> {}
}

View File

@@ -1,39 +1,34 @@
import type { ReqPage, ResPage } from '@/api/interface' import type { ReqPage, ResPage } from '@/api/interface'
import type { UploadFile } from 'element-plus';
// 报告模版接口
export namespace PqReport { export namespace PqReport {
/**
* 报告模版表格分页查询参数
*/
export interface ReqReportParams extends ReqPage { export interface ReqReportParams extends ReqPage {
id: string; // 装置序号id 必填 id: string
name?: string; // 设备名称 name?: string
createTime?: string; //创建时间 createTime?: string
pattern: string
} }
/**
* 报告模版新增、修改、根据id查询返回的对象
*/
export interface ResReport { export interface ResReport {
id: string; //报告模板id id: string
name: string;//报告模板名称 name: string
version:string;//版本号 version: string
baseFile?:string;//基础模板文件路径 pattern: string
detailFile?:string;//检测项模版文件路径 baseFile?: string
description:string;//描述信息 detailFile?: string
state:number;//状态:8-删除 1-正常 description: string
createBy?: string| null; //创建用户 state: number
createTime?: string| null; //创建时间 createBy?: string | null
updateBy?: string| null; //更新用户 createTime?: string | null
updateTime?: string| null; //更新时间 updateBy?: string | null
updateTime?: string | null
} }
/** export interface ResReportOption {
* 报告模版表格查询分页返回的对象; id: string
*/ name: string
export interface ResReportPage extends ResPage<ResReport> { version: string
displayName: string
} }
export interface ResReportPage extends ResPage<ResReport> {}
} }

View File

@@ -2,43 +2,44 @@ import type { ReqPage, ResPage } from '@/api/interface'
// 检测源模块 // 检测源模块
export namespace TestSource { export namespace TestSource {
/**
/** * 检测源表格分页查询参数
* 检测脚本表格分页查询参数 */
*/ export interface ReqTestSourceParams extends ReqPage {
export interface ReqTestSourceParams extends ReqPage{ id: string
id: string; // 装置序号id 必填 name: string
name: string; pattern: string
pattern: string; }
}
// 检测源接口 // 检测源接口
export interface ResTestSource { export interface ResTestSource {
id: string; //检测源ID id: string
name?: string; //检测源名称(检测源类型 + 设备类型 + 数字自动生成) name?: string
pattern: string;//检测源模式(字典表Code字段数字、模拟、比对) pattern: string
type: string; //检测源类型(字典表Code字段标准源、高精度设备) type: string
devType: string;//检测源设备类型(字典表Code字段) devType: string
parameter?: string;//源参数JSON字符串 maxVoltage?: number
state:number;// maxCurrent?: number
createBy?: string; parameter?: string
createTime?: string; state: number
updateBy?: string; createBy?: string
updateTime?: string; createTime?: string
updateBy?: string
updateTime?: string
} }
/* 检测脚本查询分页返回的对象; /*
*/ * 检测源查询分页返回的对象
export interface ResTestSourcePage extends ResPage<ResTestSource> { */
export interface ResTestSourcePage extends ResPage<ResTestSource> {}
} export interface ParameterType {
export interface ParameterType{ id: string
id:string; type: string
type:string; desc: string
desc:string; value: string | null
value:string|null; sort: number
sort:number; pId: string
pId:string; children?: ParameterType[]
children?:ParameterType[];
} }
} }

View File

@@ -0,0 +1,14 @@
import type { PQDIF } from '@/api/device/interface/pqdif'
import http from '@/api'
export const getPQDIFList = (params: PQDIF.ReqPQDIFParams) => {
return http.post<PQDIF.ResPQDIFPage>('/pqdif/list', params)
}
export const getPQDIFAllList = () => {
return http.get<PQDIF.ResPQDIF[]>('/pqdif/listAll')
}
export const importPQDIFJson = (params: FormData) => {
return http.upload('/pqdif/import/json', params, { loading: false })
}

View File

@@ -1,51 +1,49 @@
import type {PqReport} from '@/api/device/interface/report' import type { PqReport } from '@/api/device/interface/report'
import http from '@/api' import http from '@/api'
/** /**
* @name 报告模版模块 * @name 报告模版模块
*/ */
//获取报告模版 //获取报告模版
export const getPqReportList = (params: PqReport.ReqReportParams) => { export const getPqReportList = (params: PqReport.ReqReportParams) => {
return http.post(`/report/list`, params) return http.post(`/report/list`, params)
} }
//新增报告模版 //新增报告模版
export const addPqReport = (params: PqReport.ResReport) => { export const addPqReport = (params: PqReport.ResReport) => {
return http.upload(`/report/add`, params) return http.upload(`/report/add`, params)
} }
//删除报告模版 //删除报告模版
export const deletePqReport = (params: string[]) => { export const deletePqReport = (params: string[]) => {
return http.post(`/report/delete`, params) return http.post(`/report/delete`, params)
} }
//查询报告模板详情 //查询报告模板详情
export const getPqReportById = (params: PqReport.ResReport) => { export const getPqReportById = (params: PqReport.ResReport) => {
return http.get(`/report/getById?id=${params.id}`) return http.get(`/report/getById?id=${params.id}`)
} }
//修改报告模板 //修改报告模板
export const updatePqReport = (params: PqReport.ResReport) => { export const updatePqReport = (params: PqReport.ResReport) => {
return http.upload(`/report/update`, params) return http.upload(`/report/update`, params)
} }
//查询所有报告模板名称 export const getPqReportOptions = (params: { pattern: string }) => {
export const getPqReportAllName = () => { return http.get(`/report/listOptions?pattern=${params.pattern}`)
return http.get(`/report/listAllName`)
} }
//根据名称查询指定报告模板的所有版本 //根据名称查询指定报告模板的所有版本
export const getPqReportAllVersion = (params:any) => { export const getPqReportAllVersion = (params: any) => {
return http.get(`/report/listAllVersion?name=${params.name}`) return http.get(`/report/listAllVersion?name=${params.name}`)
} }
//被检设备归档 //被检设备归档
export const documentedPqDev = (ids: string[]) => { export const documentedPqDev = (ids: string[]) => {
return http.post(`/report/documented`, ids) return http.post(`/report/documented`, ids)
} }
//上传报告到云端 //上传报告到云端
export const uploadReportToCloud = (deviceIds: string[]) => { export const uploadReportToCloud = (deviceIds: string[]) => {
return http.post(`/report/uploadReportToCloud`, deviceIds) return http.post(`/report/uploadReportToCloud`, deviceIds)
} }

Some files were not shown because too many files have changed in this diff Show More