Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5caffc9cc9 | ||
|
|
15bef7b17f | ||
|
|
4ac32753f1 | ||
|
|
131adc81a7 | ||
|
|
3135f76a2f | ||
|
|
08d81f724f | ||
|
|
29ef22c9b7 | ||
|
|
7738d7d153 | ||
|
|
20bc6e3ab5 | ||
|
|
2ea0557f4e | ||
|
|
1a35510801 | ||
|
|
5ad3029e0b | ||
|
|
cd51cfb052 | ||
|
|
4415eb30b2 | ||
|
|
78d094e4a2 | ||
|
|
8f5642d0b5 | ||
|
|
6c191aa96f | ||
|
|
f2d7156b4f | ||
|
|
d44c79f7b8 | ||
|
|
964ba77f8a | ||
|
|
7c1f135e99 | ||
|
|
1982ccd7ff | ||
|
|
5abaa743c0 | ||
|
|
52a8095334 | ||
|
|
654c997607 | ||
|
|
b31efb9ede | ||
|
|
195b58d798 | ||
|
|
0423de2683 | ||
|
|
27b593ba01 | ||
|
|
8c7b164166 | ||
|
|
bdc45b8890 | ||
|
|
2705bedc71 | ||
|
|
ae970d048c | ||
|
|
29f57c80ef | ||
|
|
80072bf7e0 | ||
|
|
8d377dfed7 | ||
|
|
633b6ffd29 | ||
|
|
cf3141198b | ||
|
|
c05d329614 | ||
|
|
ee08263e4a | ||
| 19ea08d5e0 | |||
|
|
f9809197e8 | ||
|
|
0090a922c6 | ||
|
|
0b26de20b9 | ||
|
|
1202f64bfc | ||
|
|
ce1738daf0 | ||
|
|
a41d824ca3 | ||
|
|
ac5a8450e8 | ||
|
|
01e817a5d6 | ||
|
|
01bf07fc42 | ||
|
|
633e914c9a | ||
|
|
37e69e7bda | ||
|
|
19fb90432a | ||
|
|
4a3c81a792 | ||
|
|
12d3073241 | ||
|
|
72838462ad | ||
|
|
327addf625 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ public/electron/
|
||||
pnpm-lock.yaml
|
||||
CLAUDE.md
|
||||
/public/dist/
|
||||
/docs/
|
||||
|
||||
@@ -33,9 +33,9 @@ mybatis-plus:
|
||||
#驼峰命名
|
||||
map-underscore-to-camel-case: true
|
||||
#配置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:
|
||||
db-config:
|
||||
#指定主键生成策略
|
||||
@@ -55,30 +55,32 @@ webSocket:
|
||||
|
||||
#源参数下发,暂态数据默认值
|
||||
Dip:
|
||||
#暂态前时间(s)
|
||||
fPreTime: 2f
|
||||
# 暂态前时间(s)
|
||||
# fPreTime: 2f
|
||||
#写入时间(s)
|
||||
fRampIn: 0.001f
|
||||
#写出时间(s)
|
||||
fRampOut: 0.001f
|
||||
#暂态后时间(s)
|
||||
fAfterTime: 3f
|
||||
# 暂态后时间(s)
|
||||
# fAfterTime: 3f
|
||||
|
||||
|
||||
Flicker:
|
||||
waveFluType: CPM
|
||||
waveType: SQU
|
||||
fDutyCycle: 50f
|
||||
#Flicker:
|
||||
# waveFluType: CPM
|
||||
# waveType: SQU
|
||||
# fDutyCycle: 50f
|
||||
|
||||
log:
|
||||
homeDir: {{APP_DATA_PATH}}\logs
|
||||
commonLevel: info
|
||||
#log:
|
||||
# homeDir: D:\logs
|
||||
# commonLevel: info
|
||||
report:
|
||||
template: {{APP_DATA_PATH}}\template
|
||||
reportDir: {{APP_DATA_PATH}}\report
|
||||
# template: D:\template
|
||||
# reportDir: D:\report
|
||||
dateFormat: yyyy年MM月dd日
|
||||
data:
|
||||
homeDir: {{APP_DATA_PATH}}\data
|
||||
#data:
|
||||
# homeDir: D:\data
|
||||
#resource:
|
||||
# videoDir: ${data.homeDir}\resources\videos
|
||||
qr:
|
||||
cloud: http://pqmcc.com:18082/api/file
|
||||
dev:
|
||||
@@ -95,6 +97,8 @@ qr:
|
||||
db:
|
||||
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"
|
||||
|
||||
|
||||
dataCheck:
|
||||
enable: false
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo44
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo44
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo45
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo45
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo46
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo46
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo47
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo47
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo48
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo48
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo49
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo49
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo50
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo50
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
11900
|
||||
55936
|
||||
|
||||
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000036
Normal file
BIN
build/extraResources/mysql/data/binlog.000036
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000037
Normal file
BIN
build/extraResources/mysql/data/binlog.000037
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000038
Normal file
BIN
build/extraResources/mysql/data/binlog.000038
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000039
Normal file
BIN
build/extraResources/mysql/data/binlog.000039
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000040
Normal file
BIN
build/extraResources/mysql/data/binlog.000040
Normal file
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000041
Normal file
BIN
build/extraResources/mysql/data/binlog.000041
Normal file
Binary file not shown.
@@ -11,3 +11,9 @@
|
||||
.\binlog.000033
|
||||
.\binlog.000034
|
||||
.\binlog.000035
|
||||
.\binlog.000036
|
||||
.\binlog.000037
|
||||
.\binlog.000038
|
||||
.\binlog.000039
|
||||
.\binlog.000040
|
||||
.\binlog.000041
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/pqs9100/pq_dev_check_history.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/pq_dev_check_history.ibd
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,3 +12,10 @@ VITE_REPORT=false
|
||||
|
||||
# 浏览器是否显示vue的告警信息
|
||||
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
|
||||
|
||||
@@ -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.2.125:18092/"]]
|
||||
# VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文
|
||||
# 开启激活验证
|
||||
VITE_ACTIVATE_OPEN=true
|
||||
@@ -23,6 +23,5 @@ VITE_PWA=true
|
||||
|
||||
# 线上环境接口地址
|
||||
#VITE_API_URL="/api" # 打包时用
|
||||
VITE_API_URL="http://127.0.0.1:18093/"
|
||||
# 开启激活验证
|
||||
VITE_ACTIVATE_OPEN=true
|
||||
VITE_API_URL="http://127.0.0.1:18092/"
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
<meta charset="utf-8">
|
||||
<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" />
|
||||
<title></title>
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||
<title>NPQS-9100</title>
|
||||
<!-- 优化:vue渲染未完成之前,先加一个css动画 -->
|
||||
<style>
|
||||
#loadingPage {
|
||||
|
||||
BIN
frontend/public/favicon.ico
Normal file
BIN
frontend/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
15
frontend/src/api/detection/lock.ts
Normal file
15
frontend/src/api/detection/lock.ts
Normal 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
|
||||
})
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
import type { controlSource } from '@/api/device/interface/controlSource'
|
||||
import http from '@/api'
|
||||
import { useDetectionLockStore } from '@/stores/modules/detectionLock'
|
||||
|
||||
/**
|
||||
* @name 程控源管理模块
|
||||
@@ -17,8 +18,11 @@ export const startSimulateTest = (params: controlSource.ResControl) => {
|
||||
}
|
||||
|
||||
//停止
|
||||
export const closeSimulateTest = (params: controlSource.ResControl) => {
|
||||
return http.post(`/prepare/closeSimulateTest`,params,{loading:false})
|
||||
export const closeSimulateTest = async (params: controlSource.ResControl) => {
|
||||
const result = await http.post(`/prepare/closeSimulateTest`,params,{loading:false})
|
||||
// 主动终止 → 释放本地持锁标记
|
||||
useDetectionLockStore().clearHolder()
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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}
|
||||
@@ -4,34 +4,38 @@ import http from '@/api'
|
||||
/**
|
||||
* @name ICD管理模块
|
||||
*/
|
||||
|
||||
|
||||
|
||||
//获取ICD分页
|
||||
export const getICDList = (params: ICD.ReqICDParams) => {
|
||||
return http.post(`/icd/list`,params)
|
||||
return http.post<ICD.ResICDPage>(`/icd/list`, params)
|
||||
}
|
||||
|
||||
|
||||
//获取ICD
|
||||
export const getICDAllList = (params: ICD.ResICD) => {
|
||||
return http.get(`/icd/listAll`,params)
|
||||
export const getICDAllList = () => {
|
||||
return http.get<ICD.ResICD[]>(`/icd/listAll`)
|
||||
}
|
||||
|
||||
//添加ICD
|
||||
export const addICD = (params: ICD.ResICD) => {
|
||||
export const getStandardICDList = () => {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
//编辑ICD
|
||||
export const updateICD = (params: ICD.ResICD) => {
|
||||
export const updateICD = (params: FormData) => {
|
||||
return http.upload(`/icd/update`, params)
|
||||
}
|
||||
}
|
||||
|
||||
//删除ICD
|
||||
export const deleteICD = (params: string[]) => {
|
||||
export const importICDJson = (params: FormData) => {
|
||||
return http.upload(`/icd/import/json`, params, { loading: false })
|
||||
}
|
||||
|
||||
export const deleteICD = (params: string[]) => {
|
||||
return http.post(`/icd/delete`, params)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export const exportICD = (id: string) => {
|
||||
return http.downloadGetWithHeaders(`/icd/export/${id}`)
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ export namespace DevType {
|
||||
id: string; //设备类型ID
|
||||
name: string;//设备类型名称
|
||||
icd: string| null;//设备关联的ICD
|
||||
pqdif: string| null;//设备关联的PQDIF
|
||||
power: string| null;//工作电源
|
||||
devVolt: number; //额定电压(V)
|
||||
devCurr: number; //额定电流(A)
|
||||
|
||||
@@ -1,38 +1,36 @@
|
||||
import type { ReqPage, ResPage } from '@/api/interface'
|
||||
|
||||
// ICD模块
|
||||
export namespace ICD {
|
||||
export interface ReqICDParams extends ReqPage {
|
||||
name?: string
|
||||
type?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* ICD表格分页查询参数
|
||||
*/
|
||||
export interface ReqICDParams extends ReqPage {
|
||||
id: string; // 装置序号id 必填
|
||||
devType?: string; // 设备名称
|
||||
createTime?: string; //创建时间
|
||||
}
|
||||
export interface StandardOption {
|
||||
id: string
|
||||
name: string
|
||||
type?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* ICD新增、修改、根据id查询返回的对象
|
||||
*/
|
||||
export interface ResICD {
|
||||
id: string; //icdID
|
||||
name: string;//icd名称
|
||||
path: string;//icd存储地址
|
||||
state: number;
|
||||
createBy?: string| null; //创建用户
|
||||
createTime?: string| null; //创建时间
|
||||
updateBy?: string| null; //更新用户
|
||||
updateTime?: string| null; //更新时间
|
||||
angle: number; // 是否支持电压相角、电流相角指标
|
||||
usePhaseIndex: number; // 角型接线时是否使用相别的指标来进行检测
|
||||
mappingFile: string | null;//映射文件
|
||||
}
|
||||
export interface ResICD {
|
||||
id: string
|
||||
name: string
|
||||
state: number
|
||||
createBy?: string | null
|
||||
createTime?: string | null
|
||||
updateBy?: string | null
|
||||
updateTime?: string | null
|
||||
angle: number
|
||||
usePhaseIndex: number
|
||||
jsonStr: string
|
||||
xmlStr: string
|
||||
result: number
|
||||
msg: string | null
|
||||
type: number
|
||||
referenceIcdId: string | null
|
||||
referenceIcdName?: string | null
|
||||
hasIcdFile?: boolean | null
|
||||
}
|
||||
|
||||
/**
|
||||
* ICD表格查询分页返回的对象;
|
||||
*/
|
||||
export interface ResICDPage extends ResPage<ResICD> {
|
||||
|
||||
}
|
||||
export interface ResICDPage extends ResPage<ResICD> {}
|
||||
}
|
||||
26
frontend/src/api/device/interface/pqdif.ts
Normal file
26
frontend/src/api/device/interface/pqdif.ts
Normal 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> {}
|
||||
}
|
||||
@@ -1,39 +1,34 @@
|
||||
import type { ReqPage, ResPage } from '@/api/interface'
|
||||
import type { UploadFile } from 'element-plus';
|
||||
|
||||
// 报告模版接口
|
||||
export namespace PqReport {
|
||||
|
||||
/**
|
||||
* 报告模版表格分页查询参数
|
||||
*/
|
||||
export interface ReqReportParams extends ReqPage {
|
||||
id: string; // 装置序号id 必填
|
||||
name?: string; // 设备名称
|
||||
createTime?: string; //创建时间
|
||||
id: string
|
||||
name?: string
|
||||
createTime?: string
|
||||
pattern: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 报告模版新增、修改、根据id查询返回的对象
|
||||
*/
|
||||
export interface ResReport {
|
||||
id: string; //报告模板id
|
||||
name: string;//报告模板名称
|
||||
version:string;//版本号
|
||||
baseFile?:string;//基础模板文件路径
|
||||
detailFile?:string;//检测项模版文件路径
|
||||
description:string;//描述信息
|
||||
state:number;//状态:8-删除 1-正常
|
||||
createBy?: string| null; //创建用户
|
||||
createTime?: string| null; //创建时间
|
||||
updateBy?: string| null; //更新用户
|
||||
updateTime?: string| null; //更新时间
|
||||
id: string
|
||||
name: string
|
||||
version: string
|
||||
pattern: string
|
||||
baseFile?: string
|
||||
detailFile?: string
|
||||
description: string
|
||||
state: number
|
||||
createBy?: string | null
|
||||
createTime?: string | null
|
||||
updateBy?: string | null
|
||||
updateTime?: string | null
|
||||
}
|
||||
|
||||
/**
|
||||
* 报告模版表格查询分页返回的对象;
|
||||
*/
|
||||
export interface ResReportPage extends ResPage<ResReport> {
|
||||
|
||||
export interface ResReportOption {
|
||||
id: string
|
||||
name: string
|
||||
version: string
|
||||
displayName: string
|
||||
}
|
||||
|
||||
export interface ResReportPage extends ResPage<ResReport> {}
|
||||
}
|
||||
@@ -2,43 +2,44 @@ import type { ReqPage, ResPage } from '@/api/interface'
|
||||
|
||||
// 检测源模块
|
||||
export namespace TestSource {
|
||||
|
||||
/**
|
||||
* 检测脚本表格分页查询参数
|
||||
*/
|
||||
export interface ReqTestSourceParams extends ReqPage{
|
||||
id: string; // 装置序号id 必填
|
||||
name: string;
|
||||
pattern: string;
|
||||
}
|
||||
/**
|
||||
* 检测源表格分页查询参数
|
||||
*/
|
||||
export interface ReqTestSourceParams extends ReqPage {
|
||||
id: string
|
||||
name: string
|
||||
pattern: string
|
||||
}
|
||||
|
||||
// 检测源接口
|
||||
export interface ResTestSource {
|
||||
id: string; //检测源ID
|
||||
name?: string; //检测源名称(检测源类型 + 设备类型 + 数字自动生成)
|
||||
pattern: string;//检测源模式(字典表Code字段,数字、模拟、比对)
|
||||
type: string; //检测源类型(字典表Code字段,标准源、高精度设备)
|
||||
devType: string;//检测源设备类型(字典表Code字段)
|
||||
parameter?: string;//源参数(JSON字符串)
|
||||
state:number;//
|
||||
createBy?: string;
|
||||
createTime?: string;
|
||||
updateBy?: string;
|
||||
updateTime?: string;
|
||||
id: string
|
||||
name?: string
|
||||
pattern: string
|
||||
type: string
|
||||
devType: string
|
||||
maxVoltage?: number
|
||||
maxCurrent?: number
|
||||
parameter?: string
|
||||
state: number
|
||||
createBy?: string
|
||||
createTime?: string
|
||||
updateBy?: string
|
||||
updateTime?: string
|
||||
}
|
||||
|
||||
/* 检测脚本查询分页返回的对象;
|
||||
*/
|
||||
export interface ResTestSourcePage extends ResPage<ResTestSource> {
|
||||
/*
|
||||
* 检测源查询分页返回的对象
|
||||
*/
|
||||
export interface ResTestSourcePage extends ResPage<ResTestSource> {}
|
||||
|
||||
}
|
||||
export interface ParameterType{
|
||||
id:string;
|
||||
type:string;
|
||||
desc:string;
|
||||
value:string|null;
|
||||
sort:number;
|
||||
pId:string;
|
||||
children?:ParameterType[];
|
||||
export interface ParameterType {
|
||||
id: string
|
||||
type: string
|
||||
desc: string
|
||||
value: string | null
|
||||
sort: number
|
||||
pId: string
|
||||
children?: ParameterType[]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user