Compare commits
12 Commits
c30569f5e1
...
2026-01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad02fac4ff | ||
|
|
e4de4fe43c | ||
|
|
bc7d6b24b7 | ||
|
|
3de7461960 | ||
|
|
bff94f4521 | ||
|
|
e63a3dfa92 | ||
|
|
7efb738d54 | ||
|
|
84763eb414 | ||
|
|
820a6bb233 | ||
|
|
31e44cfc69 | ||
|
|
fb9460e307 | ||
|
|
99a8c97b17 |
@@ -115,3 +115,4 @@ activate:
|
|||||||
private-key: "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCcUyYhVqczGxblL+o/xZzF/8nf+LjrfUE/dS1aRHM7uMDD0cgCArhjtfneFePrMxt+Z7W8yNBzSarub8qsfhaVNikV7Es7oaeTygfjQXTi2n4AFkir3fM07J08RpWhl5M8f8uWTCuvFUYAw00gq55typqmnbkmJa2VIUy/iQf+cMCP7abz4/jNhUzUR3qA7TV4oMRgTdIEDUp63YF8dOC+JH8XxYrCVeHXV6fLCwmesdMzl0lB2VTEKMfLbXhOmF5g7P9y/16VCcN8UBuZlbyYfn+GAxJOSbeHi5HshOKfoSuD7Jz+3WQZpNavOWjIFExKIU38/CvnJCOP7XBCqpSTAgMBAAECggEAYeWokWRE3TpvwiOZnUpR/aVMdVi75a3ROL5XIpqPV61B+t/bU3cEpl0GF9C5pUeiRi0IoStZb3mI9D1KPW/REKyUWkhabQO1gFYbTnRlkNOn6MILzKX4cwJjDaZeeo4EBPU7N+qHyOOXrU6hdH5FfxhMdV983ajm5eeuupxER1C2kAcIklTeVpTX6EKOgZb5LBp5ssOVm2P42pOauvcRozRcvZmqnErXmukv0H4l3EVNt4rHpTn9riHUC63e8JfiYzVaF6zuNUxv6nHEft0/SRMw11XSTnNfDzcKqgjz6ksFBS/6eQQYKESk+ONC53HUuYHFAknkwsPupDCT2W8FIQKBgQDLHT/xCU3nxGr4vFKBDNaO2D5oK20ECbBO4oDvLWWmQG7f+6TsMy8PgVdMn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kwIDAQAB"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo35
Normal file
BIN
build/extraResources/mysql/data/#innodb_redo/#ib_redo35
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.
@@ -1 +1 @@
|
|||||||
34820
|
74476
|
||||||
|
|||||||
Binary file not shown.
BIN
build/extraResources/mysql/data/binlog.000031
Normal file
BIN
build/extraResources/mysql/data/binlog.000031
Normal file
Binary file not shown.
@@ -6,3 +6,4 @@
|
|||||||
.\binlog.000028
|
.\binlog.000028
|
||||||
.\binlog.000029
|
.\binlog.000029
|
||||||
.\binlog.000030
|
.\binlog.000030
|
||||||
|
.\binlog.000031
|
||||||
|
|||||||
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.
BIN
build/extraResources/mysql/data/pqs9100/pq_standard_dev_gain.ibd
Normal file
BIN
build/extraResources/mysql/data/pqs9100/pq_standard_dev_gain.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.
@@ -19,9 +19,9 @@ VITE_API_URL=/api
|
|||||||
|
|
||||||
# 开发环境跨域代理,支持配置多个
|
# 开发环境跨域代理,支持配置多个
|
||||||
|
|
||||||
#VITE_PROXY=[["/api","http://127.0.0.1:18092/"]]
|
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_PROXY=[["/api","http://192.168.1.138:8080/"]]张文
|
||||||
# 开启激活验证
|
# 开启激活验证
|
||||||
VITE_ACTIVATE_OPEN=false
|
VITE_ACTIVATE_OPEN=false
|
||||||
@@ -23,6 +23,6 @@ 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
|
VITE_ACTIVATE_OPEN=false
|
||||||
@@ -35,9 +35,25 @@ export namespace StandardDevice {
|
|||||||
updateBy?: string | null; //更新用户
|
updateBy?: string | null; //更新用户
|
||||||
updateTime?: string | null; //更新时间
|
updateTime?: string | null; //更新时间
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
gainList?:Gain[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
interface Gain{
|
||||||
|
stdDevMonitorId:string;
|
||||||
|
uaGain:number;
|
||||||
|
ubGain:number;
|
||||||
|
ucGain:number;
|
||||||
|
u0Gain:number;
|
||||||
|
iaGain:number;
|
||||||
|
ibGain:number;
|
||||||
|
icGain:number;
|
||||||
|
i0Gain:number;
|
||||||
|
uabGain:number;
|
||||||
|
ubcGain:number;
|
||||||
|
ucaGain:number;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标准设备表格查询分页返回的对象;
|
* 标准设备表格查询分页返回的对象;
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -57,3 +57,14 @@ export const getPublicKey = (username: string) => {
|
|||||||
export const getAutoGenerate = () => {
|
export const getAutoGenerate = () => {
|
||||||
return http.get('/sysTestConfig/getAutoGenerate', {}, {loading: false})
|
return http.get('/sysTestConfig/getAutoGenerate', {}, {loading: false})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取比对模式下是否能够进行系数校准
|
||||||
|
*/
|
||||||
|
export const getCanCoefficient=()=>{
|
||||||
|
return http.get('/prepare/canCoefficient', {}, {loading: false})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const startCoefficient=()=>{
|
||||||
|
return http.get('/prepare/startCoefficient', {}, {loading: false})
|
||||||
|
}
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ export default class SocketService {
|
|||||||
* WebSocket连接配置
|
* WebSocket连接配置
|
||||||
*/
|
*/
|
||||||
private config: SocketConfig = {
|
private config: SocketConfig = {
|
||||||
url: 'ws://127.0.0.1:7777/hello',
|
url: 'ws://127.0.0.1:7778/hello',
|
||||||
//url: 'ws://192.168.1.124:7777/hello',
|
//url: 'ws://192.168.1.124:7777/hello',
|
||||||
heartbeatInterval: 9000, // 9秒心跳间隔
|
heartbeatInterval: 9000, // 9秒心跳间隔
|
||||||
reconnectDelay: 5000, // 5秒重连延迟
|
reconnectDelay: 5000, // 5秒重连延迟
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
:currentScriptTypeName="currentScriptTypeName"
|
:currentScriptTypeName="currentScriptTypeName"
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="原始数据" name="rawDataTab">
|
<el-tab-pane label="原始数据" name="rawDataTab" v-if="!isBusiness">
|
||||||
<CompareDataCheckRawDataTable
|
<CompareDataCheckRawDataTable
|
||||||
v-if="activeTab === 'rawDataTab'"
|
v-if="activeTab === 'rawDataTab'"
|
||||||
:tableData="rawTableData.length == 0 ? [] : currentRawTableData"
|
:tableData="rawTableData.length == 0 ? [] : currentRawTableData"
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
:currentScriptTypeName="currentScriptTypeName"
|
:currentScriptTypeName="currentScriptTypeName"
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="历史趋势" name="chartTab" v-if="!isWaveData">
|
<el-tab-pane label="历史趋势" name="chartTab" v-if="!isWaveData&&!isBusiness">
|
||||||
<CompareDataCheckChart
|
<CompareDataCheckChart
|
||||||
v-if="activeTab === 'chartTab'"
|
v-if="activeTab === 'chartTab'"
|
||||||
:tableData="rawTableData.length == 0 ? [] : currentRawTableData"
|
:tableData="rawTableData.length == 0 ? [] : currentRawTableData"
|
||||||
@@ -198,17 +198,12 @@ import { Histogram, Postcard } from '@element-plus/icons-vue'
|
|||||||
import {generateDevReport, getPqErrSysList} from '@/api/plan/plan'
|
import {generateDevReport, getPqErrSysList} from '@/api/plan/plan'
|
||||||
import {useModeStore} from '@/stores/modules/mode' // 引入模式 store
|
import {useModeStore} from '@/stores/modules/mode' // 引入模式 store
|
||||||
import {useDictStore} from '@/stores/modules/dict'
|
import {useDictStore} from '@/stores/modules/dict'
|
||||||
import {
|
import {changeErrorSystem, deleteTempTable, getContrastFormContent, getContrastResult, getScriptList, reCalculate} from '@/api/check/test'
|
||||||
changeErrorSystem,
|
|
||||||
deleteTempTable,
|
|
||||||
getContrastFormContent,
|
|
||||||
getContrastResult,
|
|
||||||
getScriptList,
|
|
||||||
reCalculate
|
|
||||||
} from '@/api/check/test'
|
|
||||||
import {ElMessage} from 'element-plus'
|
import {ElMessage} from 'element-plus'
|
||||||
import {ResultEnum} from '@/enums/httpEnum'
|
import {ResultEnum} from '@/enums/httpEnum'
|
||||||
|
|
||||||
|
const isShowRawData = import.meta.env.VITE_IS_SHOW_RAW_DATA
|
||||||
|
|
||||||
const {appendToBody = true} = defineProps<{
|
const {appendToBody = true} = defineProps<{
|
||||||
appendToBody: boolean
|
appendToBody: boolean
|
||||||
}>()
|
}>()
|
||||||
@@ -275,6 +270,11 @@ const currentRawTableData = computed(() => {
|
|||||||
return Array.isArray(data) ? data : []
|
return Array.isArray(data) ? data : []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const isBusiness = computed(() => {
|
||||||
|
console.log(isShowRawData)
|
||||||
|
return modeStore.currentMode === '比对式' && isShowRawData
|
||||||
|
})
|
||||||
|
|
||||||
const open = async (row: any, chnNum: string, deviceId: string | null, source: number) => {
|
const open = async (row: any, chnNum: string, deviceId: string | null, source: number) => {
|
||||||
activeTab.value = 'resultTab'
|
activeTab.value = 'resultTab'
|
||||||
isWaveData.value = false
|
isWaveData.value = false
|
||||||
@@ -344,7 +344,8 @@ const initScriptData = async () => {
|
|||||||
devId: formContent.deviceId,
|
devId: formContent.deviceId,
|
||||||
chnNum: formContent.chnNum,
|
chnNum: formContent.chnNum,
|
||||||
num: formContent.num,
|
num: formContent.num,
|
||||||
planId: checkStore.plan.id
|
planId: checkStore.plan.id,
|
||||||
|
code: checkStore.plan.code + (formContent.errorSysId != checkStore.plan.errorSysId || formContent.dataRule != checkStore.plan.dataRule ? '_temp' : '')
|
||||||
})
|
})
|
||||||
|
|
||||||
// 格式化脚本数据
|
// 格式化脚本数据
|
||||||
@@ -688,6 +689,7 @@ defineExpose({
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
|
||||||
.content-tree {
|
.content-tree {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -724,10 +726,12 @@ defineExpose({
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.el-tabs {
|
.el-tabs {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-left {
|
.content-left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border: 1px solid #e0e0e0;
|
border: 1px solid #e0e0e0;
|
||||||
@@ -739,6 +743,7 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-tabs--border-card > .el-tabs__content) {
|
:deep(.el-tabs--border-card > .el-tabs__content) {
|
||||||
height: 367px;
|
height: 367px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ import {CheckData} from '@/api/check/interface'
|
|||||||
import {useCheckStore} from '@/stores/modules/check'
|
import {useCheckStore} from '@/stores/modules/check'
|
||||||
import {ElMessage, ElMessageBox} from 'element-plus'
|
import {ElMessage, ElMessageBox} from 'element-plus'
|
||||||
import {getBigTestItem} from '@/api/check/test'
|
import {getBigTestItem} from '@/api/check/test'
|
||||||
import {getAutoGenerate} from '@/api/user/login'
|
import {getAutoGenerate, getCanCoefficient, startCoefficient} from '@/api/user/login'
|
||||||
import { generateDevReport } from '@/api/plan/plan'
|
import { generateDevReport } from '@/api/plan/plan'
|
||||||
import {useModeStore} from '@/stores/modules/mode' // 引入模式 store
|
import {useModeStore} from '@/stores/modules/mode' // 引入模式 store
|
||||||
import {useDictStore} from '@/stores/modules/dict'
|
import {useDictStore} from '@/stores/modules/dict'
|
||||||
@@ -157,11 +157,6 @@ const props = defineProps({
|
|||||||
|
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'update:testStatus',
|
'update:testStatus',
|
||||||
'update:webMsgSend',
|
|
||||||
'sendPause',
|
|
||||||
'sendResume',
|
|
||||||
'sendReCheck',
|
|
||||||
'closeWebSocket'
|
|
||||||
])
|
])
|
||||||
|
|
||||||
// 用来保存测试项进度抽屉是否打开
|
// 用来保存测试项进度抽屉是否打开
|
||||||
@@ -684,6 +679,20 @@ const updatePercentage = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
stopTimeCount(1)
|
stopTimeCount(1)
|
||||||
|
|
||||||
|
let { data: canCoefficient } = await getCanCoefficient()
|
||||||
|
if(canCoefficient) {
|
||||||
|
ElMessageBox.confirm('存在系数偏差,是否进行系数校准?', '系数校准', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
}).then(async ()=>{
|
||||||
|
// 调用系数校准接口
|
||||||
|
await startCoefficient()
|
||||||
|
ElMessage.success({ message: '系数下发中,请稍等...', duration: 15000 ,onClose() {
|
||||||
|
ElMessage.success('系数下发成功!')
|
||||||
|
},})
|
||||||
|
}).catch(()=>{
|
||||||
ElMessageBox.alert(
|
ElMessageBox.alert(
|
||||||
'检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作',
|
'检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作',
|
||||||
'检测完成',
|
'检测完成',
|
||||||
@@ -691,9 +700,16 @@ const updatePercentage = async () => {
|
|||||||
confirmButtonText: '确定'
|
confirmButtonText: '确定'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
// 关闭WebSocket连接
|
})
|
||||||
emit('closeWebSocket')
|
}else{
|
||||||
//clear();
|
ElMessageBox.alert(
|
||||||
|
'检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作',
|
||||||
|
'检测完成',
|
||||||
|
{
|
||||||
|
confirmButtonText: '确定'
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ========== 时间计数器管理函数 ==========
|
// ========== 时间计数器管理函数 ==========
|
||||||
@@ -862,7 +878,6 @@ const handleClick = (item: any, chnNum: number, scriptType: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handlePause = () => {
|
const handlePause = () => {
|
||||||
//emit('sendPause')
|
|
||||||
testLogList.push({
|
testLogList.push({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
log: `${new Date().toLocaleString()}:当前测试小项正在执行中,将在该小项执行结束后暂停...`
|
log: `${new Date().toLocaleString()}:当前测试小项正在执行中,将在该小项执行结束后暂停...`
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog :title="dialogTitle" v-model='dialogVisible' @close="close" v-bind="dialogBig" align-center>
|
<el-dialog :title="dialogTitle" v-model='dialogVisible' @close="close" v-bind="dialogBig" align-center>
|
||||||
<el-tabs type="border-card">
|
<el-tabs type="border-card" v-model="activeName">
|
||||||
<el-tab-pane label="设备台账信息">
|
<el-tab-pane label="设备台账信息" name="devInfo">
|
||||||
<div>
|
<div>
|
||||||
<el-form :model='formContent' ref='dialogFormRef' :rules='rules' :disabled="false" label-width="auto" class="form-three">
|
<el-form :model='formContent' ref='dialogFormRef' :rules='rules' :disabled="false" label-width="auto" class="form-three">
|
||||||
<el-divider>设备信息</el-divider>
|
<el-divider>设备信息</el-divider>
|
||||||
@@ -72,6 +72,47 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="通道系数" name="gainInfo">
|
||||||
|
<el-tabs type="border-card" style="margin: 15px 0px;">
|
||||||
|
<el-tab-pane v-for="(item, index) in formContent.gainList" :label="'通道'+(index+1)">
|
||||||
|
<el-form :model='item' ref='gainFormRef' :disabled="true" class="form-four">
|
||||||
|
<el-form-item label-width="30" label-position="left" label="ua" prop="uaGain">
|
||||||
|
<el-input v-model="item.uaGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="ub" prop="ubGain">
|
||||||
|
<el-input v-model="item.ubGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="uc" prop="ucGain">
|
||||||
|
<el-input v-model="item.ucGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="u0" prop="u0Gain">
|
||||||
|
<el-input v-model="item.u0Gain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="ia" prop="iaGain">
|
||||||
|
<el-input v-model="item.iaGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="ib" prop="ibGain">
|
||||||
|
<el-input v-model="item.ibGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="ic" prop="icGain">
|
||||||
|
<el-input v-model="item.icGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="i0" prop="i0Gain">
|
||||||
|
<el-input v-model="item.i0Gain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="uab" prop="uabGain">
|
||||||
|
<el-input v-model="item.uabGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="ubc" prop="uabGain">
|
||||||
|
<el-input v-model="item.ubcGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label-width="30" label-position="left" label="uca" prop="ucaGain">
|
||||||
|
<el-input v-model="item.ucaGain"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div>
|
<div>
|
||||||
@@ -84,17 +125,14 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup lang='ts'>
|
<script setup lang='ts'>
|
||||||
|
|
||||||
import IPAddress from '@/components/IpAddress/index.vue'
|
|
||||||
import {dialogBig} from '@/utils/elementBind'
|
import {dialogBig} from '@/utils/elementBind'
|
||||||
import {type StandardDevice} from '@/api/device/interface/standardDevice.ts'
|
import {type StandardDevice} from '@/api/device/interface/standardDevice.ts'
|
||||||
import {ElMessage, type FormItemRule} from 'element-plus'
|
import {ElMessage, type FormItemRule} from 'element-plus'
|
||||||
import {addPqStandardDev, updatePqStandardDev} from '@/api/device/standardDevice/index.ts'
|
import {addPqStandardDev, updatePqStandardDev} from '@/api/device/standardDevice/index.ts'
|
||||||
import {computed, reactive, type Ref, ref} from 'vue'
|
import {computed, reactive, type Ref, ref} from 'vue'
|
||||||
import {useDictStore} from '@/stores/modules/dict'
|
import {useDictStore} from '@/stores/modules/dict'
|
||||||
import { CirclePlus, Delete, EditPen } from '@element-plus/icons-vue'
|
|
||||||
import {type Device} from '@/api/device/interface/device.ts'
|
import {type Device} from '@/api/device/interface/device.ts'
|
||||||
// 使用 dayjs 库格式化
|
// 使用 dayjs 库格式化
|
||||||
import dayjs from 'dayjs'
|
|
||||||
|
|
||||||
// 存储设备类型选项
|
// 存储设备类型选项
|
||||||
const devTypeOptions = ref<Device.ResDev[]>([])
|
const devTypeOptions = ref<Device.ResDev[]>([])
|
||||||
@@ -120,6 +158,8 @@ const pqChannelArray = ref([
|
|||||||
label: '4',
|
label: '4',
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
const activeName=ref('devInfo')
|
||||||
|
|
||||||
|
|
||||||
function useMetaInfo() {
|
function useMetaInfo() {
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
@@ -259,12 +299,14 @@ const pqChannelArray = ref([
|
|||||||
|
|
||||||
// 打开弹窗,可能是新增,也可能是编辑
|
// 打开弹窗,可能是新增,也可能是编辑
|
||||||
const open = async (sign: string, data: StandardDevice.ResPqStandardDevice, devType: Device.ResDev[]) => {
|
const open = async (sign: string, data: StandardDevice.ResPqStandardDevice, devType: Device.ResDev[]) => {
|
||||||
|
activeName.value = 'devInfo'
|
||||||
// 重置表单
|
// 重置表单
|
||||||
dialogFormRef.value?.resetFields()
|
dialogFormRef.value?.resetFields()
|
||||||
devTypeOptions.value = devType
|
devTypeOptions.value = devType
|
||||||
titleType.value = sign
|
titleType.value = sign
|
||||||
if (data.id) {
|
if (data.id) {
|
||||||
Object.assign(formContent, {...data})
|
Object.assign(formContent, {...data})
|
||||||
|
console.log(formContent)
|
||||||
if (typeof formContent.inspectChannel === 'string') {
|
if (typeof formContent.inspectChannel === 'string') {
|
||||||
formContent.inspectChannel = formContent.inspectChannel.split(',').filter(Boolean)
|
formContent.inspectChannel = formContent.inspectChannel.split(',').filter(Boolean)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,13 +99,11 @@ const handleInputRetainTime = value => {
|
|||||||
ElMessage.warning("持续时间不能小于0周波")
|
ElMessage.warning("持续时间不能小于0周波")
|
||||||
props.childForm[0].dipData.retainTime = 0
|
props.childForm[0].dipData.retainTime = 0
|
||||||
emit('setRetainTime', 0 )
|
emit('setRetainTime', 0 )
|
||||||
}else if (value > 300) {
|
}else if (value > 3000) {
|
||||||
ElMessage.warning("持续时间不能大于300周波")
|
ElMessage.warning("持续时间不能大于3000周波")
|
||||||
props.childForm[0].dipData.retainTime = 300
|
props.childForm[0].dipData.retainTime = 3000
|
||||||
emit('setRetainTime', 300 )
|
emit('setRetainTime', 3000 )
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
|
||||||
emit('setRetainTime', value )
|
emit('setRetainTime', value )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
v-model="formContent.testConfig!.realTime"
|
v-model="formContent.testConfig!.realTime"
|
||||||
:precision="0"
|
:precision="0"
|
||||||
:step="1"
|
:step="1"
|
||||||
:min="40"
|
:min="20"
|
||||||
placeholder="请输入实时数据有效组数"
|
placeholder="请输入实时数据有效组数"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user