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 String protocol;
private String apiCaseCoverage;
// 补充场景条件
private String excludeId;
private String moduleId;

View File

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

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