10 Commits

Author SHA1 Message Date
466d552165 签出调整 2025-11-26 10:53:52 +08:00
9d23303919 Merge remote-tracking branch 'origin/qr_branch' into qr_branch 2025-11-26 08:57:28 +08:00
83cdc4ba30 签出调整 2025-11-26 08:56:58 +08:00
caozehui
29efbae717 源未知异常处理 2025-11-06 08:42:04 +08:00
caozehui
a5177860de 微调 2025-09-03 14:23:05 +08:00
caozehui
66019e0d3c 闪变添加4000变动频度 2025-08-04 10:02:22 +08:00
caozehui
0ca992134f 微调 2025-08-01 09:44:00 +08:00
caozehui
128b02c145 微调 2025-08-01 08:46:44 +08:00
caozehui
bbc08679b9 微调 2025-08-01 08:42:26 +08:00
caozehui
bf8b8c9f0f NPQS-581表单默认加密、密钥和识别码为万能的 2025-07-31 14:16:27 +08:00
6 changed files with 57 additions and 29 deletions

View File

@@ -262,6 +262,12 @@ watch(webMsgSend, function (newValue, oldValue) {
type: 'error', type: 'error',
}) })
TableInit(); TableInit();
} else if (newValue.code == -1) { //todo 10552之后还会发送消息吗
ElMessageBox.alert('源未知异常', '检测失败', {
confirmButtonText: '确定',
type: 'error',
})
TableInit();
} else { } else {
console.log('显示东西code', newValue.code) console.log('显示东西code', newValue.code)
console.log('显示东西requestId', newValue.requestId) console.log('显示东西requestId', newValue.requestId)

View File

@@ -501,6 +501,14 @@ watch(webMsgSend, function (newValue, oldValue) {
}) })
ts.value = 'error' ts.value = 'error'
step5.value = 'error' step5.value = 'error'
}else if (newValue.code == -1) {
step4.value = 'error'
step4InitLog.value = [{
type: 'error',
log: '源未知异常!',
}];
ts.value = 'error'
step5.value = 'error'
} }
break; break;

View File

@@ -390,6 +390,16 @@ watch(webMsgSend, function (newValue, oldValue) {
}) })
// emit('update:testStatus', 'recheck') // emit('update:testStatus', 'recheck')
emit('update:testStatus', 'test_init_fail') emit('update:testStatus', 'test_init_fail')
} else if (newValue.code == -1) {
ElMessageBox.alert('源未知异常!', '检测失败!', {
confirmButtonText: '确定',
type: 'error',
})
testLogList.push({
type: 'error',
log: `${new Date().toLocaleString()}:源未知异常!`
})
emit('update:testStatus', 'error')
} else { } else {
switch (newValue.requestId) { switch (newValue.requestId) {
case 'server_error': case 'server_error':
@@ -470,14 +480,14 @@ watch(webMsgSend, function (newValue, oldValue) {
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:源初始化成功!`}) testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:源初始化成功!`})
percentage.value = 1 percentage.value = 1
} }
if (newValue.code == -1) { // if (newValue.code == -1) {
ElMessageBox.alert('源未知异常!', '初始化失败', { // ElMessageBox.alert('源未知异常!', '初始化失败', {
confirmButtonText: '确定', // confirmButtonText: '确定',
type: 'error', // type: 'error',
}) // })
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源未知异常!`}) // testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源未知异常!`})
emit('update:testStatus', 'test_init_fail') // emit('update:testStatus', 'test_init_fail')
} // }
break; break;
} }
break; break;

View File

@@ -159,14 +159,12 @@
</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 Device} from '@/api/device/interface/device' import {type Device} from '@/api/device/interface/device'
import {ElMessage, type FormItemRule} from 'element-plus' import {ElMessage, type FormItemRule} from 'element-plus'
import {addPqDev, updatePqDev} from '@/api/device/device' import {addPqDev, updatePqDev} from '@/api/device/device'
import {computed, reactive, type Ref, ref} from 'vue' import {computed, ref} from 'vue'
import {useDictStore} from '@/stores/modules/dict' import {useDictStore} from '@/stores/modules/dict'
import {CirclePlus, Delete, EditPen} from '@element-plus/icons-vue'
// 使用 dayjs 库格式化 // 使用 dayjs 库格式化
import dayjs from 'dayjs' import dayjs from 'dayjs'
import MonitorTable from '@/views/machine/device/components/monitorTab.vue'; import MonitorTable from '@/views/machine/device/components/monitorTab.vue';
@@ -204,7 +202,7 @@ function useMetaInfo() {
hardwareVersion: '', hardwareVersion: '',
softwareVersion: '', softwareVersion: '',
protocol: 'MMS', protocol: 'MMS',
ip: '', ip: '172.17.102.222',
port: 102, port: 102,
encryptionFlag: 0, encryptionFlag: 0,
reCheckNum: 0, reCheckNum: 0,
@@ -213,7 +211,7 @@ function useMetaInfo() {
icdId: '', icdId: '',
power: '', power: '',
preinvestmentPlan: '', preinvestmentPlan: '',
delegate:'' delegate: ''
}) })
return {dialogVisible, titleType, formContent} return {dialogVisible, titleType, formContent}
} }
@@ -235,7 +233,7 @@ const resetFormContent = () => {
hardwareVersion: '', hardwareVersion: '',
softwareVersion: '', softwareVersion: '',
protocol: 'MMS', protocol: 'MMS',
ip: '', ip: '172.17.102.222',
port: 102, port: 102,
encryptionFlag: 0, encryptionFlag: 0,
reCheckNum: 0, reCheckNum: 0,
@@ -244,7 +242,7 @@ const resetFormContent = () => {
icdId: '', icdId: '',
power: '', power: '',
preinvestmentPlan: '', preinvestmentPlan: '',
delegate:'' delegate: ''
} }
} }
@@ -446,15 +444,17 @@ const handleDevTypeChange = (value: string) => {
formContent.value.devVolt = dev.devVolt; // 默认值为1 formContent.value.devVolt = dev.devVolt; // 默认值为1
formContent.value.icdId = dev.icd formContent.value.icdId = dev.icd
formContent.value.power = dev.power formContent.value.power = dev.power
// if (dev.name.includes('882B')) { if(scene.value === '1'){
// formContent.value.ip = '172.17.102.220' if (dev.name.includes('NPQS-581') || dev.name.includes('NPQS-580') || dev.name.includes('PQ-COM')) {
// } else if (dev.name.includes('882A')) { formContent.value.encryptionFlag = 1
// formContent.value.ip = '172.17.102.221' formContent.value.series = 'Pqs&cn870299'
// } else { formContent.value.devKey = '!qaz@wsx3edc4rfv'
// formContent.value.ip = '172.17.102.200' } else {
// } formContent.value.encryptionFlag = 0
formContent.value.series = null
formContent.value.devKey = null
}
}
} else { } else {
formContent.value.devChns = 1; // 默认值为1 formContent.value.devChns = 1; // 默认值为1
formContent.value.devCurr = 1; // 默认值为1 formContent.value.devCurr = 1; // 默认值为1

View File

@@ -204,6 +204,10 @@ const waveList = [
{ {
fchagFre: '2400', fchagFre: '2400',
fchagValue: '0.77' fchagValue: '0.77'
},
{
fchagFre: '4000',
fchagValue: '2.4'
} }
] ]
}, },