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

This commit is contained in:
chenjianxing 2021-10-27 21:09:37 +08:00 committed by jianxing
parent 3d98527582
commit 5912500560
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 2a4f0b9f537a860b2ff9f660668eb1e36865cbc0
Subproject commit 732aba3931ede033ab986b973bbab64a321370df