refactor(性能测试): 修改性能测试报告内容字段的数据库存储类型
--bug=1032243 --user=宋天阳 【性能测试】报告-错误记录-所有请求-正确请求-点击查看详情没反应-前端报错 https://www.tapd.cn/55049933/s/1429143
This commit is contained in:
parent
d054d8156d
commit
9cce9f93fc
|
@ -0,0 +1,7 @@
|
||||||
|
SET SESSION innodb_lock_wait_timeout = 7200;
|
||||||
|
--
|
||||||
|
-- 增加一个索引
|
||||||
|
ALTER TABLE load_test_report_result_realtime
|
||||||
|
MODIFY COLUMN `report_value` longtext NULL;
|
||||||
|
|
||||||
|
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
|
@ -136,7 +136,10 @@ export default {
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
openRecord(row) {
|
openRecord(row) {
|
||||||
let drawerSamples = this.errorSamples.samples[row.name][row.code];
|
let drawerSamples = [];
|
||||||
|
if (this.errorSamples.samples[row.name]) {
|
||||||
|
drawerSamples = this.errorSamples.samples[row.name][row.code];
|
||||||
|
}
|
||||||
this.$refs.sampleDrawer.openRecord(drawerSamples);
|
this.$refs.sampleDrawer.openRecord(drawerSamples);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -56,12 +56,16 @@ export default {
|
||||||
},
|
},
|
||||||
openRecord(samples) {
|
openRecord(samples) {
|
||||||
this.sampleRecord = [];
|
this.sampleRecord = [];
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
samples.forEach(sample => {
|
if (samples) {
|
||||||
this.sampleRecord.push(sample);
|
samples.forEach(sample => {
|
||||||
});
|
this.sampleRecord.push(sample);
|
||||||
|
});
|
||||||
|
}
|
||||||
this.drawer = true;
|
this.drawer = true;
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,9 @@ export default {
|
||||||
this.errorSamples.samples[sampleName] = {};
|
this.errorSamples.samples[sampleName] = {};
|
||||||
}
|
}
|
||||||
this.errorSamples.sampleCount[sampleName][code] = this.samples.sampleCount[sampleName][code] || {};
|
this.errorSamples.sampleCount[sampleName][code] = this.samples.sampleCount[sampleName][code] || {};
|
||||||
this.errorSamples.samples[sampleName][code] = this.samples.samples[sampleName][code] || [];
|
if (this.samples.samples[sampleName]) {
|
||||||
|
this.errorSamples.samples[sampleName][code] = this.samples.samples[sampleName][code] || [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue