fix(性能测试): 测试命长较长时生成报告报SQL错误

--bug=1017879 --user=李玉号 【性能测试】测试命长较长时生成报告报SQL错误
https://www.tapd.cn/55049933/s/1264683
This commit is contained in:
shiziyuan9527 2022-10-17 18:02:08 +08:00 committed by 刘瑞斌
parent d65dc5a398
commit d2d5611da9
3 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,5 @@
ALTER TABLE load_test_report
MODIFY name VARCHAR(255) NOT NULL;
ALTER TABLE load_test_report
MODIFY test_name VARCHAR(255) NULL;

View File

@ -8,7 +8,7 @@
:before-close="close">
<el-form>
<el-form-item :label="$t('commons.name')">
<el-input v-model="data.name" maxlength="60" show-word-limit></el-input>
<el-input v-model="data.name" :maxlength="maxLength" show-word-limit></el-input>
</el-form-item>
</el-form>
@ -28,6 +28,12 @@ export default {
data: {}
};
},
props: {
maxLength: {
type: Number,
default: 60
},
},
methods: {
open(data) {
this.dialogVisible = true;

View File

@ -149,7 +149,7 @@
</el-card>
</ms-main-container>
<same-test-reports ref="compareReports"/>
<ms-rename-report-dialog ref="renameDialog" @submit="rename"></ms-rename-report-dialog>
<ms-rename-report-dialog ref="renameDialog" @submit="rename" :max-length="255"></ms-rename-report-dialog>
</ms-container>
</template>