9000系统测试用例调整

This commit is contained in:
sjl
2026-01-22 16:15:33 +08:00
parent 8b356c87a3
commit 56d65a6c17
59 changed files with 243 additions and 99 deletions

View File

@@ -2397,35 +2397,45 @@ const onsubmit = () => {
/**
* 提交数据
*/
const submitData = () => {
const submitData = async () => {
const project = JSON.parse(JSON.stringify(AddProjectBO.value))
// project: JSON.stringify(project)
addTerminal(project).then((res: any) => {
ElMessage({
type: 'success',
message: res.message
})
reaseStatus()
initAddProjectBo()
initAddProjectBoId()
treedata()
await mainForm.value.validate((valid: any) => {
if (valid) {
addTerminal(project).then((res: any) => {
ElMessage({
type: 'success',
message: res.message
})
reaseStatus()
initAddProjectBo()
initAddProjectBoId()
treedata()
})
}
})
// project: JSON.stringify(project)
}
/**
* 修改数据
*/
const updateDate = () => {
const updateDate = async () => {
// console.log("updateProject:", this.updateProject);
let data = updateProject.value
updateTerminal(data).then((res: any) => {
ElMessage({
type: 'success',
message: res.message
})
pageStatus.value = 1
treedata()
await mainForm.value.validate((valid: any) => {
if (valid){
let data = updateProject.value
updateTerminal(data).then((res: any) => {
ElMessage({
type: 'success',
message: res.message
})
pageStatus.value = 1
treedata()
})
}
})
}
const updateProjectF = () => {
updateProject.value = {