修改测试问题

This commit is contained in:
guanj
2026-06-30 08:38:05 +08:00
parent 490b52b525
commit 536f22584d
103 changed files with 3220 additions and 2394 deletions

View File

@@ -58,7 +58,7 @@
</template>
<template #actions="{ confirm, cancel }">
<el-button size="small" @click="cancel">取消</el-button>
<el-button type="warning" size="small" @click="confirm"></el-button>
<el-button type="warning" size="small" @click="confirm"></el-button>
</template>
</el-popconfirm>
</template>
@@ -112,8 +112,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="resetForm"> </el-button>
<el-button type="primary" @click="onSubmit"> </el-button>
<el-button @click="resetForm">取消</el-button>
<el-button type="primary" @click="onSubmit" :loading="loading1"></el-button>
</template>
</el-dialog>
@@ -138,8 +138,8 @@
</el-form>
<template #footer>
<el-button @click="popUps = false"> </el-button>
<el-button type="primary" @click="bindTheProcess"> </el-button>
<el-button @click="popUps = false">取消</el-button>
<el-button type="primary" @click="bindTheProcess" :loading="loading2"></el-button>
</template>
</el-dialog>
</div>
@@ -164,6 +164,7 @@ import {
defineOptions({
name: 'govern/setting/frontManagement'
})
const loading1 = ref(false)
const filterText = ref('')
const fontdveoption: any = ref([
{ id: 0, name: '极重要' },
@@ -236,7 +237,7 @@ const tableStore = new TableStore({
{ title: 'IP', field: 'ip', minWidth: '110' },
{
title: '最大监测点数量',
title: '最大终端数',
field: 'nodeDevNum',
minWidth: '80',
},
@@ -432,11 +433,12 @@ const handleNodeChange = (nodeId: any) => {
// 加载新选中前置机的进程号选项
loadProcessOptionsForNode(nodeId)
}
const loading2 = ref(false)
// 更新进程号
const bindTheProcess = () => {
bindProcessFormRef.value.validate((valid: any) => {
if (valid) {
loading2.value = true
updateProcess({
id: processId.value,
processNo: bindProcessForm.value.processNo,
@@ -445,6 +447,8 @@ const bindTheProcess = () => {
ElMessage.success('修改成功!')
popUps.value = false
currentChangeEvent()
}).finally(() => {
loading2.value = false
})
}
})
@@ -499,17 +503,22 @@ const add = () => {
const onSubmit = () => {
ruleFormRef.value.validate((valid: any) => {
if (valid) {
loading1.value = true
if (dialogTitle.value == '新增前置机') {
addNode(formData.value).then(res => {
ElMessage.success('新增前置机')
resetForm()
tableStore.onTableAction('search', {})
}).finally(() => {
loading1.value = false
})
} else {
updateNode(formData.value).then(res => {
ElMessage.success('修改成功')
resetForm()
tableStore.onTableAction('search', {})
}).finally(() => {
loading1.value = false
})
}
}