样式调整
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<div >
|
||||
<el-collapse model-value="1" accordion>
|
||||
<el-collapse model-value="0" accordion>
|
||||
<el-collapse-item title="检测日志:" name="1">
|
||||
<div ref="scrollContainer" class="dialog-log">
|
||||
<p v-for="(item, index) in testLogList" :key="index" :style="{color:item.type==='error'?'#F56C6C':'var(--el-text-color-regular)'}">
|
||||
@@ -451,22 +451,19 @@ function traverseTableData(data: any[],id: string): void {
|
||||
}
|
||||
|
||||
const updateTableData = (id: string) => {
|
||||
|
||||
traverseTableData(tableData.value,id);
|
||||
console.log(id)
|
||||
};
|
||||
|
||||
const handleReCheck = () => {
|
||||
|
||||
console.log(tableData.value,operatorTableData.value)
|
||||
activeIndex.value = 0;
|
||||
percentage.value = 0;
|
||||
tableData.value.length = 0;
|
||||
testLogList.value.length = 0;
|
||||
tableData.value = operatorTableData.value;
|
||||
console.log(tableData.value,operatorTableData.value)
|
||||
|
||||
resumeTimer()
|
||||
console.log(tableData.value,operatorTableData.value)
|
||||
tableData.value = JSON.parse(JSON.stringify(operatorTableData.value));
|
||||
resumeTimer()
|
||||
};
|
||||
let timer: any = ref("");
|
||||
const handlePauseTest = () => {
|
||||
@@ -1849,7 +1846,8 @@ const startTimer = () => {
|
||||
} else {
|
||||
percentage.value = 100;
|
||||
clearInterval(timer.value)
|
||||
|
||||
timer.value = null;
|
||||
|
||||
ts.value = 'success'
|
||||
ElMessageBox.alert('检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作', '检测完成', {
|
||||
// if you want to disable its autofocus
|
||||
@@ -1863,6 +1861,7 @@ const startTimer = () => {
|
||||
else
|
||||
{
|
||||
clearInterval(timer.value)
|
||||
timer.value = null;
|
||||
ts.value = 'success'
|
||||
}
|
||||
|
||||
@@ -1878,6 +1877,7 @@ const pauseTimer = () => {
|
||||
|
||||
const resumeTimer = () => {
|
||||
if (timer.value === null) {
|
||||
console.log('startTimer')
|
||||
startTimer();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user