fix: 接口定义全选生成关系图报错

This commit is contained in:
chenjianxing 2021-10-27 21:09:37 +08:00 committed by jianxing
parent 5fccc14d85
commit 8d4b91923e
3 changed files with 8 additions and 4 deletions

View File

@ -40,6 +40,10 @@ public class QueryTestCaseRequest extends BaseQueryRequest {
private List<String> testCaseContainIds; private List<String> testCaseContainIds;
// 接口定义
private String protocol;
private String apiCaseCoverage;
// 补充场景条件 // 补充场景条件
private String excludeId; private String excludeId;
private String moduleId; private String moduleId;

View File

@ -1,6 +1,6 @@
<template> <template>
<chart <chart
:style="{'height': chartHeight, 'width': width}" :style="{'height': chartHeight, 'width': chartWidth}"
class="ms-chart" class="ms-chart"
:init-options="defaultInitOptions" :init-options="defaultInitOptions"
:option="options" :option="options"
@ -46,7 +46,7 @@ export default {
}, },
computed: { computed: {
chartHeight() { chartHeight() {
if (this.height instanceof String) { if (this.height.indexOf('px') > -1 || this.height.indexOf('calc') > -1) {
return this.height; return this.height;
} else { } else {
return this.height + 'px'; return this.height + 'px';
@ -56,7 +56,7 @@ export default {
if (!this.width) { if (!this.width) {
return this.width; return this.width;
} }
if (this.width instanceof String) { if (this.width.indexOf('px') > -1 || this.width.indexOf('calc') > -1) {
return this.width; return this.width;
} else { } else {
return this.width + 'px'; return this.width + 'px';

@ -1 +1 @@
Subproject commit e4df3d9eacd000b04452242ca853904d849a361d Subproject commit ed7ae1a01f47ea54c0caf81ed8c9bafe4f687b80