mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 20:49:56 +08:00
style(接口测试): table行隐藏样式调整
--bug=1017834 --user=赵勇 【接口测试】场景变量-搜索未返回结果 https://www.tapd.cn/55049933/s/1258972
This commit is contained in:
parent
14be65e84b
commit
8ff6efe0a4
@ -13,6 +13,9 @@
|
|||||||
v-else-if="getStatus(status) === 'fake_error'">
|
v-else-if="getStatus(status) === 'fake_error'">
|
||||||
FakeError
|
FakeError
|
||||||
</el-tag>
|
</el-tag>
|
||||||
|
<span v-else-if="status === '-'" size="mini" type="info">
|
||||||
|
-
|
||||||
|
</span>
|
||||||
<el-tag v-else size="mini" type="info">
|
<el-tag v-else size="mini" type="info">
|
||||||
{{ showStatus(status) }}
|
{{ showStatus(status) }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
|
@ -138,7 +138,7 @@ export class BaseConfig {
|
|||||||
options = this.initOptions(options)
|
options = this.initOptions(options)
|
||||||
if (types) {
|
if (types) {
|
||||||
for (let name in types) {
|
for (let name in types) {
|
||||||
if (Object.prototype.hasOwnProperty.call(types, name) && Object.prototype.hasOwnProperty.call(options, name)) {
|
if (options[name] !== null && Object.prototype.hasOwnProperty.call(types, name) && Object.prototype.hasOwnProperty.call(options, name)) {
|
||||||
options[name].forEach(o => {
|
options[name].forEach(o => {
|
||||||
this[name].push(new types[name](o));
|
this[name].push(new types[name](o));
|
||||||
})
|
})
|
||||||
@ -1269,7 +1269,7 @@ class JMXDubboRequest {
|
|||||||
copy(target, source) {
|
copy(target, source) {
|
||||||
for (let key in source) {
|
for (let key in source) {
|
||||||
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
if (source[key] && !target[key]) {
|
if (source[key] && !target[key]) {
|
||||||
target[key] = source[key];
|
target[key] = source[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1289,7 +1289,7 @@ class JMXTCPRequest {
|
|||||||
copy(target, source) {
|
copy(target, source) {
|
||||||
for (let key in source) {
|
for (let key in source) {
|
||||||
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
if (source[key] && !target[key]) {
|
if (source[key] && !target[key]) {
|
||||||
target[key] = source[key];
|
target[key] = source[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1420,7 +1420,7 @@ class JMXGenerator {
|
|||||||
let domain = environment.config.httpConfig.domain;
|
let domain = environment.config.httpConfig.domain;
|
||||||
let validHosts = [];
|
let validHosts = [];
|
||||||
hosts.forEach(item => {
|
hosts.forEach(item => {
|
||||||
if (item.domain && domain ) {
|
if (item.domain && domain) {
|
||||||
let d = item.domain.trim().replace("http://", "").replace("https://", "");
|
let d = item.domain.trim().replace("http://", "").replace("https://", "");
|
||||||
if (d === domain.trim()) {
|
if (d === domain.trim()) {
|
||||||
item.domain = d; // 域名去掉协议
|
item.domain = d; // 域名去掉协议
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
:height="screenHeight"
|
:height="screenHeight"
|
||||||
:row-key="rowKey"
|
:row-key="rowKey"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
|
:row-style='rowStyle'
|
||||||
:cell-class-name="addPaddingColClass"
|
:cell-class-name="addPaddingColClass"
|
||||||
:highlight-current-row="highlightCurrentRow"
|
:highlight-current-row="highlightCurrentRow"
|
||||||
@sort-change="sort"
|
@sort-change="sort"
|
||||||
@ -511,6 +512,9 @@ export default {
|
|||||||
return 'padding-col';
|
return 'padding-col';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
rowStyle({row}) {
|
||||||
|
return row.hidden ? {"display": "none"} : {};
|
||||||
|
},
|
||||||
tableRowClassName(row) {
|
tableRowClassName(row) {
|
||||||
if (row.row.hidden) {
|
if (row.row.hidden) {
|
||||||
return 'ms-variable-hidden-row';
|
return 'ms-variable-hidden-row';
|
||||||
@ -571,5 +575,4 @@ export default {
|
|||||||
.row-click {
|
.row-click {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user