试运行页面修改

This commit is contained in:
cdf
2024-06-05 11:36:24 +08:00
parent b2a7429c55
commit 709ddc143b

View File

@@ -121,6 +121,23 @@ const tableStore = new TableStore({
disabled: row => {
return row.testRunState != 2
}
},
{
name: 'productSetting',
title: '重新试运行',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
monitorIds = []
monitorIds.push(row.id)
runTestSubmit(1)
},
disabled: row => {
return row.status != 3
}
}
]
@@ -187,13 +204,13 @@ const startRunTest = () => {
confirmButtonText: '确 认',
cancelButtonText: '取 消'
}).then(() => {
runTestSubmit()
runTestSubmit(0)
})
.catch(() => console.info('操作取消'))
}
const runTestSubmit = () => {
const runTestSubmit = (type:number) => {
const start = new Date()
start.setDate(start.getDate() + 1)
start.setHours(0, 0, 0)
@@ -206,7 +223,8 @@ const runTestSubmit = () => {
const data = {
startTime: startString,
endTime: endString,
lineIds: monitorIds
lineIds: monitorIds,
operateType:type
}
addRunTest(data).then((res: any) => {
if (res.code === 'A0000') {