|
|
@ -67,7 +67,8 @@ const numericLayout = { |
|
|
|
], |
|
|
|
} |
|
|
|
|
|
|
|
const save = async () => { |
|
|
|
|
|
|
|
const start = async () => { |
|
|
|
// 保存配置 |
|
|
|
const data = tubeData.value.filter((item) => item.repeatTimes > 10); |
|
|
|
if (data.length) { |
|
|
@ -75,32 +76,26 @@ const save = async () => { |
|
|
|
return; |
|
|
|
} |
|
|
|
const res = await submitConfig({tubeExConfigs: tubeData.value.map(item => { |
|
|
|
return { |
|
|
|
repeatTimes: Number(item.repeatTimes) || 0 |
|
|
|
} |
|
|
|
return { |
|
|
|
repeatTimes: Number(item.repeatTimes) || 0 |
|
|
|
} |
|
|
|
})}); |
|
|
|
if (res.success) { |
|
|
|
eMessage.success('保存成功') |
|
|
|
if (res && res.success) { |
|
|
|
const res1 = await startTest(); |
|
|
|
if (res1 && res1.success) { |
|
|
|
eMessage.success('已开始测试') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const start = async () => { |
|
|
|
// 开始测试 |
|
|
|
const res = await startTest(); |
|
|
|
if (res.success) { |
|
|
|
eMessage.success('已开始测试') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const moveLiquid = [ |
|
|
|
{ |
|
|
|
label: '取一次5ul', |
|
|
|
value: 5 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '取一次10ul', |
|
|
|
value: 10 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '取一次75ul', |
|
|
|
value: 75 |
|
|
|
} |
|
|
|
] |
|
|
|
|
|
|
@ -134,7 +129,6 @@ const start1 = async () => { |
|
|
|
<div class="title"> |
|
|
|
<span>一致性测试</span> |
|
|
|
<div> |
|
|
|
<el-button type="primary" @click="save">保存配置</el-button> |
|
|
|
<el-button type="primary" @click="start">开始测试</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|