Compare commits
55 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 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ public/electron/
|
|||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
/public/dist/
|
/public/dist/
|
||||||
|
/docs/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
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.
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.
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 @@
|
|||||||
53820
|
55936
|
||||||
|
|||||||
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.
@@ -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
|
||||||
|
|||||||
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.
BIN
build/extraResources/mysql/data/pqs9100/pq_pqdif_path.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/pq_pqdif_path.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.
BIN
build/extraResources/mysql/data/pqs9100/sys_resource_manage.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/sys_resource_manage.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.
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
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 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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管理模块
|
* @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}`)
|
||||||
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
@@ -38,4 +39,4 @@ export namespace DevType {
|
|||||||
export interface ResPqDevTypePage extends ResPage<ResPqDevType> {
|
export interface ResPqDevTypePage extends ResPage<ResPqDevType> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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> {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
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 { 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> {}
|
||||||
|
}
|
||||||
|
|||||||
@@ -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[]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
14
frontend/src/api/device/pqdif/index.ts
Normal file
14
frontend/src/api/device/pqdif/index.ts
Normal 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 })
|
||||||
|
}
|
||||||
@@ -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
Reference in New Issue
Block a user