diff --git a/performance-test/backend/src/main/resources/db/migration/2.10.8.ddl/V4__2.10.8_release.sql b/performance-test/backend/src/main/resources/db/migration/2.10.8.ddl/V4__2.10.8_release.sql new file mode 100644 index 0000000000..8f85a7ce10 --- /dev/null +++ b/performance-test/backend/src/main/resources/db/migration/2.10.8.ddl/V4__2.10.8_release.sql @@ -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; \ No newline at end of file diff --git a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue index 2d5a7abd30..9dc614f3b2 100644 --- a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue +++ b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue @@ -136,7 +136,10 @@ export default { done(); }, 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); }, }, diff --git a/performance-test/frontend/src/business/report/components/samples/SamplesDrawer.vue b/performance-test/frontend/src/business/report/components/samples/SamplesDrawer.vue index dd5491b0e8..28e3d5ca49 100644 --- a/performance-test/frontend/src/business/report/components/samples/SamplesDrawer.vue +++ b/performance-test/frontend/src/business/report/components/samples/SamplesDrawer.vue @@ -56,12 +56,16 @@ export default { }, openRecord(samples) { this.sampleRecord = []; + this.$nextTick(() => { - samples.forEach(sample => { - this.sampleRecord.push(sample); - }); + if (samples) { + samples.forEach(sample => { + this.sampleRecord.push(sample); + }); + } this.drawer = true; }) + }, }, } diff --git a/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue b/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue index 38df0bea0f..b804d9dfa0 100644 --- a/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue +++ b/performance-test/frontend/src/business/report/components/samples/SamplesTabs.vue @@ -52,7 +52,9 @@ export default { this.errorSamples.samples[sampleName] = {}; } 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] || []; + } } } }